b978444773fc3f32f80995a980512512830c3903
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2
3         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
4         assembler flag.
5         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
6         zarch_nohighgprs around the zarch optimized routines.
7         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
8         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
9         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
10         for zarch.
11
12 2012-09-05  David S. Miller  <davem@davemloft.net>
13
14         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15
16         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
17         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
18         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
19         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
20         entries.
21
22 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
23
24         * malloc/arena.c: Fold copyright years.
25         * malloc/mcheck.c, malloc/memusage.c: Likewise.
26
27 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
28
29         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
30
31 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
32
33         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
34
35 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
36
37         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
38         change internal state upon failure.
39
40 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
41
42         * malloc/mcheck.c (mcheck_check_all): Fix typo.
43         * malloc/memusage.c (mmap): Likewise.
44         (mmap64, mremap): Likewise.  Adjust name in comment.
45
46 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
47
48         * libio/fileops.c: Fix typos in comments.
49         * libio/oldfileops.c: Likewise.
50         * libio/wfileops.c: Likewise.
51
52 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
53
54         [BZ #1349]
55         * malloc/Makefile (tests): Add tst-malloc-usable test case.
56         (tst-malloc-usable-ENV): Set environment for test case.
57         * malloc/hooks.c (malloc_check_get_size): New function to get
58         requested size.
59         * malloc/malloc.c (musable): Use malloc_check_get_size.
60         * malloc/tst-malloc-usable.c: New test case.
61
62 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
63
64         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
65
66 2012-09-05  Allan McRae  <allan@archlinux.org>
67
68         [BZ #13966]
69         * configure.in (CXX_SYSINCLUDES): Use compiler output to
70         determine header location.
71         * configure: Regenerated.
72
73 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
74
75         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
76         float format.
77         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
78         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
79         format.
80         (test): Regenerate.
81
82 2012-09-04  David S. Miller  <davem@davemloft.net>
83
84         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
85         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
86         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
87
88 2012-09-04  Florian Weimer  <fweimer@redhat.com>
89
90         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
91         failures.
92
93         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
94
95 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
96
97         [BZ #9914]
98         * libio/iogetdelim.c: Include <limits.h>.
99         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
100         + len + 1 would overflow.
101
102 2012-09-03  Andreas Jaeger  <aj@suse.de>
103
104         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
105         * sysdeps/i386/fpu/libm-test-ulps: Update.
106
107 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
108
109         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
110         Add s_sinf-sse2, s_conf-sse2.
111
112         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
113         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
114         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
115         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
116
117         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
118         for using routine as __sinf_ia32.
119         Use macro for function declaration and weak_alias.
120         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
121         for using routine as __cosf_ia32.
122         Use macro for function declaration and weak_alias.
123
124         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
125         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
126
127         * sysdeps/x86_64/fpu/s_sinf.S: New file.
128         * sysdeps/x86_64/fpu/s_cosf.S: New file.
129         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
130
131         * math/libm-test.inc (cos_test): Add more test cases.
132         (sin_test): Likewise.
133         (sincos_test): Likewise.
134
135 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
136
137         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
138         (IFUNC_RESOLVE): Make pointers to the specialized implementations
139         hidden.
140         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
141
142 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
143
144         [BZ #14538]
145         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
146         first element of the GOT.
147         (elf_machine_load_address): Return the difference between
148         the runtime address of _DYNAMIC and elf_machine_dynamic ().
149
150 2012-09-01  Allan McRae  <allan@archlinux.org>
151
152         [BZ #13412]
153         * configure.in (AWK): Require gawk version 3.0 or later.
154         * configure: Regenerated.
155
156 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
157
158         * sysdeps/unix/sysv/linux/kernel-features.h
159         (__ASSUME_POSIX_CPU_TIMERS): Remove.
160         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
161         [__NR_clock_getres]: Make code unconditional.
162         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
163         (clock_getcpuclockid): Remove code left unreachable by removal of
164         conditionals.
165         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
166         code unconditional.
167         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
168         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
169         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
170         Make code unconditional.
171         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
172         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
173         * sysdeps/unix/sysv/linux/clock_settime.c
174         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
175         conditional code.
176         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
177         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
178
179 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
180
181         [BZ #14476]
182         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
183         scripts/test-installation.pl.
184
185         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
186         and $ld_so_version if it is set.
187
188 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
189
190         [BZ #14516]
191         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
192         failure if reading from procfs failed.
193         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
194
195 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
196
197         * sysdeps/unix/sysv/linux/kernel-features.h
198         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
199         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
200         Remove conditional code.
201         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
202         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
203         Remove conditional code.
204         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
205         * sysdeps/unix/sysv/linux/i386/fxstat.c
206         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
207         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
208         * sysdeps/unix/sysv/linux/i386/fxstatat.c
209         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
210         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
211         * sysdeps/unix/sysv/linux/i386/lxstat.c
212         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
213         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
214         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
215         Remove conditional code.
216         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
217         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
218         Remove conditional code.
219         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
220         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
221         <kernel-features.h>.
222         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
223         Remove.
224         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
225         Remove conditional code.
226         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
227         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
228         Remove conditional.
229
230 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
231
232         [BZ #5400]
233         * NEWS: Add fixed bug number.
234
235 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
236
237         [BZ #14519]
238         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
239         underflowing exponent in case of negative sign.
240         * stdlib/tst-strtod-round-data: Add more tests.
241         * stdlib/tst-strtod-round.c (tests): Regenerated.
242
243         [BZ #3479]
244         * stdlib/strtod_l.c (NDIG): Remove.
245         (HEXNDIG): Likewise.
246         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
247         smallest representable value.
248         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
249         lie within an exact representation of 1/2 ulp of the result.
250         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
251         unconditionally.
252         (TENS_P9_IDX): Define unconditionally.
253         (TENS_P9_SIZE): Likewise.
254         (TENS_P10_IDX): Likewise.
255         (TENS_P10_SIZE): Likewise.
256         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
257         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
258         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
259         entries for 10^2^13 and 10^2^14.
260         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
261         (TENS_P13_IDX): Define.
262         (TENS_P13_SIZE): Likewise.
263         (TENS_P14_IDX): Likewise.
264         (TENS_P14_SIZE): Likewise.
265         (_fpioconst_pow10): Change array size to
266         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
267         unconditional.
268         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
269         1024]: Add entries for 10^2^13 and 10^2^14.
270         [LAST_POW10 > _LAST_POW10]: Remove #error.
271         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
272         (_fpioconst_pow10): Change array size to
273         FPIOCONST_POW10_ARRAY_SIZE.
274         * stdlib/gen-fpioconst.c: New file.
275         * stdlib/gen-tst-strtod-round.c: Likewise.
276         * stdlib/tst-strtod-round-data: Likewise.
277         * stdlib/tst-strtod-round.c: Likewise.
278         * stdlib/Makefile (tests): Add tst-strtod-round.
279
280         [BZ #14459]
281         * stdlib/strtod_l.c: Include <stdint.h>.
282         (NDEBUG): Do not define.
283         (round_and_return): Change EXPONENT parameter to type intmax_t.
284         Rearrange calculations to avoid internal overflow possibilities.
285         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
286         Rearrange calculations to avoid internal overflow possibilities.
287         Assert that number fits inside MPNSIZE limbs.
288         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
289         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
290         calculations and add assertions to avoid internal overflow
291         possibilities.  Add casts to avoid signed/unsigned operations.
292         * stdlib/tst-strtod-overflow.c: New file.
293         * stdlib/Makefile (tests): Add tst-strtod-overflow.
294
295 2012-08-25  Marek Polacek  <polacek@redhat.com>
296
297         * time/time.h: Fix some typos in comments.
298
299 2012-08-23  Roland McGrath  <roland@hack.frob.com>
300
301         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
302         * posix/tst-rfc3484-2.c: Likewise.
303         * posix/tst-rfc3484-3.c: Likewise.
304
305 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
306
307         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
308         (EF_ARM_ABI_FLOAT_HARD): Likewise.
309
310 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
311
312         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
313         #include of fxstatat64.c.
314
315 2012-08-22  Roland McGrath  <roland@hack.frob.com>
316
317         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
318         * shadow/getspent_r.c: Likewise.
319         * shadow/getspnam.c: Likewise.
320         * shadow/getspnam_r.c: Likewise.
321         * gshadow/getsgent.c: Likewise.
322         * gshadow/getsgent_r.c: Likewise.
323         * gshadow/getsgnam.c: Likewise.
324         * gshadow/getsgnam_r.c: Likewise.
325         * inet/getnetbyad.c: Likewise.
326         * inet/getnetbyad_r.c: Likewise.
327         * inet/getnetbynm.c: Likewise.
328         * inet/getnetbynm_r.c: Likewise.
329         * inet/getnetent.c: Likewise.
330         * inet/getnetent_r.c: Likewise.
331         * inet/getproto.c: Likewise.
332         * inet/getproto_r.c: Likewise.
333         * inet/getprtent.c: Likewise.
334         * inet/getprtent_r.c: Likewise.
335         * inet/getprtname.c: Likewise.
336         * inet/getprtname_r.c: Likewise.
337         * inet/getrpcbyname.c: Likewise.
338         * inet/getrpcbyname_r.c: Likewise.
339         * inet/getrpcbynumber.c: Likewise.
340         * inet/getrpcbynumber_r.c: Likewise.
341         * inet/getrpcent.c: Likewise.
342         * inet/getrpcent_r.c: Likewise.
343         * inet/getaliasent.c: Likewise.
344         * inet/getaliasent_r.c: Likewise.
345         * inet/getaliasname.c: Likewise.
346         * inet/getaliasname_r.c: Likewise.
347         * nscd/getgrgid_r.c: Likewise.
348         * nscd/getgrnam_r.c: Likewise.
349         * nscd/gethstbyad_r.c: Likewise.
350         * nscd/gethstbynm3_r.c: Likewise.
351         * nscd/getpwnam_r.c: Likewise.
352         * nscd/getpwuid_r.c: Likewise.
353         * nscd/getsrvbynm_r.c: Likewise.
354         * nscd/getsrvbypt_r.c: Likewise.
355         * nscd/gai.c: Likewise.
356
357         * configure.in (build_nscd): New substituted variable, set
358         by --disable-build-nscd and defaults to $use_nscd.
359         * configure: Regenerated.
360         * config.make.in (build-nscd): New substituted variable.
361         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
362         Change conditional to require [$(build-nscd) = yes] as well.
363         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
364
365         [BZ# 13696]
366         * configure.in (use_nscd): New substituted variable, set by
367         --disable-nscd.  If enabled, define USE_NSCD.
368         * configure: Regenerated.
369         * config.h.in: Add USE_NSCD.
370         * config.make.in (use-nscd): New substituted variable.
371         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
372         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
373         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
374         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
375         (CFLAGS-getgrnam_r.c): Likewise.
376         (CFLAGS-initgroups.c): Likewise.
377         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
378         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
379         Variables removed.
380         * inet/getnetgrent_r.c
381         (nscd_setnetgrent): New function, broken out of ...
382         (setnetgrent): ... here.  Call it.
383         (innetgr): Conditionalize nscd bits on [USE_NSCD].
384         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
385         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
386         * nscd/Makefile (routines, aux): Move definitions after include of
387         Makeconfig.  Conditionalize on [$(use-nscd) != no].
388         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
389         Conditionalize on [USE_NSCD].
390         (is_nscd, nscd_init_cb): Likewise.
391         (nss_load_library): Conditionalize init callback on [USE_NSCD].
392         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
393         * nss/nss_db/db-init.c: Likewise.
394         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
395         [USE_NSCD].
396         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
397         (make_request): Use it.
398         (cache_valid_p): New function.
399         (__check_pf): Use it.
400         * NEWS: Add item for --disable-nscd.
401
402 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
403
404         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
405         to support sed >= 4.2.1-20-ga9bf076.
406         * configure: Regenerated.
407
408 2012-08-22  Roland McGrath  <roland@hack.frob.com>
409
410         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
411         Conditionalize whole body on [IREL].
412
413 2012-08-22  Jeff Law <law@redhat.com>
414
415         [BZ #14505]
416         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
417         if the family is PF_UNSPEC.
418
419 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
420
421         * Makerules (lib-version): Rename from V.
422         (install-lib-nosubdir): Change V to lib-version.
423
424 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
425
426         [BZ #14252]
427         * powerpc32/power6/wcschr.c: New file.
428         * powerpc32/power6/wcscpy.c: New file.
429         * powerpc32/power6/wcsrchr.c: New file.
430         * powerpc64/power6/wcschr.c: New file.
431         * powerpc64/power6/wcscpy.c: New file.
432         * powerpc64/power6/wcsrchr.c: New file.
433
434 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
435
436         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
437         (two_way_short_needle): Use it.
438         * string/strstr.c (AVAILABLE1_USES_J): Define.
439         * string/strcasestr.c: Likewise.
440
441         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
442         array references.
443         * string/strcasestr.c (TOLOWER): Make side-effect safe.
444
445         [BZ #11607]
446         * NEWS: Add an entry.
447         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
448         define their defaults.
449         (two_way_short_needle): Detect end-of-string on-the-fly.
450         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
451         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
452         * string/bug-strcasestr1.c: New test.
453         * string/Makefile: Run it.
454
455 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
456
457         [BZ #11607]
458         * string/str-two-way.h (two_way_short_needle): Optimize matching of
459         the first character.
460
461 2012-08-21  Roland McGrath  <roland@hack.frob.com>
462
463         * csu/elf-init.c (__libc_csu_irel): Function removed.
464         * csu/libc-start.c (apply_irel): New function.
465         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
466
467 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
468
469         * sysdeps/unix/sysv/linux/kernel-features.h
470         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
471         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
472         <kernel-features.h>.
473         [__NR_fadvise64_64]: Make code unconditional.
474         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
475         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
476         !__NR_fadvise64_64)]: Likewise.
477         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
478         !__NR_fadvise64_64))]: Likewise.
479         [__NR_fadvise64]: Make code unconditional.
480         [!__NR_fadvise64]: Remove conditional code.
481         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
482         <kernel-features.h>.
483         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
484         unconditional.
485         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
486         conditional code.
487         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
488         not include <kernel-features.h>.
489         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
490         unconditional.
491         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
492         conditional code.
493         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
494         include <kernel-features.h>.
495         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
496         unconditional.
497         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
498         conditional code.
499
500 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
501
502         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
503         slight instruction rearrangements per scrollpipe analysis.
504         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
505
506 2012-08-20  Roland McGrath  <roland@hack.frob.com>
507
508         * manual/syslog.texi (syslog; vsyslog, closelog):
509         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
510         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
511
512         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
513         DSOCAPS to match condition on defining it.
514
515 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
516
517         * sysdeps/unix/sysv/linux/kernel-features.h
518         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
519         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
520         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
521         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
522         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
523         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
524         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
525         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
526         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
527         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
528
529         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
530         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
531
532         * sysdeps/unix/sysv/linux/kernel-features.h
533         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
534         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
535         unconditional.
536         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
537         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
538         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
539         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
540         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
541         Make code unconditional.
542         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
543         (__mmap64) [!__NR_mmap2]: Likewise.
544         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
545         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
546         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
547         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
548         [__NR_mmap2]: Make code unconditional.
549         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
550         (__mmap64) [!__NR_mmap2]: Likewise.
551
552 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
553
554         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
555
556 2012-08-18  Andreas Jaeger  <aj@suse.de>
557
558         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
559
560 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
561
562         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
563         * include/unistd.h (__have_sock_cloexec): Likewise.
564         (__have_pipe2): Likewise.
565         (__have_dup3): Likewise.
566
567 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
568
569         [BZ #9685]
570         * include/unistd.h (__have_pipe2): Change define into an extern int.
571         (__have_dup3): Likewise.
572         * socket/have_sock_cloexec.c: Include fcntl.h.
573         (__have_pipe2): New variable.
574         (__have_dup3): Likewise.
575
576 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
577
578         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
579
580 2012-08-17  Marek Polacek  <polacek@redhat.com>
581
582         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
583         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
584
585 2012-08-17  Roland McGrath  <roland@hack.frob.com>
586
587         * configure.in: Add AC_SUBST for sysheaders.
588         * configure: Regenerated.
589         * config.make.in (sysheaders): New substituted variable.
590
591         * sysdeps/unix/mkfifo.c: Moved ...
592         * sysdeps/posix/mkfifo.c: ... here.
593         * sysdeps/unix/mkfifoat.c: Moved ...
594         * sysdeps/posix/mkfifoat.c: ... here.
595
596         * sysdeps/unix/utime.c: Moved ...
597         * sysdeps/posix/utime.c: ... here.
598
599         * sysdeps/unix/time.c: Moved ...
600         * sysdeps/posix/time.c: ... here.
601         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
602         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
603
604         * sysdeps/unix/nice.c: Moved ...
605         * sysdeps/posix/nice.c: ... here.
606
607         * sysdeps/unix/alarm.c: Moved ...
608         * sysdeps/posix/alarm.c: ... here.
609
610         * intl/Makefile ($(codeset_mo)): Depend on the input file.
611
612 2012-08-17  Jeff Law <law@redhat.com>
613
614         * intl/Makefile (codeset_mo): New variable.
615         ($(codeset_mo)): New target.
616         (tst-codeset.out): Depend on that.  Remove explicit rule.
617         (tst-gettext3.out, tst-gettext5.out): Likewise.
618         (LOCPATH-ENV, tst-codeset-ENV): New variables.
619         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
620         * intl/tst-codeset.sh: Remove.
621         * intl/tst-gettext3.sh: Likewise.
622         * intl/tst-gettext5.sh: Likewise.
623
624 2012-08-17  Roland McGrath  <roland@hack.frob.com>
625
626         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
627         * sysdeps/unix/syscalls.list: ... here.
628
629         * sysdeps/posix/getaddrinfo.c
630         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
631         (gaiconf_init, gaiconf_reload): Use them.
632         [!_STATBUF_ST_NSEC]
633         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
634         Define using time_t rather than struct timespec.
635
636         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
637         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
638         Macros removed.
639         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
640         [!NO_THREADS].
641         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
642         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
643         Likewise.
644
645         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
646         __libc_cleanup_push argument.
647
648         * bits/param.h: New file.
649         * misc/sys/param.h: New file.
650         * include/sys/param.h: New file.
651         * misc/Makefile (headers): Add bits/param.h.
652         * sysdeps/generic/sys/param.h: File removed.
653         * sysdeps/unix/sysv/linux/bits/param.h: New file.
654         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
655         * sysdeps/mach/hurd/bits/param.h: New file.
656         * sysdeps/mach/hurd/sys/param.h: New file.
657
658         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
659         last change.
660
661         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
662         [_IO_MTSAFE_IO].
663         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
664         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
665         New macros.
666
667         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
668         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
669         rather than -D_IO_MTSAFE_IO conditionally.
670         * stdio-common/Makefile (CPPFLAGS): Likewise.
671         * wcsmbs/Makefile (CPPFLAGS): Likewise.
672         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
673         Use $(libio-mtsafe).
674         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
675         of -D_IO_MTSAFE_IO.
676         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
677         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
678         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
679         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
680         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
681         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
682         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
683         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
684         (CFLAGS-fread_u_chk.c): Likewise.
685         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
686         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
687         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
688         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
689         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
690         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
691         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
692         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
693         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
694
695         * libio/Makefile: Test [$(libc-reentrant) = yes]
696         instead of [$(filter %REENTRANT, $(defines)) nonempty].
697
698         * Makeconfig
699         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
700         * sysdeps/pthread/configure: File removed.
701         * sysdeps/pthread/Makeconfig: New file.
702         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
703         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
704
705 2012-08-16  Gary Benson  <gbenson@redhat.com>
706
707         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
708         unmapping the first object in a namespace.
709
710 2012-08-16  Roland McGrath  <roland@hack.frob.com>
711
712         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
713         (__internal_setnetgrent): ... this.  Add internal_function to
714         definition.  Add libc_hidden_def.
715         (setnetgrent): Update caller.
716         (internal_endnetgrent): Renamed to ...
717         (__internal_endnetgrent): ... this.  Add internal_function to
718         definition.  Add libc_hidden_def.
719         (endnetgrent): Update caller.
720         (internal_getnetgrent_r): Renamed to ...
721         (__internal_getnetgrent_r): ... this.  Add internal_function to
722         definition.  Add libc_hidden_def.
723         (__getnetgrent_r): Update caller.
724         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
725
726 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
727
728         * stdlib/longlong.h: Update from GCC.
729
730 2012-08-16  Roland McGrath  <roland@hack.frob.com>
731
732         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
733         on _QL, which is set by umul_ppmm but never used.
734         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
735         variables, which are set by GMP macros but never used.
736         * stdio-common/_itowa.c (_itowa): Likewise.
737         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
738         * stdlib/mod_1.c (mpn_mod_1): Likewise.
739
740 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
741
742         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
743         struct La_sh_regs is not constant.
744         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
745         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
746         and struct La_sparc64_regs are not constant.
747
748 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
749
750         * sysdeps/unix/sysv/linux/kernel-features.h
751         (__ASSUME_POSIX_TIMERS): Remove.
752         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
753         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
754         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
755         Make code unconditional.
756         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
757         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
758         Make code unconditional.
759         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
760         * sysdeps/unix/sysv/linux/clock_nanosleep.c
761         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
762         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
763         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
764         Make code unconditional.
765         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
766         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
767         (__libc_missing_posix_timers): Remove.
768
769 2012-08-15  Roland McGrath  <roland@hack.frob.com>
770
771         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
772         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
773
774         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
775
776         * elf/dl-sym.c: Include <stdlib.h>.
777
778         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
779         constants, which avoids warnings in 32-bit builds.
780
781         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
782         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
783
784         * misc/lseek.c: File moved to ...
785         * io/lseek.c: ... here.
786
787         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
788
789         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
790         shifting LEN more than 31 bits at once.
791
792 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
793
794         [BZ #14195]
795         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
796         segmentation fault for a case of two empty input strings.
797         * string/test-strncasecmp.c (check1): Renamed to...
798         (bz12205): ...this.
799         (bz14195): Add new testcase for two empty input strings and N > 0.
800         (test_main): Call new testcase, adapt for renamed function.
801
802 2012-08-15  Andreas Jaeger  <aj@suse.de>
803
804         [BZ #14090]
805         * crypt/md5test2.c: New test, based on test supplied by Serge
806         Belyshev <belyshev@depni.sinp.msu.ru>.
807         * crypt/Makefile (xtests): Add md5test-giant..
808         * crypt/Makefile ($(objpfx)md5test-giant): Add.
809
810 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
811
812         [BZ #14090]
813         * crypt/md5.c (md5_process_block): Don't assume the buffer
814         length is less than 2**32.
815         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
816         length is less than 2**64.
817
818 2012-08-15  Roland McGrath  <roland@hack.frob.com>
819
820         * string/str-two-way.h: Include <sys/param.h>.
821         (MAX): Macro removed.
822
823         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
824         Move #define and #undef of memmove to just before and after
825         including <string.h>.
826
827         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
828         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
829         and after including <string.h>.  Move declarations of
830         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
831         to before #include "string/memmove.c".
832
833         * include/dirent.h: Declare __getdirentries.
834
835         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
836         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
837
838 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
839
840         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
841         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
842         * sysdeps/i386/configure: Regenerated.
843         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
844         STABS_CURRENT_FILE, and STABS_FUN.
845         (END): Remove call to STABS_FUN_END.
846         (STABS_CURRENT_FILE1): Delete.
847         (STABS_CURRENT_FILE): Likewise.
848         (STABS_FUN): Likewise.
849         (STABS_FUN_END): Likewise.
850         (STABS_FUN2): Likewise.
851         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
852         * sysdeps/x86_64/configure: Regenerated.
853
854 2012-08-14  Roland McGrath  <roland@hack.frob.com>
855
856         * elf/dl-open.c: Include <atomic.h>.
857         * elf/dl-lookup.c: Likewise.
858
859 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
860
861         * sysdeps/unix/sysv/linux/kernel-features.h
862         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
863         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
864         unconditionally.
865         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
866         unconditionally.
867         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
868         condition on __ASSUME_CLONE_THREAD_FLAGS.
869
870 2012-08-14  Andreas Jaeger  <aj@suse.de>
871
872         * sysdeps/i386/fpu/libm-test-ulps: Update.
873
874 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
875
876         * include/atomic.h (atomic_exchange_and_add): Split into ...
877         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
878         New atomic macros.
879
880 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
881
882         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
883
884 2012-08-13  Jeff Law <law@redhat.com>
885
886         * manual/stdio.texi (snprintf): Clarify handling of the trailing
887         null byte in the output string.
888
889 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
890
891         * sysdeps/unix/sysv/linux/kernel-features.h
892         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
893         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
894         (__ASSUME_ARG_MAX_STACK_BASED): Define.
895         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
896         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
897         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
898         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
899
900 2012-08-09  Jeff Law <law@redhat.com>
901
902         [BZ #13939]
903         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
904         When avoid_arena is set, don't retry in the that arena.  Pick the
905         next one, whatever it might be.
906         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
907         (arena_lock): Pass in new parameter to arena_get2.
908         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
909         arena_get2.
910         (__libc_malloc): Unify retrying after main arena failure with
911         __libc_memalign version.
912         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
913
914 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
915
916         [BZ #14166]
917         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
918         to __redirect_strstr.
919         (__strstr_sse42): Use typeof __redirect_strstr.
920         (__strstr_ia32): Likewise.
921         (__libc_strstr): New prototype.
922         (strstr): Renamed to ...
923         (__libc_strstr): This.
924         (strstr): New strong alias of __libc_strstr.
925         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
926         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
927         __redirect_time.
928         Include <time.h>.
929         (__libc_time): New prototype.
930         (time_ifunc): Replace time with __libc_time.
931         (time): New strong alias and hidden definition of __libc_time.
932         (__GI_time): Remove strong alias.
933         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
934         Include <stddef.h>.
935         (memmove): Redefined to __redirect_memmove.
936         (__memmove_sse2): Use typeof __redirect_memmove.
937         (__memmove_ssse3): Likewise.
938         (__memmove_ssse3_back): Likewise.
939         (__libc_memmove): New prototype.
940         (memmove): Renamed to ...
941         (__libc_memmove): This.
942         (memmove): New strong alias of __libc_memmove.
943
944 2012-08-08  Mark Salter  <msalter@redhat.com>
945
946         * elf/elf.h
947         (R_MN10300_TLS_GD): Define.
948         (R_MN10300_TLS_LD): Likewise.
949         (R_MN10300_TLS_LDO): Likewise.
950         (R_MN10300_TLS_GOTIE): Likewise.
951         (R_MN10300_TLS_IE): Likewise.
952         (R_MN10300_TLS_LE): Likewise.
953         (R_MN10300_TLS_DTPMOD): Likewise.
954         (R_MN10300_TLS_DTPOFF): Likewise.
955         (R_MN10300_TLS_TPOFF): Likewise.
956         (R_MN10300_SYM_DIFF): Likewise.
957         (R_MN10300_ALIGN): Likewise.
958         (R_MN10300_NUM): Update.
959
960 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
961
962         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
963         Remove.
964
965 2012-08-08  Roland McGrath  <roland@hack.frob.com>
966
967         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
968
969         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
970         sysdeps/unix -> sysdeps/posix move.
971         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
972
973 2012-08-07      Allan McRae     <allan@archlinux.org>
974
975         [BZ #14303]
976         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
977         (SUNOS_CPP): Likewise.
978         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
979         not found.
980         (open_input): Call CPP using execvp.
981
982 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
983
984         * sysdeps/unix/sysv/linux/kernel-features.h
985         (__ASSUME_PROT_GROWSUPDOWN): Remove.
986         (__ASSUME_NO_CLONE_DETACHED): Likewise.
987         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
988         (__ASSUME_WAITID_SYSCALL): Likewise.
989         * sysdeps/unix/sysv/linux/dl-execstack.c
990         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
991         code unconditional.
992         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
993         conditional code.
994         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
995         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
996         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
997         code.
998         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
999         unconditional.
1000         [__ASSUME_WAITID_SYSCALL]: Likewise.
1001         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1002
1003 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1004
1005         * sysdeps/unix/closedir.c: Renamed to ...
1006         * sysdeps/posix/closedir.c: ... here.
1007         * sysdeps/unix/dirfd.c: Renamed to ...
1008         * sysdeps/posix/dirfd.c: ... here.
1009         * sysdeps/unix/dirstream.h: Renamed to ...
1010         * sysdeps/posix/dirstream.h: ... here.
1011         * sysdeps/unix/fdopendir.c: Renamed to ...
1012         * sysdeps/posix/fdopendir.c: ... here.
1013         * sysdeps/unix/opendir.c: Renamed to ...
1014         * sysdeps/posix/opendir.c: ... here.
1015         * sysdeps/unix/readdir.c: Renamed to ...
1016         * sysdeps/posix/readdir.c: ... here.
1017         * sysdeps/unix/readdir_r.c: Renamed to ...
1018         * sysdeps/posix/readdir_r.c: ... here.
1019         * sysdeps/unix/rewinddir.c: Renamed to ...
1020         * sysdeps/posix/rewinddir.c: ... here.
1021         * sysdeps/unix/seekdir.c: Renamed to ...
1022         * sysdeps/posix/seekdir.c: ... here.
1023         * sysdeps/unix/telldir.c: Renamed to ...
1024         * sysdeps/posix/telldir.c: ... here.
1025         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1026         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1027         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1028         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1029
1030         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1031         * bits/fcntl.h: ... here.
1032
1033         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1034         not 0.
1035         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1036         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1037         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1038         (struct flock): Move l_start, l_len to the beginning.
1039         Use __pid_t for l_pid.
1040         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1041         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1042         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1043         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1044         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1045         [__USE_LARGEFILE64] (struct flock64): New type.
1046         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1047
1048         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1049         * bits/dirent.h: ... here.
1050
1051         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1052         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1053
1054 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1055
1056         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1057         Change from 2.6.0 to 2.6.16.
1058         * sysdeps/unix/sysv/linux/configure: Regenerated.
1059         * sysdeps/unix/sysv/linux/kernel-features.h
1060         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1061         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1062         version.
1063         (__ASSUME_UTIMES): Likewise.
1064         (__ASSUME_CLONE_STOPPED): Remove.
1065         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1066         architectures, not kernel version.
1067         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1068         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1069         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1070         (__ASSUME_WAITID_SYSCALL): Likewise.
1071         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1072         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1073         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1074         refer to older versions.
1075
1076 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1077
1078         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1079         Define alphasort64 as an alias.
1080         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1081         Define versionsort64 as an alias.
1082         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1083         Define scandir64 as an alias.
1084         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1085         Define scandirat64 as an alias.
1086         * dirent/alphasort64.c (alphasort64):
1087         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1088         * dirent/versionsort64.c: Likewise.
1089         * dirent/scandir64.c: Likewise.
1090         * dirent/scandirat64.c: Likewise.
1091         * sysdeps/wordsize-64/alphasort.c: File removed.
1092         * sysdeps/wordsize-64/alphasort64.c: File removed.
1093         * sysdeps/wordsize-64/scandir.c: File removed.
1094         * sysdeps/wordsize-64/scandir64.c: File removed.
1095         * sysdeps/wordsize-64/scandirat.c: File removed.
1096         * sysdeps/wordsize-64/scandirat64.c: File removed.
1097         * sysdeps/wordsize-64/versionsort.c: File removed.
1098         * sysdeps/wordsize-64/versionsort64.c: File removed.
1099         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1100         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1101         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1102         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1103         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1104         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1105         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1106         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1107
1108         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1109         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1110         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1111         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1112         [defined __arch64__ || defined __sparcv9]
1113         (__INO_T_MATCHES_INO64_T): New macro.
1114         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1115         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1116         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1117         * sysdeps/unix/sysv/linux/bits/dirent.h
1118         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1119         (_DIRENT_MATCHES_DIRENT64): New macro.
1120
1121         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1122         Define lockf64 as an alias.
1123         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1124         Define fseeko64 as an alias.
1125         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1126         Define ftello64 as an alias.
1127         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1128         Define _IO_fgetpos64 and fgetpos64 as aliases.
1129         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1130         Define _IO_fsetpos64 and fsetpos64 as aliases.
1131         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1132         Conditionalize body on this.
1133         * libio/fseeko64.c: Likewise.
1134         * libio/ftello64.c: Likewise.
1135         * libio/iofgetpos64.c: Likewise.
1136         * libio/iofsetpos64.c: Likewise.
1137         * sysdeps/wordsize-64/lockf.c: File removed.
1138         * sysdeps/wordsize-64/lockf64.c: File removed.
1139         * sysdeps/wordsize-64/fseeko.c: File removed.
1140         * sysdeps/wordsize-64/fseeko64.c: File removed.
1141         * sysdeps/wordsize-64/ftello.c: File removed.
1142         * sysdeps/wordsize-64/ftello64.c: File removed.
1143         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1144         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1145         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1146         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1147         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1148         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1149         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1150         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1151         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1152         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1153         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1154         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1155         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1156         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1157
1158         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1159         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1160         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1161         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1162         [defined __arch64__ || defined __sparcv9]
1163         (__OFF_T_MATCHES_OFF64_T): New macro.
1164         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1165         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1166         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1167         (__OFF_T_MATCHES_OFF64_T): New macro.
1168
1169 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1170
1171         * stdlib/secure-getenv.c (__secure_getenv): Replace
1172         GLIBC_2_16 with GLIBC_2_17.
1173
1174 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1175
1176         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1177         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1178
1179 2012-08-03  David S. Miller  <davem@davemloft.net>
1180
1181         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1182
1183 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1184
1185         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1186         Remove.
1187         (__ASSUME_CORRECT_SI_PID): Likewise.
1188         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1189         (__ASSUME_TMPFS_NAME): Likewise.
1190         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1191         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1192         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1193         (HAVE_AUX_SECURE): Make definition unconditional.
1194         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1195         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1196
1197 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1198
1199         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1200         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1201         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1202         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1203         __eloop_threshold instead of SYMLOOP_MAX.
1204
1205         * sysdeps/generic/eloop-threshold.h: New file.
1206         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1207         of MAXSYMLINKS.
1208         * elf/chroot_canon.c (chroot_canon): Likewise.
1209
1210 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1211
1212         [BZ #13717]
1213         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1214         Change to 2.6.0 everywhere.
1215         * sysdeps/unix/sysv/linux/configure: Regenerated.
1216         * sysdeps/unix/sysv/linux/kernel-features.h
1217         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1218         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1219         kernel versions.
1220         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1221         (__ASSUME_FUTEX_REQUEUE): Remove.
1222         (__ASSUME_STATFS64): Define unconditionally.
1223         (__ASSUME_AT_SECURE): Likewise.
1224         (__ASSUME_CORRECT_SI_PID): Likewise.
1225         (__ASSUME_TGKILL): Define without depending on kernel version for
1226         i386.
1227         (__ASSUME_UTIMES): Likewise.
1228         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1229         kernel version.
1230         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1231         (__ASSUME_TMPFS_NAME): Likewise.
1232         * README: Update reference to Linux kernel versions.
1233
1234 2012-08-02  Marek Polacek  <polacek@redhat.com>
1235
1236         [BZ# 14150]
1237         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1238         libc_cv_asm_type_prefix with %.
1239         * configure: Regenerated.
1240         * include/libc-symbols.h: Remove comment about
1241         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1242         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1243         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1244         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1245         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1246         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1247         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1248         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1249         * elf/tst-unique2mod1.c: Likewise.
1250         * elf/tst-unique1mod2.c: Likewise.
1251         * elf/tst-unique1mod1.c: Likewise.
1252         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1253         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1254         Replace ASM_TYPE_DIRECTIVE with .type.
1255         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1256         * sysdeps/i386/sysdep.h: Likewise.
1257         * sysdeps/x86_64/sysdep.h: Likewise.
1258         * sysdeps/sh/sysdep.h: Likewise.
1259         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1260         Do not define ASM_TYPE_DIRECTIVE.
1261         * sysdeps/powerpc/sysdep.h: Likewise.
1262         * sysdeps/powerpc/powerpc32/sysdep.h:
1263         Replace ASM_TYPE_DIRECTIVE with .type.
1264         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1265         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1266         * sysdeps/i386/fpu/e_powf.S: Likewise.
1267         * sysdeps/i386/fpu/e_expl.S: Likewise.
1268         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1269         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1270         * sysdeps/i386/fpu/e_pow.S: Likewise.
1271         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1272         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1273         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1274         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1275         * sysdeps/i386/fpu/e_log2.S: Likewise.
1276         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1277         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1278         * sysdeps/i386/fpu/e_powl.S: Likewise.
1279         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1280         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1281         * sysdeps/i386/fpu/e_logl.S: Likewise.
1282         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1283         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1284         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1285         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1286         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1287         * sysdeps/i386/fpu/e_log.S: Likewise.
1288         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1289         * sysdeps/i386/fpu/e_logf.S: Likewise.
1290         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1291         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1292         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1293         * sysdeps/i386/fpu/e_log10.S: Likewise.
1294         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1295         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1296         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1297         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1298         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1299         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1300         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1301         * sysdeps/i386/i686/strtok.S: Likewise.
1302         * sysdeps/i386/i386-mcount.S: Likewise.
1303         * sysdeps/i386/strtok.S: Likewise.
1304         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1305         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1306         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1307         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1308         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1309         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1310         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1311         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1312         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1313         * sysdeps/x86_64/_mcount.S: Likewise.
1314         * sysdeps/x86_64/strtok.S: Likewise.
1315         * sysdeps/sh/_mcount.S: Likewise.
1316
1317 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1318
1319         * libio/iofopen.c: Include <fcntl.h>.
1320         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1321         (_IO_fopen64, fopen64): Define as aliases.
1322         * libio/iofopen64.c: Include <fcntl.h>.
1323         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1324         Conditionalize body on this.
1325         * sysdeps/wordsize-64/iofopen.c: File removed.
1326         * sysdeps/wordsize-64/iofopen64.c: File removed.
1327
1328 2012-08-01  Marek Polacek  <polacek@redhat.com>
1329
1330         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1331         Use dlfcn directly instead of a variable.
1332         (binfmt-subdir): Do not define.
1333         (dlfcn): Likewise.
1334
1335 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1336
1337         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1338         Remove all definitions.
1339         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1340         <kernel-features.h>.
1341         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1342         (miss_F_GETOWN_EX): Remove all definitions.
1343         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1344         macro definition.
1345         [!__ASSUME_FCNTL64]: Remove conditional code.
1346         [__ASSUME_FCNTL64]: Make code unconditional.
1347         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1348         <kernel-features.h>.
1349         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1350         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1351         (lockf64) [__NR_fcntl64]: Make code unconditional.
1352         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1353
1354         * sysdeps/unix/sysv/linux/kernel-features.h
1355         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1356         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1357         Make code unconditional.
1358         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1359         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1360         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1361         [__NR_vfork]: Make code unconditional.
1362         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1363         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1365         [__NR_vfork]: Make code unconditional.
1366         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1367         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1368
1369 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1370
1371         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1372         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1373
1374         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1375         Define mkstemp64 as an alias.
1376         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1377         Define mkstemps64 as an alias.
1378         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1379         Define mkostemp64 as an alias.
1380         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1381         Define mkostemps64 as an alias.
1382         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1383         Conditionalize body on this.
1384         * misc/mkostemp64.c: Likewise.
1385         * misc/mkostemps64.c: Likewise.
1386         * misc/mkstemps64.c: Likewise.
1387         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1388         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1389         * sysdeps/wordsize-64/mkostemp.c: File removed.
1390         * sysdeps/wordsize-64/mkstemp.c: File removed.
1391         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1392         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1393         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1394         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1395
1396         [BZ #14138]
1397         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1398         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1399         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1400         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1401
1402         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1403         compat_symbol macros from <shlib-compat.h> rather than the underlying
1404         default_symbol_version and symbol_version macros, so that DEFAULT
1405         lines in shlib-versions are respected.
1406         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1407
1408 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1409
1410         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1411         Declare with warn_unused_result.
1412         (setgid, setregid, setegid, setresgid): Likewise.
1413         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1414         Likewise.
1415         * WUR-REPORT: Remove set*id functions.
1416
1417 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1418
1419         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1420
1421 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1422
1423         * include/sys/socket.h (__libc_accept, __libc_accept4):
1424         Add attribute_hidden.
1425         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1426
1427         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1428         use of PTR_MANGLE.
1429         * inet/getnetgrent_r.c (setup): Likewise.
1430
1431         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1432
1433 2012-07-31  David S. Miller  <davem@davemloft.net>
1434
1435         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1436
1437 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1438
1439         [BZ #13629]
1440         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1441         value between 1.0 and 2.0 and smaller part has absolute value less
1442         than 1.0.
1443         * math/s_clog10.c (__clog10): Likewise.
1444         * math/s_clog10f.c (__clog10f): Likewise.
1445         * math/s_clog10l.c (__clog10l): Likewise.
1446         * math/s_clogf.c (__clogf): Likewise.
1447         * math/s_clogl.c (__clogl): Likewise.
1448         * math/libm-test.inc (clog_test): Add more tests.
1449         (clog10_test): Likewise.
1450         * sysdeps/i386/fpu/libm-test-ulps: Update.
1451         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1452
1453 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1454
1455         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1456         Exit with zero in case no suitable GID is found, and write a
1457         message to standard error.
1458
1459 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1460
1461         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1462         rather than to 1.
1463         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1464         (MAXPATHLEN): Removed.
1465         (NOGROUP, NODEV): New macros.
1466         (setbit, clrbit, isset, isclr): New macros.
1467         (howmany, roundup, powerof2): New macros.
1468         (DEV_BSIZE): New macro.
1469
1470         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1471         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1472
1473         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1474         definition on [!__NO_LONG_DOUBLE_MATH].
1475
1476         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1477         PTR_MANGLE and PTR_DEMANGLE.
1478
1479         * socket/accept4.c (accept4): Rename to __libc_accept4.
1480         Define accept4 as a weak alias.
1481
1482         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1483         on [_DIRENT_HAVE_D_TYPE].
1484         * io/ftw.c (ftw_dir): Likewise.
1485
1486         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1487
1488         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1489
1490         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1491         Use the BSD numbers rather than the arbitrary ones we had.
1492         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1493         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1494         (SIGXCPU, SIGXFSZ): New macros.
1495         (_NSIG): Now 32.
1496
1497         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1498         initializer on [_LIBC_REENTRANT].
1499
1500         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1501         definitions inside [_POSIX_MAPPED_FILES].
1502
1503         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1504
1505         * dirent/opendir.c: Include <fcntl.h>.
1506
1507         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1508         (__libc_getspecific): Likewise.
1509         (__libc_key_create): Likewise.
1510
1511         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1512         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1513         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1514         (tmpfile64): Define as alias.
1515         * sysdeps/wordsize-64/tmpfile.c: File removed.
1516         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1517         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1518         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1519
1520         * stdio-common/vfscanf.c: Include <stdbool.h>.
1521         * nss/makedb.c: Likewise.
1522         * stdio-common/_i18n_number.h: Likewise.
1523         * argp/argp-help.c: Likewise.
1524         * posix/wordexp.c: Likewise.
1525         * sysdeps/posix/spawni.c: Likewise.
1526         * nss/nss_files/files-initgroups.c: Likewise.
1527         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1528         * nss/nss_files/files-initgroups.c: Likewise.
1529         * nss/nss_db/db-netgrp.c: Likewise.
1530         * nss/nss_db/db-initgroups.c: Likewise.
1531         * io/fchmodat.c: Include <sys/stat.h>.
1532
1533         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1534         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1535
1536         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1537         [HAVE_MMAP].
1538
1539         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1540         Add multiple inclusion protection.
1541
1542 2012-07-27  David S. Miller  <davem@davemloft.net>
1543
1544         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1545
1546 2012-07-27  Gary Benson  <gbenson@redhat.com>
1547
1548         [BZ #14298]
1549         * elf/rtld.c: Include <stap-probe.h>.
1550         (dl_main): Added static probes "init_start" and "init_complete".
1551         * elf/dl-load.c: Include <stap-probe.h>.
1552         (lose): Take new parameter "nsid".
1553         Added static probe "map_failed".
1554         (_dl_map_object_from_fd): Pass namespace id to lose.
1555         Added static probe "map_start".
1556         (open_verify): Pass namespace id to lose.
1557         * elf/dl-open.c: Include <stap-probe.h>.
1558         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1559         and "reloc_complete".
1560         * elf/dl-close.c: Include <stap-probe.h>.
1561         (_dl_close_worker): Added static probes "unmap_start" and
1562         "unmap_complete".
1563         * elf/rtld-debugger-interface.txt: New file documenting the above.
1564
1565 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1566
1567         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1568         rather than a string variable.
1569         * sunrpc/rpc_main.c (h_output): Likewise.
1570         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1571
1572 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1573
1574         * inet/check_native.c: New file.
1575
1576 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1577
1578         [BZ #13629]
1579         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1580         if larger part has absolute value 1.0.
1581         * math/s_clog10.c (__clog10): Likewise.
1582         * math/s_clog10f.c (__clog10f): Likewise.
1583         * math/s_clog10l.c (__clog10l): Likewise.
1584         * math/s_clogf.c (__clogf): Likewise.
1585         * math/s_clogl.c (__clogl): Likewise.
1586         * math/libm-test.inc (clog_test): Add more tests.
1587         (clog10_test): Likewise.
1588         * sysdeps/i386/fpu/libm-test-ulps: Update.
1589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1590
1591         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1592         (pltexit): Likewise.
1593         (La_regs): Likewise.
1594         (La_retval): Likewise.
1595         (int_retval): Likewise.
1596         Update #error for removed macros to refer only to definitions in
1597         tst-audit.h.
1598         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1599         macro.
1600         (pltexit): Likewise.
1601         (La_regs): Likewise.
1602         (La_retval): Likewise.
1603         (int_retval): Likewise.
1604         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1605         macro.
1606         (pltexit): Likewise.
1607         (La_regs): Likewise.
1608         (La_retval): Likewise.
1609         (int_retval): Likewise.
1610         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1611         macro.
1612         (pltexit): Likewise.
1613         (La_regs): Likewise.
1614         (La_retval): Likewise.
1615         (int_retval): Likewise.
1616         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1617         macro.
1618         (pltexit): Likewise.
1619         (La_regs): Likewise.
1620         (La_retval): Likewise.
1621         (int_retval): Likewise.
1622         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1623         macro.
1624         (pltexit): Likewise.
1625         (La_regs): Likewise.
1626         (La_retval): Likewise.
1627         (int_retval): Likewise.
1628         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1629         macro.
1630         (pltexit): Likewise.
1631         (La_regs): Likewise.
1632         (La_retval): Likewise.
1633         (int_retval): Likewise.
1634         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1635         macro definitions in tst-audit.h.
1636         * sysdeps/i386/tst-audit.h: New file.
1637         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1638         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1639         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1640         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1641         * sysdeps/sh/tst-audit.h: Likewise.
1642         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1643         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1644         * sysdeps/x86_64/tst-audit.h: Likewise.
1645
1646 2012-07-26  Andreas Jaeger  <aj@suse.de>
1647
1648         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1649         ptrace.
1650
1651         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1652         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1653         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1654         PTRACE_O_MASK.
1655         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1656         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1657         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1658
1659         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1660         value.
1661
1662         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1663         _sigsys.
1664         (si_call_addr, si_syscall, si_arch): Define new macro.
1665         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1666         _sigsys.
1667         (si_call_addr, si_syscall, si_arch): Define new marcro.
1668         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1669         _sigsys.
1670         (si_call_addr, si_syscall, si_arch): Define new macro.
1671         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1672         _sigsys.
1673         (si_call_addr, si_syscall, si_arch): Define new macro.
1674
1675 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1676
1677         [BZ #13717]
1678         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1679         Change to 2.4.21 where previously 2.4.1.
1680         * sysdeps/unix/sysv/linux/configure: Regenerated.
1681         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1682         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1683         Linux kernel version.
1684         (__ASSUME_STD_AUXV): Remove.
1685         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1686         kernel version.
1687         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1688         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1689         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1690         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1691         (__ASSUME_NETLINK_SUPPORT): Likewise.
1692         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1693         (__no_netlink_support): Remove conditional definition.
1694         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1695         Remove.
1696         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1697         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1698         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1699         (if_nameindex_ioctl): Remove.
1700         (if_nameindex_netlink): Do not handle __no_netlink_support.
1701         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1702         code.
1703         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1704         Remove conditional code.
1705         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1706         code.
1707         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1708         unconditional.
1709         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1710         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1711         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1712         Remove.
1713         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1714         [!__ASSUME_STD_AUXV]: Remove conditional code.
1715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1716         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1717         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1719         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1720         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1721         code.
1722         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1724         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1725         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1726         conditional code.
1727         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1729         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1730         code.
1731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1732         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1733         conditional code.
1734         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1735         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1736         code unconditional.
1737         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1738         conditional code.
1739         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1740         unconditional.
1741         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1742         conditional code.
1743         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1744         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1745         unconditional.
1746         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1747         conditional code.
1748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1749         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1750         code unconditional.
1751         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1752         conditional code.
1753         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1754         unconditional.
1755         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1756         conditional code.
1757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1758         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1759         code unconditional.
1760         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1761         conditional code.
1762         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1763         unconditional.
1764         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1765         conditional code.
1766
1767 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1768
1769         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1770         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1771         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1772         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1773         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1774         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1775         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1776         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1777         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1778         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1779         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1780         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1781         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1782         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1783         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1784         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1785         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1786         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1787         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1788         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1789         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1790         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1791         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1792
1793 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1794
1795         * Versions.def: Add GLIBC_2.17.
1796         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1797         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1798         Introduce __libc_secure_getenv.
1799         * stdlib/Versions (2.17): Add secure_getenv
1800         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1801         * stdlib/secure-getenv.c: Rename __secure_getenv to
1802         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1803         symbol __secure_getenv for GLIBC_2.0.
1804         * stdlib/tst-secure-getenv.c: New.
1805         * stdlib/Makefile (tests): Add testcase.
1806         * manual/startup.texi (Environment Access): Document
1807         secure_getenv.
1808         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1809         __libc_secure_getenv.
1810         * inet/ruserpass.c (ruserpass): Likewise.
1811         * malloc/mtrace.c (mtrace): Likewise.
1812         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1813         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1814         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1815         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1816         HAVE_SECURE_GETENV.
1817         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1818         __secure_getenv to __libc_secure_getenv.
1819         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1821         Likewise.
1822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1823         Likewise.
1824         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1825         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1826         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1827         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1829         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1830         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1831
1832 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1833
1834         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1835         (struct La_i86_retval): Likewise.
1836         (struct La_x86_64_regs): Likewise.
1837         (struct La_x86_64_retval): Likewise.
1838         (struct La_x32_regs): Likewise.
1839         (struct La_x32_retval): Likewise.
1840         (struct La_ppc32_regs): Likewise.
1841         (struct La_ppc32_retval): Likewise.
1842         (struct La_ppc64_regs): Likewise.
1843         (struct La_ppc64_retval): Likewise.
1844         (struct La_sh_regs): Likewise.
1845         (struct La_sh_retval): Likewise.
1846         (struct La_s390_32_regs): Likewise.
1847         (struct La_s390_32_retval): Likewise.
1848         (struct La_s390_64_regs): Likewise.
1849         (struct La_s390_64_retval): Likewise.
1850         (struct La_sparc32_regs): Likewise.
1851         (struct La_sparc32_retval): Likewise.
1852         (struct La_sparc64_regs): Likewise.
1853         (struct La_sparc64_retval): Likewise.
1854         (struct audit_ifaces): Remove architecture-specific pltenter and
1855         pltexit members.
1856         * sysdeps/i386/ldsodefs.h: New file.
1857         * sysdeps/powerpc/ldsodefs.h: Likewise.
1858         * sysdeps/s390/ldsodefs.h: Likewise.
1859         * sysdeps/sh/ldsodefs.h: Likewise.
1860         * sysdeps/sparc/ldsodefs.h: Likewise.
1861         * sysdeps/x86_64/ldsodefs.h: Likewise.
1862
1863 2012-07-25  Marek Polacek  <polacek@redhat.com>
1864
1865         [BZ #6808]
1866         * math/libm-test.inc (yn_test): Add another test.
1867         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1868         to ERANGE when the result is +-Inf.
1869         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1870         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1871         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1872         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1873
1874 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1875
1876         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1877         equal to 0.
1878         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1879         clock_t.
1880         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
1881
1882 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
1883
1884         * configure.in <sysdeps resolving>: Correct printing
1885         Implies_before.
1886         * configure: Regenerate.
1887
1888 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
1889
1890         * math/w_ilogb.c: Include <limits.h>.
1891         * math/w_ilogbl.c: Likewise.
1892
1893 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1894
1895         * manual/lang.texi (__va_copy): Document primarily as ISO C99
1896         va_copy.  Document allowing for unavailable va_copy only as
1897         pre-C99 compatibility.
1898         * manual/string.texi (Copying and Concatenation): Use va_copy
1899         instead of __va_copy in concat example.
1900
1901 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
1902
1903         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
1904         (__sendto): Use create_address_port.  Initialize APORT and deallocate
1905         it if not null.
1906
1907         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
1908         with O_NOLINK passed to __file_name_lookup.
1909
1910         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
1911         with O_NOLINK passed to __file_name_lookup.
1912
1913         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
1914         negative N or less than NGIDS.
1915
1916         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
1917         type to string_t.  Set ERANGE as errno and return it if NAME is not big
1918         enough.  Use memcpy instead of strncpy.
1919
1920 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1921
1922         * elf/Makefile (check-data): Remove.
1923         (localplt.data): New vpath directive.
1924         ($(objpfx)check-localplt.out): Use localplt.data from vpath
1925         instead of $(check-data).
1926         * scripts/data/localplt-generic.data: Move to ...
1927         * sysdeps/generic/localplt.data: ... here.
1928         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
1929         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
1930         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
1931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
1932         ... here.
1933         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
1934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
1935         ... here.
1936         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
1937         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
1938         ... here.
1939         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
1940         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
1941         ... here.
1942         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
1943         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
1944         ... here.
1945         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
1946         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
1947         ... here.
1948
1949 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1950
1951         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
1952         PPC32 and PPC64 files.
1953         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
1954         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
1955
1956 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1957
1958         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
1959         __makecontext_ret to ...
1960         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
1961         ... here and call exit if uc_link is NULL.  New file.
1962         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
1963         __makecontext_ret.S.
1964         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
1965         __makecontext_ret to ...
1966         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
1967         ... here and call exit if uc_link is NULL.  New file.
1968         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
1969         __makecontext_ret.S.
1970
1971 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1972
1973         * elf/elf.h (R_390_IRELATIVE): New definition.
1974         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
1975         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
1976         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
1977         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
1978         (elf_machine_lazy_rel): Likewise.
1979         * sysdeps/s390/dl-irel.h: New file.
1980         * sysdeps/s390/s390-64/memcpy.S: New asm code.
1981         * sysdeps/s390/s390-64/memset.S: New asm code.
1982         * sysdeps/s390/s390-64/memcmp.S: New asm code.
1983         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
1984         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
1985         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
1986         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
1987         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
1988         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
1989         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
1990         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
1991         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
1992         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
1993         * sysdeps/s390/s390-32/memcpy.S: New asm code.
1994         * sysdeps/s390/s390-32/memset.S: New asm code.
1995         * sysdeps/s390/s390-32/memcmp.S: New asm code.
1996
1997 2012-07-17  Marek Polacek  <polacek@redhat.com>
1998
1999         [BZ #14349]
2000         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2001         * sysdeps/s390/s390-64/configure.in: Likewise.
2002         * sysdeps/sparc/configure.in: Likewise.
2003         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2004         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2005         * sysdeps/i386/configure.in: Likewise.
2006         * sysdeps/x86_64/configure.in: Likewise.
2007         * sysdeps/sh/configure.in: Likewise.
2008         * sysdeps/s390/s390-32/configure: Regenerated.
2009         * sysdeps/s390/s390-64/configure: Likewise.
2010         * sysdeps/x86_64/configure: Likewise.
2011         * sysdeps/sh/configure: Likewise.
2012         * sysdeps/powerpc/powerpc64/configure: Likewise.
2013         * sysdeps/powerpc/powerpc32/configure: Likewise.
2014         * sysdeps/sparc/configure: Likwise.
2015         * sysdeps/i386/configure: Likewise.
2016
2017         * elf/dl-open.c: Comment fixes.
2018
2019 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2020
2021         * Makefile [CXX] (check-data): Remove.
2022         [CXX] (c++-types.data): New vpath directive.
2023         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2024         vpath.  Do not allow for C++ type data being missing.
2025         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2026         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2027         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2028         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2029         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2030         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2031         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2033         ... here.
2034         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2036         ... here.
2037         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2039         ... here.
2040         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2041         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2042         ... here.
2043         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2044         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2045         ... here.
2046         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2047         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2048         ... here.
2049         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2050         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2051         ... here.
2052         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2053         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2054
2055         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2056         definitions to architecture-specific files.
2057         (TLS_IE): Likewise.
2058         (TLS_LD): Likewise.
2059         (TLS_GD): Likewise.
2060         * sysdeps/i386/tls-macros.h: New file.
2061         * sysdeps/powerpc/tls-macros.h: Likewise.
2062         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2063         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2064         * sysdeps/sh/tls-macros.h: Likewise.
2065         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2066         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2067         * sysdeps/x86_64/tls-macros.h: Likewise.
2068
2069 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2070
2071         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2072         zero value for regular exit case.
2073
2074         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2075         (__start_context): Preserve zero value for regular exit case.
2076
2077 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2078             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2079
2080         * manual/setjmp.texi (setcontext): Clarify normal process
2081         termination when uc_link is the null pointer.
2082         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2083         exit call.
2084
2085 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2086
2087         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2088         preprocessor.  Test for each exception mask separately.
2089
2090 2012-07-16  Andreas Jaeger  <aj@suse.de>
2091
2092         * po/ru.po: Update from translation team.
2093
2094 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2095
2096         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2097         equal to 0.
2098         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2099         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2100         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2101         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2102         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2103
2104 2012-07-13  Andreas Jaeger  <aj@suse.de>
2105
2106         * po/fr.po: Update from translation team.
2107
2108 2012-07-12  Marek Polacek  <polacek@redhat.com>
2109
2110         [BZ #14173]
2111         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2112         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2113         loop condition.
2114
2115 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2116
2117         [BZ #13717]
2118         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2119         Change to 2.4.1 where previously 2.4.0.
2120         * sysdeps/unix/sysv/linux/configure: Regenerated.
2121         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2122         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2123         version.
2124         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2125         (__ASSUME_AT_CLKTCK): Remove.
2126         (__ASSUME_AT_PAGESIZE): Likewise.
2127         (__ASSUME_AT_XID): Likewise.
2128         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2129         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2130         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2131         unconditionally.
2132         (HAVE_AUX_PAGESIZE): Likewise.
2133         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2134         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2135         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2136
2137 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2138
2139         [BZ #14307]
2140         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2141         the temporary buffer used to invoke __gethostbyname2_r,
2142         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2143         host_data / struct gaih_addrtuple.
2144         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2145         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2146         header file nss/nsswitch.h.
2147         * nss/nsswitch.h (global scope): Add definition of implementation
2148         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2149         resolv/nss_dns/dns-host.c).
2150
2151 2012-07-11  Andreas Jaeger  <aj@suse.de>
2152
2153         * po/fr.po: Update from translation team.
2154
2155         * po/sv.po: Update from translation team
2156         * po/fr.po: Another update from translation team.
2157
2158 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2159
2160         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2161         for subnormals or multiply small sinh result by itself.
2162         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2163         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2164
2165 2012-07-11  David S. Miller  <davem@davemloft.net>
2166
2167         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2168
2169 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2170
2171         [BZ #14347]
2172         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2173         (INTERNAL_MARK): Shift it here.
2174
2175 2012-07-10  Marek Polacek  <polacek@redhat.com>
2176
2177         [BZ #14151]
2178         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2179         libc_cv_asm_global_directive with .globl.
2180         * configure: Regenerated.
2181         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2182         with .globl.
2183         * sysdeps/i386/configure: Regenerated.
2184         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2185         with .globl.
2186         * sysdeps/x86_64/configure: Regenerated.
2187         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2188         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2189         * elf/tst-unique2mod2.c: Likewise.
2190         * elf/tst-unique2mod1.c: Likewise.
2191         * elf/tst-unique1mod2.c: Likewise.
2192         * elf/tst-unique1mod1.c: Likewise.
2193         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2194         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2195         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2196         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2197         * sysdeps/mach/sysdep.h: Likewise.
2198         * sysdeps/i386/sysdep.h: Likewise.
2199         * sysdeps/i386/i386-mcount.S: Likewise.
2200         * sysdeps/x86_64/_mcount.S: Likewise.
2201         * sysdeps/x86_64/sysdep.h: Likewise.
2202         * sysdeps/sh/_mcount.S: Likewise.
2203         * sysdeps/sh/sysdep.h: Likewise.
2204         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2205         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2206         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2207         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2208         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2209         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2210         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2211         * locale/localeinfo.h: Likewise.
2212         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2213         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2214
2215 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2216
2217         [BZ #14336]
2218         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2219         system".
2220         * manual/message.texi (The Uniforum approach): Likewise.
2221         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2222         (glibc iconv Implementation): Likewise.
2223
2224 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2225
2226         [BZ #14337]
2227         * math/s_clog.c (__clog): Avoid scaling a value down where that
2228         could result in underflow.
2229         * math/s_clog10.c (__clog10): Likewise.
2230         * math/s_clog10f.c (__clog10f): Likewise.
2231         * math/s_clog10l.c (__clog10l): Likewise.
2232         * math/s_clogf.c (__clogf): Likewise.
2233         * math/s_clogl.c (__clogl): Likewise.
2234         * math/libm-test.inc (clog_test): Add more tests.
2235         (clog10_test): Likewise.
2236         * sysdeps/i386/fpu/libm-test-ulps: Update.
2237         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2238
2239 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2240
2241         [BZ #14283]
2242         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2243         by 7 not 8 to examine high bit of fractional part.
2244
2245         [BZ #14042]
2246         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2247         for call to __mcount_internal.
2248         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2249         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2250         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2251
2252 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2253
2254         [BZ #14154]
2255         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2256         approximation for values within 0x1p-13f of an odd multiple of
2257         pi/4.
2258         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2259         exception.  Add more tests.
2260         * sysdeps/i386/fpu/libm-test-ulps: Update.
2261
2262         [BZ #6778]
2263         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2264         inputs and return -1 for them.  Do not check for +Inf in case not
2265         reachable for +Inf.
2266         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2267         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2268         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2269         and return -1 for them.  Do not check for +Inf in case not
2270         reachable for +Inf.
2271         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2272         define.
2273         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2274         and return -1 for them.  Do not check for +Inf in case not
2275         reachable for +Inf.
2276         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2277         spurious underflow.
2278         * sysdeps/i386/fpu/libm-test-ulps: Update.
2279         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2280
2281 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2282
2283         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2284
2285 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2286
2287         [BZ #14157]
2288         [BZ #14331]
2289         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2290         could result in spurious underflow.  Scale down values above
2291         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2292         * math/s_csqrtf.c (__csqrtf): Likewise.
2293         * math/s_csqrtl.c (__csqrtl): Likewise.
2294         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2295         spurious underflow.
2296         * sysdeps/i386/fpu/libm-test-ulps: Update.
2297         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2298
2299 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2300
2301         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2302         xopen-msg.sed.
2303         * catgets/xopen-msg.awk: New file.
2304         * catgets/xopen-msg.sed: Removed.
2305
2306         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2307         po2text.sed.
2308         * intl/po2test.awk: New file.
2309         * intl/po2test.sed: Removed.
2310
2311 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2312
2313         [BZ #14328]
2314         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2315         or multiply small sinh result by itself.
2316         * math/s_ctanf.c (__ctanf): Likewise.
2317         * math/s_ctanh.c (__ctanh): Likewise.
2318         * math/s_ctanhf.c (__ctanhf): Likewise.
2319         * math/s_ctanhl.c (__ctanhl): Likewise.
2320         * math/s_ctanl.c (__ctanl): Likewise.
2321         * math/libm-test.inc (ctan_test_tonearest): New function.
2322         (ctan_test_towardzero): Likewise.
2323         (ctan_test_downward): Likewise.
2324         (ctan_test_upward): Likewise.
2325         (ctanh_test_tonearest): Likewise.
2326         (ctanh_test_towardzero): Likewise.
2327         (ctanh_test_downward): Likewise.
2328         (ctanh_test_upward): Likewise.
2329         (main): Call these new functions.
2330         * sysdeps/i386/fpu/libm-test-ulps: Update.
2331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2332
2333 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2334
2335         * .gitignore: Delete /ports entry.
2336
2337 2012-07-03  Andreas Jaeger  <aj@suse.de>
2338
2339         * po/bg.po: Update from translation team.
2340         * po/cs.po: Likewise.
2341         * po/de.po: Likewise.
2342         * po/hr.po: Likewise.
2343         * po/nl.pl: Likewise.
2344         * po/pl.po: Likewise.
2345         * po/vi.po: Likewise.
2346
2347 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2348
2349         * Makeconfig [!+link] (+link-before-libc): New variable.
2350         [!+link] (+link-after-libc): Likewise.
2351         [!+link] (+link-tests): Likewise.
2352         [!+link] (+link): Define in terms of $(+link-before-libc) and
2353         $(+link-after-libc).
2354         [!+link-static] (+link-static-before-libc): New variable.
2355         [!+link-static] (+link-static-after-libc): Likewise.
2356         [!+link-static] (+link-static-tests): Likewise.
2357         [!+link-static] (+link-static): Define in terms of
2358         $(+link-static-before-libc) and $(+link-static-after-libc).
2359         [build-shared] (link-libc-before-gnulib): New variable.
2360         [build-shared] (link-libc-tests): Likewise.
2361         [build-shared] (link-libc): Define in terms of
2362         $(link-libc-before-gnulib).
2363         [!build-shared] (link-libc-tests): New variable.
2364         (link-libc-static-tests): New variable.
2365         [!gnulib] (gnulib-arch): New variable.
2366         [!gnulib] (gnulib-tests): Likewise.
2367         [!gnulib] (static-gnulib-arch): Likewise.
2368         [!gnulib] (static-gnulib-tests): Likewise.
2369         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2370         Define with "=" instead of ":=".
2371         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2372         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2373         * Rules (binaries-all-notests): New variable.
2374         (binaries-all-tests): Likewise.
2375         (binaries-static-notests): Likewise.
2376         (binaries-static-tests): Likewise.
2377         (binaries-all): Define using $(binaries-all-notests) and
2378         $(binaries-all-tests).
2379         (binaries-static): Define using $(binaries-static-notests) and
2380         $(binaries-static-tests).
2381         (binaries-shared-tests): New variable.
2382         (binaries-shared-notests): Likewise.
2383         (binaries-shared): Remove variable.
2384         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2385         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2386         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2387         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2388         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2389         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2390         * elf/Makefile (sln-modules): New variable.
2391         (extra-objs): Add $(sln-modules:=.o).
2392         (ldconfig-modules): Add static-stubs.
2393         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2394         * elf/static-stubs.c: New file.
2395
2396         [BZ #14283]
2397         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2398         by 7 not 8 to examine high bit of fractional part.  Use volatile
2399         variables when splitting into final array of floats if
2400         __FLT_EVAL_METHOD__ != 0.
2401         * math/libm-test.inc (cos_test): Add another test.
2402         (sin_test): Likewise.
2403         * sysdeps/i386/fpu/libm-test-ulps: Update.
2404
2405         [BZ #14273]
2406         * math/libm-test.inc (cosh_test): Add more tests.
2407
2408         * version.h (RELEASE): Set to "development".
2409         (VERSION): Set to "2.16.90".
2410
2411 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2412
2413         * NEWS: Update copyright. Remove last-updated date.
2414         Mention math library bug fixes and timezone data changes.
2415         * README: Mention GNU/Hurd, x32, and HPPA support status.
2416
2417 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2418
2419         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2420
2421 2012-06-27  Andreas Jaeger  <aj@suse.de>
2422
2423         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2424
2425 2012-06-25  Andreas Jaeger  <aj@suse.de>
2426
2427         * sysdeps/s390/fpu/libm-test-ulps: Update.
2428
2429 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2430             Thomas Schwinge  <thomas@codesourcery.com>
2431
2432         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2433         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2434         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2435         fanotify_mark.
2436
2437 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2438
2439         * sysdeps/mach/start.c: Remove file.
2440         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2441         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2442         * sysdeps/sh/init-first.c: Likewise.
2443
2444         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2445         registers for frame unwinding purposes, add CFI directives.
2446         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2447         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2448         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2449         Likewise.
2450
2451         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2452         __fortify_fail returning.
2453         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2454
2455         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2456         sysdeps/sh/____longjmp_chk.S.
2457         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2458         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2459         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2460         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2461
2462         * sysdeps/sh/abort-instr.h: New file.
2463         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2464         process in case exit returns.
2465
2466         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2467         initialize the GOT register before use.
2468
2469         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2470         calculation of ARGC > 4.
2471
2472         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2473         meaningful names to some local labels.
2474
2475 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2476             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2477
2478         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2479         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2480         (__arch_compare_and_exchange_val_16_acq): Likewise.
2481         (__arch_compare_and_exchange_val_32_acq): Likewise.
2482         (atomic_exchange_and_add): Fix gUSA sequence.
2483         (atomic_add): Likewise.
2484         (atomic_add_negative): Likewise.
2485         (atomic_add_zero): Likewise.
2486         (atomic_bit_test_set): Likewise.
2487
2488 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2489
2490         [BZ #13579]
2491         * include/link.h (struct link_map): Add l_free_initfini.
2492         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2493         l_initfini.
2494         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2495         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2496         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2497         set.
2498
2499 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2500
2501         * configure.in: Use AC_LANG_SOURCE.
2502         * configure: Regenerate.
2503
2504 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2505
2506         * configure.in (libc_cv_localstatedir): New substituted variable.
2507         * configure: Regenerated.
2508         * config.make.in (localstatedir): New variable, substituted from
2509         libc_cv_localstatedir.
2510         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2511         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2512         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2513         * sysdeps/gnu/configure: Regenerated.
2514
2515 2012-06-21  Jeff Law  <law@redhat.com>
2516
2517         [BZ #14277]
2518         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2519         free.  Simplify list management for _LIBC case.
2520
2521 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2522
2523         [BZ #14273]
2524         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2525         Clear sign bit of 64-bit integer value before comparing against
2526         overflow value.
2527
2528         * sysdeps/mach/configure: Regenerated.
2529
2530 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2531
2532         [BZ #14278]
2533         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2534
2535 2012-06-21  Jeff Law  <law@redhat.com>
2536
2537         [BZ #13882]
2538         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2539         uint16_t for elements in the "seen" array to avoid char overflows.
2540         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2541         * elf/dl-open.c (dl_open_worker): Likewise.
2542
2543 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2544
2545         * scripts/list-sources.sh: Scan PORTS for translations.
2546         * po/libc.pot: Regenerated.
2547
2548 2012-06-21  Andreas Jaeger  <aj@suse.de>
2549
2550         [BZ #12194]
2551         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2552         warning.
2553         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2554         * bits/byteswap-16.h (__bswap_16): Likewise.
2555         * bits/byteswap.h (__bswap_constant_16): Likewise.
2556
2557 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2558
2559         [BZ #14117]
2560         * sysdeps/i386/fpu_control.h: Removed.
2561         * sysdeps/x86_64/fpu_control.h: Moved to ...
2562         * sysdeps/x86/fpu_control.h: Here.
2563
2564         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2565         (_FPU_SETCW): Likewise.
2566
2567 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2568
2569         [BZ #14117]
2570         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2571         * sysdeps/x86/fpu/bits/mathinline.h: This.
2572         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2573
2574         [BZ #14050]
2575         [BZ #14117]
2576         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2577         functions if __x86_64__ is defined.
2578
2579 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2580
2581         * string/endian.h: Add !__ASSEMBLER__ condition for including
2582         conversion interfaces.
2583
2584 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2585
2586         [BZ #14241]
2587         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2588         of ABS(x) in calculating zero to negative powers other than odd
2589         integers.
2590         * math/libm-test.inc (pow_test): Add more tests.
2591
2592 2012-06-15  Andreas Jaeger  <aj@suse.de>
2593
2594         * manual/contrib.texi (Contributors): Update entry of Liubov
2595         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2596         Machado Filho.
2597
2598 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2599
2600         * string/string.h: Add __wur to GNU version of strerror_r.
2601
2602 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2603
2604         [BZ #14229]
2605         * string/Makefile (tests): Add tst-strtok_r.
2606         * string/tst-strtok_r.c: New file.
2607         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2608         RAX_LP/RDX_LP on SAVE_PTR.
2609
2610 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2611
2612         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2613
2614 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2615
2616         * libm_test.inc (csqrt_test): Allow more spurious underflow
2617         exceptions.
2618         (j0_test): Likewise.
2619         (j1_test): Likewise.
2620         (y0_test): Likewise.
2621         (y1_test): Likewise.
2622
2623 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2624
2625         * po/Makefile (libc.pot): Use UTF-8 charset.
2626
2627 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2628
2629         [BZ #14210]
2630         Suppress sign-conversion warning from FD_SET.
2631         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2632         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2633         not unsigned long int.
2634         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2635
2636 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2637
2638         [BZ #14050]
2639         [BZ #14117]
2640         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2641         __extern_always_inline instead of __extern_inline.
2642         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2643         (__signbit): Likewise.
2644         (__signbitl): Support C++ namespace.
2645         (lrintf): New inline function.
2646         (lrint): Likewise.
2647         (llrintf): Likewise.
2648         (llrint): Likewise.
2649         (fmaxf): Likewise.
2650         (fmax): Likewise.
2651         (fminf): Likewise.
2652         (fmin): Likewise.
2653         (rint): Likewise.
2654         (rintf): Likewise.
2655         (ceil): Likewise.
2656         (ceilf): Likewise.
2657         (floor): Likewise.
2658         (floorf): Likewise.
2659         (nearbyint): Likewise.
2660         (nearbyintf): Likewise.
2661
2662 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2663
2664         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2665         non-default versions.
2666
2667 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2668
2669         [BZ #14218]
2670         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2671
2672 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2673
2674         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2675         (FE_UPWARD, FE_DOWNWARD): Don't define.
2676         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2677         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2678
2679         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2680         reading it.
2681         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2682         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2683
2684 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2685
2686         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2687         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2688         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2689         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2690
2691 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2692
2693         [BZ #14117]
2694         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2695         * sysdeps/i386/fpu/Implies: New file.
2696         * sysdeps/x86_64/fpu/Implies: Likewise.
2697         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2698         * sysdeps/x86/fpu/bits/fenv.h: This.
2699
2700         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2701         __SSE_MATH__.
2702
2703 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2704
2705         [BZ #14134]
2706         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2707         character 0xffff that matches the last element of the
2708         conversion table.
2709
2710 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2711
2712         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2713         fmodl commit.
2714
2715 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2716
2717         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2718         values higher than 25.6283.
2719
2720 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2721
2722         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2723         subnormal exponent extraction and add some __builtin_expect.
2724         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2725         Fix for subnormal mantissa calculation.
2726
2727 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2728
2729         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2730         cpu2 is -1 and errno is not ENOSYS.
2731
2732 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2733
2734         [BZ #14117]
2735         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2736         * sysdeps/x86/bits/string.h: This.
2737         * sysdeps/x86_64/bits/string.h: Removed.
2738
2739         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2740         if not compiling for x86-64, but compiling for >= i486.
2741
2742         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2743         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2744
2745         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2746         New macro from Linux kernel 3.4.0.
2747         (FP_XSTATE_MAGIC2): Likewise.
2748         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2749         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2750         (struct _fpx_sw_bytes): New struct.
2751         (struct _xsave_hdr): Likewise.
2752         (struct _ymmh_state): Likewise.
2753         (struct _xstate): Likewise.
2754
2755         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2756         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2757         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2758         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2759         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2760         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2761
2762         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2763         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2764         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2765         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2766         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2767         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2768
2769 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2770
2771         [BZ #13743]
2772         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2773         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2774         (sysdep_headers): Include sys/platform/ppc.h.
2775         * sysdeps/powerpc/test-gettimebase.c: Test for
2776         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2777         * manual/Makefile (appendices): Include platform.texi.
2778         * manual/contrib.texi (Contributors): Update @node pointers.
2779         * manual/maint.texi (Maintenance): Likewise.
2780         (Platform): New node.
2781         * manual/platform.texi: New file.  Document the new features.
2782
2783 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2784             Jakub Jelinek  <jakub@redhat.com>
2785
2786         [BZ #14188]
2787         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2788         where __builtin_expect is unavailable.
2789
2790 2012-06-03  David S. Miller  <davem@davemloft.net>
2791
2792         * stdlib/longlong.h: Updated from GCC.
2793
2794 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2795
2796         [BZ #14042]
2797         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2798         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2799         __mcount_internal.
2800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2801         (GLIBC_2.16): Likewise.
2802
2803 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2804
2805         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2806
2807 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2808
2809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2810         (default-abi): New variable.
2811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2812         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2813         variable.
2814         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2815         Likewise.
2816         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2817         Likewise.
2818         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2819         Likewise.
2820
2821         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2822         definition.  Document in comment.
2823
2824 2012-06-01  David S. Miller  <davem@davemloft.net>
2825
2826         * stdlib/longlong.h: Updated from GCC.
2827
2828 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2829
2830         [BZ #14117]
2831         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2832         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2833         sys/debugreg.h sys/io.h here.
2834         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2835         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2836         sys/io.h.
2837         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2838         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2839         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2840         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2841         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2842         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2843
2844         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2845         Define only if __x86_64__ is defined.
2846
2847 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2848
2849         [BZ #14048]
2850         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2851         Use int64_t for variable i.
2852         * math/libm-test.inc (fmod_test): Add more tests.
2853
2854         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2855         z computation is not scheduled after fetestexcept.
2856         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2857         Use math_force_eval instead of asm to ensure calculation scheduled
2858         before exception test.
2859         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2860         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2861
2862 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2863
2864         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2865         computation is not scheduled after fetestexcept.
2866
2867 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2868
2869         [BZ #14117]
2870         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2871         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2872
2873 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2874
2875         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2876         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2877
2878 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2879
2880         [BZ #14117]
2881         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2882         <bits/wordsize.h>.
2883         (__WCHAR_MIN): Support __WORDSIZE == 64.
2884         (__WCHAR_MAX): Likewise.
2885
2886         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
2887         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
2888
2889         [BZ #14183]
2890         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
2891         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
2892
2893         [BZ #14117]
2894         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
2895         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
2896
2897         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
2898         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
2899
2900         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
2901         Defined to 1 if __x86_64__ isn't defined.
2902         (_STAT_VER_LINUX_OLD): New.
2903         (st_atime): Remove duplicate.
2904         (st_mtime): Likewise.
2905         (st_ctime): Likewise.
2906
2907 2012-05-31  David S. Miller  <davem@davemloft.net>
2908
2909         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
2910         entries.
2911
2912 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
2913
2914         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
2915         gen-libm-test.pl.
2916
2917         [BZ #14132]
2918         * elf/dl-reloc.c: Include <_itoa.h>.
2919         (_dl_reloc_bad_type): Remove use of INTUSE.
2920         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
2921         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
2922         * stdio-common/psiginfo.c (psiginfo): Likewise.
2923         * stdio-common/psignal.c (psignal): Likewise.
2924         * string/strsignal.c (strsignal): Likewise.
2925         * include/signal.h (_sys_siglist): Declare hidden proto.
2926         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
2927         INTVARDEF with libc_hidden_data_def.
2928         * stdio-common/itoa-udigits.c: Likewise.
2929         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
2930         (_itoa_lower_digits_internal): Remove declaration.
2931         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
2932         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
2933         (_sys_sigabbrev_internal): Remove aliases.
2934         (_sys_siglist): Define hidden alias.
2935
2936 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
2937
2938         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
2939         bits/sysctl.h.
2940
2941 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2942
2943         [BZ #14117]
2944         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
2945         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
2946
2947         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
2948         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
2949         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
2950         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
2951         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
2952         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
2953
2954         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
2955         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
2956         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
2957
2958         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
2959         with __addr.
2960         (insw): Likewise.
2961         (insl): Likewise.
2962         (outsb): Likewise.
2963         (outsw): Likewise.
2964         (outsl): Likewise.
2965
2966         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
2967         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
2968         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
2969
2970         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
2971         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
2972         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
2973         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
2974         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
2975         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
2976
2977         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
2978         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
2979
2980         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
2981         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
2982
2983         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
2984         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
2985         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
2986
2987         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
2988         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
2989         to ...
2990         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
2991
2992         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
2993         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
2994         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
2995
2996         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
2997         for x86-64.
2998         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
2999
3000 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3001
3002         * math/math.h (M_El): Use two more decimal places.
3003         (M_LOG2El): Likewise.
3004         (M_LOG10El): Likewise.
3005         (M_LN2l): Likewise.
3006         (M_LN10l): Likewise.
3007         (M_PIl): Likewise.
3008         (M_PI_2l): Likewise.
3009         (M_PI_4l): Likewise.
3010         (M_1_PIl): Likewise.
3011         (M_2_PIl): Likewise.
3012         (M_2_SQRTPIl): Likewise.
3013         (M_SQRT2l): Likewise.
3014         (M_SQRT1_2l): Likewise.
3015
3016 2012-05-31  David S. Miller  <davem@davemloft.net>
3017
3018         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3019         values between float registers.
3020         * sysdeps/sparc/sparc64/memset.S: Likewise.
3021         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3022
3023 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3024
3025         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3026         -D_FORTIFY_SOURCE=1.
3027         (CPPFLAGS-tst-longjmp_chk.c): Define.
3028         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3029         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3030         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3031         CFLAGS-tst-wchar-h.c.
3032
3033 2012-05-31  Marek Polacek  <polacek@redhat.com>
3034
3035         [BZ #14132]
3036         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3037         __endmntent_internal): Remove declaration.
3038         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3039         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3040         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3041
3042 2012-05-30  David S. Miller  <davem@davemloft.net>
3043
3044         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3045         (___Q_simulate_exceptions): Use real FP ops rather than writing
3046         into the %fsr.
3047         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3048         Likewise.
3049
3050 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3051
3052         [BZ #14117]
3053         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3054         * sysdeps/x86/bits/xtitypes.h: This.
3055
3056         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3057         * sysdeps/x86/bits/wordsize.h: This.
3058
3059         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3060         * sysdeps/x86/bits/huge_vall.h: This.
3061
3062         * sysdeps/i386/bits/select.h: Removed.
3063         * sysdeps/x86_64/bits/select.h: Renamed to ...
3064         * sysdeps/x86/bits/select.h: This.
3065
3066         * sysdeps/i386/bits/setjmp.h: Removed.
3067         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3068         * sysdeps/x86/bits/setjmp.h: This.
3069
3070         * sysdeps/i386/bits/mathdef.h: Removed.
3071         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3072         * sysdeps/x86/bits/mathdef.h: This.
3073
3074 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3075
3076         [BZ #14132]
3077         * include/sys/socket.h (__connect_internal)
3078         (__libc_sa_len_internal): Remove declaration.
3079         (__connect, __libc_sa_len): Declare hidden_proto.
3080         (SA_LEN): Remove use of INTUSE.
3081         * socket/connect.c: Add libc_hidden_def.
3082         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3083         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3084         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3085         alias.
3086         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3087         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3088         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3089         of adding _internal alias.
3090
3091 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3092
3093         [BZ #14117]
3094         * sysdeps/i386/bits/link.h: Removed.
3095         * sysdeps/i386/bits/linkmap.h: Likewise.
3096         * sysdeps/x86_64/bits/link.h: Renamed to ...
3097         * sysdeps/x86/bits/link.h: This.
3098         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3099         * sysdeps/x86/bits/linkmap.h: This.
3100
3101         * sysdeps/i386/bits/endian.h: Removed.
3102         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3103         * sysdeps/x86/bits/endian.h: This.
3104
3105         * sysdeps/i386/bits/byteswap.h: Removed.
3106         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3107         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3108         * sysdeps/x86/bits/byteswap.h: This.
3109         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3110         * sysdeps/x86/bits/byteswap-16.h: This.
3111         * sysdeps/i386/Implies: Add x86.
3112         * sysdeps/x86_64/Implies: Likewise.
3113
3114 2012-05-30  David S. Miller  <davem@davemloft.net>
3115
3116         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3117         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3118         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3119         (FP_TRAPPING_EXCEPTIONS): Define.
3120         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3121         (FP_TRAPPING_EXCEPTIONS): Define.
3122         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3123         subnormals only when inexact has been signalled or underflow
3124         exceptions are enabled.
3125         (_FP_PACK_CANONICAL): Likewise.
3126
3127 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3128
3129         [BZ #14183]
3130         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3131         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3132
3133 2012-05-30  Richard Henderson  <rth@twiddle.net>
3134
3135         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3136         with #ifndef NOT_IN_libc.
3137
3138         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3139         marked to avoid plt entry.
3140
3141 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3142
3143         [BZ #14112]
3144         * Makeconfig (default-abi): New macro.
3145         (abi-includes): Likewise.
3146         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3147         $(abi-$(default-abi)-lib-soname) for soname if defined.
3148         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3149         abi-variants.
3150         * Makefile (installed-stubs): Likewise.
3151         * include/stubs-biarch.h: Removed.
3152         * scripts/lib-names.awk: Only handle one library at a time.
3153         * scripts/soversions.awk: Remove WORDSIZE support.
3154         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3155         entries.
3156         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3157         Removed.
3158         (syscall-list-default-condition): Likewise.
3159         (syscall-list-default-condition): Likewise.
3160         (syscall-list-includes): Likewise.
3161         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3162         syscall-list-* with abi-*.  Handle undefined abi-variants.
3163         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3164         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3165         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3166         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3167         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3168         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3169         Removed.
3170         (syscall-list-32-options): Likewise.
3171         (syscall-list-32-condition): Likewise.
3172         (syscall-list-64-options): Likewise.
3173         (syscall-list-64-condition): Likewise.
3174         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3175         macro.
3176         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3177         Renamed to ...
3178         (abi-*): This.
3179         (abi-64-ld-soname): New macro.
3180         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3181         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3182         Renamed to ...
3183         (abi-*): This.
3184         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3185         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3186
3187 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3188
3189         * sysdeps/unix/sysv/linux/kernel-features.h
3190         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3191         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3192         include <kernel-features.h>.
3193         [!__NR_ftruncate64]: Remove conditional code.
3194         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3195         [__NR_ftruncate64]: Make code unconditional.
3196         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3197         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3198         include <kernel-features.h>.
3199         [!__NR_ftruncate64]: Remove conditional code.
3200         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3201         [__NR_ftruncate64]: Make code unconditional.
3202         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3204         include <kernel-features.h>.
3205         [!__NR_ftruncate64]: Remove conditional code.
3206         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3207         [__NR_ftruncate64]: Make code unconditional.
3208         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3210         include <kernel-features.h>.
3211         [!__NR_ftruncate64]: Remove conditional code.
3212         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3213         [__NR_ftruncate64]: Make code unconditional.
3214         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3215
3216         * configure.in (libc_cv_fpie): Weaken to a compile test using
3217         LIBC_TRY_CC_OPTION.
3218         * configure: Regenerated.
3219
3220 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3221
3222         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3223         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3224         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3225         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3226         Refreshed.
3227         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3228         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3229         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3230         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3231         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3232         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3233         Refreshed.
3234
3235 2012-05-27  David S. Miller  <davem@davemloft.net>
3236
3237         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3238         (___Q_zero): New.
3239         (__Q_simulate_exceptions): Return void.  Change to simulate
3240         exceptions by writing into the %fsr.
3241         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3242         (__Qp_handle_exceptions): Likewise.
3243         (numbers): Delete.
3244         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3245         __Qp_handle_exceptions.
3246         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3247         __Qp_handle_exceptions.
3248         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3249         as unused and give dummy FP_RND_NEAREST initializer.
3250         (FP_INHIBIT_RESULTS): Define.
3251         (___Q_simulate_exceptions): Update declaration.
3252         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3253         formatting.
3254         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3255         as unused and give dummy FP_RND_NEAREST initializer.
3256         (__Qp_handle_exceptions): Update declaration.
3257         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3258         formatting.
3259
3260 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3261
3262         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3263         the temporary FPU control word.
3264         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3265         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3266         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3267         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3268         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3269         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3270         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3271         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3272         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3273         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3274         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3275
3276 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3277
3278         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3279         fields.
3280
3281 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3282
3283         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3284         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3285         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3286         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3287         Likewise.
3288         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3289         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3290         Likewise.
3291
3292 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3293
3294         * po/h.po: Update from translation team.
3295
3296 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3297
3298         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3299
3300         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3301         handling of denormals.
3302         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3303         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3304         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3305         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3306         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3307         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3308         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3309         Likewise.
3310
3311 2012-05-26  Marek Polacek  <polacek@redhat.com>
3312
3313         [BZ #14152]
3314         * math/libm-test.inc (fma_test): Don't always expect underflow
3315         exception.
3316
3317 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3318
3319         [BZ #12416]
3320         * elf/tst-execstack.c: Include stackinfo.h.
3321         (do_test): Adjust test case to ensure that pthread_getattr_np
3322         behaviour remains the same after marking stack executable.
3323
3324 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3325
3326         * sysdeps/unix/sysv/linux/kernel-features.h
3327         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3328         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3329         kernel-features.h.
3330         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3331         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3332         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3333         kernel-features.h.
3334         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3335         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3336
3337 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3338
3339         * configure.in: Define the default includes to being none.
3340         * configure: Regenerated.
3341
3342 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3343
3344         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3345         * sysdeps/x86_64/setjmp.S: Likewise.
3346         * sysdeps/i386/bsd-setjmp.S: Likewise.
3347         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3348         * sysdeps/i386/setjmp.S: Likewise.
3349         * sysdeps/i386/__longjmp.S: Likewise.
3350         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3351         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3352
3353         * include/stap-probe.h: New file.
3354         * configure.in: Handle --enable-systemtap.
3355         * configure: Regenerated.
3356         * config.h.in (USE_STAP_PROBE): New #undef.
3357         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3358         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3359         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3360
3361 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3362
3363         [BZ #13717]
3364         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3365         to 2.4.0 where earlier.
3366         * sysdeps/unix/sysv/linux/configure: Regenerated.
3367         * sysdeps/unix/sysv/linux/i386/chown.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/fchown.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/fchownat.c (fchownat)
3376         [__ASSUME_32BITUIDS]: Make code unconditional.
3377         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3378         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3379         <kernel-features.h>.
3380         [__ASSUME_32BITUIDS]: Make code unconditional.
3381         [!__ASSUME_32BITUIDS]: Remove conditional code.
3382         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3383         <kernel-features.h>.
3384         [__ASSUME_32BITUIDS]: Make code unconditional.
3385         [!__ASSUME_32BITUIDS]: Remove conditional code.
3386         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3387         <kernel-features.h>.
3388         [__ASSUME_32BITUIDS]: Make code unconditional.
3389         [!__ASSUME_32BITUIDS]: Remove conditional code.
3390         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3391         <kernel-features.h>.
3392         [__ASSUME_32BITUIDS]: Make code unconditional.
3393         [!__ASSUME_32BITUIDS]: Remove conditional code.
3394         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3395         <kernel-features.h>.
3396         [__ASSUME_32BITUIDS]: Make code unconditional.
3397         [!__ASSUME_32BITUIDS]: Remove conditional code.
3398         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3399         <kernel-features.h>.
3400         [__ASSUME_32BITUIDS]: Make code unconditional.
3401         [!__ASSUME_32BITUIDS]: Remove conditional code.
3402         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3403         <kernel-features.h>.
3404         [__ASSUME_32BITUIDS]: Make code unconditional.
3405         [!__ASSUME_32BITUIDS]: Remove conditional code.
3406         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3407         <kernel-features.h>.
3408         [__ASSUME_32BITUIDS]: Make code unconditional.
3409         [!__ASSUME_32BITUIDS]: Remove conditional code.
3410         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3411         <kernel-features.h>.
3412         [__ASSUME_32BITUIDS]: Make code unconditional.
3413         [!__ASSUME_32BITUIDS]: Remove conditional code.
3414         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3415         <kernel-features.h>.
3416         [__ASSUME_32BITUIDS]: Make code unconditional.
3417         [!__ASSUME_32BITUIDS]: Remove conditional code.
3418         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3419         <kernel-features.h>.
3420         [__NR_setresgid] (__setresgid): Do not declare.
3421         [__ASSUME_32BITUIDS]: Make code unconditional.
3422         [!__ASSUME_32BITUIDS]: Remove conditional code.
3423         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3424         <kernel-features.h>.
3425         [__NR_setresuid] (__setresuid): Do not declare.
3426         [__ASSUME_32BITUIDS]: Make code unconditional.
3427         [!__ASSUME_32BITUIDS]: Remove conditional code.
3428         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3429         <kernel-features.h>.
3430         [__ASSUME_32BITUIDS]: Make code unconditional.
3431         [!__ASSUME_32BITUIDS]: Remove conditional code.
3432         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3433         <kernel-features.h>.
3434         [__ASSUME_32BITUIDS]: Make code unconditional.
3435         [!__ASSUME_32BITUIDS]: Remove conditional code.
3436         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3437         <kernel-features.h>.
3438         [__ASSUME_32BITUIDS]: Make code unconditional.
3439         [!__ASSUME_32BITUIDS]: Remove conditional code.
3440         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3441         <kernel-features.h>.
3442         [__ASSUME_32BITUIDS]: Make code unconditional.
3443         [!__ASSUME_32BITUIDS]: Remove conditional code.
3444         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3445         <kernel-features.h>.
3446         [__ASSUME_32BITUIDS]: Make code unconditional.
3447         [!__ASSUME_32BITUIDS]: Remove conditional code.
3448         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3449         <kernel-features.h>.
3450         [__ASSUME_32BITUIDS]: Make code unconditional.
3451         [!__ASSUME_32BITUIDS]: Remove conditional code.
3452         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3453         <kernel-features.h>.
3454         [__ASSUME_32BITUIDS]: Make code unconditional.
3455         [!__ASSUME_32BITUIDS]: Remove conditional code.
3456         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3457         <kernel-features.h>.
3458         [__ASSUME_32BITUIDS]: Make code unconditional.
3459         [!__ASSUME_32BITUIDS]: Remove conditional code.
3460         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3461         <kernel-features.h>.
3462         [__ASSUME_32BITUIDS]: Make code unconditional.
3463         [!__ASSUME_32BITUIDS]: Remove conditional code.
3464         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3465         <kernel-features.h>.
3466         [__ASSUME_32BITUIDS]: Make code unconditional.
3467         [!__ASSUME_32BITUIDS]: Remove conditional code.
3468         * sysdeps/unix/sysv/linux/kernel-features.h
3469         (__ASSUME_SETRESUID_SYSCALL): Remove.
3470         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3471         (__ASSUME_32BITUIDS): Likewise.
3472         (__ASSUME_LDT_WORKS): Likewise.
3473         (__ASSUME_O_DIRECTORY): Likewise.
3474         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3475         architecture but not kernel version.
3476         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3477         (__ASSUME_MMAP2_SYSCALL): Likewise.
3478         (__ASSUME_STAT64_SYSCALL): Likewise.
3479         (__ASSUME_IPC64): Likewise.
3480         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3481         <kernel-features.h>.
3482         [__ASSUME_32BITUIDS]: Make code unconditional.
3483         [!__ASSUME_32BITUIDS]: Remove conditional code.
3484         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3485         <kernel-features.h>.
3486         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3487         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3488         132096]: Remove conditional code.
3489         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3490         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3491         <kernel-features.h>.
3492         [__ASSUME_32BITUIDS]: Make code unconditional.
3493         [!__ASSUME_32BITUIDS]: Remove conditional code.
3494         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3495         <kernel-features.h>.
3496         [__ASSUME_32BITUIDS]: Make code unconditional.
3497         [!__ASSUME_32BITUIDS]: Remove conditional code.
3498         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3499         <kernel-features.h>.
3500         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3501         unconditional.
3502         (__setresgid): Do not declare.
3503         [__ASSUME_32BITUIDS]: Make code unconditional.
3504         [!__ASSUME_32BITUIDS]: Remove conditional code.
3505         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3506         <kernel-features.h>.
3507         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3508         unconditional.
3509         (__setresuid): Do not declare.
3510         [__ASSUME_32BITUIDS]: Make code unconditional.
3511         [!__ASSUME_32BITUIDS]: Remove conditional code.
3512         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3513         <kernel-features.h>.
3514         [__ASSUME_32BITUIDS]: Make code unconditional.
3515         [!__ASSUME_32BITUIDS]: Remove conditional code.
3516         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3517         <kernel-features.h>.
3518         [__ASSUME_32BITUIDS]: Make code unconditional.
3519         [!__ASSUME_32BITUIDS]: Remove conditional code.
3520
3521 2012-05-25  Richard Henderson  <rth@twiddle.net>
3522
3523         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3524         dl_hwcap to ifunc resolver.
3525         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3526         elf_ifunc_invoke.
3527         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3528         dl_hwcap to ifunc resolver.
3529         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3530
3531 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3532
3533         [BZ #14153]
3534         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3535         for |x| <= 2**-26, not 2**-57.
3536         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3537         exception.
3538
3539 2012-05-24  Jeff Law  <law@redhat.com>
3540
3541         * stdio-common/Makefile (tests): Add bug25.
3542         * stdio-common/bug25.c: New test.
3543
3544 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3545
3546         [BZ #13576]
3547         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3548         multiple of MALLOC_ALIGNMENT in size.
3549         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3550
3551 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3552
3553         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3554         Require >= 256.
3555         (FILENAME_MAX): Use macro-int-constant.
3556         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3557         (_IOFBF): Use macro-int-constant.
3558         (_IOLBF): Likewise.
3559         (_IONBF): Likewise.
3560         (SEEK_CUR): Likewise.
3561         (SEEK_END): Likewise.
3562         (SEEK_SET): Likewise.
3563         (TMP_MAX): Likewise.
3564         (EOF): Use macro-int-constant.  Require < 0.
3565         (NULL): Use macro-constant.  Require == 0.
3566         (stdin): Require type to be FILE *.
3567         (stdout): Likewise.
3568         (stderr): Likewise.
3569         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3570         macro-int-constant.
3571         (EXIT_SUCCESS): Likewise.
3572         (NULL): Use macro-constant.  Require == 0.
3573         (RAND_MAX): Use macro-int-constant.
3574         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3575         [C99-based standards] (strtof): Require function.
3576         [C99-based standards] (strtold): Likewise.
3577         [C99-based standards] (strtoll): Likewise.
3578         [C99-based standards] (strtoull): Likewise.
3579         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3580         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3581         [ISO || ISO99 || ISO11] (math.h): Likewise.
3582         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3583         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3584         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3585
3586 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3587
3588         [BZ #14132]
3589         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3590         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3591         * intl/dgettext.c (DCGETTEXT): Likewise.
3592         * intl/gettext.c (DCGETTEXT): Likewise.
3593         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3594         * posix/regex_internal.h (gettext): Likewise.
3595         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3596         Remove declaration.
3597         * include/argz.h (__argz_count_internal)
3598         (__argz_stringify_internal): Remove declaration.
3599         (__argz_count, __argz_stringify): Declare hidden proto.
3600         * intl/dcgettext.c: Remove use of INTDEF.
3601         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3602         * string/argz-stringify.c: Likewise.
3603         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3604         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3605         Declare hidden proto.
3606         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3607         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3608         Declare hidden proto.
3609         * include/stdio.h (__asprintf_internal): Don't declare.
3610         (__asprintf): Don't define as macro.  Declare hidden proto.
3611         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3612         (__fsetlocking): Declare hidden proto.
3613         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3614         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3615         hidden proto.
3616         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3617         (_IO_setlinebuf): Remove use of INTUSE.
3618         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3619         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3620         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3621         Remove declaration.
3622         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3623         (_IO_do_flush): Remove use of INTUSE.
3624         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3625         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3626         (_IO_adjust_column, _IO_least_wmarker)
3627         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3628         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3629         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3630         (_IO_default_doallocate, _IO_wdefault_doallocate)
3631         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3632         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3633         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3634         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3635         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3636         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3637         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3638         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3639         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3640         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3641         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3642         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3643         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3644         proto.
3645         (_IO_flush_all_internal, _IO_adjust_column_internal)
3646         (_IO_default_uflow_internal, _IO_default_finish_internal)
3647         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3648         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3649         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3650         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3651         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3652         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3653         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3654         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3655         (_IO_file_close_internal, _IO_file_close_it_internal)
3656         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3657         (_IO_file_init_internal, _IO_file_attach_internal)
3658         (_IO_file_fopen_internal, _IO_file_read_internal)
3659         (_IO_file_sync_internal, _IO_file_seek_internal)
3660         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3661         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3662         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3663         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3664         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3665         (_IO_list_all_internal, _IO_link_in_internal)
3666         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3667         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3668         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3669         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3670         (_IO_do_write_internal, _IO_padn_internal)
3671         (_IO_getline_info_internal, _IO_getline_internal)
3672         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3673         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3674         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3675         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3676         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3677         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3678         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3679         with libc_hidden_ver, remove use of INTUSE.
3680         * libio/genops.c: Likewise.
3681         * libio/freopen.c: Likewise.
3682         * libio/freopen64.c: Likewise.
3683         * libio/iofclose.c: Likewise.
3684         * libio/iofdopen.c: Likewise.
3685         * libio/iofflush.c: Likewise.
3686         * libio/iofflush_u.c: Likewise.
3687         * libio/iofgets.c: Likewise.
3688         * libio/iofgets_u.c: Likewise.
3689         * libio/iofopen.c: Likewise.
3690         * libio/iofopncook.c: Likewise.
3691         * libio/iofread.c: Likewise.
3692         * libio/iofread_u.c: Likewise.
3693         * libio/ioftell.c: Likewise.
3694         * libio/iofwrite.c: Likewise.
3695         * libio/iogetline.c: Likewise.
3696         * libio/iogets.c: Likewise.
3697         * libio/iogetwline.c: Likewise.
3698         * libio/iopadn.c: Likewise.
3699         * libio/iopopen.c: Likewise.
3700         * libio/ioseekoff.c: Likewise.
3701         * libio/ioseekpos.c: Likewise.
3702         * libio/iosetbuffer.c: Likewise.
3703         * libio/iosetvbuf.c: Likewise.
3704         * libio/ioungetc.c: Likewise.
3705         * libio/ioungetwc.c: Likewise.
3706         * libio/iovdprintf.c: Likewise.
3707         * libio/iovsprintf.c: Likewise.
3708         * libio/iovsscanf.c: Likewise.
3709         * libio/memstream.c: Likewise.
3710         * libio/obprintf.c: Likewise.
3711         * libio/oldfileops.c: Likewise.
3712         * libio/oldiofclose.c: Likewise.
3713         * libio/oldiofdopen.c: Likewise.
3714         * libio/oldiofopen.c: Likewise.
3715         * libio/oldiopopen.c: Likewise.
3716         * libio/oldstdfiles.c: Likewise.
3717         * libio/putc.c: Likewise.
3718         * libio/setbuf.c: Likewise.
3719         * libio/setlinebuf.c: Likewise.
3720         * libio/stdfiles.c: Likewise.
3721         * libio/strops.c: Likewise.
3722         * libio/vasprintf.c: Likewise.
3723         * libio/vscanf.c: Likewise.
3724         * libio/vsnprintf.c: Likewise.
3725         * libio/vswprintf.c: Likewise.
3726         * libio/wfiledoalloc.c: Likewise.
3727         * libio/wfileops.c: Likewise.
3728         * libio/wgenops.c: Likewise.
3729         * libio/wmemstream.c: Likewise.
3730         * libio/wstrops.c: Likewise.
3731         * libio/__fpurge.c: Likewise.
3732         * libio/__fsetlocking.c: Likewise.
3733         * assert/assert.c: Likewise.
3734         * debug/fgets_chk.c: Likewise.
3735         * debug/fgets_u_chk.c: Likewise.
3736         * debug/fread_chk.c: Likewise.
3737         * debug/fread_u_chk.c: Likewise.
3738         * debug/gets_chk.c: Likewise.
3739         * debug/obprintf_chk.c: Likewise.
3740         * debug/vasprintf_chk.c: Likewise.
3741         * debug/vdprintf_chk.c: Likewise.
3742         * debug/vsnprintf_chk.c: Likewise.
3743         * debug/vsprintf_chk.c: Likewise.
3744         * malloc/mtrace.c: Likewise.
3745         * misc/error.c: Likewise.
3746         * misc/syslog.c: Likewise.
3747         * stdio-common/asprintf.c: Likewise.
3748         * stdio-common/fxprintf.c: Likewise.
3749         * stdio-common/getw.c: Likewise.
3750         * stdio-common/isoc99_fscanf.c: Likewise.
3751         * stdio-common/isoc99_scanf.c: Likewise.
3752         * stdio-common/isoc99_vfscanf.c: Likewise.
3753         * stdio-common/isoc99_vscanf.c: Likewise.
3754         * stdio-common/isoc99_vsscanf.c: Likewise.
3755         * stdio-common/printf-prs.c: Likewise.
3756         * stdio-common/printf_fp.c: Likewise.
3757         * stdio-common/printf_fphex.c: Likewise.
3758         * stdio-common/printf_size.c: Likewise.
3759         * stdio-common/putw.c: Likewise.
3760         * stdio-common/scanf.c: Likewise.
3761         * stdio-common/sprintf.c: Likewise.
3762         * stdio-common/tmpfile.c: Likewise.
3763         * stdio-common/vfprintf.c: Likewise.
3764         * stdio-common/vfscanf.c: Likewise.
3765         * stdlib/strfmon_l.c: Likewise.
3766         * sunrpc/openchild.c: Likewise.
3767         * sunrpc/xdr_stdio.c: Likewise.
3768         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3769         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3770
3771 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3772
3773         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3774
3775         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3776         in the third column, to generate for the shared library an IFUNC
3777         that uses _dl_vdso_vsym.
3778         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3779         * Makeconfig (object-suffixes-noshared): New variable.
3780
3781         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3782         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3783         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3784         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3785
3786         [BZ #14132]
3787         * include/sys/time.h (__gettimeofday): Remove macro.
3788         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3789         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3790         Remove INTDEF.
3791         (__gettimeofday): Add libc_hidden_def.
3792         (gettimeofday): Add libc_hidden_weak.
3793         * sysdeps/mach/gettimeofday.c: Likewise.
3794         * sysdeps/posix/gettimeofday.c: Likewise.
3795         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3796         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3797         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3798         (__gettimeofday_internal): Remove strong_alias.
3799         (__gettimeofday): Add libc_hidden_def.
3800         (gettimeofday): Add libc_hidden_weak.
3801         * sysdeps/unix/syscalls.list (gettimeofday):
3802         Remove __gettimeofday_internal alias.
3803
3804 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3805             H.J. Lu  <hongjiu.lu@intel.com>
3806
3807         [BZ #12495]
3808         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3809         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3810         (largebin_index_32_big): New.
3811         (largebin_index): Use it for 16-byte alignment.
3812         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3813         correction with front_misalign.
3814
3815 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3816
3817         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3818         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3819         Likewise.
3820         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3821         Likewise.
3822         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3823         Likewise.
3824         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3825         Likewise.
3826         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3827         Likewise.
3828         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3829         Likewise.
3830         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3831         Likewise.
3832         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3833         Likewise.
3834         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3835         Likewise.
3836         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3837         Likewise.
3838         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3839         Likewise.
3840         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3841         Likewise.
3842
3843         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3844         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3845
3846 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3847
3848         [BZ #10846]
3849         [BZ #14036]
3850         * math/libm-test.inc (exp_test): Add test from bug 14036.
3851         (pow_test): Add test from bug 10846.
3852
3853         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3854         and other flags.
3855         (special_function): Do not include flags in test name.
3856         (parse_args): Likewise.
3857         * sysdeps/i386/fpu/libm-test-ulps: Update.
3858         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3859         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3860         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3861         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3862
3863         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3864         exceptions.
3865         * math/libm-test.inc ("Philosophy"): Update comment about
3866         exception testing.
3867         (UNDERFLOW_EXCEPTION): New macro.
3868         (UNDERFLOW_EXCEPTION_OK): Likewise.
3869         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3870         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3871         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3872         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3873         (INVALID_EXCEPTION_OK): Update value.
3874         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3875         (OVERFLOW_EXCEPTION_OK): Likewise.
3876         (IGNORE_ZERO_INF_SIGN): Likewise.
3877         (test_exceptions): Handle underflow exceptions.
3878         (acos_test): Update for underflow exception expectations.
3879         (cexp_test): Likewise.
3880         (clog_test): Likewise.
3881         (clog10_test): Likewise.
3882         (csqrt_test): Likewise.
3883         (ctan_test): Likewise.
3884         (ctanh_test): Likewise.
3885         (exp_test): Likewise.
3886         (exp10_test): Likewise.
3887         (exp2_test): Likewise.
3888         (expm1_test): Likewise.
3889         (fma_test): Likewise.
3890         (j0_test): Likewise.
3891         (jn_test): Likewise.
3892         (nexttoward_test): Likewise.
3893         (pow_test): Likewise.
3894         (scalbn_test): Likewise.
3895         (scalbln_test): Likewise.
3896         (tan_test): Likewise.
3897         (y1_test): Likewise.
3898         * sysdeps/i386/fpu/libm-test-ulps: Update.
3899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3900
3901 2012-05-23  David S. Miller  <davem@davemloft.net>
3902
3903         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
3904         (__libc_sigaction): Remove unused local variables.
3905
3906 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3907
3908         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
3909
3910 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
3911
3912         mktime: avoid signed integer overflow
3913         * time/mktime.c (__mktime_internal): Do not mishandle the case
3914         where diff == INT_MIN.
3915
3916         mktime: simplify computation of average
3917         * time/mktime.c (ranged_convert): Use new time_t_avg function
3918         instead of rolling our own (probably-slower) code.
3919
3920         mktime: do not assume signed right shift propagates sign bit
3921         * time/mktime.c (isdst_differ): New static function.
3922         (__mktime_internal): No need to normalize tm_isdst now.
3923         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
3924         tm_isdst values.
3925
3926         mktime: merge another wrapv change from gnulib
3927         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
3928         from some compilers.
3929
3930         mktime: remove incorrect attempt at unusual arithmetics
3931         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
3932         The code didn't really work on such machines anyway.
3933         (TYPE_MINIMUM): Assume two's complement.
3934         (twos_complement_arithmetic): Verify that long_int and time_t
3935         are two's complement (or unsigned, in the latter case).
3936
3937         mktime: check signed shifts on long_int and time_t, too
3938         * time/mktime.c (SHR): Check that shifts work as desired
3939         on the types long_int and time_t too, as SHR is used on
3940         such types.
3941
3942         mktime: do not assume 'long' is wide enough
3943         * time/mktime.c (verify): Move decl up.
3944         (long_int): New type.
3945         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
3946         to remove assumption in the code that 'long' is wide enough to
3947         store year values.  This assumption is not true on x32 and on
3948         some non-glibc platforms.
3949
3950         mktime: merge wrapv change from gnulib
3951         * time/mktime.c (WRAPV): New macro.
3952         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
3953         (guess_time_tm, __mktime_internal): Do not assume that signed
3954         integer overflow wraps around; modern compilers generate code
3955         where this assumption is no longer valid.
3956
3957 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3958
3959         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
3960         Replace "jmp L(pseudo_end)" with "ret".
3961         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
3962         Likewise.
3963
3964 2012-05-23  Andreas Jaeger  <aj@suse.de>
3965
3966         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
3967         * sysdeps/unix/sysv/linux/poll.c: Remove file.
3968
3969 2012-05-23  Andreas Jaeger  <aj@suse.de>
3970             Maximilian Attems  <max@stro.at>
3971
3972         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
3973         New macros.
3974
3975 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
3976
3977         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
3978         code so that pseudo_end is just ret and the stack pointer is
3979         correct also for static library in error case.
3980
3981 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
3982
3983         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
3984         move to syscalls.list.
3985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
3986         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
3987         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
3988         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
3989
3990         * manual/install.texi (Running make install): Do not mention Linux
3991         kernel version for which pt_chown is not needed.
3992         (Linux): Do not mention problems with nscd with 2.0 kernels.
3993         * INSTALL: Regenerated.
3994
3995 2012-05-23  Andreas Jaeger  <aj@suse.de>
3996
3997         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
3998         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
3999         macro.
4000         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4001         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4002         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4003         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4004         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4005         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4006         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4007         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4008         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4009         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4010         * sysdeps/unix/sysv/linux/bits/in.h
4011         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4012
4013 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4014
4015         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4016         (PREPARE_VERSION): Just use assert instead, it will be elided
4017         under [NDEBUG] anyway.
4018
4019 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4020
4021         * sysdeps/unix/sysv/linux/Makefile: Include
4022         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4023         (sysdep_routines): Remove sysctl.
4024         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4025         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4026         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4027         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4028         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4029
4030 2012-05-22  Andreas Jaeger  <aj@suse.de>
4031
4032         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4033         that pseudo_end is just ret and the stack pointer is correct also
4034         for static library in error case.
4035
4036 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4037
4038         [BZ #14122]
4039         * nss/nsswitch.c (defconfig_entries): New variable.
4040         (__nss_database_lookup): Don't leak defconfig entries.
4041         (nss_parse_service_list): Don't leak on error paths.
4042         (free_database_entries): New function.
4043         (free_defconfig): New function.
4044         (free_mem): Move common code to free_database_entries.
4045
4046 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4047
4048         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4049         Add arch_prctl.
4050         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4051
4052         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4053         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4054         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4055         New macro.
4056         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4057         (INTERNAL_SYSCALL_TYPES): Likewise.
4058         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4059         (LOAD_REGS_TYPES_[1-6]): Likewise.
4060         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4061         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4062
4063 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4064
4065         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4066         copysignl for GLIBC_2_0.
4067         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4068         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4069         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4070         logbl for GLIBC_2_0.
4071         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4072         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4073
4074 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4075
4076         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4077         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4078
4079         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4080         Use "neg %eax".
4081
4082         * time/mktime.c: Update copyright years.
4083
4084 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4085
4086         mktime: merge comment-quoting-style change from gnulib
4087         * time/mktime.c: Quote 'like this' in comments.
4088         The GNU coding standards suggest that we no longer quote `like this',
4089         as "`" and "'" are typically rendered asymmetrically nowadays.
4090         The typical gnulib style is to quote 'like this' when quoting
4091         code, and "like this" when quoting English.
4092
4093         * time/mktime.c (compile-command): Add "-I.".
4094
4095         mktime: merge mktime-internal.h change from gnulib
4096         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4097
4098         mktime: merge time_r change from gnulib
4099         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4100
4101         mktime: merge DEBUG change from gnulib
4102         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4103         case system <time.h> has a #define.
4104
4105         mktime: merge <sys/types.h> change from gnulib
4106         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4107         since <time.t> is now guaranteed to define time_t.
4108
4109         mktime: merge HAVE_CONFIG_H change from gnulib
4110         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4111
4112 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4113
4114         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4115         Use "neg %eax".
4116
4117         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4118         __rlim_t cast.
4119         (struct rusage): Use anonymous union to pad each field to
4120         __syscall_slong_t.
4121
4122 2012-05-21  David S. Miller  <davem@davemloft.net>
4123
4124         * Makefules (o-iterator): Remove .s cases.
4125         (compile-command.s): Delete.
4126         (COMPILE.s): Delete.
4127         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4128
4129 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4130
4131         * configure.in (libc_cv_predef_stack_protector): Only consider
4132         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4133         * configure: Regenerated.
4134
4135 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4136
4137         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4138         New macro.  Use R*LP on int and pointer.
4139         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4140         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4141         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4142         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4143
4144         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4145         [__WORDSIZE_TIME64_COMPAT32] instead of
4146         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4147         (struct utmp): Likewise.
4148         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4149         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4150         Renamed to ...
4151         (__WORDSIZE_TIME64_COMPAT32): This.
4152         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4153         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4154         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4155         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4156         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4157         (__WORDSIZE_TIME64_COMPAT32): New macro.
4158
4159 2012-05-21  Andreas Jaeger  <aj@suse.de>
4160
4161         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4162         only if [SHARED]. Add prototype for __wcschr_ia32.
4163
4164 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4165
4166         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4167         of %rbp unmolested in the jmp_buf while mangling the low bits.
4168         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4169         unmolested high bits of %rbp while demangling the low bits.
4170         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4171
4172 2012-05-21  Andreas Jaeger  <aj@suse.de>
4173
4174         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4175         * sunrpc/svc_simple.c: Use it for registerrpc.
4176         * sunrpc/xcrypt.c: Use it for passwd2des.
4177
4178         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4179
4180 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4181
4182         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4183         Don't define if [__SYSCALL_WORDSIZE != 32].
4184         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4185         New macro.
4186
4187 2012-05-21  Bruno Haible  <bruno@clisp.org>
4188             Andreas Jaeger  <aj@suse.de>
4189
4190         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4191         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4192         inptr and inend for must_buffer_ch.
4193         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4194         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4195         * stdio-common/Makefile (tests): Remove bug15.
4196         (bug15-ENV): Remove macro.
4197         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4198         anymore.
4199
4200 2012-05-19  Andreas Jaeger  <aj@suse.de>
4201             Roland McGrath  <roland@hack.frob.com>
4202
4203         * manual/contrib.texi: Completely rewritten. It contains now an
4204         alphabetical list of contributors and their contributions.
4205
4206 2012-05-21  Richard Henderson  <rth@twiddle.net>
4207
4208         * misc/getauxval.c (__getauxval): Use unsigned long int.
4209         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4210         (getauxval): Use unsigned long int.
4211
4212 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4213
4214         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4215
4216 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4217
4218         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4219         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4220         __alignof__ (long double).
4221
4222 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4223
4224         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4225
4226 2012-05-20  Richard Henderson  <rth@twiddle.net>
4227
4228         * misc/getauxval.c: New file.
4229         * misc/sys/auxv.h: New file.
4230         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4231         (routines): Add getauxval.
4232         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4233         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4234         * elf/dl-sysdep.c (_dl_auxv): Remove.
4235         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4236         * elf/dl-support.c (_dl_auxv): New variable.
4237         (_dl_aux_init): Initialize it.
4238         * manual/startup.texi (Auxiliary Vector): New node.
4239         * sysdeps/generic/bits/hwcap.h: New file.
4240         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4241         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4242         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4243         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4244         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4245         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4247         Update.
4248         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4249         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4250         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4251         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4252         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4253         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4254         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4255         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4256
4257 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4258
4259         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4260
4261 2012-05-19  David S. Miller  <davem@davemloft.net>
4262
4263         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4264
4265 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4266
4267         [BZ #14123]
4268         * math/s_ccosh.c: Include <float.h>
4269         (__ccosh): Avoid internal overflow calculating sinh and cosh
4270         values before multiplying by sin and cos values.
4271         * math/s_ccoshf.c: Likewise.
4272         * math/s_ccoshl.c: Likewise.
4273         * math/s_csin.c: Likewise.
4274         * math/s_csinf.c: Likewise.
4275         * math/s_csinl.c: Likewise.
4276         * math/s_csinh.c: Likewise.
4277         * math/s_csinhf.c: Likewise.
4278         * math/s_csinhl.c: Likewise.
4279         * math/libm-test.inc (ccos_test): Add more tests.
4280         (ccosh_test): Likewise.
4281         (csin_test): Likewise.
4282         (csinh_test): Likewise.
4283         * sysdeps/i386/fpu/libm-test-ulps: Update.
4284         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4285
4286 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4287
4288         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4289         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4290
4291         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4292
4293 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4294
4295         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4296         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4297         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4298         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4299         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4300         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4301         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4302         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4303         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4304         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4305         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4306         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4307         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4308         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4309         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4310         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4311         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4312         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4313         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4314         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4315         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4316         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4317         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4318         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4319         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4320         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4321         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4322         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4323         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4324         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4325         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4326
4327 2012-05-18  Andreas Jaeger  <aj@suse.de>
4328
4329         * csu/.gitignore: Delete.
4330
4331 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4332
4333         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4334         (timex): Use __syscall_slong_t.
4335
4336 2012-05-18  Andreas Jaeger  <aj@suse.de>
4337             Carlos O'Donell  <carlos_odonell@mentor.com>
4338
4339         * manual/install.texi (Configuring and compiling): Update
4340         description about files modified in the source directory.
4341         * INSTALL: Regenerated.
4342
4343 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4344
4345         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4346         value.  Use "or" to set return value to -1.
4347         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4348         negate return value.
4349
4350 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4351
4352         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4353         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4354         failure if the compiler has Graphite support disabled.
4355         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4356         Likewise.
4357         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4358         CFLAGS-memmove.c): Likewise.
4359         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4360         Likewise.
4361
4362 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4363
4364         * sysdeps/x86_64/x32/_itoa.h: New file.
4365
4366         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4367         getdents system call only if kernel and user dirents have the
4368         same d_ino and d_off.
4369
4370         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4371         LLONG_MAX != LONG_MAX.
4372         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4373         (_fitoa_word): Likewise.
4374
4375         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4376         years.
4377         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4378         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4379         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4380
4381         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4382         include <bits/wordsize.h>.  Check __x86_64__ instead of
4383         __WORDSIZE.
4384         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4385         if __x86_64__ is defined.  Use anonymous union on fpstate.
4386
4387         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4388         anonymous union.
4389
4390 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4391
4392         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4393         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4394         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4395         Refer to _rtld_local_ro instead of _rtld_global_ro.
4396         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4397         Likewise.
4398         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4399         Likewise.
4400         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4401         Likewise.
4402         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4403         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4404         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4405
4406         * sysdeps/powerpc/powerpc32/dl-machine.c
4407         (__elf_machine_runtime_setup) [PROF]: Don't reference
4408         _dl_prof_resolve.
4409
4410 2012-05-18  Andreas Jaeger  <aj@suse.de>
4411
4412         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4413         function only available for GCCs before 3.4 since GCC 3.4
4414         introduced a builtin.
4415         (lrint): Likewise.
4416         (llrintf): Likewise.
4417         (llrint): Likewise.
4418         (fmaxf): Likewise.
4419         (fmax): Likewise.
4420         (fminf): Likewise.
4421         (fmin): Likewise.
4422         (rint): Likewise.
4423         (rintf): Likewise.
4424         (nearbyint): Likewise.
4425         (nearbyintf): Likewise.
4426         (ceil): Likewise.
4427         (ceilf): Likewise.
4428         (floor): Likewise.
4429         (floorf): Likewise.
4430
4431 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4432
4433         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4434         on both fields and cast pointer to __syscall_ulong_t.
4435
4436         * bits/types.h (__fsword_t): New type.
4437         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4438         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4439         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4440         (__FSWORD_T_TYPE): Likewise.
4441         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4442         (__FSWORD_T_TYPE): Likewise.
4443         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4444         (__FSWORD_T_TYPE): Likewise.
4445         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4446         (__FSWORD_T_TYPE): Likewise.
4447         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4448         __SWORD_TYPE with __fsword_t.
4449         (statfs64): Likewise.
4450
4451 2012-05-17  David S. Miller  <davem@davemloft.net>
4452
4453         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4454
4455 2012-05-17  Andreas Jaeger  <aj@suse.de>
4456
4457         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4458         warning.
4459
4460 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4461
4462         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4463
4464 2012-05-17  Andreas Jaeger  <aj@suse.de>
4465
4466         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4467         when it is used.
4468
4469 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4470
4471         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4472
4473 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4474
4475         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4476         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4477
4478 2012-05-17  Andreas Jaeger  <aj@suse.de>
4479             Carlos O'Donell  <carlos_odonell@mentor.com>
4480
4481         [BZ #14059]
4482         * sysdeps/x86_64/multiarch/init-arch.h
4483         (bit_YMM_Usable): Rename to...
4484         (bit_AVX_Usable): ... this.
4485         (bit_FMA4_Usable): New macro.
4486         (bit_XMM_state): New macro.
4487         (bit_YMM_state): New macro.
4488         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4489         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4490         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4491         (CPUID_OSXSAVE): New macro.
4492         (CPUID_AVX): New macro.
4493         (CPUID_FMA4): New macro.
4494         (index_YMM_Usable): Rename to...
4495         (index_AVX_Usable): ... this.
4496         (HAS_AVX): Use HAS_ARCH_FEATURE.
4497         (HAS_FMA4): Likewise.
4498         (HAS_YMM_USABLE): Remove.
4499         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4500         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4501         are present.
4502         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4503         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4504         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4505         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4506         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4507
4508 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4509
4510         * math/libm-test.c: Support platforms without multiple rounding modes.
4511         * math/bug-nextafter.c: Support platforms without FP exceptions.
4512         * math/bug-nexttoward.c: Likewise.
4513         * math/test-fenv.c: Likewise.
4514         * math/test-misc.c: Likewise.
4515         * stdlib/bug-getcontext.c: Likewise.
4516
4517 2012-05-17  Andreas Jaeger  <aj@suse.de>
4518
4519         * manual/examples/search.c (critter_cmp): Change signature to
4520         avoid warnings.
4521         * manual/string.texi (Collation Functions): Likewise.
4522
4523 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4524
4525         * bits/types.h: Fold copyright years.
4526         * bits/typesizes.h: Likewise.
4527         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4528         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4529         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4530         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4531         * time/time.h: Likewise.
4532
4533 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4534
4535         [BZ #208]
4536         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4537         in instead of returning them.  Return void.
4538         (__libc_mallinfo): Accumulate over all arenas.
4539         (__malloc_stats): Adjust for change in int_mallinfo interface.
4540
4541 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4542
4543         [BZ #10375]
4544         * configure.in (NM): Add AC_CHECK_TOOL for it.
4545         (libc_extra_cflags): New substituted variable.
4546         Check for -fstack-protector being used implicitly.
4547         * configure: Regenerated.
4548         * config.make.in (config-extra-cflags): New variable,
4549         gets @libc_extra_cflags@.
4550         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4551
4552         [BZ #10375]
4553         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4554         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4555         * configure: Regenerated.
4556         * config.make.in (CPPUNDEFS): New substituted variable.
4557         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4558         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4559         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4560
4561 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4562
4563         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4564         (mq_attr): Use __syscall_slong_t.
4565
4566 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4567
4568         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4569         Check __x86_64__ instead of __WORDSIZE.
4570         (_STAT_VER_LINUX): Likewise.
4571         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4572         __syscall_ulong_t and __syscall_slong_t.
4573         (stat64): Likewise.
4574
4575 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4576
4577         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4578
4579 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4580
4581         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4582
4583 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4584
4585         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4586         __syscall_ulong_t.
4587
4588         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4589         include <bits/wordsize.h>.  Check __x86_64__ instead of
4590         __WORDSIZE.
4591         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4592         defined.
4593         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4594
4595         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4596         include <bits/wordsize.h>.  Check __x86_64__ instead of
4597         __WORDSIZE.
4598         (user_regs_struct): Use "__extension__ unsigned long long"
4599         instead of "unsigned long" if __x86_64__ is defined.
4600         (user): Likewise.  Pad after pointer field if __ILP32__ is
4601         defined.
4602
4603 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4604
4605         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4606         versions 5 to 9.
4607         * configure: Regenerated.
4608         * manual/install.texi (texinfo): Increase version requirement to
4609         4.5 or later.
4610         * INSTALL: Regenerated.
4611
4612         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4613
4614 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4615
4616         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4617
4618         * sysdeps/x86_64/x32/ffs.c: New file.
4619
4620         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4621         __syscall_ulong_t.
4622         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4623         defined.  Use __syscall_ulong_t.
4624         (shminfo): Use __syscall_ulong_t.
4625         (shm_info): Likewise.
4626
4627         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4628         __syscall_ulong_t.
4629
4630         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4631         <bits/wordsize.h>.
4632         (msgqnum_t): Use __syscall_ulong_t.
4633         (msglen_t): Likewise.
4634         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4635         __syscall_ulong_t.
4636
4637         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4638         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4639
4640         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4641
4642         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4643         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4644
4645         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4646         __syscall_slong_t.
4647
4648         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4649         include <bits/wordsize.h>.  Check __x86_64__ instead of
4650         __WORDSIZE.
4651
4652         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4653         "unsigned long long int" if __x86_64__ is defined.
4654         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4655
4656         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4657         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4658         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4659
4660         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4661         <stdint.h>.
4662         (GET_PC): Cast to uintptr_t first.
4663         (GET_FRAME): Likewise.
4664         (GET_STACK): Likewise.
4665
4666         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4667         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4668         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4669         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4670         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4671         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4672         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4673         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4674         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4675         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4676         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4677         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4678         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4679         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4680         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4681         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4682         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4683         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4684         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4685         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4686         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4687         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4688         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4689         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4690         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4691         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4692         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4693         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4694         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4695
4696 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4697
4698         * Makerules (+depfiles): Also collect depfiles from .oS in
4699         $(extra-objs).
4700         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4701         .oS, $(libnldbl-routines)).
4702
4703         * Makerules (native-compile-mkdep-flags): Define.
4704         * sunrpc/Makefile (extra-objs): Add $(addprefix
4705         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4706         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4707         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4708         calling $(make-target-directory).
4709
4710 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4711
4712         * bits/types.h (__snseconds_t): Removed.
4713         * time/time.h (struct timespec): Replace __snseconds_t with
4714         __syscall_slong_t.
4715         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4716         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4717         Likewise.
4718         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4719         (__SNSECONDS_T_TYPE): Likewise.
4720         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4721         (__SNSECONDS_T_TYPE): Likewise.
4722         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4723         (__SNSECONDS_T_TYPE): Likewise.
4724
4725 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4726
4727         * sysdeps/mach/hurd/bits/typesizes.h
4728         (__SYSCALL_SLONG_TYPE): New macro.
4729         (__SYSCALL_ULONG_TYPE): Likewise.
4730
4731 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4732
4733         * bits/types.h (__syscall_slong_t): New type.
4734         (__syscall_ulong_t): Likewise.
4735
4736         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4737         (__SYSCALL_ULONG_TYPE): Likewise.
4738         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4739         (__SYSCALL_SLONG_TYPE): Likewise.
4740         (__SYSCALL_ULONG_TYPE): Likewise.
4741         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4742         (__SYSCALL_SLONG_TYPE): Likewise.
4743         (__SYSCALL_ULONG_TYPE): Likewise.
4744         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4745         (__SYSCALL_SLONG_TYPE): Likewise.
4746         (__SYSCALL_ULONG_TYPE): Likewise.
4747
4748 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4749
4750         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4751         Add sigaltstack-offsets.sym.
4752         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4753         <sigaltstack-offsets.h>.
4754         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4755         longjmp_msg pointer.
4756         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4757         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4758         signal stack.
4759         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4760
4761 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4762
4763         * elf/stackguard-macros.h: Remove file.
4764         * sysdeps/generic/stackguard-macros.h: New file.
4765         * sysdeps/i386/stackguard-macros.h: Likewise.
4766         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4767         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4768         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4769         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4770         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4771         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4772         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4773         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4774         <elf/stackguard-macros.h>.
4775
4776         [BZ #14109]
4777         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4778         __aligned__ in attribute.
4779         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4780         (gregset_t): Likewise.
4781
4782 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4783
4784         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4785         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4786         * sysdeps/x86_64/x32/Implies-after: New file.
4787
4788 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4789
4790         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4791         and access return value for _dl_profile_fixup.  Use R10_LP to
4792         load frame size.
4793
4794 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4795
4796         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4797
4798 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4799
4800         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4801         * sysdeps/x86_64/x32/sysdep.h: New file.
4802
4803 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4804
4805         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4806         * sysdeps/x86_64/setjmp.S: Likewise.
4807
4808 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4809
4810         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4811         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4812         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4813         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4814         remove unused global constant.
4815
4816 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4817
4818         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4819         include of <not-cancel.h>.
4820
4821 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4822
4823         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4824
4825 2012-05-15  Jeff Law  <law@redhat.com>
4826             Andreas Jaeger  <aj@suse.de>
4827
4828         [BZ #13594]
4829         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4830         out from...
4831         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4832         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4833         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4834         code changing __hst_map_handle.map.
4835
4836 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4837
4838         * configure.in (sysnames): Look for Implies-before and Implies-after
4839         files.
4840         * configure: Regenerated.
4841
4842 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4843
4844         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4845         8-byte data alignment with LP_SIZE alignment.
4846
4847 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4848
4849         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4850         into R10_LP.
4851
4852 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4853
4854         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4855
4856 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4857
4858         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4859         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4860         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4861         Likewise.
4862         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4863
4864 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4865
4866         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4867         (stackinfo_sub_sp): Likewise.
4868
4869 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4870
4871         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4872         RAX_LP.
4873
4874 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4875
4876         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4877         into R*_LP.
4878
4879 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4880
4881         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4882         sizes into R*_LP.
4883
4884 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4885
4886         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
4887
4888 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4889
4890         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
4891         into R11_LP and load __x86_64_shared_cache_size_half into
4892         R8_LP.
4893
4894 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4895
4896         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
4897         R8_LP.
4898
4899 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4900
4901         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
4902         logb for POWER7.
4903         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
4904         logbf for POWER7.
4905         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
4906         logbl for POWER7.
4907         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
4908         powerpc32/power7/fpu/s_logb.c via #include.
4909         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
4910         powerpc32/power7/fpu/s_logbf.c via #include.
4911         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
4912         powerpc32/power7/fpu/s_logbl.c via #include.
4913
4914 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4915
4916         * README.libm: Remove file.
4917
4918 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4919
4920         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
4921         count for x32.  Use R*_LP and omit operand-size suffix.
4922
4923 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4924
4925         * shlib-versions: Move x86_64-.*-linux.* entries to ...
4926         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
4927         * sysdeps/x86_64/x32/shlib-versions: New file.
4928
4929 2012-05-14  Roland McGrath  <roland@hack.frob.com>
4930
4931         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
4932         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
4933         Use _dl_fatal_printf instead.
4934
4935 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
4936
4937         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
4938         set if not set by the user.  Do not allow for being unset.
4939         * sysdeps/unix/sysv/linux/configure: Regenerated.
4940
4941 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4942
4943         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
4944         the `q' suffix from lea and replace .quad with ASM_ADDR.
4945
4946 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4947
4948         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
4949         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
4950         instead of $17.
4951         (PTR_DEMANGLE): Likewise.
4952
4953 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4954
4955         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
4956         (LP_OP): Likewise.
4957         (ASM_ADDR): Likewise.
4958         (RAX_LP): Likewise.
4959         (RBP_LP): Likewise.
4960         (RBX_LP): Likewise.
4961         (RCX_LP): Likewise.
4962         (RDI_LP): Likewise.
4963         (RSI_LP): Likewise.
4964         (RSP_LP): Likewise.
4965         (R8_LP): Likewise.
4966         (R9_LP): Likewise.
4967         (R10_LP): Likewise.
4968         (R10_LP): Likewise.
4969         (R11_LP): Likewise.
4970         (R12_LP): Likewise.
4971         (R13_LP): Likewise.
4972         (R14_LP): Likewise.
4973         (R15_LP): Likewise.
4974
4975 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
4976
4977         * sysdeps/x86_64/x32/dl-machine.h: New file.
4978
4979 2012-05-14  Andreas Jaeger  <aj@suse.de>
4980
4981         * manual/Makefile (subdir): Remove export of subdir.
4982         (all): Remove target.
4983         (.PHONY): Remove all from list.
4984         (mkinstalldirs): Remove.
4985         (.PHONY): Remove installdirs from list.
4986         ($(inst_infodir)/libc.info): Use make-target-directory.
4987         (installdirs): Remove.
4988         (subdir_%): Remove.
4989         (glibc-targets): Remove.
4990         (lib): Remove.
4991         (stubs): Remove.
4992         ($(objpfx)stubs ../po/manual.pot): Remove.
4993         ($(objpfx)stamp%): Remove.
4994         (make-target-directory): Remove.
4995         (subdir_install): Remove.
4996         (routines): Remove.
4997         (aux): Remove.
4998         (sources): Remove.
4999         (objects): Remove.
5000         (headers): Remove.
5001
5002         [BZ #13750]
5003         * manual/.gitignore: Remove, it's not needed anymore.
5004         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5005         all files in it.
5006         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5007         directory.
5008         (texis): Renamed to $(objpfx)texis.
5009         (texis-path): New, contains path to generated files.
5010         (chapters.%): Use texis-path for complete path, add extra argument
5011         libc-texinfo.sh.
5012         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5013         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5014         (summary,texi, stamp-summary): Use complete path of
5015         files. Generate files in build dir.
5016         (dir-add.texi): Build in build dir.
5017         (libm-err.texi,stamp-libm-err): Likewise.
5018         (version.texi, stamp-version): Likewise.
5019         (.%c.texi): Likewise.
5020         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5021         (mostlyclean): Remove target.
5022         (realclean): Remove target.
5023         (generated): Add new variable with contents from mostlyclean and
5024         realclean, remove entries duplicated in common-mostlyclean, add
5025         stamp-libm-err and stamp-version.
5026         (generated-dirs): Add libc directory.
5027         ($(inst_infodir)/libc.info): Install files from build dir.
5028
5029         * manual/install.texi (Configuring and compiling): Adjust since
5030         the info files are not part of the tar ball anymore.
5031
5032 2012-05-14  Andreas Jaeger  <aj@suse.de>
5033
5034         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5035         variable.
5036
5037 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5038
5039         [BZ #13717]
5040         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5041         to 2.2.0 where earlier.
5042         * sysdeps/unix/sysv/linux/configure: Regenerated.
5043         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5044         Remove conditional code.
5045         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5046         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5047         Remove conditional code.
5048         [!__NR_lchown]: Likewise.
5049         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5050         [__NR_lchown]: Likewise.
5051         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5052         comment referencing __ASSUME_LCHOWN_SYSCALL.
5053         * sysdeps/unix/sysv/linux/i386/sigaction.c
5054         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5055         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5056         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5057         Remove conditional code.
5058         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5059         (__protocol_available): Remove #if 0 code.
5060         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5061         conditional code.
5062         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5063         * sysdeps/unix/sysv/linux/kernel-features.h
5064         (__ASSUME_GETCWD_SYSCALL): Don't define.
5065         (__ASSUME_REALTIME_SIGNALS): Likewise.
5066         (__ASSUME_PREAD_SYSCALL): Likewise.
5067         (__ASSUME_PWRITE_SYSCALL): Likewise.
5068         (__ASSUME_POLL_SYSCALL): Likewise.
5069         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5070         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5071         non-SPARC.
5072         (__ASSUME_SIOCGIFNAME): Don't define.
5073         (__ASSUME_MSG_NOSIGNAL): Likewise.
5074         (__ASSUME_SENDFILE): Define unconditionally.
5075         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5076         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5077         conditional code.
5078         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5079         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5080         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5081         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5082         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5083         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5084         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5085         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5086         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5087         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5089         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5090         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5091         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5092         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5093         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5094         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5095         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5096         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5097         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5098         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5099         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5101         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5102         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5104         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5105         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5107         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5108         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5109         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5110         Remove conditional code.
5111         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5112         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5113         Remove conditional code.
5114         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5115         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5116         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5117         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5118         Remove conditional code.
5119         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5120         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5121         Remove conditional code.
5122         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5123         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5124         Remove conditional code.
5125         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5126         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5127         Remove conditional code.
5128         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5129         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5130         Remove conditional code.
5131         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5132         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5133         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5134         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5135         * sysdeps/unix/sysv/linux/sigaction.c
5136         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5137         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5138         * sysdeps/unix/sysv/linux/sigpending.c
5139         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5140         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5141         * sysdeps/unix/sysv/linux/sigprocmask.c
5142         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5143         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5144         * sysdeps/unix/sysv/linux/sigsuspend.c
5145         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5146         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5147         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5148         (__libc_missing_rt_sigs): Remove.
5149         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5150         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5151         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5152         Remove conditional code.
5153         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5154         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5155         return 1.
5156         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5157         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5158         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5159         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5160
5161 2012-05-14  Andreas Jaeger  <aj@suse.de>
5162
5163         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5164         it's not used in glibc.
5165         (__coshm1): Likewise.
5166         (__acosh1p): Likewise.
5167         (__sgn): Likewise.
5168
5169         * manual/string.texi (Copying and Concatenation): Add missing
5170         variable in concat example.
5171         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5172
5173 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5174
5175         [BZ #14103]
5176         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5177         __builtin_clzl with __builtin_clzll.
5178
5179 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5180
5181         [BZ #14104]
5182         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5183         libc_freeres_ptr.
5184
5185 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5186
5187         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5188         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5189         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5190         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5191
5192 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5193
5194         * NEWS: Update ia64 info.
5195
5196 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5197
5198         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5199         used as bcopy.
5200
5201 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5202
5203         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5204         * sysdeps/unix/syscalls.list (dup3): Likewise.
5205         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5206         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5207
5208 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5209
5210         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5211         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5212
5213 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5214
5215         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5216         thread pointer.
5217         (TLS_IE): Use mov/add instead of movq/addq to load thread
5218         pointer.
5219         (TLS_GD_PREFIX): New.
5220         (TLS_GD): Use it.
5221
5222 2012-05-11  David S. Miller  <davem@davemloft.net>
5223
5224         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5225         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5226         (_FPU_SETCW): Likewise.
5227
5228 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5229
5230         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5231         is 32-byte aligned.
5232
5233 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5234
5235         [BZ #11837]
5236         * iconvdata/gb18030.c: Update tables.
5237         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5238         characters specially.
5239         (BODY for TO_LOOP): Add encoding of missing ranges.
5240
5241 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5242
5243         [BZ #13673]
5244         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5245         * sysdeps/mach/hurd/dup3.c: Likewise.
5246         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5247         * sysdeps/powerpc/memmove.c:: Likewise.
5248
5249 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5250
5251         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5252         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5253
5254 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5255
5256         * elf/elf.h (R_X86_64_RELATIVE64): New.
5257         (R_X86_64_NUM): Updated.
5258         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5259         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5260         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5261         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5262         tst-quad1pie tst-quad2pie
5263         (modules-names): Add tst-quadmod1 tst-quadmod2.
5264         ($(objpfx)tst-quad1): New dependency.
5265         ($(objpfx)tst-quad2): Likewise.
5266         ($(objpfx)tst-quad1pie): Likewise.
5267         ($(objpfx)tst-quad2pie): Likewise.
5268         * sysdeps/x86_64/tst-quad1.c: New file.
5269         * sysdeps/x86_64/tst-quad1pie.c: New file.
5270         * sysdeps/x86_64/tst-quad2.c: Likewise.
5271         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5272         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5273         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5274         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5275         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5276
5277 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5278
5279         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5280         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5281         * streams/stropts.h (t_scalar_t): Define type.
5282
5283         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5284         (_PATH_PRESERVE): Set to "/var/lib".
5285         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5286
5287         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5288         instead of int.
5289
5290         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5291         if __dir_mkfile succeeded.
5292
5293         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5294         checking for _hurd_dtablesize.  Unlock it right after having
5295         finished _hurd_dtable allocation.
5296
5297 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5298
5299         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5300         * sysdeps/mach/hurd/configure: Regenerated.
5301         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5302         special-casing to...
5303         * sysdeps/gnu/configure.in: ... this new file.
5304         * sysdeps/unix/sysv/linux/configure: Regenerated.
5305         * sysdeps/gnu/configure: New generated file.
5306
5307         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5308         for Linux: use nsec instead of usec, as well as:
5309         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5310         members of type struct timespec.
5311         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5312         New macros.
5313         (struct stat64): Likewise.
5314         (_STATBUF_ST_NSEC): New macro.
5315         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5316
5317         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5318         __strtoul_internal rather than strtoul.
5319
5320 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5321
5322         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5323         and reject them.
5324
5325 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5326
5327         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5328         which preserves existing values.
5329         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5330
5331 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5332
5333         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5334         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5335         greater than FD_SETSIZE.
5336
5337 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5338
5339         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5340         allocated, call __vm_protect to finish enabling the existing space, and
5341         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5342         allocate the remainder.
5343
5344 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5345
5346         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5347         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5348
5349 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5350
5351         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5352         sysdeps/mach/hurd/readlink.c.
5353
5354         * posix/tst-sysconf.c (posix_options): Only use
5355         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5356         _POSIX_SYNCHRONIZED_IO when they are defined
5357         * sysdeps/mach/hurd/bits/posix_opt.h:
5358         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5359         (_XOPEN_REALTIME): Undefine macro.
5360         (_XOPEN_REALTIME_THREADS): Undefine macro.
5361         (_XOPEN_SHM): Undefine macro.
5362         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5363         macro to -1.
5364         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5365         macro to -1.
5366         (_POSIX_ASYNC_IO): Undefine macro.
5367         (_POSIX_PRIORITIZED_IO): Undefine macro.
5368         (_POSIX_SPIN_LOCKS): Define macro to -1.
5369
5370         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5371         SA_NODEFER, SA_RESETHAND.
5372         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5373         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5374         F_DUPFD_CLOEXEC.
5375
5376 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5377
5378         * elf/Makefile (pldd-modules): Define unconditionally.
5379
5380 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5381
5382         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5383
5384 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5385
5386         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5387         Return ENOENT when name is empty.
5388         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5389
5390 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5391
5392         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5393
5394         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5395
5396 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5397
5398         Fix mlock in all cases except non-readable pages.
5399         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5400         instead of VM_PROT_ALL as parameter to __vm_wire function.
5401
5402         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5403         (__mkdir): When path is `/', just fail with EEXIST.
5404         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5405
5406 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5407
5408         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5409         <sys/uio.h> (for writev).
5410         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5411         and <sys/param.h> (for MIN).
5412
5413 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5414
5415         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5416         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5417         if interrupted.
5418
5419 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5420
5421         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5422         Depend on against $(link-rpcuserlibs).
5423
5424 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5425
5426         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5427         (__libc_stack_end): Do not use attribute_relro.
5428         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5429         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5430         to libthread-provided value.
5431         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5432         attribute_relro.
5433
5434 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5435
5436         [BZ #3748]
5437         * bits/libc-lock.h (__libc_once_get): New macro.
5438         * sysdeps/mach/bits/libc-lock.h: Likewise.
5439         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5440         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5441         instead of using implementation details.
5442
5443         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5444         * libio/freopen.c: Likewise.
5445         * libio/freopen64.c: Likewise.
5446         * misc/syslog.c: Likewise.
5447         * nscd/connections.c: Likewise.
5448         * nscd/netgroupcache.c: Likewise.
5449         * sysdeps/posix/getcwd.c: Likewise.
5450
5451 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5452
5453         * math/w_ilogbf.c: Add #include <limits.h>.
5454
5455 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5456
5457         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5458         path instead of returning without unlocking.
5459
5460         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5461         immediate-write ioctls.
5462         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5463
5464 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5465
5466         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5467         __builtin_frame_address instead of making assumptions about the
5468         location of the return address relative to DATA.  Force early load of
5469         the return address.
5470         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5471         __builtin_frame_address.
5472
5473         dup3 for GNU Hurd.
5474         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5475         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5476         implement dup3 and do some further code clean-ups.
5477         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5478         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5479
5480 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5481
5482         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5483
5484         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5485         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5486         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5487         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5488         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5489         d->port.lock.
5490
5491         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5492         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5493         when handler == SIG_ERR, not when handler != SIG_ERR.
5494
5495 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5496
5497         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5498         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5499         definitions.
5500
5501         accept4 for GNU Hurd.
5502         * include/sys/socket.h (__libc_accept4): New prototype.
5503         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5504         to implement __libc_accept4.
5505         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5506         __libc_accept4.
5507         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5508
5509         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5510         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5511         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5512         signal-defines.sym.
5513
5514 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5515
5516         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5517
5518 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5519
5520         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5521         assertion on O_CLOEXEC flag.
5522         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5523         * hurd/intern-fd.c: Likewise.
5524         * hurd/port2fd.c: Likewise.
5525
5526 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5527
5528         [BZ #3906]
5529         * bits/in.h (IPV6_PKTINFO): Define new macro.
5530         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5531
5532 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5533
5534         [BZ #13954]
5535         [BZ #13955]
5536         [BZ #13956]
5537         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5538         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5539         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5540         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5541         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5542         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5543         * math/libm-test.inc (logb_test) : Additional logb tests.
5544
5545 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5546             Andreas Jaeger  <aj@suse.de>
5547
5548         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5549         * configure: Regenerated.
5550         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5551         * config.make.in (link-obsolete-rpc): New substituted variable.
5552         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5553         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5554         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5555         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5556         so that libc.a contains the symbols.
5557         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5558         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5559         * sunrpc/auth_none.c: Likewise.
5560         * sunrpc/auth_unix.c: Likewise.
5561         * sunrpc/authdes_prot.c: Likewise.
5562         * sunrpc/authuxprot.c: Likewise.
5563         * sunrpc/clnt_gen.c: Likewise.
5564         * sunrpc/clnt_perr.c: Likewise.
5565         * sunrpc/clnt_raw.c: Likewise.
5566         * sunrpc/clnt_simp.c: Likewise.
5567         * sunrpc/clnt_tcp.c: Likewise.
5568         * sunrpc/clnt_udp.c: Likewise.
5569         * sunrpc/clnt_unix.c: Likewise.
5570         * sunrpc/des_crypt.c: Likewise.
5571         * sunrpc/des_soft.c: Likewise.
5572         * sunrpc/get_myaddr.c: Likewise.
5573         * sunrpc/key_call.c: Likewise.
5574         * sunrpc/key_prot.c: Likewise.
5575         * sunrpc/netname.c: Likewise.
5576         * sunrpc/pm_getmaps.c: Likewise.
5577         * sunrpc/pm_getport.c: Likewise.
5578         * sunrpc/pmap_clnt.c: Likewise.
5579         * sunrpc/pmap_prot.c: Likewise.
5580         * sunrpc/pmap_prot2.c: Likewise.
5581         * sunrpc/pmap_rmt.c: Likewise.
5582         * sunrpc/publickey.c: Likewise.
5583         * sunrpc/rpc_cmsg.c: Likewise.
5584         * sunrpc/rpc_common.c: Likewise.
5585         * sunrpc/rpc_dtable.c: Likewise.
5586         * sunrpc/rpc_prot.c: Likewise.
5587         * sunrpc/rpc_thread.c: Likewise.
5588         * sunrpc/rtime.c: Likewise.
5589         * sunrpc/svc.c: Likewise.
5590         * sunrpc/svc_auth.c: Likewise.
5591         * sunrpc/svc_raw.c: Likewise.
5592         * sunrpc/svc_run.c: Likewise.
5593         * sunrpc/svc_tcp.c: Likewise.
5594         * sunrpc/svc_udp.c: Likewise.
5595         * sunrpc/svc_unix.c: Likewise.
5596         * sunrpc/svcauth_des.c: Likewise.
5597         * sunrpc/xcrypt.c: Likewise.
5598         * sunrpc/xdr.c: Likewise.
5599         * sunrpc/xdr_array.c: Likewise.
5600         * sunrpc/xdr_float.c: Likewise.
5601         * sunrpc/xdr_intXX_t.c: Likewise.
5602         * sunrpc/xdr_mem.c: Likewise.
5603         * sunrpc/xdr_rec.c: Likewise.
5604         * sunrpc/xdr_ref.c: Likewise.
5605         * sunrpc/xdr_sizeof.c: Likewise.
5606         * sunrpc/xdr_stdio.c: Likewise.
5607
5608 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5609
5610         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5611         change.  Update copyright years.
5612
5613 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5614
5615         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5616
5617 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5618             Joseph Myers  <joseph@codesourcery.com>
5619             Paul Pluzhnikov  <ppluzhnikov@google.com>
5620
5621         [BZ #14012]
5622         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5623         requiring rpcgen.
5624         [cross-compiling] (extra-libs): Likewise.
5625         [cross-compiling] (extra-libs-others): Likewise.
5626         [cross-compiling] (librpcsvc-routines): Likewise.
5627         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5628         [cross-compiling] (omit-deps): Likewise.
5629         (sunrpc-CPPFLAGS): New variable.
5630         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5631         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5632         (cross-rpcgen-objs): New variable.
5633         (extra-objs): Append $(cross-rpcgen-objs).
5634         ($(cross-rpcgen-objs)): New rule.
5635         ($(objpfx)cross-rpcgen): Likewise.
5636         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5637         comment.
5638         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5639         ($(objpfx)x%.stmp): Likewise.
5640         * sunrpc/proto.h [IS_IN_build] (_): Define.
5641         [IS_IN_build] (_libc_intl_domainname): Likewise.
5642
5643 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5644
5645         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5646         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5647         and R_X86_64_TPOFF64.
5648
5649 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5650
5651         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5652         sysdeps/unix/sysv/syscalls.list.
5653         (stime): Likewise.
5654         (utime): Likewise.
5655         * sysdeps/unix/sysv/syscalls.list: Remove file.
5656
5657 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5658
5659         [BZ #3440]
5660         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5661         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5662         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5663         (__LC_IDENTIFICATION): Make these macros useful in #if
5664         expressions, as required by C99.
5665
5666 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5667
5668         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5669         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5670         after this.
5671
5672 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5673
5674         * stdlib/longlong.h: Updated from GCC.
5675
5676 2012-05-09  Andreas Jaeger  <aj@suse.de>
5677
5678         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5679         default is first entry.
5680         (run_mode): Set type.
5681         (main): Remove informal message about syslog.
5682         (options): Fix typo.
5683
5684         [BZ #14053]
5685         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5686         to asm.
5687         (lrint): Likewise.
5688         (llrintf): Likewise.
5689         (llrint): Likewise.
5690         (rint): Likewise.
5691         (rintf): Likewise.
5692         (nearbyint): Likewise.
5693         (nearbyintf): Likewise.
5694
5695 2012-05-09  Andreas Jaeger  <aj@suse.de>
5696             Pedro Alves  <palves@redhat.com>
5697
5698         * nscd/nscd.c (run_mode): Use enum.
5699         (main): Cleanup coding style issue.
5700
5701 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5702             Andreas Jaeger  <aj@suse.de>
5703
5704         * nscd/nscd.c (go_background): Replaced with...
5705         (run_mode): ... this.
5706         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5707         (options): Add -F --foreground.
5708         (main): Implement it.
5709         (parse_opt): Parse it.
5710
5711 2012-05-09  Andreas Jaeger  <aj@suse.de>
5712
5713         [BZ #14083]
5714         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5715         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5716         -Wconversion warning.
5717         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5718         Likewise.
5719
5720 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5721
5722         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5723         == 0.
5724         (LC_ALL): Use macro-int-constant.
5725         (LC_COLLATE): Likewise.
5726         (LC_CTYPE): Likewise.
5727         (LC_MESSAGES): Likewise.
5728         (LC_MONETARY): Likewise.
5729         (LC_NUMERIC): Likewise.
5730         (LC_TIME): Likewise.
5731         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5732         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5733         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5734         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5735         Specify type.
5736         [C99-based standards] (float_t): Expect type.
5737         [C99-based standards] (double_t): Expect type.
5738         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5739         type.
5740         [C99-based standards] (HUGE_VALL): Likewise.
5741         [C99-based standards] (INFINITY): Likewise.
5742         [C99-based standards] (NAN): Likewise.
5743         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5744         [C99-based standards] (FP_NAN): Likewise.
5745         [C99-based standards] (FP_NORMAL): Likewise.
5746         [C99-based standards] (FP_SUBNORMAL): Likewise.
5747         [C99-based standards] (FP_ZERO): Likewise.
5748         [C99-based standards] (FP_FAST_FMA): Use
5749         optional-macro-int-constant.  Specify type.  Require == 1.
5750         [C99-based standards] (FP_FAST_FMAF): Likewise.
5751         [C99-based standards] (FP_FAST_FMAL): Likewise.
5752         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5753         [C99-based standards] (FP_ILOGBNAN): Likewise.
5754         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5755         Specify type.
5756         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5757         [C99-based standards] (math_errhandling): Specify type.
5758         [ISO99 || ISO11] (signgam): Do not allow.
5759         [non-C99-based standards] (copysignf): Do not allow.
5760         [non-C99-based standards] (exp2f): Likewise.
5761         [non-C99-based standards] (log2f): Likewise.
5762         [non-C99-based standards] (modff): Allow.
5763         [non-C99-based standards] (erff): Do not allow.
5764         [non-C99-based standards] (erfcf): Likewise.
5765         [non-C99-based standards] (gammaf): Likewise.
5766         [non-C99-based standards] (hypotf): Likewise.
5767         [non-C99-based standards] (j0f): Likewise.
5768         [non-C99-based standards] (j1f): Likewise.
5769         [non-C99-based standards] (jnf): Likewise.
5770         [non-C99-based standards] (lgammaf): Likewise.
5771         [non-C99-based standards] (tgammaf): Likewise.
5772         [non-C99-based standards] (y0f): Likewise.
5773         [non-C99-based standards] (y1f): Likewise.
5774         [non-C99-based standards] (ynf): Likewise.
5775         [non-C99-based standards] (isnanf): Likewise.
5776         [non-C99-based standards] (acoshf): Likewise.
5777         [non-C99-based standards] (asinhf): Likewise.
5778         [non-C99-based standards] (atanhf): Likewise.
5779         [non-C99-based standards] (cbrtf): Likewise.
5780         [non-C99-based standards] (expm1f): Likewise.
5781         [non-C99-based standards] (ilogbf): Likewise.
5782         [non-C99-based standards] (log1pf): Likewise.
5783         [non-C99-based standards] (logbf): Likewise.
5784         [non-C99-based standards] (nextafterf): Likewise.
5785         [non-C99-based standards] (remainderf): Likewise.
5786         [non-C99-based standards] (rintf): Likewise.
5787         [non-C99-based standards] (scalbf): Likewise.
5788         [non-C99-based standards] (copysignl): Likewise.
5789         [non-C99-based standards] (exp2l): Likewise.
5790         [non-C99-based standards] (log2l): Likewise.
5791         [non-C99-based standards] (modfl): Allow.
5792         [non-C99-based standards] (erfl): Do not allow.
5793         [non-C99-based standards] (erfcl): Likewise.
5794         [non-C99-based standards] (gammal): Likewise.
5795         [non-C99-based standards] (hypotl): Likewise.
5796         [non-C99-based standards] (j0l): Likewise.
5797         [non-C99-based standards] (j1l): Likewise.
5798         [non-C99-based standards] (jnl): Likewise.
5799         [non-C99-based standards] (lgammal): Likewise.
5800         [non-C99-based standards] (tgammal): Likewise.
5801         [non-C99-based standards] (y0l): Likewise.
5802         [non-C99-based standards] (y1l): Likewise.
5803         [non-C99-based standards] (ynl): Likewise.
5804         [non-C99-based standards] (isnanl): Likewise.
5805         [non-C99-based standards] (acoshl): Likewise.
5806         [non-C99-based standards] (asinhl): Likewise.
5807         [non-C99-based standards] (atanhl): Likewise.
5808         [non-C99-based standards] (cbrtl): Likewise.
5809         [non-C99-based standards] (expm1l): Likewise.
5810         [non-C99-based standards] (ilogbl): Likewise.
5811         [non-C99-based standards] (log1pl): Likewise.
5812         [non-C99-based standards] (logbl): Likewise.
5813         [non-C99-based standards] (nextafterl): Likewise.
5814         [non-C99-based standards] (remainderl): Likewise.
5815         [non-C99-based standards] (rintl): Likewise.
5816         [non-C99-based standards] (scalbl): Likewise.
5817         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5818         [non-C99-based standards] (FP_*): Do not allow.
5819         [C99-based standards] (FP_*): Change to
5820         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5821         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5822         allow.
5823         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5824         (SIG_ERR): Likewise.
5825         [X/Open-based standards] (SIG_HOLD): Likewise.
5826         (SIG_IGN): Likewise.
5827         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5828         positive value.
5829         (SIGFPE): Likewise.
5830         (SIGILL): Likewise.
5831         (SIGINT): Likewise.
5832         (SIGSEGV): Likewise.
5833         (SIGTER): Likewise.
5834         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5835         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5836         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5837         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5838         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5839         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5840         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5841         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5842         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5843         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5844         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5845         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5846         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5847         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5848         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5849         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5850         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5851         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5852         [X/Open-based standards] (SIGTRAP): Likewise.
5853         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5854         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5855         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5856         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5857         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5858         allow.
5859
5860 2012-05-08  Ian Wienand  <ianw@vmware.com>
5861
5862         [BZ #14080]
5863         * time/tzset.c (__tzset_parse_tz): Update default rules for
5864         daylight time changes in the Energy Policy Act of 2005.
5865
5866 2012-05-09  Andreas Jaeger  <aj@suse.de>
5867
5868         [BZ #13983]
5869         * elf/ldconfig.c (parse_conf): Change string to make clear that
5870         ldconfig only issued a warning if ld.so.conf does not exist.
5871
5872 2012-05-08  David S. Miller  <davem@davemloft.net>
5873
5874         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5875         movxtod instead of popping the value on the stack.
5876
5877         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5878
5879 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5880
5881         * config.h.in: Add HAVE_ARM_PCS_VFP.
5882
5883 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
5884
5885         [BZ #13979]
5886         * include/features.h: Warn if user requests __FORTIFY_SOURCE
5887         checking but the checks are disabled for any reason.
5888
5889 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5890
5891         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
5892         and ELF64_R_TYPE with ELFW(R_TYPE).
5893
5894 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
5895
5896         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
5897         (ulimit): Likewise.
5898
5899         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
5900         (settimeofday): Likewise.
5901
5902 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
5903
5904         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
5905         a struct th_u2 inside the union, and move tu_block/tu_code into
5906         a new th_u3 union of tu_block/tu_code inside of that.  Move
5907         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
5908         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
5909         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
5910         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
5911         (th_stuff): Change to th_u1.tu_stuff.
5912         (th_data): Define.
5913         (th_msg): Change to th_u1.th_u2.tu_data.
5914
5915 2012-05-07  David S. Miller  <davem@davemloft.net>
5916
5917         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5918
5919         [BZ #14074]
5920         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
5921         (SETUP_PIC_REG): Use it.
5922         (SETUP_PIC_REG_LEAF): Use it.
5923
5924 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
5925
5926         [BZ #13885]
5927         [BZ #13923]
5928         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5929         USE_AS_EXPM1L.
5930         (EXPL_FINITE): Likewise.
5931         (FLDLOG): Likewise.
5932         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5933         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5934         e_expl.S.
5935         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5936         USE_AS_EXPM1L.
5937         (EXPL_FINITE): Likewise.
5938         (FLDLOG): Likewise.
5939         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
5940         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
5941         e_expl.S.
5942         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
5943         test of -max_value argument for long double.
5944         * sysdeps/i386/fpu/libm-test-ulps: Update.
5945         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5946
5947 2012-05-06  David S. Miller  <davem@davemloft.net>
5948
5949         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
5950         quad soft-float symbols whose references which are compiler
5951         generated.
5952         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
5953
5954 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
5955
5956         [BZ #13884]
5957         [BZ #13914]
5958         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5959         USE_AS_EXP10L.
5960         (EXPL_FINITE): Likewise.
5961         (FLDLOG): Likewise.
5962         (c0): Likewise.
5963         (c1): Likewise.
5964         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5965         Adjust comments for base varying.
5966         (__expl_finite): Change alias to EXPL_FINITE.
5967         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
5968         e_expl.S.
5969         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
5970         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
5971         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
5972         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
5973         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
5974         USE_AS_EXP10L.
5975         (EXPL_FINITE): Likewise.
5976         (FLDLOG): Likewise.
5977         (c0): Likewise.
5978         (c1): Likewise.
5979         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
5980         Adjust comments for base varying.
5981         (__expl_finite): Change alias to EXPL_FINITE.
5982         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
5983         tests for bugs.
5984         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5985
5986         [BZ #14064]
5987         * math/libm-test.inc (check_float_internal): Correct ulp
5988         calculation for subnormal expected results.
5989
5990 2012-05-06  Andreas Jaeger  <aj@suse.de>
5991
5992         * Makeconfig (+math-flags): New, set to -frounding-math.
5993         (+cflags): Add +math-flags so that all of glibc gets compiled with
5994         it.
5995
5996         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
5997
5998 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
5999
6000         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6001         Disable one test.
6002
6003         [BZ #13787]
6004         [BZ #13922]
6005         [BZ #14036]
6006         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6007         (__ieee754_expl): Allow for and saturate large arguments.
6008         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6009         (u_threshold): Likewise.
6010         (__exp): Call __ieee754_exp before checking for overflow and
6011         underflow.
6012         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6013         (u_threshold): Likewise.
6014         (__expf): Call __ieee754_expf before checking for overflow and
6015         underflow.
6016         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6017         (u_threshold): Likewise.
6018         (__expl): Call __ieee754_expl before checking for overflow and
6019         underflow.
6020         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6021         (__ieee754_expl): Allow for and saturate large arguments.
6022         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6023         missing overflow exception on overflow.
6024         (expm1_test): Do not allow missing overflow exception on overflow.
6025
6026         * sysdeps/i386/fpu/e_expl.c: Move to ...
6027         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6028         rather than using inline asm.
6029         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6030         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6031         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6032
6033         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6034         (nice): Likewise.
6035         (poll): Likewise.
6036         (signal): Likewise.
6037         (time): Likewise.
6038         (times): Likewise.
6039
6040 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6041
6042         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6043         sysdeps/unix/common/syscalls.list.
6044         (fchmod): Likewise.
6045         (fchown): Likewise.
6046         (ftruncate): Likewise.
6047         (getrusage): Likewise.
6048         (gettimeofday): Likewise.
6049         (setpgid): Likewise.
6050         (setregid): Likewise.
6051         (setreuid): Likewise.
6052         (sigaction): Likewise.
6053         (truncate): Likewise.
6054         (vhangup): Likewise.
6055         * sysdeps/unix/common/syscalls.list: Remove file.
6056         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6057         * sysdeps/unix/sysv/linux/Implies: Likewise.
6058
6059 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6060
6061         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6062         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6063         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6064         Moved to ...
6065         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6066         Here.
6067         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6068         to ...
6069         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6070         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6071         to ...
6072         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6073         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6074         to ...
6075         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6076         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6077         to ...
6078         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6079         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6080         to ...
6081         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6082         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6083         to ...
6084         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6085         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6086         to ...
6087         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6088         Here.
6089         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6090         to ...
6091         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6092         Here.
6093         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6094         to ...
6095         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6096         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6097         Moved to ...
6098         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6099         Here.
6100         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6101         to ...
6102         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6103
6104 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6105
6106         * sysdeps/unix/common/bits/dirent.h: Remove file.
6107         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6108
6109         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6110         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6111         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6112         * sysdeps/unix/bsd/isatty.c: Likewise.
6113         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6114         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6115         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6116
6117 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6118
6119         [BZ #13563]
6120         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6121         long double comparison inaccuracies.
6122         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6123         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6124
6125 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6126
6127         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6128         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6129
6130 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6131
6132         [BZ #14049]
6133         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6134         nonzero digits before rounding a hex value.
6135         * stdlib/tst-strtod.c (tests): Add another test.
6136
6137 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6138
6139         * sysdeps/s390/fpu/libm-test-ulps: Update.
6140
6141 2012-05-03  Andreas Jaeger  <aj@suse.de>
6142
6143         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6144         does not get optimized out.
6145         (malloc_opt_barrier): New.
6146
6147 2012-05-03  Andreas Jaeger  <aj@suse.de>
6148             Roland McGrath  <roland@hack.frob.com>
6149
6150         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6151         intermediate file deletion.
6152         (generated): Add .symlist files.
6153
6154 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6155
6156         [BZ #13775]
6157         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6158         Redirect under this condition.
6159         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6160         [__USE_GNU] (__dprintf_chk): Not under this condition.
6161         [__USE_GNU] (__vdprintf_chk): Likewise.
6162         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6163         under this condition.
6164         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6165         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6166         [__USE_XOPEN2K8] (vdprintf): Likewise.
6167         [__USE_GNU] (__dprintf_chk): Not under this condition.
6168         [__USE_GNU] (__vdprintf_chk): Likewise.
6169         [__USE_GNU] (dprintf): Likewise.
6170         [__USE_GNU] (vdprintf): Likewise.
6171
6172 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6173
6174         * elf/Makefile (common-generated): Set this instead of generated for
6175         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6176         $(all-built-dso)-derived lists.
6177
6178 2012-05-03  Andreas Jaeger  <aj@suse.de>
6179
6180         * sysdeps/i386/fpu/libm-test-ulps: Update.
6181
6182         * FAQ: Removed.
6183         * FAQ.in: Likewise.
6184         * scripts/gen-FAQ.pl: Likewise.
6185         * manual/install.texi (Installation): Point to online location of
6186         FAQ.
6187         * Makefile (files-for-dist): Remove FAQ.
6188         (FAQ): Remove.
6189
6190 2012-05-02  Allan McRae  <allan@archlinux.org>
6191
6192         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6193         (LDFLAGS-reldepmod5.so): Likewise.
6194         (LDFLAGS-reldep6mod1.so): Likewise.
6195         (LDFLAGS-reldep6mod4.so): Likewise.
6196         (LDFLAGS-reldep8mod3.so): Likewise.
6197         (LDFLAGS-unload4mod1.so): Likewise.
6198         (LDFLAGS-unload4mod2.so): Likewise.
6199         (LDFLAGS-tst-initorder): Likewise.
6200         (LDFLAGS-tst-initordera2.so): Likewise.
6201         (LDFLAGS-tst-initordera3.so): Likewise.
6202         (LDFLAGS-tst-initordera4.so): Likewise.
6203         (LDFLAGS-tst-initorderb2.so): Likewise.
6204         (LDFLAGS-noload): Likewise.
6205         (LDFLAGS-next): Likewise.
6206         (LDFLAGS-order2mod1.so): Likewise.
6207         (LDFLAGS-order2mod2.so): Likewise.
6208         (LDFLAGS-tst-initorder2): Likewise.
6209         (LDFLAGS-tst-initorder2a.so): Likewise.
6210         (LDFLAGS-tst-initorder2b.so): Likewise.
6211         (LDFLAGS-tst-initorder2c.so): Likewise.
6212         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6213
6214 2012-05-02  David S. Miller  <davem@davemloft.net>
6215
6216         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6217
6218 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6219
6220         [BZ #14055]
6221         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6222
6223 2012-05-02  Andreas Jaeger  <aj@suse.de>
6224
6225         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6226         since we manipulate rounding mode.
6227         (CPPFLAGS-test-idouble.c): Likewise.
6228         (CPPFLAGS-test-ifloat.c): Likewise.
6229         (CFLAGS-test-ldouble.c): Likewise.
6230         (CFLAGS-test-double.c): Likewise.
6231         (CFLAGS-test-float.c): Likewise.
6232         (CFLAGS-test-misc.c): Likewise.
6233         (CFLAGS-test-test-fenv.c): Likewise.
6234
6235 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6236
6237         [BZ #2550]
6238         [BZ #2570]
6239         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6240         comparisons to determine direction to adjust input.
6241
6242 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6243
6244         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6245         output to the target.
6246
6247         * scripts/localplt.awk: New file.
6248         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6249         (check-localplt-CFLAGS): Variable removed.
6250         ($(all-built-dso:=.jmprel)): New static pattern rule.
6251         (generated): Add those targets.
6252         (localplt-built-dso): New variable.
6253         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6254
6255         * elf/check-localplt.c: File removed.
6256
6257         * scripts/check-execstack.awk: New file.
6258         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6259         (check-execstack-CFLAGS): Variable removed.
6260         ($(objpfx)check-execstack.h): Target removed.
6261         ($(objpfx)execstack-default): New target.
6262         (generated): Add that instead of check-execstack.h.
6263         ($(all-built-dso:=.phdr)): New static pattern rule.
6264         (generated): Add those targets.
6265         * elf/check-execstack.c: File removed.
6266
6267         * scripts/check-textrel.awk: New file.
6268         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6269         (check-textrel-CFLAGS): Variable removed.
6270         (all-built-dso): Use := to define.o
6271         ($(all-built-dso:=.dyn)): New static pattern rule.
6272         (generated): Add those targets.
6273         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6274         * config.make.in (READELF): New substituted variable.
6275         * elf/check-textrel.c: File removed.
6276
6277 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6278
6279         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6280         allow.
6281         * conform/data/ctype.h-data [C99-based standards] (isblank):
6282         Expect function.
6283         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6284         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6285         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6286         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6287         Specify type.  Require positive value.
6288         (EILSEQ): Likewise.
6289         (ERANGE): Likewise.
6290         [ISO || POSIX] (EILSEQ): Do not expect.
6291         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6292         Specify type.  Require positive value.
6293         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6294         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6295         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6296         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6297         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6298         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6299         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6300         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6301         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6302         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6303         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6304         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6305         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6306         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6307         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6308         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6309         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6310         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6311         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6312         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6313         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6314         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6315         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6316         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6317         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6318         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6319         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6320         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6321         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6322         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6323         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6324         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6325         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6326         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6327         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6328         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6329         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6330         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6331         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6332         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6333         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6334         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6335         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6336         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6337         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6338         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6339         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6340         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6341         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6342         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6343         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6344         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6345         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6346         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6347         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6348         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6349         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6350         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6351         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6352         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6353         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6354         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6355         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6356         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6357         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6358         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6359         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6360         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6361         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6362         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6363         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6364         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6365         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6366         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6367         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6368         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6369         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6370         Require >= 2.
6371         (FLT_ROUNDS): Expect as macro, not constant.
6372         (FLT_MANT_DIG): Use macro-int-constant.
6373         (DBL_MANT_DIG): Likewise.
6374         (LDBL_MANT_DIG): Likewise.
6375         (FLT_DIG): Likewise.
6376         (DBL_DIG): Likewise.
6377         (LDBL_DIG): Likewise.
6378         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6379         (DBL_MIN_EXP): Likewise.
6380         (LDBL_MIN_EXP): Likewise.
6381         (FLT_MAX_EXP): Use macro-int-constant.
6382         (DBL_MAX_EXP): Likewise.
6383         (LDBL_MAX_EXP): Likewise.
6384         (FLT_MAX_10_EXP): Likewise.
6385         (DBL_MAX_10_EXP): Likewise.
6386         (LDBL_MAX_10_EXP): Likewise.
6387         (FLT_MAX): Use macro-constant.
6388         (DBL_MAX): Likewise.
6389         (LDBL_MAX): Likewise.
6390         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6391         (DBL_EPSILON): Likewise.
6392         (LDBL_EPSILON): Likewise.
6393         (FLT_MIN): Likewise.
6394         (DBL_MIN): Likewise.
6395         (LDBL_MIN): Likewise.
6396         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6397         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6398         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6399         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6400         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6401         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6402         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6403         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6404         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6405         [ISO11] (FLT_TRUE_MIN): Likewise.
6406         [ISO11] (LDBL_TRUE_MIN): Likewise.
6407         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6408         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6409         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6410         (SCHAR_MAX): Likewise.
6411         (UCHAR_MAX): Likewise.
6412         (CHAR_MIN): Likewise.
6413         (CHAR_MAX): Likewise.
6414         (MB_LEN_MAX): Use macro-int-constant.
6415         (SHRT_MIN): Use macro-int-constant.  Specify type.
6416         (SHRT_MAX): Likewise.
6417         (USHRT_MAX): Likewise.
6418         (INT_MAX): Likewise.
6419         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6420         bound negative.
6421         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6422         bound with "U".
6423         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6424         bound with "L".
6425         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6426         bound negative.  Suffix upper bound with "L".
6427         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6428         bound with "UL".
6429         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6430         Specify type.
6431         [C99-based standards] (LLONG_MAX): Likewise.
6432         [C99-based standards] (ULLONG_MAX): Likewise.
6433         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6434         == 0.
6435         [ISO11] (max_align_t): Require type.
6436         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6437
6438         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6439         from $CFLAGS, without defining away __attribute__ calls.
6440         (checknamespace): Use $CFLAGS_namespace.
6441
6442         * conform/conformtest.pl (@keywords): Only include C99 keywords
6443         for standards based on C99 or C11.
6444
6445         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6446         Disable tests.
6447         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6448         UNIX98]: Likewise.
6449
6450         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6451         usability of symbols in #if.
6452
6453         * conform/conformtest.pl: If macro or constant types start
6454         "promoted:", expect the symbol to be of the following type
6455         promoted by the integer promotions.
6456
6457         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6458         in one place.  Also handle "macro-constant".
6459
6460         * conform/conformtest.pl: Only accept expected macro values with
6461         "==".  Parse all "macro" lines in one place.
6462         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6463
6464         * conform/conformtest.pl: Handle braced types on "constant" lines
6465         instead of handling "typed-constant".
6466         * conform/data/signal.h-data: Use "constant" instead of
6467         "typed-constant".
6468
6469         * conform/conformtest.pl: Handle "optional-" at start of lines in
6470         one place rather than duplicating several cases.  Handle each
6471         format of "macro" line with initial "optional-".
6472
6473         * conform/conformtest.pl: Only accept expected constant or
6474         optional-constant values with "==".  Parse all "constant" lines in
6475         one place.  Parse all "optional-constant" lines in one place.
6476         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6477         * conform/data/fmtmsg.h-data: Likewise.
6478         * conform/data/netinet/in.h-data: Likewise.
6479         * conform/data/tar.h-data: Likewise.
6480         * conform/data/limits.h-data: Use "==" form on "constant" and
6481         "optional-constant" lines.
6482
6483         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6484         Use -std=c99 for XOPEN2K.
6485         (@knownproblems): Remove.
6486         (newtoken): Don't check %isknown.
6487
6488         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6489         Do not expect macro.
6490         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6491         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6492         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6493         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6494         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6495         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6496         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6497         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6498         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6499         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6500         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6501         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6502         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6503         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6504         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6505         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6506         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6507         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6508         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6509         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6510         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6511         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6512         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6513         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6514         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6515         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6516         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6517         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6518         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6519         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6520         [XPG3] (acosh): Likewise.
6521         [XPG3] (asinh): Likewise.
6522         [XPG3] (atanh): Likewise.
6523         [XPG3] (cbrt): Likewise.
6524         [XPG3] (expm1): Likewise.
6525         [XPG3] (ilogb): Likewise.
6526         [XPG3] (log1p): Likewise.
6527         [XPG3] (logb): Likewise.
6528         [XPG3] (nextafter): Likewise.
6529         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6530         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6531         [XPG3] (remainder): Likewise.
6532         [XPG3] (rint): Likewise.
6533         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6534         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6535         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6536         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6537         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6538         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6539         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6540         [UNIX98 || XOPEN2K] (scalb): Expect.
6541         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6542         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6543         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6544         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6545         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6546         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6547         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6548         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6549         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6550         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6551         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6552         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6553         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6554         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6555         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6556         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6557         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6558         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6559         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6560         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6561         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6562         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6563         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6564         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6565         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6566         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6567         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6568         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6569         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6570         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6571         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6572         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6573         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6574         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6575         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6576         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6577         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6578         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6579         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6580         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6581         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6582         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6583         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6584         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6585         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6586         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6587         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6588         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6589         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6590         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6591         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6592         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6593         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6594         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6595         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6596         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6597         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6598         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6599         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6600         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6601         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6602         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6603         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6604         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6605         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6606         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6607         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6608         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6609         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6610         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6611         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6612         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6613         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6614         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6615         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6616         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6617         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6618         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6619         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6620         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6621         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6622         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6623         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6624         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6625         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6626         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6627         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6628         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6629         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6630         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6631         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6632         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6633         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6634         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6635         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6636         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6637         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6638         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6639         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6640         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6641         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6642         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6643         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6644         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6645         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6646         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6647         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6648         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6649         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6650         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6651         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6652         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6653         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6654         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6655         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6656         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6657         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6658         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6659         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6660         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6661         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6662         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6663         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6664         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6665         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6666         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6667         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6668         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6669         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6670         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6671         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6672         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6673         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6674         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6675         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6676         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6677         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6678
6679         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6680         _XOPEN_SOURCE_EXTENDED for XPG4.
6681
6682         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6683
6684         * Makeconfig (localtime): Remove variable.
6685         (inst_localtime-file): Likewise.
6686
6687 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6688
6689         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6690         Update.
6691         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6692         Update.
6693         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6694         Update.
6695         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6696         Update.
6697         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6698         Update.
6699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6700         Update.
6701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6702         Update.
6703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6704         Update.
6705         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6706         Update.
6707
6708 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6709
6710         [BZ #2550]
6711         [BZ #2570]
6712         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6713         comparisons to determine direction to adjust input.
6714         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6715         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6716         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6717         Likewise.
6718         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6719         Likewise.
6720         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6721         Likewise.
6722         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6723         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6724         Likewise.
6725         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6726         Likewise.
6727         * math/libm-test.inc (nexttoward_test): Add more tests.
6728
6729 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6730
6731         [BZ #14040]
6732         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6733         in version GLIBC_2.1, not GLIBC_2.0.
6734         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6735         Likewise.
6736
6737 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6738
6739         [BZ #13942]
6740         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6741         (1 - x) * (1 + x).
6742         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6743         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6744         * math/libm-test.inc (acos_test): Add more tests.
6745         (asin_test): Likewise.
6746         * sysdeps/i386/fpu/libm-test-ulps: Update.
6747         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6748
6749         [BZ #14034]
6750         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6751         of square root.
6752         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6753         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6754         * math/libm-test.inc (acos_test_tonearest): New function.
6755         (acos_test_towardzero): Likewise.
6756         (acos_test_downward): Likewise.
6757         (acos_test_upward): Likewise.
6758         (asin_test_tonearest): Likewise.
6759         (asin_test_towardzero): Likewise.
6760         (asin_test_downward): Likewise.
6761         (asin_test_upward): Likewise.
6762         (main): Call the new functions.
6763         * sysdeps/i386/fpu/libm-test-ulps: Update.
6764         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6765
6766         [BZ #13884]
6767         [BZ #13924]
6768         * math/e_exp10.c: Include <float.h>.
6769         (__ieee754_exp10): Handle underflow here rather than multiplying
6770         large negative argument by M_LN10.
6771         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6772         of __ieee754_expf.
6773         * math/e_exp10l.c: Include <float.h>.
6774         (__ieee754_exp10l): Handle underflow here rather than multiplying
6775         large negative argument by M_LN10l.
6776         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6777         spurious overflow exception on underflow.
6778
6779 2012-04-29  Marek Polacek  <polacek@redhat.com>
6780
6781         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6782         (__fortify_function): New macro.
6783         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6784         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6785         __extern_always_inline.
6786         * libio/bits/stdio2.h: Likewise.
6787         * libio/bits/stdio.h: Likewise.
6788         * string/string.h: Likewise.
6789         * string/bits/string3.h: Likewise.
6790         * include/stdio.h: Likewise.
6791         * stdlib/bits/stdlib.h: Likewise.
6792         * stdlib/stdlib.h: Likewise.
6793         * rt/bits/mqueue2.h: Likewise.
6794         * rt/mqueue.h: Likewise.
6795         * posix/bits/unistd.h: Likewise.
6796         * posix/unistd.h: Likewise.
6797         * io/bits/poll2.h: Likewise.
6798         * io/bits/fcntl2.h: Likewise.
6799         * io/fcntl.h: Likewise.
6800         * io/sys/poll.h: Likewise.
6801         * misc/bits/syslog.h: Likewise.
6802         * misc/bits/syslog-ldbl.h: Likewise.
6803         * misc/sys/syslog.h: Likewise.
6804         * socket/bits/socket2.h: Likewise.
6805         * socket/sys/socket.h: Likewise.
6806         * debug/tst-chk1.c: Likewise.
6807         * wcsmbs/bits/wchar2.h: Likewise.
6808         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6809         * wcsmbs/wchar.h: Likewise.
6810
6811 2012-04-29  Andreas Jaeger  <aj@suse.de>
6812
6813         * Makerules (tests): Remove enable-check-abi protection.
6814         (check-abi-warn): Remove.
6815         (check-abi-%): Remove check-abi-warn usage.
6816
6817         * configure.in: Remove check-abi configure option.
6818         * configure: Regenerated.
6819         * config.make.in (enable-check-abi): Remove.
6820
6821 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6822
6823         [BZ #14033]
6824         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6825         double functions to double *_finite functions.
6826
6827         [BZ #13941]
6828         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6829         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6830         LDBL_MIN_EXP.
6831         * stdio-common/Makefile (tests): Add tst-sprintf3.
6832         * stdio-common/tst-sprintf3.c: New file.
6833
6834         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6835         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6836
6837 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6838
6839         * conform/conformtest.pl: Remove duplicate typed-constant
6840         handling.
6841
6842 2012-04-28  David S. Miller  <davem@davemloft.net>
6843
6844         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6845         (check-abi-%): Remove AWK script prerequisite and explicit
6846         abilist directory.
6847         (check-abi): Rewrite to just diff the symlist with the abilist.
6848         (config-tls, config-abi-config): Delete, no longer used.
6849         (update-abi-%): Remove AWK script and explicit abilist directory.
6850         (update-abi): Rewrite to simply compare and conditionally copy the
6851         symlist and the sysdep abilist file.  Remove update-abi-config
6852         checks.
6853         * abilist/ld.abilist: Remove.
6854         * abilist/libBrokenLocale.abilist: Remove.
6855         * abilist/libanl.abilist: Remove.
6856         * abilist/libcrypt.abilist: Remove.
6857         * abilist/libdl.abilist: Remove.
6858         * abilist/librt.abilist: Remove.
6859         * abilist/libthread_db.abilist: Remove.
6860         * abilist/libutil.abilist: Remove.
6861         * scripts/extract-abilist.awk: Remove.
6862         * scripts/merge-abilist.awk: Remove.
6863         * sysdeps/generic/libcidn.abilist: New file.
6864         * sysdeps/generic/libnss_compat.abilist: New file.
6865         * sysdeps/generic/libnss_db.abilist: New file.
6866         * sysdeps/generic/libnss_dns.abilist: New file.
6867         * sysdeps/generic/libnss_files.abilist: New file.
6868         * sysdeps/generic/libnss_hesiod.abilist: New file.
6869         * sysdeps/generic/libnss_nis.abilist: New file.
6870         * sysdeps/generic/libnss_nisplus.abilist: New file.
6871         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6872         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6873         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6874         file.
6875         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6876         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6877         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6878         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6879         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6880         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6881         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6882         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6883         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6884         file.
6885         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
6886         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
6887         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
6888         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
6889         file.
6890         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
6891         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
6892         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
6893         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
6894         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
6895         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
6896         file.
6897         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
6898         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
6899         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
6900         file.
6901         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
6902         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
6903         New file.
6904         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
6905         New file.
6906         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
6907         New file.
6908         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
6909         New file.
6910         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
6911         New file.
6912         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
6913         New file.
6914         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
6915         New file.
6916         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
6917         New file.
6918         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
6919         New file.
6920         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
6921         New file.
6922         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
6923         New file.
6924         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
6925         New file.
6926         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
6927         New file.
6928         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
6929         file.
6930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
6931         New file.
6932         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
6933         New file.
6934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
6935         file.
6936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
6937         New file.
6938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
6939         New file.
6940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
6941         file.
6942         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
6943         New file.
6944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6945         New file.
6946         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
6947         New file.
6948         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
6949         New file.
6950         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
6951         New file.
6952         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
6953         New file.
6954         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
6955         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
6956         file.
6957         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
6958         New file.
6959         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
6960         file.
6961         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
6962         file.
6963         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
6964         file.
6965         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
6966         file.
6967         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
6968         file.
6969         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
6970         New file.
6971         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
6972         file.
6973         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
6974         file.
6975         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
6976         New file.
6977         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
6978         file.
6979         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
6980         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
6981         file.
6982         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
6983         New file.
6984         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
6985         file.
6986         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
6987         file.
6988         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
6989         file.
6990         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
6991         file.
6992         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
6993         file.
6994         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
6995         New file.
6996         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
6997         file.
6998         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
6999         file.
7000         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7001         New file.
7002         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7003         file.
7004         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7005         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7006         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7007         file.
7008         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7009         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7010         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7011         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7012         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7013         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7014         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7015         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7016         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7017         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7018         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7019         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7020         file.
7021         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7022         New file.
7023         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7024         file.
7025         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7026         file.
7027         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7028         file.
7029         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7030         file.
7031         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7032         file.
7033         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7034         New file.
7035         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7036         New file.
7037         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7038         file.
7039         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7040         New file.
7041         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7042         file.
7043         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7044         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7045         file.
7046         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7047         New file.
7048         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7049         file.
7050         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7051         file.
7052         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7053         file.
7054         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7055         file.
7056         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7057         file.
7058         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7059         New file.
7060         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7061         New file.
7062         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7063         file.
7064         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7065         New file.
7066         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7067         file.
7068
7069 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7070
7071         * conform/conformtest.pl: Fix typo in handling typed-constant from
7072         allow-header.
7073
7074 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7075
7076         * README: Cut down references to pre-2.6 Linux kernels and
7077         Linuxthreads.  Update lists of configurations in libc and ports
7078         and sort alphabetically.  Say "or newer" with Linux kernel version
7079         requirements.
7080
7081         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7082
7083 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7084
7085         [BZ #887]
7086         * math/libm-test.inc (logb_test_downward): New test to expose
7087         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7088         rounding mode.
7089
7090 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7091
7092         [BZ #14027]
7093         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7094         to be done.
7095         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7096         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7097
7098 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7099
7100         * sysdeps/unix/i386/brk.S: Remove file.
7101         * sysdeps/unix/i386/dl-brk.S: Likewise.
7102         * sysdeps/unix/i386/pipe.S: Likewise.
7103         * sysdeps/unix/i386/sigreturn.S: Likewise.
7104         * sysdeps/unix/i386/syscall.S: Likewise.
7105         * sysdeps/unix/i386/vfork.S: Likewise.
7106         * sysdeps/unix/i386/wait.S: Likewise.
7107
7108         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7109         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7110
7111         * configure.in (arm*-none*): Do not allow without
7112         --enable-hacker-mode.
7113         (netbsd*): Remove case setting base_os.
7114         (386bsd*): Likewise.
7115         (freebsd*): Likewise.
7116         (bsdi*): Likewise.
7117         (osf*): Likewise.
7118         (sunos*): Likewise.
7119         (ultrix*): Likewise.
7120         (newsos*): Likewise.
7121         (dynix*): Likewise.
7122         (*bsd*): Likewise.
7123         (sysv*): Likewise.
7124         (isc*): Likewise.
7125         (esix*): Likewise.
7126         (sco*): Likewise.
7127         (minix*): Likewise.
7128         (irix4*): Likewise.
7129         (irix6*): Likewise.
7130         (solaris[2-9]*): Likewise.
7131         (none): Likewise.
7132         * configure: Regenerated.
7133
7134 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7135
7136         [BZ #11521]
7137         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7138         overflow or cancellation in calculating denominator.
7139         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7140         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7141         down expression to avoid unexpected rounding in newer GCCs.
7142         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7143
7144 2012-04-26  David S. Miller  <davem@davemloft.net>
7145
7146         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7147         long-double compat symbols.
7148         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7149         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7150         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7151         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7152         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7153         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7154         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7155         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7156         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7157         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7158         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7159         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7160         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7161
7162 2012-04-25  David S. Miller  <davem@davemloft.net>
7163
7164         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7165         HWCAP_* values only after the memory barriers have been defined.
7166         (atomic_full_barrier): Define.
7167         (atomic_read_barrier): Define.
7168         (atomic_write_barrier): Define.
7169
7170 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7171
7172         * shlib-versions: Add libgcc_s version information.
7173         * sysdeps/generic/libgcc_s.h: Remove.
7174         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7175         libgcc_s.h.
7176         * sysdeps/gnu/unwind-resume.c: Likewise.
7177         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7178
7179 2012-04-25  David S. Miller  <davem@davemloft.net>
7180
7181         * sysdeps/unix/sparc/brk.S: Delete.
7182         * sysdeps/unix/sparc/dl-brk.S: Delete.
7183         * sysdeps/unix/sparc/pipe.S: Delete.
7184         * sysdeps/unix/sparc/sysdep.S: Delete.
7185         * sysdeps/unix/sparc/sysdep.h: Delete.
7186         * sysdeps/unix/sparc/vfork.S: Delete.
7187         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7188         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7189         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7190         ret_ERRVAL, r0, r1, MOVE): Define.
7191         (JUMPTARGET): Remove.
7192         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7193         sysdeps/unix/sparc/sysdep.h
7194         (ENTRY, END): Remove.
7195         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7196
7197 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7198
7199         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7200         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7201         -DIS_IN_build.
7202
7203         * timezone/README: Update upstream location and email address for
7204         tzcode and tzdata.
7205         * timezone/zdump.c: Update from tzcode 2012b.
7206         * timezone/zic.c: Likewise.
7207
7208         * configure.in (libc_cv_as_needed): Remove test.
7209         * configure: Regenerated.
7210         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7211         conditional definition.
7212         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7213         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7214         * config.make.in (have-as-needed): Remove variable.
7215
7216 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7217             Paul Pluzhnikov  <ppluzhnikov@google.com>
7218
7219         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7220         strings correctly.
7221
7222 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7223
7224         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7225         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7226         * sysdeps/sh/strlen.S: Likewise.
7227
7228 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7229
7230         * sysdeps/unix/fork.S: Remove file.
7231         * sysdeps/unix/i386/fork.S: Likewise.
7232         * sysdeps/unix/sparc/fork.S: Likewise.
7233
7234         * sysdeps/unix/system.c: Remove file.
7235         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7236
7237         * sysdeps/unix/getegid.S: Remove file.
7238         * sysdeps/unix/geteuid.S: Likewise.
7239
7240 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7241
7242         * scripts/check-localplt.awk: New file.
7243         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7244         of diff.
7245         * scripts/data/localplt-generic.data: Add a comment.
7246
7247         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7248         NODE when __dir_mkfile failed.
7249         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7250         Reported by Ludovic Courtès <ludo@gnu.org>.
7251
7252 2012-04-24  Andreas Jaeger  <aj@suse.de>
7253
7254         * Makerules (common-clean): Also remove gen-as-const-headers
7255         files.
7256
7257 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7258
7259         * Makerules (native-compile): Do not change working directory for
7260         build.  Use $(OUTPUT_OPTION) in command.
7261         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7262
7263 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7264
7265         [BZ #13886]
7266         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7267         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7268         * math/libm-test.inc (floor_test): Add more tests.
7269         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7270
7271 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7272
7273         * sysdeps/unix/getdents.c: Remove file.
7274         * sysdeps/unix/sysv/getdents.c: Likewise.
7275         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7276
7277         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7278         sysdeps/unix/mman/syscalls.list.
7279         (mmap): Likewise.
7280         (mprotect): Likewise.
7281         (msync): Likewise.
7282         (munmap): Likewise.
7283         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7284         * sysdeps/unix/mman/syscalls.list: Remove.
7285         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7286
7287         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7288         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7289         * configure: Regenerated.
7290         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7291         $(libgcc_s_suffix).
7292         * config.make.in (libgcc_s_suffix): Remove variable.
7293
7294 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7295
7296         * sysdeps/unix/sysv/gethostname.c: Move to ...
7297         * sysdeps/posix/gethostname.c: ... here.
7298
7299         * sysdeps/unix/execve.S: Remove file.
7300
7301         * sysdeps/unix/_exit.S: Remove file.
7302
7303 2012-04-23  Andreas Jaeger  <aj@suse.de>
7304
7305         [BZ #13739]
7306         * manual/Makefile: Remove make dist support, there's no
7307         need for a stand-alone documentation tar ball.
7308         (TEXI2DVI): Define always, it's not in Makeconfig.
7309         (dist): Removed.
7310         (tar-it): Removed.
7311         (edition): Removed.
7312         (glibc-doc-$(edition).tar): Removed
7313         (%.Z): Removed.
7314         (%.gz): Removed.
7315         (%.uu): Removed.
7316         (ETAGS): Remove, it's in Makeconfig.
7317         (move-if-change): Remove, it's in Makeconfig.
7318
7319 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7320
7321         [BZ #13970]
7322         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7323         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7324         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7325         (strtod_l, strtof_l, strtold_l): Remove __wur.
7326         It is not necessarily an error to ignore strtol's return value.
7327         One can reliably look at the stored endptr to decide whether
7328         the number had valid syntax.
7329
7330 2012-04-21  Andreas Jaeger  <aj@suse.de>
7331
7332         [BZ #13739]
7333         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7334
7335 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7336
7337         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7338         * sysdeps/unix/sysv/Versions: Remove file.
7339
7340 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7341
7342         [BZ #13927]
7343         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7344
7345 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7346
7347         [BZ #7064]
7348         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7349         version from __vm86.
7350
7351 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7352
7353         * sysdeps/unix/common/lxstat.c: Remove file.
7354         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7355
7356         * sysdeps/unix/sysv/Makefile: Remove file.
7357
7358         * sysdeps/unix/sysv/direct.h: Remove file.
7359
7360         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7361         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7362         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7363         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7364         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7365         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7366         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7367
7368         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7369
7370         * sysdeps/unix/xmknod.c: Remove file.
7371         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7372
7373         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7374
7375         * sysdeps/unix/sysv/i386/time.S: Remove file.
7376
7377         * sysdeps/unix/fxstat.c: Remove file.
7378         * sysdeps/unix/xstat.c: Likewise.
7379         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7380
7381         * sysdeps/unix/sysv/sigaction.c: Remove file.
7382
7383         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7384         (sysdep_headers): Remove variable.
7385         [termio.h not in sysdep_headers] (generated): Likewise.
7386         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7387         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7388         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7389         * sysdeps/unix/sysv/tcflow.c: Likewise.
7390         * sysdeps/unix/sysv/tcflush.c: Likewise.
7391         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7392         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7393         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7394         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7395         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7396
7397         * sysdeps/unix/siglist.c: Remove file.
7398
7399         * sysdeps/unix/getppid.S: Remove file.
7400
7401         * sysdeps/unix/mkdir.c: Remove file.
7402         * sysdeps/unix/rmdir.c: Likewise.
7403
7404 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7405
7406         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7407         ERR_MAX value.
7408         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7409         errlist-compat value.
7410
7411 2012-04-18  David S. Miller  <davem@davemloft.net>
7412
7413         * sysdeps/generic/memcopy.h (reg_char): Delete.
7414         * debug/strcat_chk.c: Use char, not reg_char.
7415         * debug/strcpy_chk.c: Likewise.
7416         * debug/strncat_chk.c: Likewise.
7417         * debug/strncpy_chk.c: Likewise.
7418         * string/memchr.c: Likewise.
7419         * string/memrchr.c: Likewise.
7420         * string/rawmemchr.c: Likewise.
7421         * string/strcat.c: Likewise.
7422         * string/strchr.c: Likewise.
7423         * string/strchrnul.c: Likewise.
7424         * string/strcmp.c: Likewise.
7425         * string/strcpy.c: Likewise.
7426         * string/strncat.c: Likewise.
7427         * string/strncmp.c: Likewise.
7428         * string/strncpy.c: Likewise.
7429
7430 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7431
7432         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7433         __builtin_memcopy is called when src and dest ranges are known to not
7434         overlap.
7435
7436 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7437
7438         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7439         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7440         fwd_align_merge macro call.
7441         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7442         bwd_align_merge macro call.
7443         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7444
7445 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7446
7447         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7448         bwd_align_merge macros.
7449         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7450         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7451         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7452
7453 2012-04-18  David S. Miller  <davem@davemloft.net>
7454
7455         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7456
7457 2012-04-18  Andreas Jaeger  <aj@suse.de>
7458
7459         [BZ# 6794]
7460         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7461         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7462         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7463
7464         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7465         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7466         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7467
7468         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7469         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7470         Adjust for changed ldbl-128 files.
7471
7472         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7473         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7474         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7475
7476 2012-04-17  David S. Miller  <davem@davemloft.net>
7477
7478         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7479
7480 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7481
7482         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7483         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7484         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7485         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7486         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7487         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7488
7489 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7490
7491         [BZ #6794]
7492         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7493         * math/libm-test.inc: Add ilogb errno and exception tests.
7494         * math/w_ilogb.c: New file: ilogb wrapper.
7495         * math/w_ilogbf.c: New file: ilogbf wrapper.
7496         * math/w_ilogbl.c: New file: ilogbl wrapper.
7497         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7498         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7499         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7500         exception being thrown with 0.0 as argument.
7501         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7502         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7503         exception being thrown with 0.0 as argument.
7504         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7505         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7506         exception being thrown with 0.0 as argument.
7507         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7508         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7509         exception being thrown with 0.0 as argument.
7510         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7511         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7512         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7513         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7514         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7515         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7516         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7517         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7518         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7519
7520 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7521
7522         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7523         with altivec.
7524
7525 2012-04-16  Marek Polacek  <polacek@redhat.com>
7526
7527         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7528
7529 2012-04-16  Marek Polacek  <polacek@redhat.com>
7530
7531         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7532         operands of fdivp instruction.
7533
7534 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7535
7536         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7537         * elf/tst-auditmod3b.c: Likewise.
7538         * elf/tst-auditmod4b.c: Likewise.
7539         * elf/tst-auditmod5b.c: Likewise.
7540         * elf/tst-auditmod6b.c: Likewise.
7541         * elf/tst-auditmod6c.c: Likewise.
7542         * elf/tst-auditmod7b.c: Likewise.
7543         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7544         * sysdeps/x86_64/preconfigure.in: Likewise.
7545         * sysdeps/x86_64/preconfigure: Regenerated.
7546
7547 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7548
7549         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7550         __ILP32__.
7551
7552 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7553
7554         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7555         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7556
7557 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7558
7559         [BZ #13973]
7560         * locale/iso-639.def: Fix gl language name. Spotted by
7561         Yaron Shahrabani.
7562
7563 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7564
7565         [BZ #2074]
7566         * libio/libio.h (__io_write_fn): Update comment.
7567
7568 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7569
7570         [BZ #2074]
7571         * stdio.texi (Hook Functions): The user provided writer function
7572         is not allowed to return -1.
7573
7574 2012-04-11  David S. Miller  <davem@davemloft.net>
7575
7576         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7577
7578 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7579
7580         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7581         Add a leading slash to rtkaio.
7582
7583 2012-04-11  Jim Meyering  <meyering@redhat.com>
7584
7585         [BZ #11959]
7586         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7587         It is not necessarily an error to ignore fwrite's return
7588         value.  One can reliably use ferror to test for errors after
7589         the fact.
7590
7591 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7592
7593         * bits/types.h (__snseconds_t): New type.
7594         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7595
7596         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7597         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7598         (__SNSECONDS_T_TYPE): Likewise.
7599         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7600         (__SNSECONDS_T_TYPE): Likewise.
7601         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7602         (__SNSECONDS_T_TYPE): Likewise.
7603
7604 2012-04-10  Andreas Jaeger  <aj@suse.de>
7605
7606         [BZ #2636]
7607         * manual/time.texi (Processor Time): Return type of times is
7608         elapsed real time since an arbitrary point in the past.
7609         (CPU Time): Move CLK_TCK from here...
7610         (Processor Time): ...to here.  Correct description.
7611         * manual/conf.texi (Constants for Sysconf): Correct description of
7612         _SC_CLK_TCK.
7613
7614 2012-04-10  David S. Miller  <davem@davemloft.net>
7615
7616         [BZ #13967]
7617         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7618         where the is a gap between DT_REL(A) and DT_JMPREL.
7619
7620 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7621
7622         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7623         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7624         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7625
7626 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7627
7628         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7629         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7630         (dl_main): Handle --inhibit-cache.
7631         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7632         _dl_inhibit_cache.
7633         * elf/dl-load.c (_dl_map_object): Use it.
7634         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7635
7636 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7637
7638         [BZ #13872]
7639         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7640         (__ieee754_powl): Saturate large exponents rather than testing for
7641         overflow of y*log2(x).
7642         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7643         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7644         exceptions.
7645
7646         [BZ #11521]
7647         * math/s_ctan.c: Include <float.h>.
7648         (__ctan): Avoid internal overflow or cancellation in calculating
7649         denominator.
7650         * math/s_ctanf.c: Likewise.
7651         * math/s_ctanl.c: Likewise.
7652         * math/s_ctanh.c: Likewise.
7653         * math/s_ctanhf.c: Likewise.
7654         * math/s_ctanhl.c: Likewise.
7655         * math/libm-test.inc (ctan_test): Add more tests.
7656         (ctanh_test): Likewise.
7657         * sysdeps/i386/fpu/libm-test-ulps: Update.
7658         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7659
7660 2012-04-09  Andreas Jaeger  <aj@suse.de>
7661
7662         [BZ #6894]
7663         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7664         is an optional BSD extension.
7665
7666         [BZ #10254]
7667         * manual/stdio.texi (Opening Streams): Document additional fopen
7668         parameters.
7669
7670 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7671
7672         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7673         %eax without telling the compiler.
7674
7675 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7676
7677         [BZ # 13963]
7678         * manual/install.texi: Use sourceware.org.
7679
7680 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7681
7682         [BZ #13873]
7683         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7684         (__ieee754_pow): Generate overflow and underflow using huge*huge
7685         and tiny*tiny rather than just returning constant infinity or zero
7686         for large exponents.
7687         * math/libm-test.inc (pow_test): Require overflow exceptions for
7688         applicable cases of large exponents.
7689
7690         [BZ #706]
7691         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7692         (__ieee754_pow): Use iterative multiplication algorithm only for
7693         integer exponents with absolute value below 1024.  Check for odd
7694         integer exponents when using algorithm for real exponents.
7695         * math/libm-test.inc (pow_test): Add more tests.
7696         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7697
7698 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7699
7700         [BZ #13705]
7701         * math/libm-test.inc (exp_test): Do not allow overflow exception
7702         on underflow test.
7703
7704 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7705
7706         [BZ #13705]
7707         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7708         instead of __kernel_standard_f.
7709
7710 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7711
7712         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7713         * sysdeps/x86_64/memset_chk.S: Likewise.
7714
7715 2012-04-08  Andreas Jaeger  <aj@suse.de>
7716
7717         [BZ #10153]
7718         * manual/startup.texi (Environment Access): Describe return value
7719         for putenv and setenv.
7720
7721         [BZ #6895]
7722         * manual/filesys.texi (Directory Entries): Add description for
7723         DT_LNK.
7724
7725         [BZ #6890]
7726         * manual/filesys.texi (Directory Entries): Clarify that it's file
7727         system not operating system in the description of DT_UNKNOWN.
7728
7729         [BZ #6578]
7730         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7731
7732 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7733
7734         [BZ #6649]
7735         * manual/llio.texi (Opening and Closing Files): Add cross
7736         reference to explain mode argument.
7737
7738 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7739
7740         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7741         * sysdeps/x86_64/memset_chk.S: Likewise.
7742
7743 2012-04-07  David S. Miller  <davem@davemloft.net>
7744
7745         * elf/elf.h (R_SPARC_WDISP10): Define.
7746         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7747         R_SPARC_SIZE32.
7748         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7749         R_SPARC_SIZE64 and R_SPARC_H34.
7750
7751 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7752
7753         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7754         conditions and remove no longer applicable assertion.
7755
7756 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7757
7758         * bits/byteswap.h: Include <features.h>.
7759         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7760         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7761
7762 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7763
7764         * bits/byteswap.h (__bswap_16): Removed.
7765         Include <bits/byteswap-16.h> to get __bswap_16.
7766         * sysdeps/i386/bits/byteswap.h: Likewise.
7767         * sysdeps/s390/bits/byteswap.h: Likewise.
7768         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7769         * bits/byteswap-16.h: New file.
7770         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7771         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7772         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7773         * string/Makefile (headers): Add bits/byteswap-16.h.
7774
7775 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7776
7777         [BZ #13895]
7778         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7779         extra indirection.
7780         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7781         * nss/tst-nss-static.c: New.
7782
7783 2012-04-06  Robert Millan  <rmh@gnu.org>
7784
7785         [BZ #6486]
7786         * manual/llio.texi (File Position Primitive): lseek
7787         refers to WHENCE when it really means OFFSET.
7788
7789 2012-04-06  Andreas Jaeger  <aj@suse.de>
7790
7791         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7792         strncmp declarations.
7793
7794         * abilist/libc.abilist: Add __poll and __ppoll.
7795
7796 2012-04-05  David S. Miller  <davem@davemloft.net>
7797
7798         * scripts/check-local-headers.sh: Accept a host triplet in the
7799         path matched by the exclude regexp.
7800
7801         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7802         definition.
7803         * sysdeps/powerpc/powerpc32/dl-machine.h
7804         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7805         * sysdeps/s390/s390-32/dl-machine.h
7806         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7807         * sysdeps/sparc/sparc32/dl-machine.h
7808         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7809         * sysdeps/sparc/sparc64/dl-machine.h
7810         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7811
7812         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7813         lazy binding.
7814         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7815         undefined symbol errors.
7816
7817         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7818         DT_NEEDED entries.
7819
7820 2012-04-05  Michael Matz  <matz@suse.de>
7821
7822         [BZ #13592]
7823         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7824
7825 2012-04-05  Andreas Jaeger  <aj@suse.de>
7826
7827         [BZ #13908]
7828         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7829         comment.
7830
7831 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7832
7833         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7834         which ROUND is no valid rounding mode.
7835
7836 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7837
7838         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7839         read again.
7840         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7841
7842 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7843
7844         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7845         an exception using FPU order intentionally.
7846
7847 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7848
7849         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7850         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7851         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7852         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7853
7854 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7855
7856         [BZ #12340]
7857         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7858         EINVAL when BUFLEN is too smal.
7859
7860 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7861
7862         [BZ #13553]
7863         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7864         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7865
7866 2012-04-03  Andreas Jaeger  <aj@suse.de>
7867
7868         [BZ #13938]
7869         * manual/setjmp.texi (System V contexts): Fix sentence.
7870
7871         [BZ #13926]
7872         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7873         New macro for this case.
7874         [!__GNUC__] (__bswap_64): New inline function for this case.
7875         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7876         * bits/byteswap.h: Likewise.
7877         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7878         ull, guard with __GLIBC_HAVE_LONG_LONG.
7879
7880         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7881         __GLIBC_HAVE_LONG_LONG.
7882
7883         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7884         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
7885
7886 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7887
7888         [BZ #13691]
7889         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
7890         inptr and inend, rather than using last_ch.
7891
7892 2012-04-02  David S. Miller  <davem@davemloft.net>
7893
7894         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
7895         * stdio-common/printf-parse.h (read_int): Change return type to
7896         'int', return -1 on INT_MAX overflow.
7897         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
7898         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
7899         overflows INT_MAX.  Check for overflow of in-format-string precision
7900         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
7901         SIZE_MAX not INT_MAX for integer overflow test.
7902         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
7903         skip the construct in the format string but do not record anything.
7904         * stdio-common/bug22.c: Adjust to test both width/prevision
7905         INT_MAX overflow as well as total length INT_MAX overflow.  Check
7906         explicitly for proper errno values.
7907
7908 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7909
7910         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
7911         CHAR_MAX.
7912         * string/test-strcmp.c [! WIDE]: Likewise.
7913         * time/tst-mktime2.c: Likewise for INT_MAX.
7914         * string/test-string.h: #include <sys/param.h> for MIN.
7915
7916         * csu/init-first.c (__libc_init_first): Call __ctype_init.
7917         * sysdeps/i386/init-first.c (init): Likewise.
7918         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
7919         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
7920         * sysdeps/sh/init-first.c (init): Likewise.
7921
7922 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
7923
7924         * po/ru.po: Update from translation team.
7925         * po/vi.po: Likewise.
7926
7927 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
7928
7929         * resolv/nss_dns/dns-host.c: Merge copyright years.
7930
7931 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7932
7933         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
7934         Optimize memcpy with prefetch if
7935         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
7936         src, dst pointers have unequal 16 byte alignments.
7937
7938 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
7939
7940         [BZ #13928]
7941         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
7942         from a CNAME entry and return the minimum ttl for the query.
7943         (gaih_getanswer_slice): Likewise.
7944
7945 2012-03-30  Jeff Law  <law@redhat.com>
7946
7947         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
7948         due to long keys.
7949         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
7950         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
7951
7952         * resolv/nss_dns/dns-host.c: Update copyright year.
7953
7954 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
7955
7956         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
7957         requests to save a system call.  Fix check that all bytes are sent.
7958
7959         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
7960         comments for sendmmsg.
7961
7962 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7963
7964         [BZ #13691]
7965         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
7966         with only 1 character between 0x0041 and 0x01b0.
7967         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
7968         * wcsmbs/tst-mbsnrtowcs.c: New file.
7969
7970 2012-03-29  David S. Miller  <davem@davemloft.net>
7971
7972         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
7973         small copies by hand.
7974
7975 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7976
7977         [BZ #13761]
7978         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
7979         _nss_compat_initgroups_dyn): Fall back to malloc/free
7980         for large group memberships.
7981
7982 2012-03-28  David S. Miller  <davem@davemloft.net>
7983
7984         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
7985         that branches into memcpy.
7986         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
7987         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
7988         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
7989         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
7990         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
7991         bits.
7992         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
7993         implementation too.
7994         * sysdeps/sparc/mempcpy.S: New file.
7995
7996         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
7997         the IFUNC routine in the libc case.
7998         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7999
8000         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8001         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8002         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8003         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8004         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8005         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8006         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8007         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8008
8009         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8010         loop to 256 bytes instead of 64 bytes and fix test signedness.
8011
8012         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8013         * sysdeps/sparc/sparc32/Makefile: rather than here...
8014         * sysdeps/sparc/sparc64/Makefile: and here.
8015
8016 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8017
8018         * malloc/mallocbug.c: Avoid warnings about unused variables.
8019
8020 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8021
8022         [BZ #13760]
8023         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8024         in the right place. Discard and retry query if response is
8025         larger than input buffer size.
8026
8027 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8028
8029         [BZ #369]
8030         [BZ #2678]
8031         [BZ #3866]
8032         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8033         x for large integer exponent.
8034         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8035         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8036         sign of result as needed afterwards.
8037         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8038         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8039         result for underflowing pow the same as for overflow.
8040         (__kernel_standard_l): Handle powl overflow and underflow here
8041         rather than calling __kernel_standard.
8042         * math/libm-test.inc (pow_test): Add more tests.
8043
8044         [BZ #3868]
8045         [BZ #13879]
8046         [BZ #13910]
8047         [BZ #13911]
8048         [BZ #13912]
8049         [BZ #13913]
8050         [BZ #13915]
8051         [BZ #13916]
8052         [BZ #13917]
8053         [BZ #13918]
8054         [BZ #13919]
8055         [BZ #13920]
8056         [BZ #13921]
8057         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8058         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8059         (__kernel_standard_l): New function.
8060         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8061         __kernel_standard.
8062         * math/w_acosl.c (__acosl): Likewise.
8063         * math/w_asinl.c (__asinl): Likewise.
8064         * math/w_atan2l.c (__atan2l): Likewise.
8065         * math/w_atanhl.c (__atanhl): Likewise.
8066         * math/w_coshl.c (__coshl): Likewise.
8067         * math/w_exp10l.c (__exp10l): Likewise.
8068         * math/w_exp2l.c (__exp2l): Likewise.
8069         * math/w_fmodl.c (__fmodl): Likewise.
8070         * math/w_hypotl.c (__hypotl): Likewise.
8071         * math/w_j0l.c (__j0l, __y0l): Likewise.
8072         * math/w_j1l.c (__j1l, __y1l): Likewise.
8073         * math/w_jnl.c (__jnl, __ynl): Likewise.
8074         * math/w_lgammal.c (__lgammal): Likewise.
8075         * math/w_log10l.c (__log10l): Likewise.
8076         * math/w_log2l.c (__log2l): Likewise.
8077         * math/w_logl.c (__logl): Likewise.
8078         * math/w_powl.c (__powl): Likewise.
8079         * math/w_remainderl.c (__remainderl): Likewise.
8080         * math/w_scalbl.c (sysv_scalbl): Likewise.
8081         * math/w_sinhl.c (__sinhl): Likewise.
8082         * math/w_sqrtl.c (__sqrtl): Likewise.
8083         * math/w_tgammal.c (__tgammal): Likewise.
8084         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8085         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8086         * math/libm-test.inc (acos_test): Add more tests.
8087         (acosh_test): Likewise.
8088         (asin_test): Likewise.
8089         (atanh_test): Likewise.
8090         (exp_test): Likewise.
8091         (exp10_test): Likewise.
8092         (exp2_test): Likewise.
8093         (expm1_test): Likewise.
8094         (lgamma_test): Likewise.
8095         (log_test): Likewise.
8096         (log10_test): Likewise.
8097         (log1p_test): Likewise.
8098         (log2_test): Likewise.
8099         (pow_test): Do not allow some spurious overflow exceptions.
8100         (sqrt_test): Add more tests.
8101         (tgamma_test): Likewise.
8102         (y0_test): Likewise.
8103         (y1_test): Likewise.
8104         (yn_test): Likewise.
8105
8106 2012-03-27  Anton Blanchard  <anton@samba.org>
8107
8108         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8109         MAP_HUGETLB.
8110         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8111         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8112         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8113
8114 2012-03-27  David S. Miller  <davem@davemloft.net>
8115
8116         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8117
8118         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8119         have-as-vis3 check.
8120
8121 2012-03-27  Andreas Jaeger  <aj@suse.de>
8122
8123         * sysdeps/x86_64/elf/configure.in: Moved to ...
8124         * sysdeps/x86_64/configure.in: ... here.
8125         * sysdeps/x86_64/elf/start.S: Moved to ...
8126         * sysdeps/x86_64/start.S: ... here.
8127         * sysdeps/x86_64/elf/configure: Delete.
8128
8129         * sysdeps/x86_64/configure.in: Merge contents from
8130         sysdeps/i386/configure.in (without i686 check).
8131
8132         * sysdeps/i386/elf/Versions: Merge into ...
8133         * sysdeps/i386/Versions: ... this.
8134         * sysdeps/i386/elf/Versions: Delete file.
8135         * sysdeps/i386/elf/start.S: Moved to ...
8136         * sysdeps/i386/start.S: ...here.
8137         * sysdeps/i386/elf/configure.in: Merge into...
8138         * sysdeps/i386/configure.in: ...here.
8139         * sysdeps/i386/elf/configure.in: Delete file.
8140         * sysdeps/i386/elf/configure: Delete file.
8141
8142         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8143         * debug/backtracesyms.c: ... here.
8144         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8145         * debug/backtracesymsfd.c: ... here.
8146         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8147         * sysdeps/generic/ifunc-sel.h: ... here.
8148
8149         * sysdeps/unix/i386/start.c: Delete file.
8150         * sysdeps/unix/sparc/start.c: Delete file.
8151         * sysdeps/unix/start.c: Delete file.
8152
8153         * sysdeps/sh/elf/configure.in: Moved to ...
8154         * sysdeps/sh/configure.in: ... here.
8155         * sysdeps/sh/elf/start.S: Moved to ...
8156         * sysdeps/sh/start.S: ... here.
8157         * sysdeps/sh/elf/configure: Delete file.
8158
8159         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8160         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8161         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8162         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8163         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8164         * sysdeps/powerpc/powerpc64/start.S: here.
8165         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8166         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8167         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8168         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8169         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8170
8171         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8172         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8173         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8174         * sysdeps/powerpc/powerpc32/start.S: ... here.
8175         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8176         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8177         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8178
8179         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8180         * sysdeps/powerpc/ifunc-sel.h: ... here.
8181         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8182         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8183
8184         * sysdeps/sparc/elf/configure.in: Moved to ...
8185         * sysdeps/sparc/configure.in: ... here.
8186         * sysdeps/sparc/elf/configure: Delete file.
8187         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8188         * sysdeps/sparc/sparc32/start.S: ... here.
8189         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8190         * sysdeps/sparc/sparc64/start.S: ... here.
8191         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8192         * sysdeps/sparc/sparc32/Makefile: ... this.
8193         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8194         * sysdeps/sparc/sparc64/Makefile: ... this.
8195
8196         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8197         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8198         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8199         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8200         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8201         * sysdeps/s390/s390-32/setjmp.S: ... here.
8202         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8203         * sysdeps/s390/s390-32/configure.in: ... here.
8204         * sysdeps/s390/s390-32/elf/configure: Delete file.
8205         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8206         * sysdeps/s390/s390-32/start.S: ... here.
8207
8208         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8209         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8210         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8211         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8212         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8213         * sysdeps/s390/s390-64/setjmp.S: ... here.
8214         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8215         * sysdeps/s390/s390-64/configure.in: ... here
8216         * sysdeps/s390/s390-64/elf/configure: Delete file.
8217         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8218         * sysdeps/s390/s390-64/start.S: ... here.
8219         * sysdeps/s390/s390-64/elf/configure: Delete.
8220
8221         * configure.in: Remove support for elf directories in sysdeps.
8222
8223         * configure: Regenerated.
8224         * sysdeps/i386/configure: Regenerated.
8225         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8226         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8227         * sysdeps/s390/s390-32/configure: Regenerated.
8228         * sysdeps/s390/s390-64/configure: Regenerated.
8229         * sysdeps/sh/configure: Regenerated.
8230         * sysdeps/sparc/configure: Regenerated.
8231         * sysdeps/x86_64/configure: Regenerated.
8232
8233 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8234
8235         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8236
8237         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8238         denormal result into account.
8239
8240 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8241
8242         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8243         Reported by Allan McRae <allan@archlinux.org>.
8244
8245 2012-03-23  Jeff Law  <law@redhat.com>
8246
8247         * nss/getnssent.c (__nss_getent): Fix typo.
8248
8249 2012-03-23  David S. Miller  <davem@davemloft.net>
8250
8251         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8252
8253 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8254
8255         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8256         to pad to uint64_t for each field.
8257         (dl_tls_index): Replace unsigned long with uint64_t.
8258
8259 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8260         Paul Pluzhnikov  <ppluzhnikov@google.com>
8261
8262         [BZ #6528]
8263         * grp/Makefile (otherlibs): Don't set it.
8264         * inet/Makefile (otherlibs): Likewise.
8265         * login/Makefile (otherlibs): Likewise.
8266         * nscd/Makefile (otherlibs): Likewise.
8267         * posix/Makefile (otherlibs): Likewise.
8268         * pwd/Makefile (otherlibs): Likewise.
8269         * rt/Makefile (otherlibs): Likewise.
8270         * sunrpc/Makefile (otherlibs): Likewise.
8271         * nss/Makefile (otherlibs): Likewise.
8272         Add libnss_files to routines and static-only-routines.
8273         ($(objpfx)getent): Remove rule.
8274         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8275         static-only-routines.
8276
8277 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8278
8279         [BZ #13892]
8280         * math/s_cexp.c: Include <float.h>.
8281         (__cexp): Handle exp result overflowing not necessarily
8282         overflowing both real and imaginary parts of result.
8283         * math/s_cexpf.c: Likewise.
8284         * math/s_cexpl.c: Likewise.
8285         * math/libm-test.inc (cexp_test): Add more tests.
8286         * sysdeps/i386/fpu/libm-test-ulps: Update.
8287         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8288
8289 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8290
8291         * include/link.h (ELFW): New macro.
8292         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8293         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8294
8295 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8296
8297         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8298         with uint64_t.
8299
8300 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8301
8302         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8303         declaration.
8304         (struct La_x32_retval): Likewise.
8305
8306 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8307
8308         * sysdeps/x86_64/preconfigure.in: New file.
8309         * sysdeps/x86_64/preconfigure: New generated file.
8310
8311 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8312
8313         [BZ #13824]
8314         * math/e_exp2l.c: Include <float.h>.
8315         (__ieee754_exp2l): Handle overflow and underflow cases
8316         separately.  Only pass fractional part of argument to
8317         __ieee754_expl.
8318         * math/libm-test.inc (exp2_test): Add more tests.
8319
8320         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8321         negating x to take absolute value.
8322         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8323         Likewise.
8324         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8325         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8326         Likewise.
8327         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8328         computing low part if x was negated.
8329         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8330
8331 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8332
8333         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8334         la_x32_gnu_pltexit.
8335         (pltexit): Cast int_retval to ptrdiff_t.
8336         * elf/tst-auditmod3b.c: Likewise.
8337         * elf/tst-auditmod4b.c: Likewise.
8338         * elf/tst-auditmod5b.c: Likewise.
8339         * elf/tst-auditmod6b.c: Likewise.
8340         * elf/tst-auditmod6c.c: Likewise.
8341         * elf/tst-auditmod7b.c: Likewise.
8342
8343         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8344         and x32_gnu_pltexit.
8345
8346         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8347         __ELF_NATIVE_CLASS.
8348         (La_x32_regs): New macro.
8349         (La_x32_retval): Likewise.
8350         (la_x32_gnu_pltenter): New function prototype.
8351         (la_x32_gnu_pltexit): Likewise.
8352
8353 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8354
8355         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8356         exponent.
8357
8358         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8359
8360         * configure.in (libc_cv_cc_nofma): Check for option to disable
8361         generation of FMA instructions.
8362         * configure: Regenerate.
8363         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8364         * sysdeps/ieee754/dbl-64/Makefile: New file.
8365         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8366         Remove brandred-fma4.
8367         (CFLAGS-brandred-fma4.c): Remove.
8368         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8369         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8370         define.
8371         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8372         define.
8373
8374 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8375
8376         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8377         LLONG_MAX != LONG_MAX.
8378         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8379         (_fitoa_word): Likewise.
8380         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8381         LLONG_MAX != LONG_MAX.
8382         * stdio-common/_itowa.h: Include <_itoa.h>.
8383         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8384         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8385         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8386         only if not defined.
8387         (_ITOA_WORD_TYPE): Likewise.
8388         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8389         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8390
8391 2012-03-21  David S. Miller  <davem@davemloft.net>
8392
8393         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8394
8395 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8396
8397         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8398         of x86_64 when setting libc_cv_slibdir, libdir and
8399         libc_cv_localedir.
8400         * sysdeps/unix/sysv/linux/configure: Regenerated.
8401
8402 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8403
8404         * manual/lang.texi (Old Varargs): Remove section.
8405         (How Variadic): Update menu.
8406         (va_start): Do not mention varargs.h.
8407
8408 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8409             Joseph Myers  <joseph@codesourcery.com>
8410
8411         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8412         link test.
8413         * configure: Regenerated.
8414
8415 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8416
8417         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8418         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8419         conformtest.pl
8420
8421 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8422
8423         * NOTES: Remove.
8424         * Makefile (files-for-dist): Remove NOTES.
8425         (NOTES): Remove rule.
8426         * README: Don't refer to NOTES.
8427         * manual/creature.texi: Don't include macros.texi.
8428         * manual/intro.texi (creature.texi): Remove comment referring to
8429         NOTES.
8430
8431         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8432         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8433         * configure: Regenerated.
8434         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8435         LIBC_TRY_CC_OPTION.
8436         (libc_cv_as_i686): Likewise.
8437         (libc_cv_cc_avx): Likewise.
8438         (libc_cv_cc_sse2avx): Likewise.
8439         (libc_cv_cc_fma4): Likewise.
8440         (libc_cv_cc_novzeroupper): Likewise.
8441         * sysdeps/i386/configure: Regenerated.
8442
8443         [BZ #13883]
8444         * sysdeps/i386/fpu/s_cexp.S: Remove.
8445         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8446         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8447         * math/libm-test.inc (cexp_test): Add more tests.
8448         * sysdeps/i386/fpu/libm-test-ulps: Update.
8449         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8450
8451 2012-03-21  Allan McRae  <allan@archlinux.org>
8452
8453         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8454
8455 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8456
8457         [BZ #13871]
8458         * math/w_exp2.c: Do not include <float.h>.
8459         (o_threshold, u_threshold): Remove.
8460         (__exp2): Calculate result before checking finiteness and calling
8461         __kernel_standard.
8462         * math/w_exp2f.c: Likewise.
8463         * math/w_exp2l.c: Likewise.
8464         * math/libm-test.inc (exp2_test): Require overflow exception for
8465         1e6 input.
8466
8467         [BZ #3866]
8468         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8469         range of signed 64-bit integers before using fistpll.  Remove
8470         checks for whether integers fit in mantissa bits.
8471         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8472         the range of signed 32-bit integers before using fistpl.  Remove
8473         checks for whether integers fit in mantissa bits.
8474         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8475         (__ieee754_powl): Test for y outside the range of signed 64-bit
8476         integers before using fistpll.  Reduce 64-bit values to 63-bit
8477         ones as needed.
8478         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8479         divide-by-zero is raised for zero to large negative powers.
8480         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8481         (__ieee754_powl): Test for y outside the range of signed 64-bit
8482         integers before using fistpll.  Reduce 64-bit values to 63-bit
8483         ones as needed.
8484         * math/libm-test.inc (pow_test): Add more tests.
8485
8486 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8487
8488         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8489         <stdio-common/_itoa.h>.
8490         * debug/segfault.c: Likewise.
8491         * elf/dl-cache.c: Likewise.
8492         * elf/dl-minimal.c: Likewise.
8493         * elf/dl-misc.c: Likewise.
8494         * elf/dl-sysdep.c: Likewise.
8495         * elf/dl-version.c: Likewise.
8496         * elf/rtld.c: Likewise.
8497         * hurd/hurdsock.c: Likewise.
8498         * hurd/lookup-retry.c: Likewise.
8499         * malloc/malloc.c: Likewise.
8500         * malloc/mtrace.c: Likewise.
8501         * nscd/nscd_getgr_r.c: Likewise.
8502         * nscd/nscd_getpw_r.c: Likewise.
8503         * nscd/nscd_getserv_r.c: Likewise.
8504         * posix/getopt_init.c: Likewise.
8505         * posix/wordexp.c: Likewise.
8506         * stdio-common/_itoa.c: Likewise.
8507         * stdio-common/printf_fphex.c: Likewise.
8508         * stdio-common/vfprintf.c: Likewise.
8509         * string/_strerror.c: Likewise.
8510         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8511         * sysdeps/i386/i686/hp-timing.h: Likewise.
8512         * sysdeps/mach/_strerror.c: Likewise.
8513         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8514         * sysdeps/mach/hurd/sethostid.c: Likewise.
8515         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8516         * sysdeps/mach/xpg-strerror.c: Likewise.
8517         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8518         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8519         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8520         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8521         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8522         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8523         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8524         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8525         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8526         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8527         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8528         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8529         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8530         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8531         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8532         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8533         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8534         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8535         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8536         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8537         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8538
8539         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8540
8541         * stdio-common/_itoa.h: Moved to ...
8542         * sysdeps/generic/_itoa.h: Here.
8543
8544         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8545
8546         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8547         instead of "_itoa.h" and "_itowa.h".
8548         * stdio-common/vfprintf.: Likewise.
8549
8550 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8551
8552         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8553         <bits/wordsize.h>.
8554         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8555         (__signbit): Likwise.
8556         (llrintf): Likwise.
8557         (llrint): Likwise.
8558
8559 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8560
8561         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8562         __WORDSIZE != 64.
8563
8564 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8565
8566         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8567         OVERFLOW_EXCEPTION_OK.
8568         * math/libm-test.inc ("Philosophy"): Update comment about
8569         exception testing.
8570         (OVERFLOW_EXCEPTION): Define.
8571         (OVERFLOW_EXCEPTION_OK): Likewise.
8572         (INVALID_EXCEPTION_OK): Renumber.
8573         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8574         (IGNORE_ZERO_INF_SIGN): Likewise.
8575         (test_exceptions): Handle FE_OVERFLOW.
8576         (exp10_test): Expect overflow exceptions.
8577         (exp2_test): Likewise.
8578         (expm1_test): Likewise.
8579         (nextafter_test): Likewise.
8580         (pow_test): Likewise.
8581         (scalbn_test): Likewise.
8582         (scalbln_test): Likewise.
8583
8584 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8585
8586         * sysdeps/x86_64/bits/atomic.h
8587         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8588         64bit integer.
8589         (atomic_exchange_acq): Likewise.
8590         (__arch_exchange_and_add_body): Likewise.
8591         (__arch_add_body): Likewise.
8592         (atomic_add_negative): Likewise.
8593         (atomic_add_zero): Likewise.
8594
8595 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8596
8597         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8598         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8599
8600 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8601
8602         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8603         Check __x86_64__ instead of __WORDSIZE.
8604
8605 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8606
8607         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8608
8609 2012-03-19  David S. Miller  <davem@davemloft.net>
8610
8611         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8612
8613         * sysdeps/sparc/fpu/fenv_private.h: New file.
8614         * sysdeps/sparc/fpu/math_private.h: Use it.
8615         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8616         Remove.
8617         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8618         (libc_feholdexcept_setroundl): Remove.
8619         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8620         Remove.
8621         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8622         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8623
8624 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8625
8626         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8627         int64_t instead of long int.
8628         (INSERT_WORDS64): Likwise.
8629
8630 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8631
8632         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8633         _Unwind_GetCFA return to _Unwind_Ptr first.
8634
8635 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8636
8637         [BZ #13629]
8638         * math/s_clog.c: Include <float.h>.
8639         (__clog): Scale large or subnormal inputs.
8640         * math/s_clogf.c: Likewise.
8641         * math/s_clogl.c: Likewise.
8642         * math/s_clog10.c: Include <float.h>.
8643         (M_LOG10_2): Define.
8644         (__clog10): Scale large or subnormal inputs.
8645         * math/s_clog10f.c: Likewise.
8646         * math/s_clog10l.c: Likewise.
8647         * math/libm-test.inc (clog_test): Add more tests.
8648         (clog10_test): Likewise.
8649         * sysdeps/i386/fpu/libm-test-ulps: Update.
8650         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8651
8652         [BZ #11451]
8653         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8654         x and y.
8655         * math/libm-test.inc (atan2_test): Add another test.
8656
8657         * Makerules (common-objdir-compile): Remove.
8658         * sysdeps/unix/Makefile (config-generated): Do not add
8659         $(unix-generated) to variable.
8660         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8661         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8662         Remove rule.
8663         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8664         Likewise.
8665         [generic bits/local_lim.h] (before-compile): Do not append to
8666         variable.
8667         [generic bits/local_lim.h] (common-generated): Likewise.
8668         [generic sys/param.h] (before-compile): Do not append to variable.
8669         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8670         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8671         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8672         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8673         include.
8674         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8675         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8676         [generic sys/param.h] ($(addprefix
8677         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8678         [generic sys/param.h] (common-generated): Do not append to
8679         variable.
8680         [generic sys/param.h] (sysdep_headers): Likewise.
8681         [generic bits/errno.h] (before-compile): Do not append to
8682         variable.
8683         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8684         rule.
8685         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8686         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8687         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8688         [generic bits/errno.h] (common-generated): Do not append to
8689         variable.
8690         [generic bits/ioctls.h] (before-compile): Do not append to
8691         variable.
8692         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8693         rule.
8694         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8695         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8696         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8697         rule.
8698         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8699         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8700         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8701         [generic bits/ioctls.h] (common-generated): Do not append to
8702         variable.
8703         [generic sys/syscall.h] (syscall.h): Remove variable.
8704         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8705         rule.
8706         [generic sys/syscall.h] (before-compile): Do not append to
8707         variable.
8708         [generic sys/syscall.h] (common-generated): Likewise.
8709         * sysdeps/unix/errnos-tmpl.c: Remove file.
8710         * sysdeps/unix/errnos.awk: Likewise.
8711         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8712         * sysdeps/unix/ioctls.awk: Likewise.
8713         * sysdeps/unix/mk-local_lim.c: Likewise.
8714         * sysdeps/unix/snarf-ioctls: Likewise.
8715
8716 2012-03-19  Richard Henderson  <rth@twiddle.net>
8717
8718         * sysdeps/i386/fpu/fenv_private.h: New file.
8719         * sysdeps/i386/fpu/math_private.h: Use it.
8720         (math_opt_barrier, math_force_eval): Remove.
8721         (libc_feholdexcept_setround_53bit): Remove.
8722         (libc_feupdateenv_53bit): Remove.
8723         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8724         (math_opt_barrier, math_force_eval): Remove.
8725         (libc_feholdexcept): Remove.
8726         (libc_feholdexcept_setround): Remove.
8727         (libc_fetestexcept, libc_fesetenv): Remove.
8728         (libc_feupdateenv_test): Remove.
8729         (libc_feupdateenv, libc_feholdsetround): Remove.
8730         (libc_feresetround): Remove.
8731
8732         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8733         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8734
8735         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8736         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8737         (libc_feupdateenv_testl): New.
8738         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8739         (libc_feupdateenv_testf): New.
8740         (libc_feupdateenv): Use libc_feupdateenv_test.
8741         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8742         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8743
8744         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8745         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8746         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8747         (libc_feresetround_noex): New.
8748         (libc_feresetround_noexf): New.
8749         (libc_feresetround_noexl): New.
8750         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8751         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8752         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8753         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8754         SET_RESTORE_ROUND.
8755         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8756         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8757         (__cos): Likewise.
8758         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8759         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8760         SET_RESTORE_ROUND_NOEX.
8761         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8762         SET_RESTORE_ROUND_NOEXF.
8763         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8764         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8765         (libc_feholdsetroundf): New.
8766         (libc_feresetround, libc_feresetroundf): New.
8767
8768         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8769         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8770         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8771
8772         * sysdeps/generic/math_private.h: Include <fenv.h>.
8773         (default_libc_feholdexcept): New.
8774         (default_libc_feholdexcept_setround): New.
8775         (default_libc_fesetenv, default_libc_feupdateenv): New.
8776         (libc_feholdexcept): Only define if undefined.
8777         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8778         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8779         (libc_feholdexcept_setroundl): Likewise.
8780         (libc_feholdexcept_setround_53bit): Likewise.
8781         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8782         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8783         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8784         (libc_feupdateenv_53bit): Likewise.
8785         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8786         (libc_feholdexcept): Convert from macro to inline function.
8787         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8788         (libc_fesetenv, libc_feupdateenv): Likewise.
8789
8790         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8791         not previously defined.
8792         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8793         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8794         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8795         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8796         * sysdeps/ieee754/flt-32/math_private.h: New file.
8797         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8798         math_private.h below SET_FLOAT_WORD.
8799         (__isnan, __isinf_ns, __finite): Remove.
8800         (__isnanf, __isinf_nsf, __finitef): Remove.
8801
8802 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8803
8804         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8805
8806 2012-03-17  David S. Miller  <davem@davemloft.net>
8807
8808         [BZ #6471]
8809         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8810         for 2.16.
8811
8812 2012-03-16  David S. Miller  <davem@davemloft.net>
8813
8814         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8815         warnings.
8816
8817         [BZ #6471]
8818         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8819         properly.
8820         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8821         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8822         sysdep_routines when subdir is sysvipc.
8823         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8824         __getshmlba helper.
8825
8826         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8827
8828 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8829
8830         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8831         [__LP64__].
8832
8833 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8834
8835         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8836         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8837         (__lround): Renamed to ...
8838         (__llround): This.  Replace long int with long long int.
8839         Define lround functions as aliases of llround functions.
8840         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8841
8842 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8843
8844         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8845         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8846         adresses to uintptr_t.  Replace "long int" and "unsigned long
8847         int" with "greg_t" on va_arg.
8848
8849 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8850
8851         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8852         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8853
8854         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8855         Move e_machine check before EI_CLASS check.  Handle x32
8856         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8857         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8858         SKIP_EM_IA_64 and include
8859         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8860
8861         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8862         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8863         (add_system_dir): New macro.
8864
8865         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8866         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8867
8868 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8869
8870         [BZ #2551]
8871         [BZ #2552]
8872         [BZ #2553]
8873         [BZ #2554]
8874         [BZ #2562]
8875         [BZ #2563]
8876         [BZ #2565]
8877         [BZ #2566]
8878         [BZ #2576]
8879         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8880         (y0): Likewise.
8881         * math/w_j0f.c (j0f): Likewise.
8882         (y0f): Likewise.
8883         * math/w_j0l.c (__j0l): Likewise.
8884         (__y0l): Likewise.
8885         * math/w_j1.c (j1): Likewise.
8886         (y1): Likewise.
8887         * math/w_j1f.c (j1f): Likewise.
8888         (y1f): Likewise.
8889         * math/w_j1l.c (__j1l): Likewise.
8890         (__y1l): Likewise.
8891         * math/w_jn.c (jn): Likewise.
8892         (yn): Likewise.
8893         * math/w_jnf.c (jnf): Likewise.
8894         (ynf): Likewise.
8895         * math/w_jnl.c (__jnl): Likewise.
8896         (__ynl): Likewise.
8897         * math/libm-test.inc (j0_test): Add more tests.
8898         (j1_test): Likewise.
8899         (jn_test): Likewise.  Add trailing semicolon to existing test.
8900         (y0_test): Likewise.
8901         (y1_test): Likewise.
8902         * sysdeps/i386/fpu/libm-test-ulps: Update.
8903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8904
8905         [BZ #13851]
8906         [BZ #13854]
8907         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
8908         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
8909         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
8910         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
8911         (__tanl): Set errno for infinite argument.
8912         * sysdeps/i386/fpu/mptan.c: Remove.
8913         * sysdeps/i386/fpu/s_tan.S: Likewise.
8914         * sysdeps/i386/fpu/s_tanl.S: Likewise.
8915         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
8916         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
8917         * math/libm-test.inc (tan_test): Add more tests and enable more
8918         tests for double and long double.
8919         * sysdeps/i386/fpu/libm-test-ulps: Update.
8920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8921
8922 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
8923
8924         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
8925         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
8926
8927 2012-03-16  Roland McGrath  <roland@hack.frob.com>
8928
8929         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
8930         * configure.in: Use it for both main tree and add-ons.
8931         * configure: Regenerated.
8932
8933 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8934
8935         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
8936
8937 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8938
8939         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
8940         in comment.
8941
8942         [BZ #13851]
8943         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
8944         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
8945         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
8946         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
8947         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
8948         infinite argument.
8949         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
8950         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
8951         != 0 for prec == 2.
8952         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
8953         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
8954         * sysdeps/i386/fpu/s_cosl.S: Likewise.
8955         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
8956         * sysdeps/i386/fpu/s_sinl.S: Likewise.
8957         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
8958         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
8959         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
8960         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
8961         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
8962         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
8963         * math/libm-test.inc (cos_test): Add more tests and enable more
8964         tests for long double.
8965         (sin_test): Likewise.
8966         (sincos_test): Likewise.
8967         * sysdeps/i386/fpu/libm-test-ulps: Update.
8968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8969
8970 2012-03-16  David S. Miller  <davem@davemloft.net>
8971
8972         * sysdeps/sparc/fpu/math_private.h: New file.
8973
8974 2012-03-15  David S. Miller  <davem@davemloft.net>
8975
8976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
8977         file.
8978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
8979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
8980         file.
8981         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
8982         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
8983         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
8984         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
8985         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
8986         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
8987         sysdep routines.
8988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
8989
8990         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
8991         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
8992
8993         * sysdeps/sparc/sparc-ifunc.h: New file.
8994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
8995         sparc-ifunc.h
8996         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
8998         Likewise.
8999         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9000         Likewise.
9001         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9003         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9005         Likewise.
9006         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9008         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9009         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9010         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9011         Likewise.
9012         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9013         Likewise.
9014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9017         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9018         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9019         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9020         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9021         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9022         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9023         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9024         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9025         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9026         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9027         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9028         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9029         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9030         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9031         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9032         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9033         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9034         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9035         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9036         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9037         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9038
9039 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9040
9041         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9042         scaling.
9043         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9044
9045 2012-03-15  Andreas Jaeger  <aj@suse.de>
9046
9047         [BZ #13852]
9048         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9049         ieee754/flt-32 implementation for sin, cos and sincos.
9050         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9051         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9052         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9053         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9054         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9055         ieee754/flt-32 implementation for tan.
9056
9057         * math/libm-test.inc (cos_test): Enable some large input tests for
9058         float as well
9059         (sin_test): Likewise.
9060         (sincos_test): Likewise.
9061         (tan_test): Add tests for large input.
9062
9063         * sysdeps/i386/fpu/libm-test-ulps: Update.
9064
9065 2012-03-15  Andreas Jaeger  <aj@suse.de>
9066
9067         [BZ #13658]
9068         * math/libm-test.inc (cos_test): Add more test cases.
9069         (sin_test): Likewise.
9070         (sincos_test): Likewise.
9071
9072 2012-03-15  Andreas Jaeger  <aj@suse.de>
9073
9074         [BZ #13837]
9075         * math/libm-test.inc (cos_test): Add a test case for large input
9076         value.
9077         (sin_test): Likewise.
9078         (sincos_test): Likewise.
9079
9080 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9081         Joseph Myers  <joseph@codesourcery.com>
9082
9083         [BZ #13658]
9084         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9085         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9086         * sysdeps/i386/fpu/branred.c: Likewise.
9087         * sysdeps/i386/fpu/dosincos.c: Likewise.
9088         * sysdeps/i386/fpu/mpa.c: Likewise.
9089         * sysdeps/i386/fpu/s_cos.S: Likewise.
9090         * sysdeps/i386/fpu/s_sin.S: Likewise.
9091         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9092         * sysdeps/i386/fpu/sincos32.c: Likewise.
9093
9094         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9095         Define.
9096         (libc_feupdateenv_53bit): Define.
9097         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9098         Define.
9099         (libc_feupdateenv_53bit): Define.
9100
9101         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9102         53 bit (without extend i386 double precision).
9103
9104         * math/libm-test.inc (sincos_test): Add tests for large input.
9105         (sin): Likewise.
9106         (cos): Likewise.
9107
9108         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9109
9110 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9111
9112         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9113
9114 2012-03-15  David S. Miller  <davem@davemloft.net>
9115
9116         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9117         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9118         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9119         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9120         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9121         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9122         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9123         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9124         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9125         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9126         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9127         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9128         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9129         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9130         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9132         file.
9133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9135         file.
9136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9137         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9138         file.
9139         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9140         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9141         file.
9142         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9143         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9144         fmin/fmax sysdep routines.
9145         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9146
9147 2012-03-14  David S. Miller  <davem@davemloft.net>
9148
9149         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9150         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9151         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9152         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9153         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9154         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9155         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9156         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9157         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9158         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9159         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9160         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9161         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9162         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9163         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9164         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9165         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9166         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9167         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9168         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9169         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9170         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9171         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9172         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9173         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9174         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9175         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9176         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9177         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9178         routines.
9179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9180         file.
9181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9183         file.
9184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9185         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9186         file.
9187         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9188         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9189         file.
9190         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9191         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9192         file.
9193         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9194         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9195         file.
9196         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9197         file.
9198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9199         file.
9200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9201         file.
9202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9203         New file.
9204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9205         file.
9206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9207         file.
9208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9210         file.
9211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9213         file.
9214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9216         file.
9217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9219         VIS3 routines.
9220
9221         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9222         New file.
9223
9224         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9225
9226         * sysdeps/sparc/configure.in: New file.
9227         * sysdeps/sparc/configure: Generate.
9228         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9229         * configure: Regenerate.
9230         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9231         * config.make.in (have-as-vis3): New.
9232         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9233         available use -Av9d instead of -Av9a.
9234         * sysdeps/sparc/sparc64/Makefile: Likewise.
9235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9237         New file.
9238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9239         file.
9240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9241         New file.
9242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9243         file.
9244         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9245         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9246         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9247         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9248         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9249
9250         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9251         fzeros/fnegs to load 0x80000000 into a float register instead of
9252         using the stack.
9253         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9254
9255 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9256
9257         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9258         bits/syscall.h.
9259         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9260         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9261         ($(inst_includedir)/bits/syscall.h): Remove rule.
9262         ($(objpfx)bits/syscall.d): Include instead of
9263         $(objpfx)syscall-list.d.
9264         (generated): Change syscall-list.h and syscall-list.d to
9265         bits/syscall.h and bits/syscall.d.
9266
9267 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9268
9269         [BZ #13846]
9270         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9271
9272 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9273
9274         [BZ #13841]
9275         * math/s_csqrt.c: Include <float.h>.
9276         (__csqrt): Scale large or subnormal inputs.
9277         * math/s_csqrtf.c: Likewise.
9278         * math/s_csqrtl.c: Likewise.
9279         * math/libm-test.inc (csqrt_test): Add more tests.
9280         * sysdeps/i386/fpu/libm-test-ulps: Update.
9281         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9282
9283         [BZ #13840]
9284         * math/libm-test.inc (hypot_test): Add more tests.
9285
9286 2012-03-13  David S. Miller  <davem@davemloft.net>
9287
9288         [BZ #13840]
9289         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9290         double-precision for the calculation instead of scaling.
9291
9292 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9293
9294         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9295         manipulate bits before adding and subtracting TWO52[sx].
9296         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9297         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9298         Likewise.
9299         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9300
9301 2012-03-13  David S. Miller  <davem@davemloft.net>
9302
9303         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9304         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9305         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9306         rtld-global-offsets.h
9307         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9308
9309         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9310         large parameters.
9311
9312         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9313
9314         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9315         'err' in the ifdef scope in which it is actually used.
9316
9317         * nss/nss_db/db-init.c: Include string.h
9318
9319 2012-03-12  David S. Miller  <davem@davemloft.net>
9320
9321         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9322         masking out of the most significant byte of random value used.
9323         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9324         Fix coding style in previous change.
9325
9326         * sysdeps/unix/sysv/linux/kernel-features.h
9327         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9328         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9329         expression.
9330         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9331         later.
9332
9333 2012-03-11  David S. Miller  <davem@davemloft.net>
9334
9335         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9336         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9337         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9338         for 'resultvar' otherwise things get truncated on 64-bit.
9339
9340         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9341         Fix masking out of the most significant byte of random value used.
9342
9343         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9344
9345 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9346
9347         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9348
9349 2012-03-09  David S. Miller  <davem@davemloft.net>
9350
9351         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9352         variables with appropriate CPP guards.
9353         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9354         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9355         on resulting framesize and the management of the outregs buffer for pltexit.
9356         Preserve floating point return values across _dl_call_pltexit call.
9357         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9358         framesize and the management of the outregs buffer for pltexit.
9359         Preserve floating point return values across _dl_call_pltexit
9360         call.
9361         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9362         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9363         (print_exit): Fix format string for return register value.
9364
9365 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9366
9367         * sunrpc/Makefile (others): Add rpcgen.
9368         ($(objpfx)rpcgen): Remove special build rule and dependency on
9369         libc.
9370         * sunrpc/rpcgen.c: New file.
9371
9372 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9373
9374         [BZ #13673]
9375         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9376         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9377         * sysdeps/i386/crti.S: Likewise.
9378         * sysdeps/i386/crtn.S: Likewise.
9379         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9380         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9381         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9382         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9383         * sysdeps/sh/crti.S: Likewise.
9384         * sysdeps/sh/crtn.S: Likewise.
9385         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9386
9387         [BZ #13673]
9388         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9389         with URL.
9390         * locale/programs/locfile-kw.gperf: Likewise.
9391         * locale/programs/charmap-kw.h: Regenerated.
9392         * locale/programs/locfile-kw.h: Likewise.
9393
9394         [BZ #13673]
9395         * intl/plural.y: Replace FSF snail mail address with URL.
9396         * intl/plural.c: Regenerated.
9397
9398 2012-03-09  Richard Henderson  <rth@twiddle.net>
9399
9400         * include/math_private.h: Remove file.
9401         * math/math_private.h: Move file ...
9402         * sysdeps/generic/math_private.h: ... here.
9403
9404         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9405         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9406         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9407
9408         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9409         and <math_private.h>.
9410         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9411         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9412         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9413         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9414         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9415         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9416         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9417         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9418         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9419         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9420         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9421         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9422         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9423         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9424         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9425         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9426         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9427         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9428         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9429         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9430         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9431         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9432         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9433         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9434         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9435         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9436         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9437         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9438         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9439         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9440         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9441         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9442         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9443         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9444         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9445         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9446         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9447         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9448         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9449         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9450         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9451         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9452         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9453         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9454         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9455         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9456         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9457         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9458         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9459         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9460         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9461         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9462         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9463         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9464         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9465         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9466         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9467         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9468         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9469         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9470         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9471         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9472         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9473         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9474         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9475         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9476         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9477         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9478         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9479         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9480         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9481         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9482         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9483         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9484         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9485         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9486         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9487         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9488         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9489         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9490         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9491         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9492         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9493         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9494         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9495         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9496         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9497         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9498         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9499         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9500         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9501         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9502         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9503         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9504         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9505         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9506         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9507         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9508         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9509         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9510         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9511         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9512         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9513         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9514         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9515         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9516         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9517         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9518         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9519         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9520         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9521         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9522         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9523         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9524         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9525         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9526         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9527         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9528         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9529         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9530         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9531         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9532         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9533         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9534         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9535         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9536         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9537         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9538         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9539         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9540         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9541         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9542         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9543         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9544         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9545         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9546         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9547         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9548         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9549         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9550         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9551         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9552         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9553         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9554         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9555         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9556         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9557         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9558         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9559         * sysdeps/ieee754/k_standard.c: Likewise.
9560         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9561         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9562         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9563         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9564         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9565         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9566         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9567         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9568         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9569         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9570         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9571         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9572         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9573         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9574         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9575         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9576         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9577         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9578         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9579         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9580         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9581         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9582         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9583         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9584         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9585         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9586         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9587         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9588         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9589         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9590         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9591         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9592         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9593         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9594         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9595         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9596         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9597         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9598         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9599         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9600         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9601         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9602         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9603         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9604         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9605         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9606         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9607         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9608         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9609         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9610         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9611         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9612         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9613         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9614         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9615         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9616         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9617         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9618         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9619         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9620         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9621         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9622         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9623         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9624         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9625         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9626         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9627         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9628         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9629         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9630         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9631         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9632         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9633         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9634         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9635         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9636         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9637         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9638         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9639         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9640         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9641         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9642         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9643         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9644         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9645         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9646         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9647         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9648         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9649         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9650         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9651         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9652         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9653         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9654         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9655         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9656         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9657         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9658         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9659         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9660         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9661         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9662         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9663         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9664         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9665         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9666         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9667         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9668         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9669         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9670         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9671         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9672         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9673         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9674         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9675         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9676         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9677         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9678         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9679         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9680         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9681         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9682         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9683         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9684         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9685         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9686         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9687         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9688         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9689         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9690         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9691         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9692         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9693         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9694         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9695         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9696         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9697         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9698         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9699         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9700         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9701         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9702         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9703         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9704         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9705         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9706         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9707         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9708         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9709         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9710         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9711         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9712         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9713         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9714         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9715         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9716         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9717         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9718         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9719         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9720         * sysdeps/ieee754/s_lib_version.c: Likewise.
9721         * sysdeps/ieee754/s_matherr.c: Likewise.
9722         * sysdeps/ieee754/s_signgam.c: Likewise.
9723         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9724         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9725         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9726         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9727         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9728         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9729         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9730         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9731         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9732         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9733         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9734         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9735         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9736         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9737         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9738         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9739         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9740         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9741         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9742         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9743         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9744
9745 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9746
9747         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9748         * sunrpc/rpc_main.c: Likewise.
9749         * sunrpc/rpc_svcout.c: Likewise.
9750
9751 2012-03-09  David S. Miller  <davem@davemloft.net>
9752
9753         * include/math_private.h: New file.
9754
9755 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9756
9757         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9758         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9759         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9760         from <bits/socket_type.h>.
9761         (enum __socket_type): Don't define here.
9762         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9763         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9764         bits/socket_type.h.
9765
9766         [BZ #13566]
9767         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9768         checking __USE_GNU.
9769
9770         * Makerules ($(inst_includedir)/%.h): New rule.
9771         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9772         (install-others): Remove variable setting.
9773         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9774
9775 2012-03-08  Richard Henderson  <rth@twiddle.net>
9776
9777         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9778         from macro to inline function; merge with the
9779         !__LIBC_INTERNAL_MATH_INLINES version.
9780         (__ieee754_sqrtf): Likewise.
9781
9782         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9783         to inline function.
9784         (__rintf, __floor, __floorf): Likewise.
9785
9786         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9787         macro to inline function.
9788         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9789
9790         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9791         not <math/math_private.h>.
9792
9793 2012-03-08  David S. Miller  <davem@davemloft.net>
9794
9795         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9796         copyright year.
9797         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9798
9799 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9800
9801         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9802         normalization.
9803         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9804         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9805
9806 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9807
9808         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9809         be defined individually, they must be defined as a block.  Define
9810         S for printing a string instead of hidint the different by using a
9811         macro for adding the 'l'.
9812         * stdio-common/tst-fphex-wide.c: Adjust.
9813
9814 2012-03-07  Marek Polacek  <polacek@redhat.com>
9815
9816         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9817
9818 2012-03-08  Marek Polacek  <polacek@redhat.com>
9819
9820         [BZ #13806]
9821         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9822         * stdio-common/tst-fphex.c: Define a few macros to make the
9823         test reusable.  Use them.
9824         * stdio-common/tst-fphex-wide.c: New file.
9825
9826 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9827
9828         [BZ #6911]
9829         * manual/macros.texi (gnusystems): New macro.
9830         (nongnusystems): Likewise.
9831         (gnulinuxhurdsystems): Likewise.
9832         (gnuhurdsystems): Likewise..
9833         (gnulinuxsystems): Likewise.
9834         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9835         variants of the GNU system, not "GNU system".
9836         * manual/conf.texi: Likewise.
9837         * manual/errno.texi: Likewise.  Update example of errno macro
9838         expansion.
9839         * manual/filesys.texi: Likewise.
9840         (getumask): Document as specific to GNU/Hurd.
9841         * manual/install.texi: Likewise.  Reword some references to
9842         GNU/Linux.
9843         * manual/intro.texi: Likewise.
9844         * manual/io.texi: Likewise.
9845         (File Name Portability): Detail which constraints are inapplicable
9846         to all GNU systems and which are only inapplicable to GNU/Hurd.
9847         * manual/job.texi: Likewise.
9848         * manual/llio.texi: Likewise.
9849         (O_NOCTTY): Document as present on GNU/Linux.
9850         * manual/maint.texi: Likewise.
9851         * manual/memory.texi: Likewise.
9852         * manual/pattern.texi: Likewise.
9853         * manual/pipe.texi: Likewise.
9854         * manual/process.texi: Likewise.
9855         * manual/resource.texi: Likewise.
9856         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9857         child on GNU/Hurd.
9858         * manual/setjmp.texi: Likewise.
9859         * manual/signal.texi: Likewise.
9860         * manual/startup.texi: Likewise.
9861         * manual/stdio.texi: Likewise.
9862         * manual/terminal.texi: Likewise.
9863         (ONLCR): Document as POSIX.
9864         (OXTABS): Document availability on GNU/Linux as XTABS.
9865         (ONOEOT): Document availability separately from other bits.
9866         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9867         * manual/time.texi: Likewise.
9868         * manual/users.texi: Likewise.
9869         * INSTALL: Regenerated.
9870         * sysdeps/gnu/errlist.c: Regenerated.
9871
9872         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9873         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9874         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9875         puts.
9876         * configure: Regenerated.
9877
9878 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9879
9880         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9881         default includes instead of AC_HEADER_CHECK.
9882         * sysdeps/i386/configure: Regenerated.
9883
9884         [BZ #10716]
9885         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
9886         * math/s_cacoshf.c (__cacoshf): Likewise.
9887         * math/s_cacoshl.c (__cacoshl): Likewise.
9888         * math/s_casinh.c (__casinh): Set signs of result from argument.
9889         * math/s_casinhf.c (__casinhf): Likewise.
9890         * math/s_casinhl.c (__casinhl): Likewise.
9891         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
9892         (casinh_test): Add more tests.
9893         * sysdeps/i386/fpu/libm-test-ulps: Update.
9894         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9895
9896 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
9897
9898         * po/zh_TW.po: Update from translation team.
9899
9900         * login/Makefile (distribute): Remove variable.
9901         * catgets/Makefile: Likewise.
9902         * mach/Makefile: Likewise.
9903         * malloc/Makefile: Likewise.
9904         * misc/Makefile: Likewise.
9905         * iconv/Makefile: Likewise.
9906         * nscd/Makefile: Likewise.
9907         * hurd/Makefile: Likewise.
9908         * manual/Makefile: Likewise.
9909         * locale/Makefile: Likewise.
9910         * intl/Makefile: Likewise.
9911         * conform/Makefile: Likewise.
9912         * nss/Makefile: Likewise.
9913         * time/Makefile: Likewise.
9914         * soft-fp/Makefile: Likewise.
9915         * dirent/Makefile: Likewise.
9916         * gmon/Makefile: Likewise.
9917         * po/Makefile: Likewise.
9918         * rt/Makefile: Likewise.
9919         * socket/Makefile: Likewise.
9920         * math/Makefile: Likewise.
9921         * signal/Makefile: Likewise.
9922         * debug/Makefile: Likewise.
9923         * elf/Makefile: Likewise.
9924         * timezone/Makefile: Likewise.
9925         * stdlib/Makefile: Likewise.
9926         * iconvdata/Makefile: Likewise.
9927         * sunrpc/Makefile: Likewise.
9928         * io/Makefile: Likewise.
9929         * argp/Makefile: Likewise.
9930         * inet/Makefile: Likewise.
9931         * hesiod/Makefile: Likewise.
9932         * grp/Makefile: Likewise.
9933         * csu/Makefile: Likewise.
9934         * wctype/Makefile: Likewise.
9935         * crypt/Makefile: Likewise.
9936         * libio/Makefile: Likewise.
9937         * string/Makefile: Likewise.
9938         * nis/Makefile: Likewise.
9939         * resolv/Makefile: Likewise.
9940         * stdio-common/Makefile: Likewise.
9941         * wcsmbs/Makefile: Likewise.
9942         * dlfcn/Makefile: Likewise.
9943         * posix/Makefile: Likewise.
9944
9945         [BZ #6959]
9946         * timezone/Makefile: Don't install timezone files, just the programs
9947         and scripts.
9948
9949 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
9950
9951         * nss/databases.def: Add missing gshadow entry.
9952
9953         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
9954
9955 2012-03-06  Marek Polacek  <polacek@redhat.com>
9956
9957         [BZ #13726]
9958         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
9959         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
9960         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
9961         * stdio-common/tst-long-dbl-fphex.c: New file.
9962
9963 2012-03-06  David S. Miller  <davem@davemloft.net>
9964
9965         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
9966         (set_obp_int): New function.
9967         (get_obp_int): New function.
9968         (__get_clockfreq_via_dev_openprom): Likewise.
9969         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
9970         Avoid unused variable warnings on 'val' and use builtin_expect.
9971         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
9972         __builtin_expect.
9973         (INLINE_CLONE_SYSCALL): Likewise.
9974
9975 2012-03-05  David S. Miller  <davem@davemloft.net>
9976
9977         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9978
9979 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
9980
9981         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9982
9983         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
9984         only for |x| >= 40.
9985         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9986
9987 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
9988
9989         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
9990         Replace gettimeofday with __vdso_gettimeofday.
9991
9992         * sysdeps/unix/sysv/linux/x86_64/init-first.c
9993         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
9994         __vdso_clock_gettime and __vdso_getcpu.
9995
9996         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
9997         time with __vdso_time.
9998
9999 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10000
10001         * manual/lang.texi (size_t): Note types to which size_t may be
10002         equivalent with the GNU C Library, but do not describe when
10003         differences between them are significant.
10004
10005 2012-03-05  Andreas Jaeger  <aj@suse.de>
10006
10007         * sysdeps/i386/fpu/libm-test-ulps: Update.
10008
10009 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10010
10011         [BZ #3976]
10012         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10013         (__ieee754_pow): Save and restore rounding mode and use
10014         round-to-nearest for main computations.
10015         * math/libm-test.inc (pow_test_tonearest): New function.
10016         (pow_test_towardzero): Likewise.
10017         (pow_test_downward): Likewise.
10018         (pow_test_upward): Likewise.
10019         (main): Call the new functions.
10020         * sysdeps/i386/fpu/libm-test-ulps: Update.
10021         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10022
10023         [BZ #3976]
10024         * math/libm-test.inc (cosh_test_tonearest): New function.
10025         (cosh_test_towardzero): Likewise.
10026         (cosh_test_downward): Likewise.
10027         (cosh_test_upward): Likewise.
10028         (sinh_test_tonearest): Likewise.
10029         (sinh_test_towardzero): Likewise.
10030         (sinh_test_downward): Likewise.
10031         (sinh_test_upward): Likewise.
10032         (main): Call the new functions.
10033         * sysdeps/i386/fpu/libm-test-ulps: Update.
10034         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10035
10036 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10037
10038         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10039         default stack guard is set in last bytes.
10040         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10041
10042 2012-03-05  Kees Cook  <keescook@chromium.org>
10043
10044         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10045
10046         [BZ #13656]
10047         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10048         possibly allocate from heap instead of stack.
10049         * stdio-common/bug-vfprintf-nargs.c: New file.
10050         * stdio-common/Makefile (tests): Add nargs overflow test.
10051
10052 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10053
10054         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10055
10056 2012-03-03  Marek Polacek  <polacek@redhat.com>
10057
10058         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10059         * math/math_private.h: Likewise.
10060         * stdlib/tst-strtod.c: Likewise.
10061         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10062         * sysdeps/x86_64/bits/atomic.h: Likewise.
10063
10064 2012-03-02  David S. Miller  <davem@davemloft.net>
10065
10066         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10067         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10069         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10070         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10071         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10072         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10073         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10074
10075 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10076
10077         [BZ #13792]
10078         * manual/examples/README: New file, says the example source files
10079         can be used under GPL>=2.
10080         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10081         line containing just "*/".
10082         * manual/examples/add.c: Add copyright header (GPL>=2).
10083         * manual/examples/argp-ex1.c: Likewise.
10084         * manual/examples/argp-ex2.c: Likewise.
10085         * manual/examples/argp-ex3.c: Likewise.
10086         * manual/examples/argp-ex4.c: Likewise.
10087         * manual/examples/atexit.c: Likewise.
10088         * manual/examples/db.c: Likewise.
10089         * manual/examples/dir.c: Likewise.
10090         * manual/examples/dir2.c: Likewise.
10091         * manual/examples/execinfo.c: Likewise.
10092         * manual/examples/filecli.c: Likewise.
10093         * manual/examples/filesrv.c: Likewise.
10094         * manual/examples/fmtmsgexpl.c: Likewise.
10095         * manual/examples/genpass.c: Likewise.
10096         * manual/examples/inetcli.c: Likewise.
10097         * manual/examples/inetsrv.c: Likewise.
10098         * manual/examples/isockad.c: Likewise.
10099         * manual/examples/longopt.c: Likewise.
10100         * manual/examples/memopen.c: Likewise.
10101         * manual/examples/memstrm.c: Likewise.
10102         * manual/examples/mkfsock.c: Likewise.
10103         * manual/examples/mkisock.c: Likewise.
10104         * manual/examples/mygetpass.c: Likewise.
10105         * manual/examples/pipe.c: Likewise.
10106         * manual/examples/popen.c: Likewise.
10107         * manual/examples/rprintf.c: Likewise.
10108         * manual/examples/search.c: Likewise.
10109         * manual/examples/select.c: Likewise.
10110         * manual/examples/setjmp.c: Likewise.
10111         * manual/examples/sigh1.c: Likewise.
10112         * manual/examples/sigusr.c: Likewise.
10113         * manual/examples/stpcpy.c: Likewise.
10114         * manual/examples/strdupa.c: Likewise.
10115         * manual/examples/strftim.c: Likewise.
10116         * manual/examples/strncat.c: Likewise.
10117         * manual/examples/subopt.c: Likewise.
10118         * manual/examples/swapcontext.c: Likewise.
10119         * manual/examples/termios.c: Likewise.
10120         * manual/examples/testopt.c: Likewise.
10121         * manual/examples/testpass.c: Likewise.
10122         * manual/examples/timeval_subtract.c: Likewise.
10123
10124         [BZ #13792]
10125         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10126         function to ...
10127         * manual/timeval_subtract.c.texi: ... here, new file.
10128
10129 2012-03-02  David S. Miller  <davem@davemloft.net>
10130
10131         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10132
10133 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10134
10135         [BZ #3976]
10136         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10137         (__sin): Save and restore rounding mode and use round-to-nearest
10138         for all computations.
10139         (__cos): Save and restore rounding mode and use round-to-nearest
10140         for all computations.
10141         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10142         <fenv.h>.
10143         (tan): Save and restore rounding mode and use round-to-nearest for
10144         all computations.
10145         * math/libm-test.inc (cos_test_tonearest): New function.
10146         (cos_test_towardzero): Likewise.
10147         (cos_test_downward): Likewise.
10148         (cos_test_upward): Likewise.
10149         (sin_test_tonearest): Likewise.
10150         (sin_test_towardzero): Likewise.
10151         (sin_test_downward): Likewise.
10152         (sin_test_upward): Likewise.
10153         (tan_test_tonearest): Likewise.
10154         (tan_test_towardzero): Likewise.
10155         (tan_test_downward): Likewise.
10156         (tan_test_upward): Likewise.
10157         (main): Call the new functions.
10158         * sysdeps/i386/fpu/libm-test-ulps: Update.
10159         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10160
10161         [BZ #10135]
10162         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10163         small n, then large n, before computing and testing k+n.
10164         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10165         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10166         Likewise.
10167         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10168         Likewise.
10169         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10170         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10171         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10172         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10173         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10174         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10175         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10176         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10177         * math/libm-test.inc (scalbn_test): Add more tests.
10178         (scalbln_test): Likewise.
10179
10180         * manual/filesys.texi (mode_t): Describe constraints on size and
10181         signedness, not exact equivalence to a particular type.
10182         (ino_t): Likewise.
10183         (ino64_t): Likewise.
10184         (dev_t): Likewise.
10185         (nlink_t): Likewise.
10186         (blkcnt_t): Likewise.
10187         (blkcnt64_t): Likewise.
10188         * manual/llio.texi (off_t): Likewise.
10189
10190         [BZ #3976]
10191         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10192         (__ieee754_exp): Save and restore rounding mode and use
10193         round-to-nearest for all computations.
10194         * math/libm-test.inc (exp_test_tonearest): New function.
10195         (exp_test_towardzero): Likewise.
10196         (exp_test_downward): Likewise.
10197         (exp_test_upward): Likewise.
10198         (main): Call the new functions.
10199         * sysdeps/i386/fpu/libm-test-ulps: Update.
10200         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10201
10202 2012-03-01  Chris Demetriou  <cgd@google.com>
10203
10204         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10205         have predictable order.
10206
10207 2012-03-01  David S. Miller  <davem@davemloft.net>
10208
10209         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10210
10211         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10212         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10213         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10214         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10215
10216         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10217         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10218         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10219         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10220         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10221         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10222         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10223         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10224         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10225
10226         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10227
10228         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10229         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10230         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10231
10232         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10233         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10234         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10235         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10236         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10237         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10238         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10239         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10240         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10241         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10242         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10243         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10244         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10245         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10246         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10247         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10248         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10249         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10250         * sysdeps/sparc/elf/configure: Regenerated.
10251
10252 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10253
10254         * configure.in (AS, LD): Require binutils 2.20 or later.
10255         * configure: Regenerated.
10256         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10257         as required minimum version.
10258         * INSTALL: Regenerated.
10259
10260         [BZ #2541]
10261         [BZ #4108]
10262         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10263         before squaring exponent.
10264         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10265         bottom long double and 27 bits of top long double before squaring
10266         exponent.
10267         * math/libm-test.inc (erfc_test): Add more tests.
10268         * sysdeps/i386/fpu/libm-test-ulps: Update.
10269         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10271
10272 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10273
10274         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10275         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10276         containing bit-fields.
10277         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10278         * soft-fp/single.h (_FP_UNION_S): Likewise.
10279         * soft-fp/double.h (_FP_UNION_D): Likewise.
10280
10281 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10282
10283         [BZ #13786]
10284         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10285         not include ../strcmp.S.
10286         [USE_AS_STRNCASECMP_L]: Likewise.
10287         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10288         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10289         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10290         (__strncasecmp_l_ia32): Define as alias to
10291         __strncasecmp_l_nonascii.
10292
10293         [BZ #5794]
10294         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10295         * sysdeps/i386/fpu/libm-test-ulps: Update.
10296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10297
10298         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10299         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10300
10301 2012-02-29  Jeff Law  <law@redhat.com>
10302
10303         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10304         out of bounds read.
10305
10306 2012-02-29  Marek Polacek  <polacek@redhat.com>
10307
10308         [BZ #13706]
10309         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10310         * elf/Makefile: Add rules to run tst-unused-dep.out.
10311
10312 2012-02-28  David S. Miller  <davem@davemloft.net>
10313
10314         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10315         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10316         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10317         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10318         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10319         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10320
10321 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10322
10323         * math/libm-test.inc (llround_test): Move one test from
10324         lround_test.  Use TEST_f_L in moved test.
10325         (lround_test): Move misplaced test to llround_test.  Add testcase
10326         from bug 2561.
10327
10328 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10329
10330         * sysdeps/x86_64/fpu/e_expf.S: New file.
10331         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10332
10333 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10334
10335         [BZ #13637]
10336         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10337         of remain_len that may cause incomplete multi-byte character and
10338         false match.
10339         * posix/bug-regex33.c: New file.
10340         * posix/Makefile (tests): Add bug-regex33.
10341
10342 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10343
10344         * manual/macros.texi: New file.
10345         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10346         * manual/libc.texinfo: Include macros.texi.
10347         * manual/creatute.texi: Likewise.
10348         * manual/install.texi: Likewise.
10349         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10350         @glibcadj{} in references to the GNU C Library.
10351         * manual/charset.texi: Likewise.
10352         * manual/conf.texi: Likewise.
10353         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10354         when not using those macros.
10355         * manual/creature.texi: Likewise.
10356         * manual/crypt.texi: Likewise.
10357         * manual/errno.texi: Likewise.
10358         * manual/filesys.texi: Likewise.
10359         * manual/header.texi: Likewise.
10360         * manual/install.texi: Likewise.
10361         * manual/intro.texi: Likewise.
10362         * manual/io.texi: Likewise.
10363         * manual/job.texi: Likewise.
10364         * manual/lang.texi: Likewise.
10365         * manual/libc.texiinfo: Likewise.
10366         * manual/llio.texi: Likewise.
10367         * manual/locale.texi: Likewise.
10368         * manual/maint.texi: Likewise.
10369         * manual/math.texi: Likewise.
10370         * manual/memory.texi: Likewise.
10371         * manual/message.texi: Likewise.
10372         * manual/nss.texi: Likewise.
10373         * manual/pattern.texi: Likewise.
10374         * manual/process.texi: Likewise.
10375         * manual/resource.texi: Likewise.
10376         * manual/search.texi: Likewise.
10377         * manual/setjmp.texi: Likewise.
10378         * manual/signal.texi: Likewise.
10379         * manual/socket.texi: Likewise.
10380         * manual/startup.texi: Likewise.
10381         * manual/stdio.texi: Likewise.
10382         * manual/string.texi: Likewise.
10383         * manual/sysinfo.texi: Likewise.
10384         * manual/syslog.texi: Likewise.
10385         * manual/terminal.texi: Likewise.
10386         * manual/time.texi: Likewise.
10387         * manual/users.texi: Likewise.
10388         * INSTALL: Regenerated.
10389         * NOTES: Regenerated.
10390         * sysdeps/gnu/errlist.c: Regenerated.
10391
10392 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10393
10394         * include/dirent.h: Include <dirstream.h> before
10395         <dirent/dirent.h>.
10396
10397 2012-02-28  David S. Miller  <davem@davemloft.net>
10398
10399         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10400         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10401         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10402         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10403
10404 2012-02-27  David S. Miller  <davem@davemloft.net>
10405
10406         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10407         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10408         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10409         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10410
10411         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10412         frame pointer instead of stack pointer relative arg slot.
10413         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10414         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10415         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10416
10417 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10418
10419         [BZ #3992]
10420         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10421
10422 2012-02-27  David S. Miller  <davem@davemloft.net>
10423
10424         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10425         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10426         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10427         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10428         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10429         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10430         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10431         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10432
10433 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10434
10435         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10436         later.  Allow versions 5-9.
10437         * configure: Regenerated.
10438         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10439         required minimum version and 4.6 as recommended version.  Do not
10440         mention bugs in GCC 2.7 and 2.8.
10441         * INSTALL: Regenerated.
10442
10443 2012-02-27  David S. Miller  <davem@davemloft.net>
10444
10445         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10446         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10447         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10448         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10449         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10450         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10451         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10452         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10453
10454         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10455         manipulate bits before adding and subtracting TWO112[sx].
10456         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10457
10458 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10459
10460         [BZ #13775]
10461         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10462         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10463         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10464         being in POSIX, because they are in 1003.1-2008.
10465
10466         * rt/tst-aio.c: Include <fcntl.h>.
10467         * rt/tst-aio7.c: Likewise.
10468         * rt/tst-aio64.c: Likewise.
10469
10470         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10471
10472 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10473
10474         * manual/install.texi (--with-headers): Describe headers as
10475         interface headers, not private headers.
10476         (Specific advice for GNU/Linux systems): Describe use of headers
10477         from "make headers_install", not private headers from older
10478         kernels.
10479         * INSTALL: Regenerated.
10480         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10481         Change to 2.6.19.
10482         * sysdeps/unix/sysv/linux/configure: Regenerated.
10483
10484         * manual/llio.texi (fclean): Remove documentation.
10485
10486         * manual/Makefile (libc-texi-generated): New variable.  Include
10487         version.texi.
10488         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10489         $(libc-texi-generated), not duplicated list of files.
10490         (version.texi, stamp-version): New rules.
10491         (realclean): Remove $(libc-texi-generated), not individual files
10492         from that list.  Do not remove dir-add.texinfo.
10493         * manual/libc.texinfo: Comment out uses of edition numbers and
10494         references to printed manual.  Remove last-updated dates.
10495         (EDITION): Comment out.
10496         (ISBN): Likewise.
10497         (VERSION, UPDATED): Remove.
10498         (version.texi): Include.
10499
10500 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10501
10502         * sysdeps/posix/spawni.c: Include <signal.h>.
10503         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10504         * sysdeps/pthread/aio_fsync.c: Likewise.
10505
10506 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10507
10508         * conform/Makefile (tests): Run only when not cross-compiling and
10509         when fast-check is not defined.
10510
10511         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10512         * conform/data/limits.h-data: Fixes for POSIX2008.
10513         * conform/run-conformtest.sh: Run all tests.
10514         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10515         headers.
10516         * include/bits/dlfcn.h: Likewise.
10517         * include/langinfo.h: Likewise.
10518         * include/monetary.h: Likewise.
10519         * include/sys/poll.h: Likewise.
10520
10521         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10522         for __USE_GNU.
10523         * posix/spawn.h: Define __need_sigset_t.
10524         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10525         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10526         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10527         to get sigevent_t only.
10528         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10529         only for __USE_GNU.
10530         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10531         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10532         process_vm_writev only for __USE_GNU.
10533         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10534
10535         * conform/Makefile: For now ignore errors from run-conformtest.
10536         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10537         POSIX to avoid namespace pollution.  Don't prepend headers.
10538         * conform/data/aio.h-data: Fixes for POSIX testing.
10539         * conform/data/fcntl.h-data: Likewise.
10540         * conform/data/glob.h-data: Likewise.
10541         * conform/data/grp.h-data: Likewise.
10542         * conform/data/pthread.h-data: Likewise.
10543         * conform/data/pwd.h-data: Likewise.
10544         * conform/data/signal.h-data: Likewise.
10545         * conform/data/spawn.h-data: Likewise.
10546         * conform/data/stdio.h-data: Likewise.
10547         * conform/data/stdlib.h-data: Likewise.
10548         * conform/data/stropts.h-data: Likewise.
10549         * conform/data/sys/mman.h-data: Likewise.
10550         * conform/data/sys/stat.h-data: Likewise.
10551         * conform/data/sys/types.h-data: Likewise.
10552         * conform/data/sys/wait.h-data: Likewise.
10553         * conform/data/time.h-data: Likewise.
10554         * conform/data/unistd.h-data: Likewise.
10555         * conform/data/utime.h-data: Likewise.
10556
10557         * io/sys/stat.h: fchmod was always in POSIX.
10558         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10559         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10560         * rt/aio.h: Define __need_timespec before including <time.h>.
10561         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10562         struct.  Add forward declaration of pthread_attr_t and use it in
10563         sigevent.
10564         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10565         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10566         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10567         always remove CLK_TCK definition.
10568
10569 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10570
10571         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10572
10573 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10574
10575         * conform/run-conformtest.sh: New file.
10576         * conform/Makefile: Run run-conformtest for tests.
10577         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10578         support.
10579
10580         * conform/data/uchar.h-data: New file.
10581         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10582         * conform/data/arpa/inet.h-data: Likewise.
10583         * conform/data/assert.h-data: Likewise.
10584         * conform/data/complex.h-data: Likewise.
10585         * conform/data/cpio.h-data: Likewise.
10586         * conform/data/ctype.h-data: Likewise.
10587         * conform/data/dirent.h-data: Likewise.
10588         * conform/data/dlfcn.h-data: Likewise.
10589         * conform/data/errno.h-data: Likewise.
10590         * conform/data/fcntl.h-data: Likewise.
10591         * conform/data/float.h-data: Likewise.
10592         * conform/data/fmtmsg.h-data: Likewise.
10593         * conform/data/fnmatch.h-data: Likewise.
10594         * conform/data/ftw.h-data: Likewise.
10595         * conform/data/glob.h-data: Likewise.
10596         * conform/data/grp.h-data: Likewise.
10597         * conform/data/iconv.h-data: Likewise.
10598         * conform/data/inttypes.h-data: Likewise.
10599         * conform/data/langinfo.h-data: Likewise.
10600         * conform/data/libgen.h-data: Likewise.
10601         * conform/data/limits.h-data: Likewise.
10602         * conform/data/locale.h-data: Likewise.
10603         * conform/data/math.h-data: Likewise.
10604         * conform/data/monetary.h-data: Likewise.
10605         * conform/data/mqueue.h-data: Likewise.
10606         * conform/data/ndbm.h-data: Likewise.
10607         * conform/data/net/if.h-data: Likewise.
10608         * conform/data/netdb.h-data: Likewise.
10609         * conform/data/netinet/in.h-data: Likewise.
10610         * conform/data/nl_types.h-data: Likewise.
10611         * conform/data/poll.h-data: Likewise.
10612         * conform/data/pthread.h-data: Likewise.
10613         * conform/data/pwd.h-data: Likewise.
10614         * conform/data/regex.h-data: Likewise.
10615         * conform/data/sched.h-data: Likewise.
10616         * conform/data/search.h-data: Likewise.
10617         * conform/data/semaphore.h-data: Likewise.
10618         * conform/data/setjmp.h-data: Likewise.
10619         * conform/data/signal.h-data: Likewise.
10620         * conform/data/spawn.h-data: Likewise.
10621         * conform/data/stdarg.h-data: Likewise.
10622         * conform/data/stdio.h-data: Likewise.
10623         * conform/data/stdlib.h-data: Likewise.
10624         * conform/data/string.h-data: Likewise.
10625         * conform/data/strings.h-data: Likewise.
10626         * conform/data/stropts.h-data: Likewise.
10627         * conform/data/sys/ipc.h-data: Likewise.
10628         * conform/data/sys/mman.h-data: Likewise.
10629         * conform/data/sys/msg.h-data: Likewise.
10630         * conform/data/sys/resource.h-data: Likewise.
10631         * conform/data/sys/select.h-data: Likewise.
10632         * conform/data/sys/sem.h-data: Likewise.
10633         * conform/data/sys/shm.h-data: Likewise.
10634         * conform/data/sys/socket.h-data: Likewise.
10635         * conform/data/sys/stat.h-data: Likewise.
10636         * conform/data/sys/statvfs.h-data: Likewise.
10637         * conform/data/sys/time.h-data: Likewise.
10638         * conform/data/sys/timeb.h-data: Likewise.
10639         * conform/data/sys/times.h-data: Likewise.
10640         * conform/data/sys/types.h-data: Likewise.
10641         * conform/data/sys/uio.h-data: Likewise.
10642         * conform/data/sys/un.h-data: Likewise.
10643         * conform/data/sys/utsname.h-data: Likewise.
10644         * conform/data/sys/wait.h-data: Likewise.
10645         * conform/data/syslog.h-data: Likewise.
10646         * conform/data/tar.h-data: Likewise.
10647         * conform/data/termios.h-data: Likewise.
10648         * conform/data/utime.h-data: Likewise.
10649         * conform/data/utmpx.h-data: Likewise.
10650         * conform/data/varargs.h-data: Likewise.
10651         * conform/data/wchar.h-data: Likewise.
10652         * conform/data/wctype.h-data: Likewise.
10653         * conform/data/wordexp.h-data: Likewise.
10654
10655         * include/stropts.h: New file.
10656         * include/uchar.h: New file.
10657         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10658         * include/assert.h: Likewise.
10659         * include/ctype.h: Likewise.
10660         * include/dirent.h: Likewise.
10661         * include/dlfcn.h: Likewise.
10662         * include/fcntl.h: Likewise.
10663         * include/fnmatch.h: Likewise.
10664         * include/glob.h: Likewise.
10665         * include/grp.h: Likewise.
10666         * include/libio.h: Likewise.
10667         * include/locale.h: Likewise.
10668         * include/math.h: Likewise.
10669         * include/net/if.h: Likewise.
10670         * include/netdb.h: Likewise.
10671         * include/netinet/in.h: Likewise.
10672         * include/pthread.h: Likewise.
10673         * include/pwd.h: Likewise.
10674         * include/regex.h: Likewise.
10675         * include/sched.h: Likewise.
10676         * include/search.h: Likewise.
10677         * include/setjmp.h: Likewise.
10678         * include/signal.h: Likewise.
10679         * include/stdio.h: Likewise.
10680         * include/stdlib.h: Likewise.
10681         * include/string.h: Likewise.
10682         * include/sys/cdefs.h: Likewise.
10683         * include/sys/mman.h: Likewise.
10684         * include/sys/msg.h: Likewise.
10685         * include/sys/resource.h: Likewise.
10686         * include/sys/select.h: Likewise.
10687         * include/sys/socket.h: Likewise.
10688         * include/sys/stat.h: Likewise.
10689         * include/sys/statvfs.h: Likewise.
10690         * include/sys/time.h: Likewise.
10691         * include/sys/times.h: Likewise.
10692         * include/sys/uio.h: Likewise.
10693         * include/sys/utsname.h: Likewise.
10694         * include/sys/wait.h: Likewise.
10695         * include/termios.h: Likewise.
10696         * include/time.h: Likewise.
10697         * include/ulimit.h: Likewise.
10698         * include/unistd.h: Likewise.
10699         * include/utime.h: Likewise.
10700         * include/wchar.h: Likewise.
10701         * include/wctype.h: Likewise.
10702         * include/wordexp.h: Likewise.
10703
10704         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10705
10706         * time/time.h: TIME_UTC must be a macro.
10707         Make timespec_get available for ISO C11 only as well.
10708
10709 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10710
10711         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10712         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10713
10714 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10715
10716         * configure.in: Use -o not -a in test for unsupported multi-arch.
10717
10718 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10719
10720         * manual/texinfo.tex: Update to version 2012-01-19.16.
10721
10722 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10723
10724         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10725
10726 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10727
10728         [BZ #13738]
10729         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10730         * manual/fdl-1.3.texi: New file.
10731         * manual/fdl-1.1.texi: File removed.
10732
10733         [BZ #13738]
10734         * manual/libc.texinfo (FDL_VERSION): New @set.
10735         Use it for mention of FDL in cover text.
10736         (Documentation License): Use it in @include file name.
10737
10738 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10739             Roland McGrath  <roland@hack.frob.com>
10740
10741         [BZ #5461]
10742         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10743         not LONG_LONG_MAX and LONG_LONG_MIN.
10744         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10745         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10746         name.
10747         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10748
10749 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10750
10751         [BZ #2547]
10752         [BZ #11365]
10753         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10754         manipulate bits before adding and subtracting TWO23[sx].
10755         * math/libm-test.inc (nearbyint_test): Add more tests.
10756
10757 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10758
10759         [BZ #2548]
10760         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10761         bits before adding and subtracting TWO23[sx].
10762         * math/libm-test.inc (rint_test): Add more tests.
10763         (rint_test_tonearest): Likewise.
10764         (rint_test_towardzero): Likewise.
10765         (rint_test_downward): Likewise.
10766         (rint_test_upward: Likewise.
10767
10768 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10769
10770         [BZ #10110]
10771         * include/stdc-predef.h: New file.  Extracted from features.h.
10772         * include/features.h: Include stdc-predef.h.
10773         * Makefile (headers): Add stdc-predef.h.
10774         * CONFORMANCE (Compiler limitations): Update.
10775
10776 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10777
10778         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10779
10780 2012-02-21  David S. Miller  <davem@davemloft.net>
10781
10782         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10783         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10784
10785 2012-02-20  David S. Miller  <davem@davemloft.net>
10786
10787         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10788         using a normal save/restore sequence, rather than allocating a
10789         dummy stack frame just to store a frame pointer and restore.
10790         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10791
10792 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10793
10794         * manual/install.texi: Fix stray word in line-wrapped comment.
10795
10796 2012-02-20  David S. Miller  <davem@davemloft.net>
10797
10798         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10799         both binutils and gcc support GOTDATA.
10800
10801         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10802         "rd %pc" in the PIC register setup sequences.
10803
10804         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10805         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10806         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10807         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10808         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10809         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10810         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10811         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10812         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10813         (SYSCALL_ERROR_HANDLER): Likewise.
10814         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10815         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10816         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10817         (SYSCALL_ERROR_HANDLER): Likewise.
10818
10819         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10820         (HAVE_GCC_GOTDATA): New.
10821         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10822         relocation support in both binutils and gcc.
10823         * sysdeps/sparc/elf/configure: Regenerate.
10824
10825         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10826         * sysdeps/sparc/sparc32/elf/configure: Delete.
10827         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10828         * sysdeps/sparc/sparc64/elf/configure: Delete.
10829         * sysdeps/sparc/elf/configure.in: New file.
10830         * sysdeps/sparc/elf/configure: Generate.
10831
10832         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10833         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10834         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10835         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10836         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10837
10838 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10839
10840         * manual/install.texi: Do not mention specific glibc version
10841         numbers.
10842         * manual/libc.texinfo (VERSION, UPDATED): Update.
10843         (@copying): Use @copyright{} and range of years.
10844
10845 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10846
10847         [BZ #13695]
10848         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10849         [crti.S not in sysdirs] (generated): Do not append.
10850         [crti.S not in sysdirs] (omit-deps): Likewise.
10851         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10852         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10853         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10854         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10855         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10856         Likewise.
10857         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10858         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10859         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10860         * csu/defs.awk: Remove file.
10861         * sysdeps/generic/initfini.c: Likewise.
10862         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10863         variable.
10864         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10865         Likewise.
10866
10867 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10868
10869         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10870         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10871         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10872         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10873         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10874         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10875         <bits/epoll.h>.
10876         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10877         (__EPOLL_PACKED): Define to empty if not defined by
10878         <bits/epoll.h>.
10879         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10880         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10881         bits/epoll.h.
10882
10883 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10884
10885         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
10886         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
10887         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
10888         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
10889         <bits/timerfd.h>.
10890         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
10891         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10892         bits/timerfd.h.
10893
10894 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10895
10896         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
10897         in C locale.
10898         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10899         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
10900         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
10901         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10902
10903 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
10904
10905         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10906         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10907
10908 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
10909
10910         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
10911         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
10912         defined.
10913         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
10914         Likewise.
10915         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
10916         entry for 2.16.
10917
10918 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
10919
10920         * math/w_acos.c: Use non-signaling floating-point comparisons.
10921         * math/w_acosf.c: Likewise.
10922         * math/w_acosh.c: Likewise.
10923         * math/w_acoshf.c: Likewise.
10924         * math/w_acoshl.c: Likewise.
10925         * math/w_acosl.c: Likewise.
10926         * math/w_asin.c: Likewise.
10927         * math/w_asinf.c: Likewise.
10928         * math/w_asinl.c: Likewise.
10929         * math/w_atanh.c: Likewise.
10930         * math/w_atanhf.c: Likewise.
10931         * math/w_atanhl.c: Likewise.
10932         * math/w_exp2.c: Likewise.
10933         * math/w_exp2f.c: Likewise.
10934         * math/w_exp2l.c: Likewise.
10935         * math/w_j0.c: Likewise.
10936         * math/w_j0f.c: Likewise.
10937         * math/w_j0l.c: Likewise.
10938         * math/w_j1.c: Likewise.
10939         * math/w_j1f.c: Likewise.
10940         * math/w_j1l.c: Likewise.
10941         * math/w_jn.c: Likewise.
10942         * math/w_jnf.c: Likewise.
10943         * math/w_log.c: Likewise.
10944         * math/w_log10.c: Likewise.
10945         * math/w_log10f.c: Likewise.
10946         * math/w_log10l.c: Likewise.
10947         * math/w_log2.c: Likewise.
10948         * math/w_log2f.c: Likewise.
10949         * math/w_log2l.c: Likewise.
10950         * math/w_logf.c: Likewise.
10951         * math/w_logl.c: Likewise.
10952         * math/w_sqrt.c: Likewise.
10953         * math/w_sqrtf.c: Likewise.
10954         * math/w_sqrtl.c: Likewise.
10955         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10956         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
10957         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10958         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10959         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10960
10961 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10962
10963         [BZ #9739]
10964         * manual/string.texi (strnlen): Use correct parameter name in
10965         equivalent expression.
10966
10967 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10968
10969         [BZ #11174]
10970         * manual/users.texi (seteuid): Consistently use neweuid for
10971         argument name.
10972
10973 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
10974
10975         [BZ #13704]
10976         * manual/nss.texi (Services in the NSS configuration): Correct
10977         list of services in example configuration file.
10978
10979 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
10980
10981         [BZ #11322]
10982         * manual/arith.texi: Remove statements about negative zero
10983         behaving identically to zero.
10984
10985 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10986
10987         [BZ #5993]
10988         * manual/install.texi: Do not document upgrading from libc5.
10989
10990 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
10991
10992         [BZ #4596]
10993         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
10994
10995 2012-02-18  David S. Miller  <davem@davemloft.net>
10996
10997         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
10998         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
10999         %o7 across the call.
11000         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11001         instead.
11002         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11003         SETUP_PIC_REG_LEAF.
11004         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11005         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11006         * sysdeps/sparc/crtn.S: Likewise.
11007
11008 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11009
11010         * aout/Makefile: Remove.
11011
11012 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11013
11014         [BZ #13058]
11015         * manual/examples/argp-ex1.c (main): Format definition in GNU
11016         style.
11017         * manual/examples/argp-ex2.c (main): Likewise.
11018         * manual/examples/argp-ex3.c (main): Likewise.
11019         * manual/examples/argp-ex4.c (main): Likewise.
11020         * manual/examples/longopt.c (main): Use new-style prototype
11021         definition.
11022         * manual/examples/strncat.c (main): Specify return type and use
11023         (void) for arguments.
11024         * manual/examples/subopt.c (main): Use char **argv argument.
11025
11026 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11027
11028         [BZ #5077]
11029         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11030         rounding modes.
11031
11032 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11033
11034         [BZ #6907]
11035         * manual/string.texi (strchr): Change when strchrnul is
11036         recommended.
11037
11038 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11039
11040         [BZ #174]
11041         * manual/locale.texi (setlocale): Document LOCPATH.
11042
11043 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11044
11045         [BZ #10210]
11046         * manual/process.texi (execle): Move @dots{} before last argument.
11047
11048 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11049
11050         [BZ #12047]
11051         * manual/charset.texi (Generic Charset Conversion): Fix typo
11052         (LC_TYPE -> LC_CTYPE).
11053
11054 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11055
11056         [BZ #5805]
11057         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11058         (scalbnf): Likewise.
11059         (scalbnl): Likewise.
11060         (scalbln): Likewise.
11061         (scalblnf): Likewise.
11062         (scalblnl): Likewise.
11063         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11064         (vwarnx): Likewise.
11065         (verr): Likewise.
11066         (verrx): Likewise.
11067         * manual/filesys.texi (telldir): Use braces around return type.
11068         * manual/llio.texi (mmap): Add space after comma.
11069         (mmap64): Likewise.
11070         * manual/math.texi (jn): Use @var{} on parameter names.
11071         (jnf): Likewise.
11072         (jnl): Likewise.
11073         (yn): Likewise.
11074         (ynf): Likewise.
11075         (ynl): Likewise.
11076         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11077         line.
11078         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11079         "...".
11080         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11081         (sched_get_priority_max): Likewise.
11082         * manual/signal.texi (sigvec): Add space after comma.
11083         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11084         names.
11085         (if_indextoname): Likewise.
11086         (if_freenameindex): Likewise.
11087         (sendto): Use ',' instead of '.' in prototype.
11088         * manual/startup.texi (syscall): Use @dots{} instead of literal
11089         "...".
11090         * manual/stdio.texi (__fpending): Separate initial words of
11091         paragraph from @deftypefun line.
11092         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11093         "...".
11094         (vsyslog): Use @var{} on parameter names.
11095         * manual/terminal.texi (stty): Use @var{} on parameter names.
11096         * manual/users.texi (getutmp): Use @var{} on parameter names.
11097         (getutmpx): Likewise.
11098
11099 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11100
11101         [BZ #6884]
11102         * manual/stdio.texi (fopen): Fix typos in description of
11103         ",ccs=STRING".
11104
11105 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11106
11107         [BZ #4026]
11108         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11109         get clock_id definition.
11110
11111 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11112
11113         [BZ #4822]
11114         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11115         (madvise): Cast every argument to void on its own.
11116
11117 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11118
11119         [BZ #9902]
11120         * manual/startup.texi (Exit Status): Fix typo.
11121
11122 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11123
11124         [BZ #10140]
11125         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11126         * manual/examples/argp-ex2.c: Likewise.
11127         * manual/examples/argp-ex3.c: Likewise.
11128
11129 2012-02-16  Richard Henderson  <rth@redhat.com>
11130
11131         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11132         * sysdeps/s390/s390-32/initfini.c: Remove.
11133         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11134         * sysdeps/s390/s390-64/initfini.c: Remove.
11135
11136 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11137
11138         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11139         compiler output for sysdeps/generic/initfini.c.
11140         * sysdeps/sh/elf/initfini.c: Remove file.
11141
11142 2012-02-16  David S. Miller  <davem@davemloft.net>
11143
11144         [BZ #11494]
11145         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11146
11147         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11148         * sysdeps/sparc/crti.S: New file.
11149         * sysdeps/sparc/crtn.S: New file.
11150         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11151         * sysdeps/sparc/sparc64/Makefile: Likewise.
11152
11153 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11154
11155         [BZ #3335]
11156         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11157
11158 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11159
11160         [BZ #4822]
11161         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11162
11163         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11164         (write, read, close): Likewise.
11165         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11166
11167 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11168
11169         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11170         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11171         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11172         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11173         <bits/signalfd.h>.
11174         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11175         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11176         bits/signalfd.h.
11177
11178 2012-02-14  Marek Polacek  <polacek@redhat.com>
11179
11180         * sysdeps/x86_64/crti.S: New file.
11181         * sysdeps/x86_64/crtn.S: New file.
11182         * sysdeps/x86_64/elf/initfini.c: Remove file.
11183
11184 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11185
11186         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11187         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11188         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11189         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11190         <bits/inotify.h>.
11191         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11192         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11193         bits/inotify.h.
11194
11195 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11196
11197         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11198         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11199         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11200         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11201         <bits/eventfd.h>.
11202         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11203         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11204         bits/eventfd.h.
11205
11206 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11207
11208         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11209         __feraiseexcept instead of feraiseexcept.
11210
11211         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11212         nanosleep invocations.
11213         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11214         strings, and add error checking for a nanosleep invocations.
11215
11216 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11217
11218         Replace FSF snail mail address with URLs, as per GNU coding standards.
11219         Most of the snail mail addresses were wrong anyway, and omitting
11220         them makes the source code easier to maintain.  Almost all of the
11221         changes are to license notices and to locale LC_IDENTIFICATION
11222         addresses, except for this one:
11223         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11224         not its snail mail address.
11225
11226 2012-02-09  Richard Henderson  <rth@twiddle.net>
11227
11228         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11229         of kernel-features.h.
11230
11231         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11232
11233 2012-02-08  Marek Polacek  <polacek@redhat.com>
11234
11235         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11236         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11237         * sysdeps/gnu/_G_config.h: Likewise.
11238         * sysdeps/generic/_G_config.h: Likewise.
11239
11240 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11241
11242         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11243         tests.
11244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11245
11246         * sysdeps/powerpc/powerpc32/crti.S: New file.
11247         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11248         * sysdeps/powerpc/powerpc64/crti.S: New file.
11249         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11250
11251         * Makeconfig (have-initfini): Don't set.
11252         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11253         * configure.in (nopic_initfini): Don't substitute.
11254         * config.h.in (HAVE_INITFINI): Don't #undef.
11255         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11256         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11257
11258 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11259
11260         Support crti.S and crtn.S provided directly by architectures.
11261         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11262         [crti.S in sysdirs] (omit-deps): Likewise.
11263         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11264         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11265         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11266         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11267         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11268         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11269         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11270         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11271         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11272         compiler output for sysdeps/generic/initfini.c.
11273         * sysdeps/i386/elf/Makefile: Remove file.
11274         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11275
11276 2012-02-07  Marek Polacek  <polacek@redhat.com>
11277
11278         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11279         * sysdeps/gnu/_G_config.h: Likewise.
11280         * sysdeps/mach/hurd/_G_config.h: Likewise.
11281
11282 2012-02-07  Marek Polacek  <polacek@redhat.com>
11283
11284         * math/Makefile (tests): Add tst-CMPLX2.
11285         * math/tst-CMPLX2.c: New file.
11286
11287 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11288
11289         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11290
11291         * math/libm-test.inc (jn_test): Add missing L suffix.
11292
11293 2012-02-06  Marek Polacek  <polacek@redhat.com>
11294
11295         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11296         * sysdeps/i386/fpu/e_powf.S: Likewise.
11297         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11298         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11299         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11300         * sysdeps/i386/fpu/e_pow.S: Likewise.
11301         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11302         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11303         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11304         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11305         * sysdeps/i386/fpu/e_log2.S: Likewise.
11306         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11307         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11308         * sysdeps/i386/fpu/e_powl.S: Likewise.
11309         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11310         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11311         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11312         * sysdeps/i386/fpu/e_logl.S: Likewise.
11313         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11314         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11315         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11316         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11317         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11318         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11319         * sysdeps/i386/fpu/e_log.S: Likewise.
11320         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11321         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11322         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11323         * sysdeps/i386/fpu/e_logf.S: Likewise.
11324         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11325         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11326         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11327         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11328         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11329         * sysdeps/i386/fpu/e_log10.S: Likewise.
11330         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11331         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11332         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11333         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11334         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11335         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11336         * sysdeps/i386/asm-syntax.h: Likewise.
11337         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11338         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11339         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11340         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11341         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11342         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11343         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11344         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11345         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11346         * sysdeps/powerpc/sysdep.h: Likewise.
11347         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11348         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11349
11350 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11351
11352         [BZ #411]
11353         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11354
11355 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11356
11357         * sysdeps/i386/sysdep.h: Include <features.h>.
11358         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11359         version.
11360
11361 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11362
11363         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11364         Define.
11365         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11366         LOAD_PIC_REG_STR.
11367
11368 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11369
11370         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11371         (SETUP_PIC_REG): Use GET_PC_THUNK.
11372         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11373         macro.
11374
11375 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11376
11377         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11378         for non-PIC compilation.
11379         (SETUP_PIC_REG): Add .p2align directive.
11380         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11381         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11382         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11383         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11384         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11385         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11386         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11387         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11388         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11389         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11390         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11391         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11392         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11393         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11394         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11395         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11396         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11397         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11398         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11399         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11400         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11401         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11402         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11403         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11404         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11405         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11406         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11407         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11408         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11409         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11410         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11411         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11412         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11413         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11414         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11415         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11416         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11417         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11418         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11419         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11420         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11421
11422 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11423
11424         * math/tst-CMPLX.c: Include <stdio.h>.
11425
11426 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11427
11428         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11429         float.
11430         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11431         * sysdeps/sparc/bits/mathdef.h: Likewise.
11432
11433 2012-01-31  Marek Polacek  <polacek@redhat.com>
11434
11435         * libio/libio.h: Don't define _PARAMS.
11436         * locale/programs/config.h: Don't define PARAMS.
11437         * stdlib/strtol_l.c: Likewise.
11438         (__strtol_l): Remove PARAMS from the prototype.
11439
11440 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11441
11442         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11443         names.  Just use the correct names.  Remove unnecessary wrapper
11444         functions.
11445         * malloc/arena.c: Likewise.
11446         * malloc/hooks.c: Likewise.
11447
11448         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11449         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11450         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11451
11452 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11453
11454         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11455         into tail calls.
11456         (update_get_addr): New function.
11457         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11458         GET_ADDR_MODULE parameter.
11459
11460 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11461
11462         * crypt/cert.c: Remove __STDC__ conditionals.
11463         * crypt/crypt-entry.c: Likewise.
11464         * crypt/crypt_util.c: Likewise.
11465         * libio/filedoalloc.c: Likewise.
11466         * libio/fileops.c: Likewise.
11467         * libio/genops.c: Likewise.
11468         * libio/iofclose.c: Likewise.
11469         * libio/iofdopen.c: Likewise.
11470         * libio/iofopen.c: Likewise.
11471         * libio/iofopen64.c: Likewise.
11472         * libio/iogetdelim.c: Likewise.
11473         * libio/iopopen.c: Likewise.
11474         * libio/obprintf.c: Likewise.
11475         * libio/oldfileops.c: Likewise.
11476         * libio/oldiofclose.c: Likewise.
11477         * libio/oldiofdopen.c: Likewise.
11478         * libio/oldiofopen.c: Likewise.
11479         * libio/oldiopopen.c: Likewise.
11480         * libio/wfiledoalloc.c: Likewise.
11481         * libio/wgenops.c: Likewise.
11482         * locale/programs/xmalloc.c: Likewise.
11483         * misc/syslog.c: Likewise.
11484         * stdio-common/xbug.c: Likewise.
11485         * string/memchr.c: Likewise.
11486         * string/memcmp.c: Likewise.
11487         * string/memrchr.c: Likewise.
11488         * string/rawmemchr.c: Likewise.
11489         * sysdeps/posix/getcwd.c: Likewise.
11490         * time/strftime_l.c: Likewise.
11491
11492 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11493
11494         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11495         * config.make.in (config-cflags-sse2avx): Define.
11496         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11497         Fix typo.
11498
11499 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11500
11501         * scripts/config.guess: Update from upstream config git repository.
11502         * scripts/config.sub: Likewise.
11503
11504 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11505
11506         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11507         (EM_NUM): Update.
11508         (R_TILEPRO_*, R_TILEGX_*): New macros.
11509
11510         * scripts/firstversions.awk: Fix bug in version range handling.
11511
11512         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11513
11514         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11515
11516         * include/sys/epoll.h: New file.
11517         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11518         libc_hidden_def.
11519
11520 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11521
11522         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11523         Avoid unnecessary __WORDSIZE == 64 test.
11524         (fmaxf): Use VEX format if possible.
11525         (fmax): Likewise.
11526         (fminf): Likewise.
11527         (fmin): Likewise.
11528
11529         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11530         * math/math_private.h: Remove libc_fegetround* and
11531         libc_fesetround*.
11532         * sysdeps/i386/configure.in: Check for -msse2avx.
11533         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11534         also if SSE2AVX is defined.
11535         Remove libc_fegetround* and libc_fesetround*.
11536         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11537         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11538         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11539         of HAS_YMM_USABLE.
11540         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11541         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11542         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11543         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11544         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11545
11546         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11547
11548 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11549
11550         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11551         size is not set.
11552         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11553
11554 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11555
11556         [BZ #13618]
11557         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11558         relocation.
11559         * Makeconfig (libm): Define.
11560         * elf/Makefile: Add rules to build and run tst-relsort1.
11561         * elf/tst-relsort1.c: New file.
11562         * elf/tst-relsort1mod1.c: New file.
11563         * elf/tst-relsort1mod2.c: New file.
11564
11565 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11566
11567         * math/s_ldexp.c: Remove __STDC__ conditionals.
11568         * math/s_ldexpf.c: Likewise.
11569         * math/s_ldexpl.c: Likewise.
11570         * math/s_nextafter.c: Likewise.
11571         * math/s_nexttowardf.c: Likewise.
11572         * math/s_significand.c: Likewise.
11573         * math/s_significandf.c: Likewise.
11574         * math/s_significandl.c: Likewise.
11575         * math/w_jnl.c: Likewise.
11576         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11577         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11578         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11579         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11580         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11581         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11582         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11583         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11584         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11585         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11586         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11587         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11588         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11589         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11590         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11591         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11592         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11593         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11594         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11595         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11596         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11597         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11598         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11599         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11600         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11601         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11602         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11603         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11604         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11605         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11606         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11607         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11608         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11609         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11610         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11611         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11612         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11613         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11614         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11615         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11616         * sysdeps/ieee754/k_standard.c: Likewise.
11617         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11618         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11619         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11620         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11621         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11622         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11623         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11624         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11625         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11626         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11627         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11628         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11629         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11630         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11631         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11632         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11633         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11634         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11635         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11636         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11637         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11638         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11639         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11640         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11641         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11642         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11643         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11644         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11645         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11646         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11647         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11648         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11649         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11650         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11651         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11652         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11653         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11654         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11655         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11656         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11657         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11658         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11659         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11660         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11661         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11662         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11663         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11664         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11665         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11666         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11667         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11668         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11669         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11670         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11671         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11672         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11673         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11674         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11675         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11676         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11677         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11678         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11679         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11680         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11681         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11682         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11683         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11684         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11685         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11686         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11687         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11688         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11689         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11690         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11691         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11692         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11693         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11694         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11695         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11696         * sysdeps/ieee754/s_matherr.c: Likewise.
11697         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11698         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11699         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11700         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11701
11702 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11703
11704         * crypt/md5.h: Remove __STDC__ conditionals.
11705         * libio/libioP.h: Likewise.
11706         * locale/programs/config.h: Likewise.
11707         * sysdeps/generic/sysdep.h: Likewise.
11708         * sysdeps/i386/asm-syntax.h: Likewise.
11709         * sysdeps/s390/asm-syntax.h: Likewise.
11710         * sysdeps/unix/sysdep.h: Likewise.
11711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11713
11714 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11715
11716         * libio/libio.h: Remove __STDC__ conditionals.
11717         * malloc/obstack.h: Likewise.
11718         * math/complex.h: Likewise.
11719         * math/math.h: Likewise.
11720         * sysdeps/generic/_G_config.h: Likewise.
11721         * sysdeps/gnu/_G_config.h: Likewise.
11722         * sysdeps/mach/hurd/_G_config.h: Likewise.
11723         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11724         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11725         * sysdeps/sparc/bits/mathdef.h: Likewise.
11726
11727 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11728
11729         [BZ #13583]
11730         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11731         Clean up HAS_* macros.
11732         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11733         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11734         possible.
11735         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11736         HAS_AVX.
11737         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11738         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11739         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11740         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11741         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11742
11743 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11744
11745         * elf/tst-unique3.cc (gets): Remove declaration.
11746         * elf/tst-unique3lib.cc (gets): Likewise.
11747         * elf/tst-unique3lib2.cc (gets): Likewise.
11748         * elf/tst-unique4.cc (gets): Likewise.
11749
11750 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11751
11752         * include/stdio.h: Add C++ protection.  Add gets declarations and
11753         definitions.
11754         * debug/tst-chk1.c: Don't declare gets here.
11755         * stdio-common/tst-gets.c: Likewise.
11756
11757 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11758
11759         * posix/glob: Remove directory.
11760
11761 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11762
11763         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11764
11765 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11766
11767         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11768         of the non-standard EPFNOSUPPORT.
11769
11770 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11771
11772         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11773         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11774         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11775
11776 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11777
11778         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11779
11780 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11781
11782         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11783         transient errors.
11784         * nscd/grpcache.c (cache_addgr): Likewise.
11785         * nscd/hstcache.c (cache_addhst): Likewise.
11786         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11787         * nscd/pwdcache.c (cache_addpw): Likewise.
11788         * nscd/servicescache.c (cache_addserv): Likewise.
11789
11790 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11791
11792         * malloc/malloc.c: Various cleanups.
11793         * malloc/hooks.c: Likewise.
11794
11795         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11796         * stdlib/bug-fmtmsg1.c: New file.
11797
11798         * stdlib/fmtmsg.c (init): Add missing unlock.
11799         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11800
11801 2012-01-12  Marek Polacek  <polacek@redhat.com>
11802
11803         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11804         and _GNU_SOURCE.
11805
11806 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11807
11808         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11809         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11810         macro to ensure uniqueness of label name.
11811         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11812         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11813
11814 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11815
11816         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11817
11818         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11819         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11820         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11821         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11822
11823 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11824
11825         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11826
11827         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11828         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11829         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11830
11831         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11832
11833         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11834         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11835         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11836         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11837
11838         * math/bits/math-finite.h: Add ldexp support.
11839
11840 2012-01-10  Marek Polacek  <polacek@redhat.com>
11841
11842         * locale/programs/localedef.h (show_archive_content): Add noreturn
11843         attribute.
11844
11845 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11846
11847         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11848
11849 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11850
11851         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11852
11853         * io/Makefile (headers): Add bits/poll2.h.
11854
11855 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11856
11857         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11858         typo #include statement.
11859
11860 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11861
11862         * include/sys/cdefs.h: Define __attribute_alloc_size.
11863         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11864         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11865         * elf/pldd.c: Likewise.
11866         * iconv/iconv_charmap.c: Likewise.
11867         * iconv/iconvconfig.c: Likewise.
11868         * iconv/strtab.c: Likewise.
11869         * locale/programs/locale.c: Likewise.
11870         * locale/programs/localedef.h: Likewise.
11871         * locale/programs/simple-hash.c: Likewise.
11872         * nscd/nscd.h: Likewise.
11873         * nss/makedb.c: Likewise.
11874         * sysdeps/generic/ldconfig.h: Likewise.
11875         * locale/programs/localedef.c: Remove xmalloc prototype.
11876         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11877
11878 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11879
11880         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11881         appropriate.
11882
11883 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11884
11885         * math/Makefile (tests): Add tst-CMPLX.
11886         * math/tst-CMPLX.c: New file.
11887
11888         * math/complex.h (CMPLXL): Fix typo.
11889
11890         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
11891         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
11892         GLIBC_2.16.
11893         * debug/tst-chk1.c: Add poll and ppoll tests.
11894         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
11895         * include/sys/poll.h: Add hidden proto for ppoll.
11896         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
11897         * sysdeps/mach/hurd/ppoll.c: Likewise.
11898         * io/ppoll.c: Likewise.
11899         * debug/poll_chk.c: New file.
11900         * debug/ppoll_chk.c: New file.
11901         * include/bits/poll2.h: New file.
11902         * io/bits/poll2.h: New file.
11903
11904         [BZ #1350]
11905         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
11906
11907         * configure.in: static is always set to yes.  Remove.
11908         * config.make.in: Don't set build-static.
11909         * Makeconfig: Remove use of build-static.
11910         * dlfcn/Makefile: Likewise.
11911         * elf/Makefile: Likewise.
11912         * math/Makefile: Likewise.
11913         * misc/Makefile: Likewise.
11914         * nptl/Makefile: Likewise.
11915         * sysdeps/mach/hurd/Makefile: Likewise.
11916
11917         * configure.in: PWD_P is not used anymore.
11918         * config.make.in: Remove PWD_P entry.
11919
11920         * configure.in: Remove last remnants of RANLIB.
11921         No need to check for signed size_t anymore.
11922         Don't set libc_commonpagesize and libc_relro_required here for Alpha
11923         and IA-64.
11924         Remove __builtin_expect test because we require at least gcc 3.4.
11925         * aclocal.m4: Likewise.
11926
11927         * wcsmbs/mbrtoc16.c: Implement using towc function.
11928         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
11929         * wcsmbs/wcsmbsload.c: Likewise.
11930         * iconv/gconv_simple.c: Likewise.
11931         * iconv/gconv_int.h: Likewise.
11932         * iconv/gconv_builtin.h: Likewise.
11933         * iconv/iconv_prog.c: Remove CHAR16 handling.
11934
11935         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
11936
11937         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
11938
11939         * configure.in: Remove --with-elf and --enable-bounded options.
11940         Dont set base_machine for ia64.  More non-ELF conditions removed.
11941         Remove testing and setting of leading underscore information.
11942         * config.make.in (build-bounded): Set to no.
11943         * config.h.in: Remove NO_UNDERSCORES entry.
11944         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
11945         them.
11946         * csu/start.c: Remove !NO_UNDERSCORE code.
11947         * locale/localeinfo.h: Likewise.
11948         * sysdeps/generic/machine-gmon.h: Likewise.
11949         * sysdeps/generic/sysdep.h: Likewise.
11950         * sysdeps/i386/sysdep.h: Likewise.
11951         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
11952         * sysdeps/mach/sysdep.h: Likewise.
11953         * sysdeps/s390/s390-32/sysdep.h: Likewise.
11954         * sysdeps/s390/s390-64/sysdep.h: Likewise.
11955         * sysdeps/sh/sysdep.h: Likewise.
11956         * sysdeps/sparc/sparc32/alloca.S: Likewise.
11957         * sysdeps/unix/i386/sysdep.S: Likewise.
11958         * sysdeps/unix/sparc/start.c: Likewise.
11959         * sysdeps/unix/sparc/sysdep.S: Likewise.
11960         * sysdeps/unix/sparc/sysdep.h: Likewise.
11961         * sysdeps/unix/start.c: Likewise.
11962         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11963         * sysdeps/x86_64/sysdep.h: Likewise.
11964
11965 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
11966
11967         [BZ #13553]
11968         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
11969         for non-gcc.
11970         * argp/argp-fmtstream.h: Use const instead __const.
11971         * argp/argp.h: Likewise.
11972         * assert/assert.h: Likewise.
11973         * bits/fenv.h: Likewise.
11974         * bits/sched.h: Likewise.
11975         * bits/sigset.h: Likewise.
11976         * bits/sigthread.h: Likewise.
11977         * catgets/nl_types.h: Likewise.
11978         * conform/data/pthread.h-data: Likewise.
11979         * crypt/crypt-private.h: Likewise.
11980         * crypt/crypt.h: Likewise.
11981         * crypt/crypt_util.c: Likewise.
11982         * ctype/ctype.h: Likewise.
11983         * debug/execinfo.h: Likewise.
11984         * debug/mbsnrtowcs_chk.c: Likewise.
11985         * debug/mbsrtowcs_chk.c: Likewise.
11986         * debug/wcsnrtombs_chk.c: Likewise.
11987         * debug/wcsrtombs_chk.c: Likewise.
11988         * debug/wcstombs_chk.c: Likewise.
11989         * dirent/dirent.h: Likewise.
11990         * dlfcn/dlfcn.h: Likewise.
11991         * elf/neededtest4.c: Likewise.
11992         * grp/grp.h: Likewise.
11993         * gshadow/gshadow.h: Likewise.
11994         * iconv/gconv.h: Likewise.
11995         * iconv/gconv_int.h: Likewise.
11996         * iconv/gconv_simple.c: Likewise.
11997         * iconv/iconv.h: Likewise.
11998         * iconv/loop.c: Likewise.
11999         * iconv/skeleton.c: Likewise.
12000         * include/aio.h: Likewise.
12001         * include/aliases.h: Likewise.
12002         * include/argz.h: Likewise.
12003         * include/arpa/inet.h: Likewise.
12004         * include/assert.h: Likewise.
12005         * include/dirent.h: Likewise.
12006         * include/dlfcn.h: Likewise.
12007         * include/execinfo.h: Likewise.
12008         * include/fcntl.h: Likewise.
12009         * include/fenv.h: Likewise.
12010         * include/glob.h: Likewise.
12011         * include/grp.h: Likewise.
12012         * include/libintl.h: Likewise.
12013         * include/mntent.h: Likewise.
12014         * include/netdb.h: Likewise.
12015         * include/pwd.h: Likewise.
12016         * include/rpc/netdb.h: Likewise.
12017         * include/sched.h: Likewise.
12018         * include/search.h: Likewise.
12019         * include/shadow.h: Likewise.
12020         * include/signal.h: Likewise.
12021         * include/stdio.h: Likewise.
12022         * include/stdlib.h: Likewise.
12023         * include/string.h: Likewise.
12024         * include/sys/socket.h: Likewise.
12025         * include/sys/stat.h: Likewise.
12026         * include/sys/statfs.h: Likewise.
12027         * include/sys/statvfs.h: Likewise.
12028         * include/sys/syslog.h: Likewise.
12029         * include/sys/time.h: Likewise.
12030         * include/sys/uio.h: Likewise.
12031         * include/time.h: Likewise.
12032         * include/unistd.h: Likewise.
12033         * include/utmp.h: Likewise.
12034         * include/wchar.h: Likewise.
12035         * include/wctype.h: Likewise.
12036         * inet/aliases.h: Likewise.
12037         * inet/arpa/inet.h: Likewise.
12038         * inet/netinet/ether.h: Likewise.
12039         * inet/netinet/in.h: Likewise.
12040         * intl/libintl.h: Likewise.
12041         * io/bits/fcntl2.h: Likewise.
12042         * io/fcntl.h: Likewise.
12043         * io/ftw.h: Likewise.
12044         * io/sys/poll.h: Likewise.
12045         * io/sys/stat.h: Likewise.
12046         * io/sys/statfs.h: Likewise.
12047         * io/sys/statvfs.h: Likewise.
12048         * io/utime.h: Likewise.
12049         * libio/bits/stdio.h: Likewise.
12050         * libio/bits/stdio2.h: Likewise.
12051         * libio/libio.h: Likewise.
12052         * libio/libioP.h: Likewise.
12053         * libio/stdio.h: Likewise.
12054         * locale/lc-ctype.c: Likewise.
12055         * locale/locale.h: Likewise.
12056         * login/utmp.h: Likewise.
12057         * malloc/arena.c: Likewise.
12058         * malloc/malloc.c: Likewise.
12059         * malloc/malloc.h: Likewise.
12060         * malloc/mcheck.c: Likewise.
12061         * malloc/mtrace.c: Likewise.
12062         * math/bits/mathcalls.h: Likewise.
12063         * math/fenv.h: Likewise.
12064         * math/math_private.h: Likewise.
12065         * misc/bits/error.h: Likewise.
12066         * misc/bits/syslog.h: Likewise.
12067         * misc/err.h: Likewise.
12068         * misc/error.h: Likewise.
12069         * misc/fstab.h: Likewise.
12070         * misc/mntent.h: Likewise.
12071         * misc/regexp.h: Likewise.
12072         * misc/search.h: Likewise.
12073         * misc/sgtty.h: Likewise.
12074         * misc/sys/mman.h: Likewise.
12075         * misc/sys/syslog.h: Likewise.
12076         * misc/sys/uio.h: Likewise.
12077         * misc/sys/xattr.h: Likewise.
12078         * misc/ttyent.h: Likewise.
12079         * nis/rpcsvc/ypclnt.h: Likewise.
12080         * nss/nss.h: Likewise.
12081         * posix/bits/unistd.h: Likewise.
12082         * posix/fnmatch.h: Likewise.
12083         * posix/glob.h: Likewise.
12084         * posix/sched.h: Likewise.
12085         * posix/spawn.h: Likewise.
12086         * posix/sys/wait.h: Likewise.
12087         * posix/unistd.h: Likewise.
12088         * posix/wordexp.h: Likewise.
12089         * pwd/pwd.h: Likewise.
12090         * resolv/netdb.h: Likewise.
12091         * resource/sys/resource.h: Likewise.
12092         * rt/aio.h: Likewise.
12093         * rt/bits/mqueue2.h: Likewise.
12094         * rt/mqueue.h: Likewise.
12095         * shadow/shadow.h: Likewise.
12096         * signal/signal.h: Likewise.
12097         * socket/send.c: Likewise.
12098         * socket/sendto.c: Likewise.
12099         * socket/sys/socket.h: Likewise.
12100         * stdio-common/printf.h: Likewise.
12101         * stdlib/bits/stdlib.h: Likewise.
12102         * stdlib/fmtmsg.h: Likewise.
12103         * stdlib/monetary.h: Likewise.
12104         * stdlib/stdlib.h: Likewise.
12105         * stdlib/ucontext.h: Likewise.
12106         * streams/stropts.h: Likewise.
12107         * string/argz.h: Likewise.
12108         * string/bits/string2.h: Likewise.
12109         * string/string.h: Likewise.
12110         * string/strings.h: Likewise.
12111         * sunrpc/rpc/auth.h: Likewise.
12112         * sunrpc/rpc/auth_des.h: Likewise.
12113         * sunrpc/rpc/clnt.h: Likewise.
12114         * sunrpc/rpc/netdb.h: Likewise.
12115         * sunrpc/rpc/pmap_clnt.h: Likewise.
12116         * sunrpc/rpc/xdr.h: Likewise.
12117         * sysdeps/generic/inttypes.h: Likewise.
12118         * sysdeps/generic/net/if.h: Likewise.
12119         * sysdeps/generic/sys/swap.h: Likewise.
12120         * sysdeps/gnu/net/if.h: Likewise.
12121         * sysdeps/gnu/utmpx.h: Likewise.
12122         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12123         * sysdeps/i386/i486/bits/string.h: Likewise.
12124         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12125         * sysdeps/s390/bits/string.h: Likewise.
12126         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12127         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12128         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12129         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12130         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12131         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12132         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12133         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12134         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12135         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12136         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12137         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12138         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12139         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12140         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12141         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12142         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12143         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12144         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12145         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12146         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12147         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12148         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12149         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12150         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12151         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12152         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12153         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12154         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12155         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12156         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12157         * sysvipc/sys/ipc.h: Likewise.
12158         * sysvipc/sys/msg.h: Likewise.
12159         * sysvipc/sys/sem.h: Likewise.
12160         * sysvipc/sys/shm.h: Likewise.
12161         * termios/termios.h: Likewise.
12162         * time/sys/time.h: Likewise.
12163         * time/time.h: Likewise.
12164         * wcsmbs/bits/wchar2.h: Likewise.
12165         * wcsmbs/uchar.h: Likewise.
12166         * wcsmbs/wchar.h: Likewise.
12167         * wctype/wctype.h: Likewise.
12168
12169         [BZ #13551]
12170         * Makeconfig: Remove all but ELF support including AIX support.
12171         * Makerules: Likewise.
12172         * config.h.in: Likewise.
12173         * config.make.in: Likewise.
12174         * configure: Likewise.
12175         * configure.in: Likewise.
12176         * csu/Makefile: Likewise.
12177         * csu/version.c: Likewise.
12178         * debug/Makefile: Likewise.
12179         * dlfcn/Makefile: Likewise.
12180         * elf/Makefile: Likewise.
12181         * extra-lib.mk: Likewise.
12182         * iconv/Makefile: Likewise.
12183         * include/libc-symbols.h: Likewise.
12184         * include/shlib-compat.h: Likewise.
12185         * resolv/Makefile: Likewise.
12186         * resolv/res_libc.c: Likewise.
12187         * rt/Makefile: Likewise.
12188         * sysdeps/i386/asm-syntax.h: Likewise.
12189         * sysdeps/i386/sysdep.h: Likewise.
12190         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12191         * sysdeps/mach/sysdep.h: Likewise.
12192         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12193         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12194         * sysdeps/s390/asm-syntax.h: Likewise.
12195         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12196         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12197         * sysdeps/sh/sysdep.h: Likewise.
12198         * sysdeps/unix/sparc/sysdep.h: Likewise.
12199         * sysdeps/wordsize-32/divdi3.c: Likewise.
12200         * sysdeps/x86_64/sysdep.h: Likewise.
12201
12202         * argp/Versions: Remove _argp_unlock_xxx.
12203
12204         [BZ #13559]
12205         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12206         * abilist/libBrokenLocale.abilist: Likewise.
12207         * abilist/libanl.abilist: Likewise.
12208         * abilist/libc.abilist: Likewise.
12209         * abilist/libcrypt.abilist: Likewise.
12210         * abilist/libdl.abilist: Likewise.
12211         * abilist/libm.abilist: Likewise.
12212         * abilist/libnsl.abilist: Likewise.
12213         * abilist/libpthread.abilist: Likewise.
12214         * abilist/libresolv.abilist: Likewise.
12215         * abilist/librt.abilist: Likewise.
12216         * abilist/libthread_db.abilist: Likewise.
12217         * abilist/libutil.abilist: Likewise.
12218         * abilist/libnss_db.abilist: New file.
12219
12220         * scripts/abilist.awk: Add support for indirect functions.
12221
12222         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12223
12224         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12225
12226         * shlib-versions: Remove entries for ports architectures.
12227
12228         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12229         files in ports.
12230         * elf/stackguard-macros.h: Remove support for IA-64.
12231         * elf/tst-auditmod1.c: Likewise.
12232         * sysdeps/generic/ldsodefs.h: Likewise.
12233
12234         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12235         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12236         configure files.
12237
12238         [BZ #13552]
12239         * configure.in: Remove --enable-omitfp support.
12240         * FAQ.in: Adjust.
12241         * config.make.in: Likewise.
12242         * Makeconfig: Likewise.
12243         * manual/install.texi: Likewise.
12244
12245         In case anyone cares, the IA-64 architecture could move to ports.
12246         * sysdeps/ia64/*: Removed.
12247         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12248         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12249
12250         [BZ #13555]
12251         * configure.in: Remove entries for unsupported architectures.
12252
12253         [BZ #13533]
12254         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12255         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12256         routines.
12257         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12258         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12259         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12260         fall back to using wcrtomb.
12261         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12262         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12263         renaming.
12264         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12265         * wcsmbs/tst-c16c32-1.c: New file.
12266
12267         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12268         local variable.
12269
12270         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12271
12272         * elf/tst-unique3.cc: Add explicit declaration of gets.
12273         * elf/tst-unique3lib.cc: Likewise.
12274         * elf/tst-unique3lib2.cc: Likewise.
12275         * elf/tst-unique4.cc: Likewise.
12276
12277         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12278
12279 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12280
12281         [BZ #13566]
12282         * assert/assert.h (static_assert): Don't define for C++.
12283         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12284         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12285
12286 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12287
12288         * iconv/loop.c (single loop): Fix assertion in storing of
12289         remaining bytes.
12290
12291         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12292
12293 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12294
12295         * posix/getconf.c: Update copyright year.
12296         * nss/getent.c: Likewise.
12297         * nss/makedb.c: Likewise.
12298         * iconv/iconvconfig.c: Likewise.
12299         * iconv/iconv_prog.c: Likewise.
12300         * elf/ldconfig.c: Likewise.
12301         * elf/pldd.c: Likewise.
12302         * elf/sotruss.ksh: Likewise.
12303         * catgets/gencat.c: Likewise.
12304         * csu/version.c: Likewise.
12305         * elf/ldd.bash.in: Likewise.
12306         * elf/sprof.c (print_version): Likewise.
12307         * locale/programs/locale.c: Likewise.
12308         * locale/programs/localedef.c: Likewise.
12309         * login/programs/pt_chown.c: Likewise.
12310         * nscd/nscd.c (print_version): Likewise.
12311         * debug/xtrace.sh: Likewise.
12312         * malloc/memusage.sh: Likewise.
12313         * malloc/mtrace.pl: Likewise.
12314         * debug/catchsegv.sh: Likewise.
12315
12316 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12317
12318         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12319         pure attribute.
12320
12321 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12322
12323         [BZ #13533]
12324         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12325         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12326         transformations.
12327         * iconv/gconv_int.h: Likewise.
12328         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12329         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12330         from libc for GLIBC_2.16.
12331         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12332         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12333         * wcsmbs/uchar.h: Really define mbstate_t.
12334         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12335         * wcsmbs/c16rtomb.c: New file.
12336         * wcsmbs/mbrtoc16.c: New file.
12337         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12338         for C/POSIX locale.
12339         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12340         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12341
12342         * wcsmbs/wchar.h: Add missing __restrict.
12343
12344 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12345
12346         [BZ #13532]
12347         * time/Makefile (routines): Add timespec_get.
12348         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12349         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12350         timespec for ISO C11.
12351         * time/timespec_get.c: New file.
12352         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12353         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12354
12355         [BZ #13531]
12356         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12357         * stdlib/stdlib.h: Declare aligned_alloc.
12358         * Versions.def: Add GLIBC_2.16 for libc.
12359         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12360
12361         [BZ 13527]
12362         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12363         ISO C11.
12364
12365         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12366         code.
12367
12368         [BZ #13528]
12369         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12370
12371         [BZ #13529]
12372         * assert/assert.h (static_assert): Define.
12373
12374         * version.h: Update for 2.16 development version.
12375
12376         [BZ #13526]
12377         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12378         _ISOC11_SOURCE.
12379
12380         * version.h (RELEASE): Bump for 2.15 release.
12381         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12382
12383         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12384         Patch by Marek Polacek <mpolacek@redhat.com>.
12385
12386         * bits/byteswap.h: Protect long long constants with __extension__.
12387         * sysdeps/i386/bits/byteswap.h: Likewise.
12388         * sysdeps/ia64/bits/byteswap.h: Likewise.
12389         * sysdeps/s390/bits/byteswap.h: Likewise.
12390         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12391
12392 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12393
12394         [BZ #13540]
12395         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12396         destination buffer.
12397         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12398
12399 2011-12-23  Marek Polacek  <polacek@redhat.com>
12400
12401         * elf/dl-addr.c (determine_info): Add inline keyword.
12402         * elf/tst-auditmod4b.c (check_avx): Likewise.
12403         * elf/tst-auditmod6b.c (check_avx): Likewise.
12404         * elf/tst-auditmod6c.c (check_avx): Likewise.
12405         * elf/tst-auditmod7b.c (check_avx): Likewise.
12406
12407 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12408
12409         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12410         !__SSE_MATH__.
12411
12412 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12413
12414         [BZ #13540]
12415         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12416         processing for last bytes.
12417
12418 2011-08-06  Bruno Haible  <bruno@clisp.org>
12419
12420         [BZ #13061]
12421         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12422         U+0385, not to U+1FEE.
12423
12424         [BZ #13062]
12425         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12426         entry for U+00A5 U+0301.
12427
12428 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12429
12430         [BZ #13166]
12431         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12432         buffer for the output is too small.
12433
12434         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12435         optimization.
12436
12437         [BZ #13185]
12438         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12439         SSE flags if possible.
12440
12441 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12442
12443         [BZ #13540]
12444         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12445         processing for last bytes.
12446
12447 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12448
12449         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12450         (syscall-list-default-options, syscall-list-default-condition)
12451         (syscall-list-includes): Define.
12452         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12453         list of ABIs and options and #if conditions for each ABI.  Do not
12454         handle common syscalls between ABIs specially.
12455         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12456         Remove.
12457         (syscall-list-variants, syscall-list-32bit-options)
12458         (syscall-list-32bit-condition, syscall-list-64bit-options)
12459         (syscall-list-64bit-condition): Define.
12460         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12461         (syscall-list-variants, syscall-list-32bit-options)
12462         (syscall-list-32bit-condition, syscall-list-64bit-options)
12463         (syscall-list-64bit-condition): Define.
12464         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12465         Remove.
12466         (syscall-list-variants, syscall-list-32bit-options)
12467         (syscall-list-32bit-condition, syscall-list-64bit-options)
12468         (syscall-list-64bit-condition): Define.
12469         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12470         Remove.
12471         (syscall-list-variants, syscall-list-32bit-options)
12472         (syscall-list-32bit-condition, syscall-list-64bit-options)
12473         (syscall-list-64bit-condition): Define.
12474
12475 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12476
12477         * locale/iso-639.def: Add brx entry.
12478
12479         [BZ #13328]
12480         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12481         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12482
12483         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12484         __feraiseexcept_renamed.
12485
12486 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12487
12488         [BZ #13538]
12489         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12490         EPOLLET with unsigned values.
12491         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12492         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12493
12494         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12495         to large cancellation.
12496         * math/s_cacoshf.c: Likewise.
12497         * math/s_cacoshl.c: Likewise.
12498
12499 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12500
12501         [BZ #13305]
12502         [BZ #12786]
12503         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12504         * math/s_cacoshf.c: Likewise.
12505         * math/s_cacoshl.c: Likewise.
12506
12507 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12508
12509         [BZ #13439]
12510         * iconv/gconv.h: Define __GCONV_SWAP.
12511         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12512         * iconvdata/utf-16.c: Likewise.
12513         * iconvdata/utf-32.c: Likewise.
12514
12515 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12516
12517         [BZ #13524]
12518         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12519         numerator after shifting it by one limb.
12520
12521 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12522
12523         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12524         under [__USE_EXTERN_INLINES].
12525
12526 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12527
12528         [BZ #13446]
12529         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12530
12531 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12532
12533         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12534         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12535         optimized code.
12536         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12537         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12538         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12539         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12540         for strncasecmp/strncasecmp_l compilation.
12541         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12542         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12543
12544 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12545
12546         [BZ #13484]
12547         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12548         of __asm__.
12549
12550 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12551
12552         [BZ #13506]
12553         * time/tzfile.c (__tzfile_read): Check values from file header.
12554
12555 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12556
12557         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12558         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12559         * powerpc/powerpc32/dl-start.S: Likewise.
12560         * powerpc/powerpc32/elf/start.S: Likewise.
12561         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12562         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12563         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12564         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12565         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12566         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12567         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12568         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12569         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12570         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12571         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12572         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12573         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12574         * powerpc/powerpc32/memset.S: Likewise.
12575         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12576         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12577         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12578         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12579         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12580         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12581         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12582         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12583         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12584         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12585         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12586         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12587         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12588
12589 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12590
12591         * math/libm-test.inc: Added more nearbyint tests.
12592         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12593         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12594         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12595         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12596
12597 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12598
12599         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12600         FD_CLOEXEC.
12601
12602 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12603
12604         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12605         Add wcscpy-ssse3 wcscpy-c.
12606         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12607         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12608         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12609         * sysdeps/x86_64/wcschr.S: New file.
12610         * sysdeps/x86_64/wcsrchr.S: New file.
12611         * string/test-strcmp.c: Remove checking of wcscmp function for
12612         wrong alignments.
12613         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12614         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12615         wcsrchr-sse2 wcsrchr-c.
12616         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12617         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12618         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12619         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12620         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12621         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12622         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12623         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12624         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12625         * wcsmbc/wcschr.c (WCSCHR): New macro.
12626
12627 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12628
12629         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12630         * wcsmbs/test-wcsrchr.c: New file.
12631         * string/test-strrchr.c: Add wcsrchr support.
12632         (WIDE): New macro.
12633         * wcsmbs/test-wcscpy.c: New file.
12634         * string/test-strcpy.c: Add wcscpy support.
12635         (WIDE): New macro.
12636
12637 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12638
12639         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12640         the inner loop.
12641
12642 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12643
12644         [BZ #13472]
12645         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12646
12647 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12648
12649         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12650         Minor optimizations.
12651
12652         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12653         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12654         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12655
12656 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12657
12658         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12659         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12660         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12661         for gcc to avoid warnings.
12662         * inet/Makefile (tests): Add tst-checks.
12663         * inet/tst-checks.c: New file.
12664
12665         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12666         warning.
12667
12668         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12669         __wmemcmp_sse2.
12670
12671         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12672         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12673
12674         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12675
12676 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12677
12678         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12679         problem.
12680
12681         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12682
12683 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12684
12685         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12686         conditional on GCC version.
12687         (__arch_compare_and_exchange_val_8_acq)
12688         (__arch_compare_and_exchange_val_16_acq)
12689         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12690         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12691         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12692
12693 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12694
12695         * sysdeps/sh/backtrace.c: New file.
12696
12697 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12698
12699         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12700         parenthesis.
12701
12702 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12703
12704         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12705         falling back to utime.
12706
12707 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12708
12709         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12710         expectations for float.
12711
12712 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12713
12714         * locale/weight.h (findidx): Add parameter len.
12715         * locale/weightwc.h (findidx): Likewise.
12716         * posix/fnmatch_loop.c (FCT): Adjust caller.
12717         * posix/regcomp.c (build_equiv_class): Likewise.
12718         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12719         * posix/regexec.c (check_node_accept_bytes): Likewise.
12720         * string/strcoll_l.c (STRCOLL): Likewise.
12721         * string/strxfrm_l.c (STRXFRM): Likewise.
12722
12723 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12724
12725         * Makefile.in: Remove CVSOPT handling.
12726         * configure.in: Remove use of AC_REVISION.
12727         * iconvdata/Makefile (distribute): No need to filter out CVS.
12728         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12729         handling.
12730
12731 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12732
12733         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12734         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12735         [USE_AS_STRNCASECMP_L]: Likewise.
12736         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12737         NO_TLS_DIRECT_SEG_REFS.
12738         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12739         Fix argument offsets for non-PIC.
12740         [USE_AS_STRNCASECMP_L]: Likewise.
12741         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12742         NO_TLS_DIRECT_SEG_REFS.
12743
12744 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12745
12746         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12747         O_CLOEXEC.
12748         * locale/loadlocale.c (_nl_load_locale): Likewise.
12749
12750 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12751
12752         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12753         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12754         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12755         (SYSCALL_GETTIME): Set errno on error.
12756
12757         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12758         count references to noai6ai_cached.
12759
12760 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12761
12762         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12763
12764         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12765         FD_CLOEXEC for /proc/self/maps.
12766
12767         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12768         FD_CLOEXEC for /proc/meminfo.
12769
12770         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12771         gai.conf.
12772
12773         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12774         FD_CLOEXEC for given file.
12775
12776         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12777
12778         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12779         FD_CLOEXEC for /etc/hosts.
12780         (_gethtent): Likewise.
12781
12782         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12783
12784         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12785         cancellation and set FD_CLOEXEC for /etc/netgroup.
12786
12787         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12788         reading /etc/publickey.
12789
12790         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12791         allow cancellation when reading /etc/group.
12792
12793         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12794         cancellation.
12795         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12796
12797         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12798         when using data file.
12799
12800         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12801
12802         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12803         (write_nis_obj): Use "c" and "e" in fopen.
12804
12805         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12806
12807         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12808
12809         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12810
12811         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12812
12813         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12814         locale.alias.
12815
12816         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12817
12818         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12819
12820         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12821
12822         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12823         file parsing and set FD_CLOEXEC.
12824
12825 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12826
12827         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12828
12829 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12830
12831         * malloc/arena.c (arena_get2): Don't call reused_arena when
12832         _int_new_arena failed.
12833
12834 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12835
12836         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12837         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12838         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12839         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12840         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12841         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12842         to compile strcasecmp and strncasecmp.
12843         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12844         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12845
12846         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12847
12848 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12849
12850         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12851         locale-defines.sym to gen-as-const-headers.
12852         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12853         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12854         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12855         to compile strcasecmp and strncasecmp.
12856         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12857         strcasecmp_l and strncasecmp_l.
12858         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12859         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12860         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12861         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12862         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12863         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12864         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12865         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12866         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12867         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12868         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12869
12870 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12871
12872         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12873         result of SYSDEP_GETTIME_CPU to retval.
12874         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12875         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12876
12877         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12878         variable.
12879
12880         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12881         mantissa words.
12882         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12883
12884         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
12885         from unused variable.
12886
12887         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
12888         DWARF definitions.
12889         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
12890         for assembling.
12891
12892         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
12893         over namespaces.
12894
12895         * sunrpc/rpc_prot.c (rejected): Fix case value.
12896
12897         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
12898         unsigned long long int to avoid warnings in shift.
12899
12900         * posix/regex_internal.c (re_string_reconstruct): Actually use result
12901         of use of trans.
12902         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
12903         variable tmp.
12904
12905         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
12906         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
12907         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
12908
12909         * nis/nis_table.c (nis_list): Use variable of correct type for
12910         result of __follow_path call.
12911
12912 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12913
12914         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
12915         of math functions ceil, trunc, floor, round, and sqrt, when
12916         avaliable on the platform.
12917         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
12918         name clash.
12919         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
12920         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
12921         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
12922
12923 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
12924
12925         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
12926         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
12927
12928 2011-11-11  Roland McGrath  <roland@hack.frob.com>
12929
12930         * include/unistd.h: Fix __readlink return type.
12931         Reported by Chris Metcalf <cmetcalf@tilera.com>.
12932
12933 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
12934
12935         * stdlib/ucontext.h: Undo last change for makecontext.
12936
12937 2011-11-11  Andreas Schwab  <schwab@redhat.com>
12938
12939         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
12940
12941         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
12942         * setjmp/setjmp.h: Mark functions as non-leaf.
12943         * setjmp/bits/setjmp2.h: Likewise.
12944         * stdlib/ucontext.h: Likewise.
12945
12946 2011-11-10  Andreas Schwab  <schwab@redhat.com>
12947
12948         * malloc/arena.c (_int_new_arena): Don't increment narenas.
12949         (reused_arena): Don't check arena limit.
12950         (arena_get2): Atomically check arena limit.
12951
12952 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
12953
12954         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
12955         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
12956
12957         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
12958         instructions.
12959
12960 2011-11-07  Andreas Schwab  <schwab@redhat.com>
12961
12962         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
12963         handler when locking.
12964
12965         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
12966         Fix size of allocated buffer.
12967
12968 2011-11-04  Andreas Schwab  <schwab@redhat.com>
12969
12970         [BZ #10103]
12971         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
12972         declarations for long double functions.
12973         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
12974
12975         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
12976
12977 2011-11-03  Andreas Schwab  <schwab@redhat.com>
12978
12979         * nscd/nscd.c (main): Don't start AVC thread until credentials are
12980         installed.
12981
12982         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
12983         is disabled.
12984
12985 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12986
12987         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
12988
12989 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12990
12991         * include/alloca.h (stackinfo_alloca_round): Define.
12992         (extend_alloca): Use it.
12993         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
12994         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
12995         here.
12996
12997         * scripts/check-local-headers.sh: Ignore libaudit.h.
12998
12999         * nscd/Makefile (extra-objs): Make recursively expanded.
13000
13001 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13002
13003         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13004         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13005
13006         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13007         * posix/tst-rfc3484-2.c: Likewise.
13008         * posix/tst-rfc3484-3.c: Likewise.
13009
13010         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13011         process_vm_writev.
13012         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13013         process_vm_writev.
13014         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13015         process_vm_writev from libc using GLIBC_2.15 version.
13016
13017         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13018
13019 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13020
13021         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13022         stack usage.
13023
13024 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13025
13026         [BZ #13367]
13027         * nss/getent.c (initgroups_keys): Show error message in case no group
13028         names are given.
13029
13030         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13031         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13032         __bump_nl_timestamp.
13033         * nscd/connections (nscd_init): When host database is served open
13034         netlink socket and request notification about configuration changes.
13035         (main_loop_poll): Track netlink file descriptor and bump timestamp
13036         in case data becomes available.
13037         (main_loop_epoll): Likewise.
13038         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13039         (database_pers_head): Add extra_data fileds.
13040         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13041         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13042         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13043         Adjust caller.
13044         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13045         in6ai data, call __free_in6ai.
13046         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13047         Add -DHAVE_NETLINK.
13048         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13049         interface information.  Reuse previous data if netlink timestamp
13050         is not changed.
13051         (__bump_nl_timestamp): New function.
13052         (__free_in6ai): New function.
13053
13054 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13055
13056         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13057         close_not_cancel_no_status here.
13058         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13059
13060 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13061
13062         [BZ #13276]
13063         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13064         return value.
13065
13066         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13067         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13068         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13069
13070 2011-07-03  Andreas Jaeger  <aj@suse.de>
13071
13072         [BZ #10709]
13073         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13074         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13075         * math/libm-test.inc (sin_test): Add test case.
13076
13077 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13078
13079         [BZ #13337]
13080         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13081         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13082
13083         * elf/chroot_canon.c (chroot_canon): Cleanups.
13084
13085         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13086
13087         [BZ #13335]
13088         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13089         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13090
13091         * string/test-strchr.c: Make usable for strchrnul testing.
13092         * string/test-strchrnul.c: New file.
13093         * string/Makefile (strop-tests): Add strchrnul.
13094
13095         * po/it.po: Update from translation team.
13096         * po/es.po: Likewise.
13097
13098 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13099
13100         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13101         the three constants needed as parameters.  Drop the others.
13102         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13103         __m128i_strloadu_tolower.
13104         Create and initialize variable zero and use it in all the places
13105         where _mm_setzero_si128 was used.
13106
13107         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13108         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13109         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13110         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13111         anymore.
13112         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13113         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13114         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13115         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13116         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13117         __mpranred, __mptan.
13118         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13119         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13120         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13121         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13122         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13123         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13124         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13125         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13126         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13127
13128 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13129
13130         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13131         redefine if SHARED.
13132         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13133
13134         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13135         wide char related routines to wcsmbs subdir.
13136
13137 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13138
13139         [BZ #13344]
13140         * misc/sys/cdefs.h (__THROWNL): Define.
13141         * posix/unistd.h: Use __THREADNL instead of __THREAD
13142         for memory synchronization functions.
13143
13144 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13145
13146         [BZ #13349]
13147         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13148         doesn't exist.
13149         * manual/stdio.texi (Obstack Streams): Node removed.
13150
13151 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13152
13153         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13154         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13155         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13156
13157         * math/math_private.h (math_force_eval): Allow non-addressable
13158         arguments.
13159         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13160
13161 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13162
13163         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13164         file is not needed.
13165
13166         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13167         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13168         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13169         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13170         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13171         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13172         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13173         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13174         Add AVX variants.
13175         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13176         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13177         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13178         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13179         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13180         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13181         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13182         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13183         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13184         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13185         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13186         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13187         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13188         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13189         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13190         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13191         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13192         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13193         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13194
13195         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13196         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13197
13198         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13199         place.  Use VEX encoding when compiling for AVX.
13200
13201 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13202
13203         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13204         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13205
13206         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13207
13208 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13209
13210         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13211         useless if() expression.
13212         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13213         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13214         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13215         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13216         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13217         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13218         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13219         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13220         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13221         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13222         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13223         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13224         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13225         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13226         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13227         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13228         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13229         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13230         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13231
13232         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13233
13234 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13235
13236         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13237         condition.
13238         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13239
13240 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13241
13242         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13243         .text section.  Avoid duplicate constants.
13244         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13245         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13246         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13247         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13248         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13249         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13250         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13251         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13252         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13253         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13254         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13255         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13256         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13257         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13258         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13259         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13260         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13261         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13262         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13263         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13264         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13265         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13266         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13267         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13268         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13269         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13270         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13271         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13272         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13273         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13274         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13275         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13276         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13277         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13278         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13279         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13280         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13281         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13282         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13283         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13284         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13285         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13286         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13287         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13288         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13289
13290 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13291
13292         * sysdeps/x86_64/dla.h: Move to ...
13293         * sysdeps/x86_64/fpu/dla.h: ...here.
13294         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13295         situations.  Use __builtin_fma only for gcc 4.6 and up.
13296
13297         * config.make.in: Add have-mfma4 entry.
13298         * configure.in: Substitute libc_cv_cc_fma4.
13299         * math/Makefile (dbl-only-routines): Add sincostab.
13300         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13301         Use __sincostab not sincos.
13302         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13303         name is a macro.
13304         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13305         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13306         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13307         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13308         using __copysign.
13309         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13310         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13311         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13312         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13313         and __inv.
13314         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13315         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13316         __copysign.
13317         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13318         define aliases when function name is a macro.
13319         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13320         sysdeps/ieee754/dbl-64/sincos.tbl.
13321         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13322         fma4-enabled routines.
13323         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13324         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13325         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13326         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13327         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13328         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13329         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13330         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13331         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13332         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13333         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13334         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13335         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13336         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13337         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13338         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13339         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13340         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13341         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13342         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13343         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13344         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13345         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13346         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13347         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13348         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13349         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13350         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13351         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13352         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13353
13354         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13355         rename.
13356         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13357         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13358         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13359         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13360         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13361         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13362         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13363         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13364
13365 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13366
13367         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13368
13369 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13370
13371         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13372
13373         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13374         prediction.
13375         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13376
13377         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13378         Remove unused variable magic_bits.
13379         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13380
13381         * string/strnlen.c: Define and use STRNLEN macro.
13382         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13383         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13384         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13385         * wcsmbs/wcslen.c: Define and use WCSLEN.
13386         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13387         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13388         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13389         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13390         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13391         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13392         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13393
13394 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13395
13396         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13397         strnlen-sse2-no-bsf.
13398         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13399         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13400         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13401         Add strnlen support.
13402         (USE_AS_STRNLEN): New macro.
13403         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13404         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13405         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13406         * sysdeps/x86_64/wcslen.S: New file.
13407
13408 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13409
13410         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13411         XMM-moves are used for copying on small sizes.
13412
13413 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13414
13415         * wcsmbs/Makefile (strop-tests): Add wcschr.
13416         * wcsmbs/test-wcschr.c: New file.
13417         * string/test-strchr.c: Update.
13418         Add wcschr support.
13419         (WIDE): New macro.
13420
13421 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13422
13423         * wcsmbs/Makefile (strop-tests): Add wcslen.
13424         * wcsmbs/test-wcslen.c: New file.
13425         * string/test-strlen.c: Update.
13426         Add wcslen support.
13427         (WIDE): New macro.
13428
13429 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13430
13431         * po/it.po: Update from translation team.
13432
13433 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13434
13435         * sysdeps/x86_64/wcscmp.S: Update.
13436         Fix wrong comparison semantics.
13437         wcscmp shall use signed comparison not unsigned.
13438         Don't use substraction to avoid overflow bug.
13439         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13440         * wcsmbc/wcscmp.c: Likewise.
13441         * string/test-strcmp.c: Likewise.
13442         Add new tests to check cases with negative values.
13443
13444 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13445
13446         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13447         * sysdeps/x86_64/dla.h: ...here.  New file.
13448         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13449         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13450         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13451         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13452         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13453         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13454         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13455         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13456         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13457
13458 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13459
13460         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13461         __ynl_finite aliases.
13462
13463 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13464
13465         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13466
13467         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13468         define DLA_FMA.
13469         [DLA_FMA] (EMULV): Use DLA_FMA.
13470         [DLA_FMA] (MUL12): Use EMULV.
13471         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13472         that are not needed.
13473         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13474         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13475         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13476         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13477         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13478         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13479         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13480
13481 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13482
13483         * math/s_nan.c: Undef __nan.
13484         * math/s_nanf.c: Undef __nanf.
13485         * math/s_nanl.c: Undef __nanl.
13486         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13487         "math_private.h".
13488
13489 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13490
13491         * math/s_catan.c: Add branch predictions.
13492         * math/s_catanf.c: Likewise.
13493         * math/s_catanh.c: Likewise.
13494         * math/s_catanhf.c: Likewise.
13495         * math/s_catanhl.c: Likewise.
13496         * math/s_catanl.c: Likewise.
13497         * math/s_cexp.c: Likewise.
13498         * math/s_cexpf.c: Likewise.
13499         * math/s_cexpl.c: Likewise.
13500         * math/s_clog.c: Likewise.
13501         * math/s_clog10.c: Likewise.
13502         * math/s_clog10f.c: Likewise.
13503         * math/s_clog10l.c: Likewise.
13504         * math/s_clogf.c: Likewise.
13505         * math/s_clogl.c: Likewise.
13506         * math/s_csqrt.c: Likewise.
13507         * math/s_csqrtf.c: Likewise.
13508         * math/s_csqrtl.c: Likewise.
13509         * math/s_ctanf.c: Likewise.
13510         * math/s_ctanh.c: Likewise.
13511         * math/s_ctanhf.c: Likewise.
13512         * math/s_ctanhl.c: Likewise.
13513         * math/s_ctanl.c: Likewise.
13514
13515         * math/math_private.h: Define __nan, __nanf, __nanl.
13516         * math/s_cacosh.c: Include <math_private.h>.
13517         * math/s_cacoshl.c: Likewise.
13518         * math/s_casinh.c: Likewise.
13519         * math/s_casinhf.c: Likewise.
13520         * math/s_casinhl.c: Likewise.
13521         * math/s_ccos.c: Rely entire on ccosh.
13522         * math/s_ccosf.c: Rely entire on ccoshf.
13523         * math/s_ccosl.c: Rely entirely on ccoshl.
13524         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13525         Remove tests for FE_INVALID.
13526         * math/s_ccoshf.c: Likewise.
13527         * math/s_ccoshl.c: Likewise.
13528         * math/s_csin.c: Likewise.
13529         * math/s_csinf.c: Likewise.
13530         * math/s_csinh.c Likewise.
13531         * math/s_csinhf.c: Likewise.
13532         * math/s_csinhl.c: Likewise.
13533         * math/s_csinl.c: Likewise.
13534         * math/s_ctan.c: Likewise.
13535         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13536         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13537         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13538
13539 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13540
13541         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13542         compilation problems.
13543
13544         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13545         __builtin_expect.
13546
13547 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13548
13549         * sysdeps/i386/configure.in: Test for -mfma4 option.
13550         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13551         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13552         COMMON_CPUID_INDEX_80000001.
13553         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13554         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13555         use it if FMA3 is not supported.
13556         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13557
13558         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13559         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13560
13561 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13562
13563         [BZ #12892]
13564         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13565         it would create a cycle with a link time dependency.
13566
13567 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13568
13569         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13570         instruction.
13571         * string/Makefile (strop-tests): Add rawmemchr.
13572         * string/test-rawmemchr.c: New file.
13573
13574         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13575         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13576         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13577         when compiling str{,n}casecmp and when AVX is available.  Hook up
13578         new optimized code in initializers.
13579
13580 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13581
13582         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13583         __feraiseexcept instead of feraiseexcept.
13584
13585 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13586
13587         * math/math_private.h: Define defaults for libc_fetestexcept and
13588         libc_feupdateenv.
13589         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13590         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13591         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13592         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13593         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13594         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13595         libc_fetestexcept and libc_feupdateenv.
13596
13597         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13598         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13599         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13600         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13601         libc_feholdexcept_setround.
13602
13603         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13604         Add s_nearbyint-c and s_nearbyintf-c.
13605         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13606         nearbyintf inlines.
13607         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13608         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13609         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13610         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13611
13612         * math/math_private.h: Define defaults for libc_fegetround,
13613         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13614         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13615         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13616         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13617         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13618         standard functions.
13619         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13620         Remove comments and hacks for old compiler versions.
13621         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13622         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13623         libc_feholdexceptl.
13624
13625 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13626
13627         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13628         (__feraiseexcept_renamed): Add __NTH.
13629         (feraiseexcept): Add __NTH.  Rename local variables to fix
13630         namespace violations.
13631
13632 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13633
13634         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13635
13636         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13637
13638         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13639         recently added interfaces.
13640         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13641
13642         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13643         about macro parameter expansion.
13644
13645         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13646         __NO_MATH_INLINES is defined.  Cleanups.
13647
13648         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13649         and __floorf is target has SSE4.1.
13650         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13651         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13652         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13653         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13654
13655         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13656         name.
13657         (floorf): Likewise.
13658
13659         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13660
13661 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13662
13663         * misc/sys/cdefs.h: Fix last change.
13664
13665         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13666         database lookup.
13667
13668 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13669
13670         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13671
13672         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13673         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13674         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13675         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13676         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13677         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13678         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13679         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13680         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13681         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13682         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13683         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13684         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13685         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13686         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13687         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13688         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13689         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13690         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13691         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13692         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13693         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13694
13695         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13696         ceil, ceilf, floor, floorf.
13697
13698         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13699         Perform IRELATIVE relocations last.
13700
13701         * elf/do-rel.h: Add another parameter nrelative, replacing the
13702         local variable with the same name.  Change name of the function
13703         to end in Rel or Rela (uppercase).
13704         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13705         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13706         elf_dynamic_do_##reloc function.
13707
13708 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13709
13710         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13711         is sufficient, at least on modern CPUs.
13712
13713         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13714
13715         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13716         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13717
13718         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13719         __expl_finite.
13720         * math/bits/math-finite.h: Add entries for exp.
13721         * math/e_expl.c: Add __*_finite alias.
13722         * sysdeps/i386/fpu/e_exp.S: Likewise.
13723         * sysdeps/i386/fpu/e_expf.S: Likewise.
13724         * sysdeps/i386/fpu/e_expl.c: Likewise.
13725         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13726         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13727         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13728         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13729         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13730         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13731         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13732
13733         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13734         is sufficient, at least on modern CPUs.
13735
13736         * ctype/ctype-info.c (__ctype_init): Define.
13737         * include/ctype.h (__ctype_init): Declare.
13738         (__ctype_b_loc): The variable is always initialized.
13739         (__ctype_toupper_loc): Likewise.
13740         (__ctype_tolower_loc): Likewise.
13741         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13742         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13743
13744 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13745
13746         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13747
13748         * configure.in: Also look in $cxxmachine/include for C++ system
13749         headers.
13750
13751 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13752
13753         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13754         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13755         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13756         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13757         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13758         (USE_AS_WMEMCMP): New macro.
13759         Fixing indents.
13760         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13761         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13762         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13763         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13764         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13765         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13766         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13767         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13768         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13769         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13770         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13771         (USE_AS_WMEMCMP): New macro.
13772         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13773         * sysdeps/string/test-memcmp.c: Update.
13774         Fix simple_wmemcmp.
13775         Add new tests.
13776         * wcsmbs/wmemcmp.c: Update.
13777         (WMEMCMP): New macro.
13778         Fix overflow bug.
13779
13780 2011-10-12  Andreas Jaeger  <aj@suse.de>
13781
13782         [BZ #13268]
13783         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13784
13785 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13786
13787         * libio/iofwide.c (do_length): Avoid warning.
13788
13789         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13790
13791 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13792
13793         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13794
13795         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13796         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13797         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13798         * sysdeps/i386/i686/fpu/e_log.S: New file.
13799         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13800         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13801
13802         * ctype/ctype.h: Add support for inlined isXXX functions when
13803         compiling C++ code.
13804
13805 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13806
13807         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13808
13809         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13810
13811 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13812
13813         [BZ #13291]
13814         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13815
13816 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13817
13818         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13819         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13820         feraiseexcept.
13821
13822         * sysdeps/x86_64/memrchr.S: Check for zero size.
13823
13824         * string/stratcliff.c: Add memrchr tests.
13825
13826 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13827
13828         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13829         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13830         rawmemchr-sse2 rawmemchr-sse2-bsf.
13831         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13832         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13833         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13834         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13835         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13836         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13837         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13838         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13839         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13840         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13841         * string/memrchr.c (MEMRCHR): New macro.
13842
13843 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13844
13845         Add integration with gcc's -ffinite-math-only and optimize wrapper
13846         functions in libm.
13847         * Versions.def: Define GLIBC_2.15 version for libm.
13848         * math/Makefile (headers): Add bits/math-finite.h.
13849         * math/bits/math-finite.h: New file.
13850         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13851         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13852         * math/e_acoshl.c: Add __*_finite alias.
13853         * math/e_acosl.c: Likewise.
13854         * math/e_asinl.c: Likewise.
13855         * math/e_atan2l.c: Likewise.
13856         * math/e_atanhl.c: Likewise.
13857         * math/e_coshl.c: Likewise.
13858         * math/e_exp10.c: Likewise.
13859         * math/e_exp10f.c: Likewise.
13860         * math/e_exp10l.c: Likewise.
13861         * math/e_exp2l.c: Likewise.
13862         * math/e_fmodl.c: Likewise.
13863         * math/e_gammal_r.c: Likewise.
13864         * math/e_hypotl.c: Likewise.
13865         * math/e_j0l.c: Likewise.
13866         * math/e_j1l.c: Likewise.
13867         * math/e_jnl.c: Likewise.
13868         * math/e_lgammal_r.c: Likewise.
13869         * math/e_log10l.c: Likewise.
13870         * math/e_log2l.c: Likewise.
13871         * math/e_logl.c: Likewise.
13872         * math/e_powl.c: Likewise.
13873         * math/e_sinhl.c: Likewise.
13874         * math/e_sqrtl.c: Likewise.
13875         * math/e_scalb.c: Completely rewritten and optimized.
13876         * math/e_scalbf.c: Likewise.
13877         * math/e_scalbl.c: Likewise.
13878         * math/w_acos.c: Likewise.
13879         * math/w_acosf.c: Likewise.
13880         * math/w_acosl.c: Likewise.
13881         * math/w_acosh.c: Likewise.
13882         * math/w_acoshf.c: Likewise.
13883         * math/w_acoshl.c: Likewise.
13884         * math/w_asin.c: Likewise.
13885         * math/w_asinf.c: Likewise.
13886         * math/w_asinl.c: Likewise.
13887         * math/w_atan2.c: Likewise.
13888         * math/w_atan2f.c: Likewise.
13889         * math/w_atan2l.c: Likewise.
13890         * math/w_atanh.c: Likewise.
13891         * math/w_atanhf.c: Likewise.
13892         * math/w_atanhl.c: Likewise.
13893         * math/w_exp10.c: Likewise.
13894         * math/w_exp10f.c: Likewise.
13895         * math/w_exp10l.c: Likewise.
13896         * math/w_fmod.c: Likewise.
13897         * math/w_fmodf.c: Likewise.
13898         * math/w_fmodl.c: Likewise.
13899         * math/w_j0.c: Likewise.
13900         * math/w_j0f.c: Likewise.
13901         * math/w_j0l.c: Likewise.
13902         * math/w_j1.c: Likewise.
13903         * math/w_j1f.c: Likewise.
13904         * math/w_j1l.c: Likewise.
13905         * math/w_jn.c: Likewise.
13906         * math/w_jnf.c: Likewise.
13907         * math/w_log.c: Likewise.
13908         * math/w_logf.c: Likewise.
13909         * math/w_logl.c: Likewise.
13910         * math/w_log10.c: Likewise.
13911         * math/w_log10f.c: Likewise.
13912         * math/w_log10l.c: Likewise.
13913         * math/w_log2.c: Likewise.
13914         * math/w_log2f.c: Likewise.
13915         * math/w_log2l.c: Likewise.
13916         * math/w_pow.c: Likewise.
13917         * math/w_powf.c: Likewise.
13918         * math/w_powl.c: Likewise.
13919         * math/w_remainder.c: Likewise.
13920         * math/w_remainderf.c: Likewise.
13921         * math/w_remainderl.c: Likewise.
13922         * math/w_scalb.c: Likewise.
13923         * math/w_scalbf.c: Likewise.
13924         * math/w_scalbl.c: Likewise.
13925         * math/w_sqrt.c: Likewise.
13926         * math/w_sqrtf.c: Likewise.
13927         * math/w_sqrtl.c: Likewise.
13928         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
13929         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
13930         used.
13931         * math/math_private.h: Declare __kernel_standard_f.
13932         * math/w_cosh.c: Remove cruft and optimize a bit.
13933         * math/w_coshf.c: Likewise.
13934         * math/w_coshl.c: Likewise.
13935         * math/w_exp2.c: Likewise.
13936         * math/w_exp2f.c: Likewise.
13937         * math/w_exp2l.c: Likewise.
13938         * math/w_hypot.c: Likewise.
13939         * math/w_hypotf.c: Likewise.
13940         * math/w_hypotl.c: Likewise.
13941         * math/w_lgamma.c: Likewise.
13942         * math/w_lgamma_r.c: Likewise.
13943         * math/w_lgammaf.c: Likewise.
13944         * math/w_lgammaf_r.c: Likewise.
13945         * math/w_lgammal.c: Likewise.
13946         * math/w_lgammal_r.c: Likewise.
13947         * math/w_sinh.c: Likewise.
13948         * math/w_sinhf.c: Likewise.
13949         * math/w_sinhl.c: Likewise.
13950         * math/w_tgamma.c: Likewise.
13951         * math/w_tgammaf.c: Likewise.
13952         * math/w_tgammal.c: Likewise.
13953         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
13954         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13955         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
13956         Minor optimizations.  Pretty printing.  Remove cruft.
13957         * sysdeps/i386/fpu/e_acosf.S: Likewise.
13958         * sysdeps/i386/fpu/e_acosh.S: Likewise.
13959         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
13960         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
13961         * sysdeps/i386/fpu/e_acosl.c: Likewise.
13962         * sysdeps/i386/fpu/e_asin.S: Likewise.
13963         * sysdeps/i386/fpu/e_asinf.S: Likewise.
13964         * sysdeps/i386/fpu/e_atan2.S: Likewise.
13965         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
13966         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
13967         * sysdeps/i386/fpu/e_atanh.S: Likewise.
13968         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
13969         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
13970         * sysdeps/i386/fpu/e_exp10.S: Likewise.
13971         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
13972         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
13973         * sysdeps/i386/fpu/e_exp2.S: Likewise.
13974         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
13975         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
13976         * sysdeps/i386/fpu/e_fmod.S: Likewise.
13977         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
13978         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
13979         * sysdeps/i386/fpu/e_hypot.S: Likewise.
13980         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
13981         * sysdeps/i386/fpu/e_log.S: Likewise.
13982         * sysdeps/i386/fpu/e_log10.S: Likewise.
13983         * sysdeps/i386/fpu/e_log10f.S: Likewise.
13984         * sysdeps/i386/fpu/e_log10l.S: Likewise.
13985         * sysdeps/i386/fpu/e_log2.S: Likewise.
13986         * sysdeps/i386/fpu/e_log2f.S: Likewise.
13987         * sysdeps/i386/fpu/e_log2l.S: Likewise.
13988         * sysdeps/i386/fpu/e_logf.S: Likewise.
13989         * sysdeps/i386/fpu/e_logl.S: Likewise.
13990         * sysdeps/i386/fpu/e_pow.S: Likewise.
13991         * sysdeps/i386/fpu/e_powf.S: Likewise.
13992         * sysdeps/i386/fpu/e_powl.S: Likewise.
13993         * sysdeps/i386/fpu/e_remainder.S: Likewise.
13994         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
13995         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
13996         * sysdeps/i386/fpu/e_scalb.S: Likewise.
13997         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
13998         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
13999         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14000         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14001         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14002         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14003         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14004         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14005         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14006         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14007         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14008         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14009         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14010         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14011         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14012         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14013         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14014         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14015         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14016         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14017         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14018         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14019         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14020         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14021         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14022         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14023         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14024         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14025         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14026         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14027         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14028         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14029         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14030         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14031         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14032         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14033         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14034         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14035         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14036         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14037         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14038         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14039         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14040         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14041         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14042         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14043         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14044         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14045         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14046         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14047         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14048         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14049         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14050         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14051         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14052         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14053         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14054         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14055         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14056         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14057         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14058         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14059         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14060         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14061         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14062         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14063         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14064         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14065         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14066         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14067         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14068         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14069         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14070         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14071         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14072         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14073         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14074         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14075         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14076         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14077         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14078         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14079         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14080         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14081         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14082         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14083         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14084         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14085         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14086         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14087         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14088         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14089         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14090         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14091         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14092         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14093         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14094         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14095         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14096         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14097         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14098         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14099         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14100         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14101         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14102         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14103         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14104         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14105         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14106         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14107         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14108         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14109         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14110         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14111         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14112         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14113         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14114         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14115         (__isnanf): Likewise.
14116         (__isinf_ns): Likewise.
14117         (__isinf_nsf): Likewise.
14118         (__finite): Likewise.
14119         (__finitef): Likewise.
14120         (__ieee754_sqrt): Define as macro.
14121         (__ieee754_sqrtf): Define as macro.
14122         (__ieee754_sqrtl): Define as macro.
14123         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14124         inlined copy.
14125         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14126         __FINITE_MATH_ONLY__ consistent.
14127         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14128
14129 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14130
14131         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14132         of rawmemchr.
14133
14134         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14135
14136 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14137
14138         * po/ja.po: Update from translation team.
14139
14140 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14141
14142         * locale/programs/locarchive.c (prepare_address_space): New function.
14143         (create_archive, enlarge_archive, open_archive): Use it.
14144
14145         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14146         inside [SHARED], where it is used.
14147
14148         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14149
14150         * nss/getent.c (netgroup_keys): Remove unused variable.
14151         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14152
14153 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14154
14155         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14156         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14157         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14158         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14159         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14160         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14161         * math/Makefile (libm-calls): Add s_isinf_ns.
14162         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14163         * math/multc3.c: Likewise.
14164         * math/s_casin.c: Likewise.
14165         * math/s_casinf.c: Likewise.
14166         * math/s_casinl.c: Likewise.
14167         * math/s_ccos.c: Likewise.
14168         * math/s_ccosf.c: Likewise.
14169         * math/s_ccosl.c: Likewise.
14170         * math/s_ctan.c: Likewise.
14171         * math/s_ctanf.c: Likewise.
14172         * math/s_ctanh.c: Likewise.
14173         * math/s_ctanhf.c: Likewise.
14174         * math/s_ctanhl.c: Likewise.
14175         * math/s_ctanl.c: Likewise.
14176         * math/w_fmod.c: Likewise.
14177         * math/w_fmodf.c: Likewise.
14178         * math/w_fmodl.c: Likewise.
14179         * math/w_remainder.c: Likewise.
14180         * math/w_remainderf.c: Likewise.
14181         * math/w_remainderl.c: Likewise.
14182         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14183         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14184         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14185         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14186         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14187         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14188         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14189         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14190
14191         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14192         of the number.
14193         * stdio-common/printf_fphex.c: Likewise.
14194         * stdio-common/printf_size.c: Likewise.
14195
14196         * math/e_exp10.c: Include math_private.h using <...> not "...".
14197         * math/e_exp10f.c: Likewise.
14198         * math/e_exp10l.c: Likewise.
14199         * math/e_exp2l.c: Likewise.
14200         * math/e_j0l.c: Likewise.
14201         * math/e_j1l.c: Likewise.
14202         * math/e_jnl.c: Likewise.
14203         * math/e_lgammal_r.c: Likewise.
14204         * math/e_rem_pio2l.c: Likewise.
14205         * math/e_scalb.c: Likewise.
14206         * math/e_scalbf.c: Likewise.
14207         * math/e_scalbl.c: Likewise.
14208         * math/k_cosl.c: Likewise.
14209         * math/k_sinl.c: Likewise.
14210         * math/k_tanl.c: Likewise.
14211         * math/s_cacoshf.c: Likewise.
14212         * math/s_catan.c: Likewise.
14213         * math/s_catanf.c: Likewise.
14214         * math/s_catanh.c: Likewise.
14215         * math/s_catanhf.c: Likewise.
14216         * math/s_catanhl.c: Likewise.
14217         * math/s_catanl.c: Likewise.
14218         * math/s_ccosh.c: Likewise.
14219         * math/s_ccoshf.c: Likewise.
14220         * math/s_ccoshl.c: Likewise.
14221         * math/s_cexp.c: Likewise.
14222         * math/s_cexpf.c: Likewise.
14223         * math/s_cexpl.c: Likewise.
14224         * math/s_clog.c: Likewise.
14225         * math/s_clog10.c: Likewise.
14226         * math/s_clog10f.c: Likewise.
14227         * math/s_clog10l.c: Likewise.
14228         * math/s_clogf.c: Likewise.
14229         * math/s_clogl.c: Likewise.
14230         * math/s_csin.c: Likewise.
14231         * math/s_csinf.c: Likewise.
14232         * math/s_csinh.c: Likewise.
14233         * math/s_csinhf.c: Likewise.
14234         * math/s_csinhl.c: Likewise.
14235         * math/s_csinl.c: Likewise.
14236         * math/s_csqrt.c: Likewise.
14237         * math/s_csqrtf.c: Likewise.
14238         * math/s_csqrtl.c: Likewise.
14239         * math/s_ctan.c: Likewise.
14240         * math/s_ctanf.c: Likewise.
14241         * math/s_ctanh.c: Likewise.
14242         * math/s_ctanhf.c: Likewise.
14243         * math/s_ctanhl.c: Likewise.
14244         * math/s_ctanl.c: Likewise.
14245         * math/s_ldexp.c: Likewise.
14246         * math/s_ldexpf.c: Likewise.
14247         * math/s_ldexpl.c: Likewise.
14248         * math/s_significand.c: Likewise.
14249         * math/s_significandf.c: Likewise.
14250         * math/s_significandl.c: Likewise.
14251         * math/w_acos.c: Likewise.
14252         * math/w_acosf.c: Likewise.
14253         * math/w_acosh.c: Likewise.
14254         * math/w_acoshf.c: Likewise.
14255         * math/w_acoshl.c: Likewise.
14256         * math/w_acosl.c: Likewise.
14257         * math/w_asin.c: Likewise.
14258         * math/w_asinf.c: Likewise.
14259         * math/w_asinl.c: Likewise.
14260         * math/w_atan2.c: Likewise.
14261         * math/w_atan2f.c: Likewise.
14262         * math/w_atan2l.c: Likewise.
14263         * math/w_atanh.c: Likewise.
14264         * math/w_atanhf.c: Likewise.
14265         * math/w_atanhl.c: Likewise.
14266         * math/w_cosh.c: Likewise.
14267         * math/w_coshf.c: Likewise.
14268         * math/w_coshl.c: Likewise.
14269         * math/w_dremf.c: Likewise.
14270         * math/w_exp10.c: Likewise.
14271         * math/w_exp10f.c: Likewise.
14272         * math/w_exp10l.c: Likewise.
14273         * math/w_exp2.c: Likewise.
14274         * math/w_exp2f.c: Likewise.
14275         * math/w_fmod.c: Likewise.
14276         * math/w_fmodf.c: Likewise.
14277         * math/w_fmodl.c: Likewise.
14278         * math/w_hypot.c: Likewise.
14279         * math/w_hypotf.c: Likewise.
14280         * math/w_hypotl.c: Likewise.
14281         * math/w_j0.c: Likewise.
14282         * math/w_j0f.c: Likewise.
14283         * math/w_j0l.c: Likewise.
14284         * math/w_j1.c: Likewise.
14285         * math/w_j1f.c: Likewise.
14286         * math/w_j1l.c: Likewise.
14287         * math/w_jn.c: Likewise.
14288         * math/w_jnf.c: Likewise.
14289         * math/w_jnl.c: Likewise.
14290         * math/w_lgamma.c: Likewise.
14291         * math/w_lgamma_r.c: Likewise.
14292         * math/w_lgammaf.c: Likewise.
14293         * math/w_lgammaf_r.c: Likewise.
14294         * math/w_lgammal.c: Likewise.
14295         * math/w_lgammal_r.c: Likewise.
14296         * math/w_log.c: Likewise.
14297         * math/w_log10.c: Likewise.
14298         * math/w_log10f.c: Likewise.
14299         * math/w_log10l.c: Likewise.
14300         * math/w_log2.c: Likewise.
14301         * math/w_log2f.c: Likewise.
14302         * math/w_log2l.c: Likewise.
14303         * math/w_logf.c: Likewise.
14304         * math/w_logl.c: Likewise.
14305         * math/w_pow.c: Likewise.
14306         * math/w_powf.c: Likewise.
14307         * math/w_powl.c: Likewise.
14308         * math/w_remainder.c: Likewise.
14309         * math/w_remainderf.c: Likewise.
14310         * math/w_remainderl.c: Likewise.
14311         * math/w_scalb.c: Likewise.
14312         * math/w_scalbf.c: Likewise.
14313         * math/w_scalbl.c: Likewise.
14314         * math/w_sinh.c: Likewise.
14315         * math/w_sinhf.c: Likewise.
14316         * math/w_sinhl.c: Likewise.
14317         * math/w_sqrt.c: Likewise.
14318         * math/w_sqrtf.c: Likewise.
14319         * math/w_sqrtl.c: Likewise.
14320         * math/w_tgamma.c: Likewise.
14321         * math/w_tgammaf.c: Likewise.
14322         * math/w_tgammal.c: Likewise.
14323
14324         * po/ja.po: Update from translation team.
14325
14326 2011-09-29  Andreas Jaeger  <aj@suse.de>
14327
14328         [BZ #13179]
14329         * sunrpc/netname.c (netname2host): Fix logic.
14330
14331         [BZ #6779]
14332         [BZ #6783]
14333         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14334         correctly.
14335         * math/w_remainder.c (__remainder): Likewise.
14336         * math/w_remainderf.c (__remainderf): Likewise.
14337         * math/libm-test.inc (remainder_test): Add test cases.
14338
14339 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14340
14341         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14342         sdiv_qrnnd.
14343
14344 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14345
14346         * string/test-memcmp.c: Avoid unncessary #defines.
14347         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14348
14349 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14350
14351         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14352         Use new sse2 version for core i3 - i7 as it's faster
14353         than sse42 version.
14354         (bit_Prefer_PMINUB_for_stringop): New.
14355         * sysdeps/x86_64/rawmemchr.S: Update.
14356         Replace with faster SSE2 version.
14357         * sysdeps/x86_64/memrchr.S: New file.
14358         * sysdeps/x86_64/memchr.S: Update.
14359         Replace with faster SSE2 version.
14360
14361 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14362
14363         * elf/dl-load.c (lose): Add cast to avoid warning.
14364
14365 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14366
14367         * po/ca.po: Update from translation team.
14368
14369         * inet/getnetgrent_r.c: Hook up nscd.
14370         * nscd/Makefile (routines): Add nscd_netgroup.
14371         (nscd-modules): Add netgroupcache.
14372         (CFLAGS-netgroupcache.c): Define.
14373         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14374         (cache_search): Add const to second parameter.
14375         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14376         INNETGR.
14377         (dbs): Add netgrdb entry.
14378         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14379         (verify_persistent_db): Handle netgrdb.
14380         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14381         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14382         GETFDNETGR.
14383         (netgroup_response_header): Define.
14384         (innetgroup_response_header): Define.
14385         (datahead): Add netgroup_response_header and innetgroup_response_header
14386         elements.
14387         * nscd/nscd.conf: Add entries for netgroup cache.
14388         * nscd/nscd.h (dbtype): Add netgrdb.
14389         (_PATH_NSCD_NETGROUP_DB): Define.
14390         (netgroup_iov_disabled): Declare.
14391         (xmalloc, xcalloc, xrealloc): Move declarations here.
14392         (cache_search): Adjust prototype.
14393         Add netgroup-related prototypes.
14394         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14395         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14396         (__nscd_innetgr): Declare.
14397         * nscd/selinux.c (perms): Use access_vector_t as element type and
14398         add netgroup-related initializers.
14399         * nscd/netgroupcache.c: New file.
14400         * nscd/nscd_netgroup.c: New file.
14401         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14402         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14403         For four parameters use innetgr.
14404         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14405         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14406         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14407         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14408
14409         * nscd/connections.c (register_traced_file): Don't register file
14410         for disabled databases.
14411
14412 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14413
14414         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14415
14416         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14417         from tree and freeing node.
14418
14419 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14420
14421         * nss/nsswitch.c (__nss_database_lookup): Handle
14422         nss_parse_service_list out of memory case.
14423
14424 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14425
14426         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14427         out of memory case.
14428
14429 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14430
14431         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14432         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14433         pass it down.
14434         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14435         elf_machine_rela, elf_machine_lazy_rel.
14436         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14437         (ELF_DYNAMIC_DO_REL): Likewise.
14438         (ELF_DYNAMIC_DO_RELA): Likewise.
14439         (ELF_DYNAMIC_RELOCATE): Likewise.
14440         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14441         to ELF_DYNAMIC_DO_REL.
14442         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14443         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14444         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14445         elf_machine_rela.
14446         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14447         skip_ifunc, don't call ifunc function if non-zero.
14448         (elf_machine_rela): Likewise.
14449         (elf_machine_lazy_rel): Likewise.
14450         (elf_machine_lazy_rela): Likewise.
14451         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14452         (elf_machine_lazy_rel): Likewise.
14453         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14454         Likewise.
14455         (elf_machine_lazy_rel): Likewise.
14456         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14457         Likewise.
14458         (elf_machine_lazy_rel): Likewise.
14459         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14460         (elf_machine_lazy_rel): Likewise.
14461         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14462         (elf_machine_lazy_rel): Likewise.
14463         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14464         (elf_machine_lazy_rel): Likewise.
14465         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14466         (elf_machine_lazy_rel): Likewise.
14467         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14468         (elf_machine_lazy_rel): Likewise.
14469         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14470         (elf_machine_lazy_rel): Likewise.
14471
14472 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14473
14474         * nss/nss_files/files-init.c (_nss_files_init): Use static
14475         initialization for all the *_traced_file variables.
14476
14477 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14478
14479         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14480
14481 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14482
14483         [BZ #13226]
14484         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14485
14486 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14487
14488         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14489         Reread the line before reparsing it.
14490
14491 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14492
14493         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14494
14495 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14496             Maxim Kuvyrkov  <maxim@codesourcery.com>
14497             Joseph Myers  <joseph@codesourcery.com>
14498
14499         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14500         if needed for __stack_chk_guard.
14501
14502 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14503
14504         * sysdeps/posix/spawni.c (script_execute): Always define it.
14505         It will be optimized away if unused.
14506         (maybe_script_execute): New function.
14507         (__spawni): Call it.
14508
14509         * Makerules: Don't include tls.make.
14510         (config-tls): Always set to thread.
14511         * tls.make.c: File removed.
14512
14513 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14514
14515         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14516         * config.make.in (CPPFLAGS-config): New substituted variable.
14517
14518 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14519
14520         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14521
14522         [BZ #13192]
14523         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14524         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14525
14526 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14527
14528         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14529         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14530         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14531         (CALL_FAIL): Likewise.
14532         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14533         (CALL_FAIL): Macro removed.
14534         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14535
14536 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14537
14538         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14539         for __FINITE_MATH_ONLY__ == 1.
14540
14541 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14542
14543         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14544         __ieee754_sqrt instead of sqrt.
14545         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14546         __ieee754_sqrtf instead of sqrtf.
14547         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14548         __floorf instead of floorf.
14549         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14550         __floorf, __truncf instead of floorf, truncf.
14551
14552 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14553
14554         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14555
14556         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14557         __extern_always_inline.
14558         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14559         32-bit.
14560
14561 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14562
14563         * elf/rtld.c (dl_main): Also relocate in dependency order when
14564         doing symbol dependency testing.
14565
14566 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14567
14568         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14569         Always define `refsym'.
14570
14571 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14572
14573         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14574         (__FD_ELT): Renamed from __FDELT.
14575         * misc/bits/select2.h (__FD_ELT): Likewise.
14576         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14577         __FD_MASK instead of __FDELT, __FDMASK.
14578         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14579         Likewise.
14580         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14581         Likewise.
14582
14583         * elf/Makefile (gen-ldd): Fix pattern.
14584
14585         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14586         (init_tls): Likewise.
14587
14588 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14589
14590         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14591
14592 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14593
14594         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14595         `struct cmsghdr *' instead of `void *'.
14596         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14597         Likewise.
14598
14599 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14600
14601         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14602         if non-absolute.
14603         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14604         ldd_rewrite_script.
14605
14606 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14607
14608         * configure.in: Remove --with-tls option.
14609         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14610         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14611         out in case it is missing.
14612         * sysdeps/ia64/elf/configure.in: Likewise.
14613         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14614         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14615         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14616         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14617         * sysdeps/sh/elf/configure.in: Likewise.
14618         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14619         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14620         * sysdeps/x86_64/elf/configure.in: Likewise.
14621         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14622         * sysdeps/mach/hurd/tls.h: Likewise.
14623
14624         [BZ #13067]
14625         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14626
14627         [BZ #13090]
14628         * configure.in: Fix use of AC_INIT.
14629
14630         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14631
14632 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14633
14634         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14635         __set_errno.
14636         * malloc/hooks.c: Likewise.
14637
14638         [BZ #11929]
14639         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14640         variables statically.
14641         (narenas): Initialize.
14642         (list_lock): Initialize.
14643         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14644         initializtion of main_arena and list_lock.  Small cleanups.
14645         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14646         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14647         Add initializers to main_arena and mp_.
14648         (malloc_state): Remove pagesize member.  Change all users to use
14649         GLRO(dl_pagesize).
14650
14651         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14652         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14653         is always initialized.
14654
14655         * malloc/malloc.c: Removed unused configurations and dead code.
14656         * malloc/arena.c: Likewise.
14657         * malloc/hooks.c: Likewise.
14658         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14659
14660         * include/tls.h: Removed.  USE___THREAD must always be defined.
14661         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14662         * elf/dl-libc.c: Likewise.
14663         * elf/dl-tsd.c: Likewise.
14664         * include/errno.h: Likewise.
14665         * include/netdb.h: Likewise.
14666         * include/resolv.h: Likewise.
14667         * inet/herrno-loc.c: Likewise.
14668         * inet/herrno.c: Likewise.
14669         * malloc/arena.c: Likewise.
14670         * malloc/hooks.c: Likewise.
14671         * malloc/malloc.c: Likewise.
14672         * resolv/res-state.c: Likewise.
14673         * resolv/res_libc.c: Likewise.
14674         * sysdeps/i386/dl-machine.h: Likewise.
14675         * sysdeps/ia64/dl-machine.h: Likewise.
14676         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14677         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14678         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14679         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14680         * sysdeps/sh/dl-machine.h: Likewise.
14681         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14682         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14683         * sysdeps/unix/i386/sysdep.S: Likewise.
14684         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14685         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14686         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14687         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14688         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14689         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14690         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14691         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14692         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14693         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14694         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14695         * sysdeps/x86_64/dl-machine.h: Likewise.
14696         * tls.make.c: Likewise.
14697
14698         * configure.in: Remove --with-__thread option.  Make tests for
14699         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14700         tls_model attribute fail if no support is available.  Remove
14701         USE_IN_LIBIO.
14702         * Makeconfig: Adjust for dropped configure option.  All features are
14703         now mandatory.
14704         * Makerules: Likewise.
14705         * Versions.def: Likewise.
14706         * argp/argp-fmtstream.c: Likewise.
14707         * argp/argp-fmtstream.h: Likewise.
14708         * argp/argp-help.c: Likewise.
14709         * assert/assert.c: Likewise.
14710         * config.h.in: Likewise.
14711         * config.make.in: Likewise.
14712         * configure: Likewise.
14713         * configure.in: Likewise.
14714         * csu/Versions: Likewise.
14715         * csu/init.c: Likewise.
14716         * elf/tst-audit2.c: Likewise.
14717         * elf/tst-tls10.c: Likewise.
14718         * elf/tst-tls10.h: Likewise.
14719         * elf/tst-tls11.c: Likewise.
14720         * elf/tst-tls12.c: Likewise.
14721         * elf/tst-tls14.c: Likewise.
14722         * elf/tst-tlsmod11.c: Likewise.
14723         * elf/tst-tlsmod12.c: Likewise.
14724         * elf/tst-tlsmod13.c: Likewise.
14725         * elf/tst-tlsmod13a.c: Likewise.
14726         * elf/tst-tlsmod14a.c: Likewise.
14727         * elf/tst-tlsmod15b.c: Likewise.
14728         * elf/tst-tlsmod16a.c: Likewise.
14729         * elf/tst-tlsmod16b.c: Likewise.
14730         * elf/tst-tlsmod7.c: Likewise.
14731         * elf/tst-tlsmod8.c: Likewise.
14732         * elf/tst-tlsmod9.c: Likewise.
14733         * gmon/gmon.c: Likewise.
14734         * grp/fgetgrent_r.c: Likewise.
14735         * grp/putgrent.c: Likewise.
14736         * hurd/fopenport.c: Likewise.
14737         * include/libc-symbols.h: Likewise.
14738         * include/tls.h: Likewise.
14739         * intl/gettextP.h: Likewise.
14740         * intl/loadinfo.h: Likewise.
14741         * locale/global-locale.c: Likewise.
14742         * locale/localeinfo.h: Likewise.
14743         * mach/devstream.c: Likewise.
14744         * malloc/arena.c: Likewise.
14745         * malloc/set-freeres.c: Likewise.
14746         * misc/err.c: Likewise.
14747         * misc/getttyent.c: Likewise.
14748         * misc/mntent_r.c: Likewise.
14749         * posix/getopt.c: Likewise.
14750         * posix/wordexp.c: Likewise.
14751         * pwd/fgetpwent_r.c: Likewise.
14752         * resolv/Versions: Likewise.
14753         * resolv/res_hconf.c: Likewise.
14754         * shadow/fgetspent_r.c: Likewise.
14755         * shadow/putspent.c: Likewise.
14756         * stdio-common/printf_fphex.c: Likewise.
14757         * stdio-common/tmpfile.c: Likewise.
14758         * stdlib/abort.c: Likewise.
14759         * stdlib/fmtmsg.c: Likewise.
14760         * sunrpc/auth_unix.c: Likewise.
14761         * sunrpc/clnt_perr.c: Likewise.
14762         * sunrpc/clnt_tcp.c: Likewise.
14763         * sunrpc/clnt_udp.c: Likewise.
14764         * sunrpc/clnt_unix.c: Likewise.
14765         * sunrpc/openchild.c: Likewise.
14766         * sunrpc/svc_simple.c: Likewise.
14767         * sunrpc/svc_tcp.c: Likewise.
14768         * sunrpc/svc_udp.c: Likewise.
14769         * sunrpc/svc_unix.c: Likewise.
14770         * sunrpc/xdr.c: Likewise.
14771         * sunrpc/xdr_array.c: Likewise.
14772         * sunrpc/xdr_rec.c: Likewise.
14773         * sunrpc/xdr_ref.c: Likewise.
14774         * sunrpc/xdr_stdio.c: Likewise.
14775
14776 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14777
14778         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14779
14780 2011-07-03  Andreas Jaeger  <aj@suse.de>
14781
14782         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14783         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14784         regenerate with gen-libm-tests.pl.
14785
14786 2010-05-12  Petr Baudis  <pasky@suse.cz>
14787
14788         [BZ #11589]
14789         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14790         around j0() zero points by switching to j1().
14791         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14792         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14793         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14794         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14795
14796 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14797
14798         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14799         instead of 0.
14800         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14801         instead of 0.                              .
14802         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14803         Patch in part by Pavel Roskin <proski@gnu.org>.
14804
14805         [BZ #13138]
14806         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14807         realloc.
14808         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14809         Free memory block if necessary.
14810
14811         [BZ #12847]
14812         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14813         be NULL.  Don't lock in this case.
14814
14815 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14816
14817         * elf/elf.h (ELFOSABI_GNU): New macro.
14818         (ELFOSABI_LINUX): Define to that.
14819
14820 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14821
14822         * string/strncat.c (strncat): Undef the symbol in case it has been
14823         defined in bits/string.h.
14824
14825 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14826
14827         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14828
14829         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14830         link map.
14831
14832 2011-08-17  Andreas Jaeger  <aj@suse.de>
14833
14834         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14835
14836 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14837             Ian Lance Taylor  <iant@google.com>
14838
14839         * math/libm-test.inc (lround_test): New testcase.
14840         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14841
14842 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14843
14844         * Makefile: Remove support for automatic cvs check-ins.
14845         * Makerules: Likewise.
14846         * config.make.in: Likewise.
14847         * configure.in: Likewise.
14848         * intl/Makefile: Likewise.
14849         * locale/Makefile: Likewise.
14850         * po/Makefile: Likewise.
14851         * posix/Makefile: Likewise.
14852         * sysdeps/gnu/Makefile: Likewise.
14853         * sysdeps/mach/hurd/Makefile: Likewise.
14854         * sysdeps/sparc/sparc32/Makefile: Likewise.
14855
14856         [BZ #13118]
14857         * posix/Makefile (bug-regex32-ENV): Define.
14858         Patch by John Stanley <jpsinthemix@verizon.net>.
14859
14860         * misc/Makefile (headers): Add bits/select2.h.
14861         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14862         * misc/bits/select2.h: New file.
14863         * include/bits/select2.h: New file.
14864         * debug/Makefile (routines): Add fdelt_chk.
14865         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14866         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14867         FD_ISSET.
14868         * debug/fdelt_chk.c: New file.
14869
14870         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14871         * wcsmbs/test-wmemcmp.c: Likewise.
14872         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14873         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14874
14875 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14876
14877         * string/Makefile (strop-tests): Add memcmp.
14878         * string/test-wmemcmp.c: New file.
14879         * string/test-memcmp.c: Add wmemcmp support.
14880
14881 2011-09-08  Roland McGrath  <roland@hack.frob.com>
14882
14883         [BZ #13153]
14884         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
14885         2011-07-19 change.
14886
14887         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
14888         garbage value in a __mach_port_mod_refs call in the cases of the
14889         task-self and thread-self ports.
14890
14891 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14892
14893         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
14894
14895 2011-09-08  Andreas Schwab  <schwab@redhat.com>
14896
14897         * elf/dl-load.c (lose): Check for non-null L.
14898
14899 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14900
14901         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
14902
14903         * elf/dl-libc.c (dlerror_run): Pass back error code from
14904         dl_catch_error.
14905
14906         [BZ #13123]
14907         * elf/dl-load.c (lose): Free l_origin if it is valid.
14908
14909         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
14910         names.
14911         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
14912         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14913         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
14914         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14915         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
14916         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
14917
14918 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14919
14920         * sysdeps/powerpc/fpu/e_hypot.c: New file.
14921         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
14922         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
14923         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
14924         * sysdeps/powerpc/fpu/k_cosf.c: New file.
14925         * sysdeps/powerpc/fpu/k_sinf.c: New file.
14926         * sysdeps/powerpc/fpu/s_cosf.c: New file.
14927         * sysdeps/powerpc/fpu/s_sinf.c: New file.
14928         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
14929         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
14930
14931 2011-08-15  Alan Modra  <amodra@gmail.com>
14932
14933         [BZ #13092]
14934         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
14935         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
14936         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
14937         ppc_mcount to static-only-routines.
14938         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
14939         __mcount_internal.
14940         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
14941         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
14942
14943 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
14944
14945         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
14946         for finite and infinity parameters.
14947
14948 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
14949
14950         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
14951         and add nop instructions for throughput optimization.
14952         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
14953
14954 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
14955
14956         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
14957         aligned copy for power7 with vector-scalar instructions.
14958         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
14959
14960 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
14961
14962         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
14963         AVX check.
14964
14965 2011-09-07  Andreas Schwab  <schwab@redhat.com>
14966
14967         [BZ #13144]
14968         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
14969         last change.
14970
14971 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
14972
14973         * sysdeps/unix/sysv/linux/x86_64/init-first.c
14974         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
14975         syscall wrapper around clock_gettime in __vdso_clock_gettime.
14976         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
14977         clock_gettime.
14978
14979 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
14980
14981         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
14982         Forgot to demangle the pointer.
14983
14984         * sysdeps/i386/sysdep.h: Define atom_text_section.
14985         * sysdeps/x86_64/sysdep.h: Likewise.
14986         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
14987         section with atom_text_section.
14988         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
14989         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
14990         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
14991         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
14992         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
14993
14994         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
14995         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
14996         already be defined.  Change to take two parameters and don't assign
14997         result to variable.  Adjust all users.
14998         Define INTERNAL_GETTIME if not already defined.
14999         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15000         call.
15001         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15002         HAVE_CLOCK_GETTIME_VSYSCALL.
15003         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15004
15005         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15006         gettimeofday vsyscall, just use time.
15007
15008 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15009
15010         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15011         <errno.h>.
15012
15013 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15014
15015         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15016         syscall on x86-64.
15017         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15018         syscall.
15019         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15020         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15021         syscall if possible.
15022
15023 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15024
15025         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15026         e_ident.  Don't pass to find_mapsXX.
15027         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15028
15029 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15030
15031         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15032         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15033         * sysdeps/x86_64/multiarch/strchr.S: Update.
15034         Check bit_slow_BSF bit.
15035         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15036         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15037         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15038
15039 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15040
15041         [BZ #13134]
15042         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15043         before glibc 2.15.
15044         (tryshell): Define.
15045         (__spawni): Change last parameter to be flag.  Test
15046         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15047         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15048         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15049         * posix/spawni.c: Likewise.
15050         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15051         * posix/spawnp.c: Likewise.  Change normal version to use
15052         SPAWN_XFLAGS_USE_PATH.
15053         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15054         SPAWN_XFLAGS_TRY_SHELL.
15055
15056         [BZ #13150]
15057         * posix/glob.h: Remove gcc 1.x support.
15058
15059         [BZ #13068]
15060         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15061
15062 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15063
15064         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15065         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15066         strrchr-sse2-bsf
15067         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15068         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15069         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15070         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15071         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15072         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15073
15074 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15075
15076         * sysdeps/x86_64/wcscmp.S: New file.
15077
15078         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15079         wcscmp-c wcscmp-sse2
15080         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15081         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15082         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15083         * wcsmbs/wcscmp.c: Allow renaming.
15084
15085 2011-09-05  David S. Miller  <davem@davemloft.net>
15086
15087         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15088         stack slot, rather than the struct return pointer slot.
15089         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15090         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15091         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15092         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15093
15094 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15095
15096         * po/ja.po: Update from translation team.
15097
15098         [BZ #13144]
15099         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15100         kernel in 64-bit binaries.
15101
15102 2011-09-01  David S. Miller  <davem@davemloft.net>
15103
15104         * elf/elf.h (HWCAP_SPARC_*): Move to..
15105         * sysdeps/sparc/sysdep.h: this new file and add new values.
15106         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15107         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15108         _DL_HWCAP_COUNT to 24.
15109         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15110         entries.
15111         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15112         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15113         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15114         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15115         instead of magic constants.
15116         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15117
15118 2011-08-31  David S. Miller  <davem@davemloft.net>
15119
15120         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15121         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15122         Reimplement to do errno handling inline.
15123         (SYSCALL_ERROR_HANDLER): New macro.
15124         (__SYSCALL_STRING): Do not do errno handling in asm.
15125         (__CLONE_SYSCALL_STRING): Delete.
15126         (__INTERNAL_SYSCALL_STRING): Delete.
15127         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15128         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15129         (PSEUDO): Reimplement to do errno handling inline.
15130         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15131         (SYSCALL_ERROR_HANDLER): New macro.
15132         (__SYSCALL_STRING): Do not do errno handling in asm.
15133         (__CLONE_SYSCALL_STRING): Delete.
15134         (__INTERNAL_SYSCALL_STRING): Delete.
15135         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15136         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15137         i386.
15138         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15139         (inline_syscall*): Add 'err' argument.
15140         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15141         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15142         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15143         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15144
15145         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15146         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15147
15148 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15149
15150         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15151
15152 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15153
15154         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15155         directive.
15156
15157 2011-08-24  David S. Miller  <davem@davemloft.net>
15158
15159         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15160
15161 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15162
15163         * elf/Makefile: Add rules to build and run unload8 test.
15164         * elf/unload8.c: New file.
15165         * elf/unload8mod1.c: New file.
15166         * elf/unload8mod1x.c: New file.
15167         * elf/unload8mod2.c: New file.
15168         * elf/unload8mod3.c: New file.
15169
15170         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15171         it wasn't used.
15172
15173 2011-08-23  David S. Miller  <davem@davemloft.net>
15174
15175         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15176         subtract stack bias.
15177         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15178         %sp not %fp in calculations.
15179         (_JMPBUF_UNWINDS_ADJ): Likewise.
15180
15181         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15182         (aio_suspend): Call it to force an exception region around the
15183         AIO_MISC_WAIT() invocation.
15184
15185 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15186
15187         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15188         backslash.
15189
15190 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15191
15192         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15193         protection macro.
15194         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15195         and <dl-machine.h>.
15196         (Elf64_FuncDesc): Remove.
15197
15198 2011-08-22  David S. Miller  <davem@davemloft.net>
15199
15200         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15201         sigaltstack check, add missing cfi directives.
15202         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15203         missing cfi directives, and sigaltstack handling.
15204
15205 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15206
15207         [BZ #11724]
15208         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15209         object is seen twice.
15210         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15211
15212         * elf/Makefile (distribute): Add tst-initorder2.c.
15213         (tests): Add tst-initorder2.
15214         (modules-names): Add tst-initorder2a tst-initorder2b
15215         tst-initorder2c tst-initorder2d.  Add rules to build them.
15216         ($(objpfx)tst-initorder2.out): New rule.
15217         * elf/tst-initorder2.c: New file.
15218         * elf/tst-initorder2.exp: New file.
15219
15220 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15221
15222         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15223
15224         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15225         dependencies back to end of function.
15226
15227         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15228         $(elfobjdir)/ld.so.
15229
15230 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15231
15232         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15233         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15234         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15235         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15236         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15237         of __vdso_gettimeofday.
15238         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15239         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15240         attribute_hidden.
15241         (_libc_vdso_platform_setup): Remove initialization of
15242         __vdso_gettimeofday and __vdso_time.
15243
15244 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15245
15246         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15247         and fgetc_unlocked.
15248         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15249         getc_unlocked.
15250
15251         * elf/dl-open.c (add_to_global): Report additions to the global scope
15252         for LD_DEBUG=scopes.
15253         (dl_open_worker): Also print scope of newly loaded dependencies.
15254         (_dl_show_scope): Indicate if there is no scope.
15255
15256         [BZ #13114]
15257         * stdio-common/Makefile (tests): Add bug24.
15258         * stdio-common/bug24.c: New file.
15259
15260 2011-08-19  Andreas Jaeger  <aj@suse.de>
15261
15262         [BZ #13114]
15263         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15264         non-existant file when using close-on-exec mode.
15265
15266 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15267
15268         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15269         the very first instruction.
15270
15271         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15272         the CFI state in the end.
15273         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15274         inclusion of dl-trampoline.h.
15275         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15276
15277 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15278
15279         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15280         expectations for long double.
15281
15282         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15283         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15284
15285 2011-08-14  David S. Miller  <davem@davemloft.net>
15286
15287         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15288         artificual limit depends upon the system page size.
15289
15290 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15291
15292         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15293         * resolv/Makefile: Define CFLAGS-libresolv.
15294
15295 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15296
15297         * nss/makedb.c (compute_tables): Make variables used in nested
15298         function static.
15299
15300 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15301
15302         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15303         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15304         if buffer was too small.
15305
15306         * elf/pldd.c (main): Attach to all threads in the process.
15307         Rewrite /proc handling to use *at functions.
15308
15309 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15310
15311         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15312         specifies first scope to show.
15313         (dl_open_worker): Update callers.  Move printing scope of new
15314         object to before the relocation.
15315         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15316         * sysdeps/generic/ldsodefs.h: Update declaration.
15317
15318         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15319         string for the scope number.
15320
15321 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15322
15323         * nscd/servicescache.c (cache_addserv): Make sure written is always
15324         initialized.
15325
15326 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15327
15328         * sysdeps/i386/i486/bits/atomic.h
15329         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15330         statement expression, so as to suppress "set but not used" warning.
15331         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15332
15333         * string/strncat.c (STRNCAT): Use prototype definition.
15334
15335         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15336         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15337         -Iprograms here.
15338         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15339         (localedef-modules): Add localedef.
15340         (locale-modules): Add locale.
15341
15342         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15343         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15344         to avoid a warning.
15345
15346 2011-08-14  David S. Miller  <davem@davemloft.net>
15347
15348         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15349         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15350
15351 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15352
15353         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15354         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15355         * elf/rtld.c (dl_main): Set l_name of vDSO.
15356         Call _dl_show_scope when DL_DEBUG_SCOPES.
15357         (process_dl_debug): Recognize scopes flag and also set it for all.
15358         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15359         Declare _dl_show_scope.
15360
15361         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15362         (do_dlopen): Pass caller_dlopen to dl_open.
15363         (__libc_dlopen_mode): Initialize caller_dlopen.
15364
15365         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15366         of libc.  Make tolower call locale-independent.  Optimize a bit by
15367         using isdigit instead of isalnum.
15368         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15369
15370 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15371
15372         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15373         was a dependency or dynamically loaded.
15374
15375 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15376
15377         * intl/l10nflist.c: Allow architecture-specific pop function.
15378         * sysdeps/x86_64/l10nflist.c: New file.
15379
15380         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15381         classification.
15382
15383 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15384
15385         * include/dirent.h: Add libc_hidden_proto for scandirat and
15386         scandirat64.  Don't declare __scandirat64.
15387         * dirent/scandirat.c: Add libc_hidden_def.
15388         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15389         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15390
15391 2011-08-10  David S. Miller  <davem@davemloft.net>
15392
15393         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15394         enum.
15395         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15396         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15397         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15398
15399 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15400
15401         * Versions.def [libc]: Add GLIBC_2.15.
15402         * dirent/Makefile (routines): Add scandirat and scandirat64.
15403         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15404         GLIBC_2.15.
15405         * dirent/dirent.h: Declare scandirat and scandirat64.
15406         * dirent/scandirat.c: New file.
15407         * dirent/scandirat64.c: New file.
15408         * sysdeps/wordsize-64/scandirat.c: New file.
15409         * sysdeps/wordsize-64/scandirat64.c: New file.
15410         * dirent/opendir.c: Define opendirat.
15411         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15412         using scandirat.
15413         * dirent/scandir64.c: Adjust for scandir.c change.
15414         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15415         __scandirat64, and __scandir_cancel_handler.
15416         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15417         additional parameter and use openat instead of open (outside of ld.so).
15418         Add new __opendir as wrapper around __opendirat.
15419         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15420         here without requiring old scandirat implementation.
15421
15422 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15423
15424         * dirent/scandir.c (cancel_handler): Renamed to
15425         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15426         defined.  Adjust users.
15427         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15428         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15429
15430 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15431
15432         * string/test-string.h (IMPL): Use __STRING to expand name and then
15433         stringify it.
15434
15435         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15436         of cleanups.
15437
15438 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15439
15440         * string/Makefile: Update.
15441         (strop-tests): Append strncat.
15442         * string/test-wcscmp.c: New file.
15443         New comprehensive test for wcscmp.
15444         * string/test-strcmp.c: Update.
15445         (WIDE): New define.
15446
15447 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15448
15449         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15450         line.
15451
15452 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15453
15454         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15455         encoding to ACE if AI_IDN.
15456
15457 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15458
15459         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15460         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15461
15462 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15463
15464         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15465         Fix overflow bug in strncat.
15466         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15467
15468         * string/test-strncat.c: Update.
15469         Add new tests for checking overflow bugs.
15470
15471 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15472
15473         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15474         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15475         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15476         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15477         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15478         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15479         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15480         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15481         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15482
15483         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15484         (USE_AS_STRCAT): Define.
15485         Add strcat and strncat support.
15486         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15487
15488 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15489
15490         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15491         __n bigger than INT_MAX+1.
15492         (__strncmp_g): Likewise.
15493
15494 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15495
15496         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15497         * libio/stido.h: Likewise.
15498
15499         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15500         (AF_NFC): Define.
15501         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15502         (AF_NFC): Define.
15503
15504         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15505         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15506         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15507         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15508         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15509
15510         [BZ #13021]
15511         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15512         installed.
15513
15514         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15515         typo.
15516         (_dl_x86_64_save_sse): Likewise.
15517
15518 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15519
15520         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15521         OSXSAVE.
15522         (_dl_x86_64_save_sse): Likewise.
15523
15524         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15525
15526         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15527
15528 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15529
15530         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15531         change.
15532         (_dl_x86_64_save_sse): Use correct AVX check.
15533
15534 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15535
15536         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15537         bug in strncpy/strncat.
15538         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15539
15540 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15541
15542         * string/tester.c (test_strcat): Add tests for different alignments
15543         of source and destination.
15544         (test_strncat): Likewise.
15545
15546 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15547
15548         [BZ #12852]
15549         * posix/glob.c (glob): Check passed in values before using them in
15550         expressions to avoid some overflows.
15551         (glob_in_dir): Likewise.
15552
15553         [BZ #13007]
15554         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15555         check for AVX enablement so that we don't crash with old kernels and
15556         new hardware.
15557         * elf/tst-audit4.c: Add same checks here.
15558         * elf/tst-audit6.c: Likewise.
15559
15560         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15561
15562 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15563
15564         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15565
15566 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15567
15568         * po/cs.po: Update from translation team.
15569         * po/bg.po: Likewise.
15570
15571 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15572
15573         * misc/sys/cdefs.h: Add support for const attribute.
15574         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15575         to gnu_dev_{major,minor,makedev} functions.
15576
15577 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15578
15579         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15580
15581 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15582
15583         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15584         strlen results.
15585
15586 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15587
15588         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15589         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15590         register in order to avoid conflicts with the soft frame pointer
15591         being held in r11 when necessary.
15592         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15593         (INTERNAL_VSYSCALL_NCS): Likewise.
15594
15595 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15596
15597         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15598         * elf/dl-fini.c (_dl_fini): Adjust caller.
15599         * elf/dl-close.c (_dl_close_worker): Likewise.
15600         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15601
15602 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15603
15604         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15605         "aux_cache->nlibs < 0".
15606
15607         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15608         in the reload-count case.
15609
15610 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15611
15612         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15613         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15614         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15615         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15616         * sysdeps/x86_64/multiarch/strcat.S: New file.
15617         * sysdeps/x86_64/multiarch/strncat.S: New file.
15618         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15619         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15620         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15621         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15622         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15623         (USE_AS_STRCAT): Define.
15624         Add strcat and strncat support.
15625         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15626         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15627         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15628         * string/strncat.c: Update.
15629         (USE_AS_STRNCAT): Define.
15630         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15631         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15632         and i7.
15633         * sysdeps/x86_64/multiarch/init-arch.h
15634         (bit_Prefer_PMINUB_for_stringop): New.
15635         (index_Prefer_PMINUB_for_stringop): Likewise.
15636         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15637         bit_Prefer_PMINUB_for_stringop.
15638
15639 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15640
15641         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15642         buffer64.
15643         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15644         of casting of buffer.
15645         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15646         buffer32 and buffer64.
15647         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15648         writes instead of casting of buffer.
15649         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15650         buffer32.
15651         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15652         casting of buffer.
15653
15654 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15655
15656         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15657
15658 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15659
15660         * nscd/nscd.c (termination_handler): Don't do anything for a database
15661         if it has not yet been initialized.
15662
15663 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15664
15665         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15666
15667 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15668
15669         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15670
15671 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15672
15673         * po/nl.po: Update from translation team.
15674         * po/sv.po: Likewise.
15675
15676 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15677
15678         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15679         now disallowed by GCC.
15680
15681         * configure.in (use-default-link): Default to yes if a test -shared
15682         link meets our qualifications.
15683         * configure: Regenerated.
15684
15685         * config.make.in (output-format): New variable.
15686         * configure.in: Check for ld --print-output-format support.
15687         * configure: Regenerated.
15688         * Makerules ($(common-objpfx)format.lds)
15689         [$(output-format) != unknown]: Just use $(output-format),
15690         instead of the linker-script munging.
15691
15692 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15693
15694         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15695         of $(common-objpfx)shlib.lds.
15696         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15697
15698         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15699         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15700
15701         * configure.in (-z relro check): Adjust test code to add a large
15702         writable data section after it.
15703         * configure: Regenerated.
15704
15705 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15706
15707         * configure.in (-z relro check): Fix test code to make the variable
15708         truly const.
15709         * configure: Regenerated.
15710
15711 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15712
15713         * nscd/nscd.h (struct traced_file): Define.
15714         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15715         elements.  Add traced_files.
15716         (inotify_fd): Declare.
15717         (register_traced_file): Declare.
15718         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15719         (inotify_fd): Export.
15720         (resolv_conf_descr): Remove.
15721         (nscd_init): Move inotify descriptor creation to main.
15722         Don't register files for notification here.
15723         (register_traced_file): New function.
15724         (invalidate_cache): Don't use reset_res to determine whether to call
15725         res_init, go through the list of registered files.
15726         (main_loop_poll): The inotify descriptors are now stored in the
15727         structures for the traced files.
15728         (main_loop_epoll): Likewise
15729         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15730         to __nss_disable_nscd.
15731         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15732         for a database anymore.  Check the records for all the registered
15733         files instead.
15734         * nss/Makefile (libnss_files-routines): Add files-init.
15735         (libnss_db-routines): Add db-init.
15736         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15737         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15738         * nss/nss_db/db-init.c: New file.
15739         * nss/nss_files/files-init.c: New file.
15740         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15741         __nss_lookup_function.
15742         (__nss_lookup_function): Call nss_load_library.
15743         (nss_load_all_libraries): New function.
15744         (__nss_disable_nscd): Take parameter with callback function for files
15745         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15746         used for the cached services.
15747         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15748         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15749         options for features to all the files in nscd.
15750
15751         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15752
15753 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15754
15755         * csu/elf-init.c (__libc_csu_init): Comment typo.
15756
15757 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15758
15759         * po/pl.po: Update from translation team.
15760         * po/ja.po: Likewise.
15761         * po/ru.po: Likewise.
15762         * po/ko.po: Likewise.
15763         * po/fr.po: Likewise.
15764
15765 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15766
15767         * configure.in (.ctors/.dtors header and trailer check):
15768         Use an empirical test on a built program.
15769         * configure: Regenerated.
15770
15771         * configure.in (-z relro check): Use an empirical test on a built DSO.
15772         Detect, but do not require, on ia64.
15773         * configure: Regenerated.
15774
15775         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15776         Update tests that use readelf to use $READELF instead.
15777         * configure: Regenerated.
15778
15779 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15780
15781         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15782         if the result is not used.
15783
15784 2011-07-05  Andreas Jaeger  <aj@suse.de>
15785
15786         [BZ#9696]
15787         * stdlib/tst-strtod.c: Add testcase.
15788
15789 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15790
15791         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15792         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15793         The latter has a higher limit.  Take additional parameter to pass to
15794         the new function.
15795         (__pathconf): Pass file to __statfs_link_max.
15796         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15797         __statfs_link_max.
15798         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15799         __statfs_link_max.
15800
15801         [BZ #12868]
15802         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15803         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15804         Handle Lustre.
15805         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15806         (__statfs_filesize_max): Likewise.
15807         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15808
15809 2011-07-05  Andreas Jaeger  <aj@suse.de>
15810
15811         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15812
15813 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15814
15815         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15816         `status' variable.
15817         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15818         Likewise.
15819
15820 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15821
15822         * Makefile (strop-tests): Add strncat.
15823         * string/test-strncat.c: New file.
15824
15825 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15826
15827         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15828
15829 2011-06-21  Andreas Jaeger  <aj@suse.de>
15830
15831         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15832         Copy rule from iconvdata/Makefile.
15833
15834 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15835
15836         [BZ #12922]
15837         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15838         but no long options are defined, just return 'W'.
15839
15840 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15841
15842         [BZ #9696]
15843         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15844
15845 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15846
15847         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15848         netgroups to read.
15849         (innetgr): Likewise.
15850
15851 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15852
15853         * config.make.in (install_root): Default to $(DESTDIR).
15854
15855 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15856
15857         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15858
15859 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15860
15861         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15862
15863         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15864         containing directory rather than embedding absolute directory names.
15865
15866         * scripts/check-local-headers.sh: Rewritten using awk.
15867         Match by word, not by line.  Print error messages for matches.
15868         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15869
15870         * Makerules [shlib-lds-flags empty]:
15871         ($(common-objpfx)libc_pic.opts): New target.
15872         ($(common-objpfx)libc_pic.os.clean): New target.
15873         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15874
15875         * config.make.in (OBJCOPY): New variable.
15876         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15877         * configure: Regenerated.
15878
15879         * config.make.in (use-default-link): New variable.
15880         * configure.in (use_default_link): Grok --with-default-link to set it.
15881         * configure: Regenerated.
15882         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15883         (shlib-lds, shlib-lds-flags): Define to empty.
15884
15885         * Makerules (shlib-lds): New variable.
15886         (shlib-lds-flags): New variable.
15887         (build-shlib, build-moduile, build-module-asneeded): Use it.
15888         ($(common-objpfx)libc.so): Use $(shlib-lds).
15889         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
15890         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
15891
15892         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
15893         DT_FLAGS/DT_FLAGS_1 with zero flags.
15894
15895         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
15896         linker script munging.
15897
15898 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
15899
15900         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
15901         as 128-bit value.
15902         * crypt/sha512.c (sha512_process_block): Perform total addition using
15903         128-bit if possible.
15904         (__sha512_finish_ctx): Likewise.
15905         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
15906         as 64-bit value.
15907         * crypt/sha256.c (SWAP64): Define.
15908         (sha256_process_block): Perform total addition using 64-bit if
15909         possible.
15910         (__sha256_finish_ctx): Likewise.
15911
15912 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
15913
15914         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
15915         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15916         * nscd/hstcache.c (cache_addhst): Likewise.
15917         * nscd/grpcache.c (cache_addgr): Likewise.
15918         * nscd/aicache.c (addhstaiX): Likewise
15919         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
15920
15921 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
15922
15923         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
15924         * nscd/initgrcache.c (addinitgroupsX): Likewise.
15925         * nscd/hstcache.c (cache_addhst): Likewise.
15926         * nscd/grpcache.c (cache_addgr): Likewise.
15927         * nscd/aicache.c (addhstaiX): Likewise
15928
15929 2011-07-01  Andreas Schwab  <schwab@redhat.com>
15930
15931         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
15932         domain only when needed.
15933
15934 2011-06-30  Andreas Schwab  <schwab@redhat.com>
15935
15936         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
15937         is always restored.
15938
15939 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
15940
15941         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
15942         are re-adding the entry.
15943         * nscd/servicescache.c (cache_addserv): Likewise.
15944
15945 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
15946
15947         * sysdeps/generic/dl-irel.h: fix protection against multiple
15948         inclusions.
15949         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
15950
15951 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
15952
15953         [BZ #12935]
15954         * malloc/memusage.sh: Fix quoting in message.
15955         * debug/xtrace.sh: Likewise.
15956
15957         * configure.in: Remove support for --experimental-malloc option, make
15958         it the default.
15959         * config.make.in: Likewise.
15960         * malloc/Makefile: Likewise.
15961
15962 2011-06-27  Andreas Schwab  <schwab@redhat.com>
15963
15964         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
15965         two-byte characters.
15966
15967 2011-06-27  Roland McGrath  <roland@hack.frob.com>
15968
15969         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
15970         AC_CACHE_CHECK invocation.
15971         * configure: Regenerated.
15972
15973         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
15974
15975 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
15976
15977         [BZ #12350]
15978         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
15979         bit from old_res_options.
15980
15981         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
15982
15983         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
15984         value type for setfct.
15985
15986 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
15987
15988         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
15989         __gettimeofday instead of gettimeofday.
15990
15991 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
15992
15993         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
15994
15995 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
15996
15997         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
15998
15999         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16000         info.
16001
16002 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16003
16004         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16005         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16006         strcpy-sse2-unaligned strncpy-sse2-unaligned
16007         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16008         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16009         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16010         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16011         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16012         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16013         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16014         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16015         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16016         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16017         (STRCPY): Support SSE2 and SSSE3 versions.
16018
16019 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16020
16021         [BZ #12874]
16022         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16023         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16024         kernels which artificially limit size of requests.
16025
16026 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16027
16028         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16029         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16030         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16031         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16032         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16033         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16034         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16035         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16036         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16037         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16038         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16039         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16040         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16041         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16042         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16043         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16044         Enable unaligned load optimization for Intel Core i3, i5 and i7
16045         processors.
16046         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16047         Define.
16048         (index_Fast_Unaligned_Load): Define.
16049         (HAS_FAST_UNALIGNED_LOAD): Define.
16050
16051 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16052
16053         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16054
16055 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16056
16057         [BZ #12907]
16058         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16059         until it is clear that the information is realy needed.
16060         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16061
16062 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16063
16064         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16065
16066 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16067
16068         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16069         /sys/devices/system/cpu/online if it is usable.
16070
16071         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16072         reading the information from the /proc filesystem to once a second.
16073
16074 2011-06-21  Andreas Jaeger  <aj@suse.de>
16075
16076         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16077         NULL after inclusion of kernel headers.
16078
16079 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16080
16081         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16082         calls to internal_setent.
16083
16084         [BZ #12885]
16085         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16086         addresses using gethostbyname4_r ignore IPv4 addresses.
16087
16088         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16089         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16090
16091         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16092
16093 2011-06-20  David S. Miller  <davem@davemloft.net>
16094
16095         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16096         inclusions.
16097         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16098
16099         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16100         (elf_irel): Use it.
16101         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16102         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16103         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16104         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16105         * sysdeps/x86_64/dl-irel.h: Likewise.
16106
16107         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16108         * elf/dl-sym.c: Likewise.
16109
16110 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16111
16112         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16113         need to dereference resplen2.
16114
16115 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16116
16117         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16118
16119 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16120
16121         * Makeconfig: Define vardbdir and inst_vardbdir.
16122         * nss/Makefile: Add rules to install db-Makefile.
16123
16124         * nss/nss_db/db-XXX.c: Cleanup.
16125
16126         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16127         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16128         GLIBC_PRIVATE.
16129         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16130         * nss/makedb.c: Implement -g option to specify that value strings
16131         are generated and should not be added to table iterated over for
16132         get*ent calls.
16133         * nss/nss_db/db-initgroups.c: New file.
16134
16135         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16136         interface.
16137
16138         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16139         (internal_getgrouplist): Adjust to name change.
16140         Update use_initgroups_entry if this is not the first call.
16141         * nss/databases.def: Add initgroups entry.
16142
16143         * nss/makedb.c (compute_tables): Check result of multiple hash table
16144         sizes to minimize maximum chain length.
16145
16146 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16147
16148         * Versions.def: Add entry for libnss_db.
16149         * shlib-versions: Likewise.
16150         * nss/Makefile: Add rules to build libnss_db.
16151         * nss/Versions: Add libnss_db information.  Organize libnss_files
16152         entries better.
16153         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16154         makedb progra.  Some minor improvements to generate smaller files.
16155         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16156         here from...
16157         * nss/makedb.c: ...here.
16158         Improve database format to be smaller and require less memory at
16159         runtime.
16160         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16161         db anymore.
16162         * nss/nss_db/db-netgrp.c: Likewise.
16163         * nss/nss_db/db-open.c: Likewise.
16164         * nss/nss_files/flies-XXX.x: Adjust comments.
16165         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16166         * nss/nss_files/files-grp.c: Likewise.
16167         * nss/nss_files/files-hosts.c: Likewise.
16168         * nss/nss_files/files-network.c: Likewise.
16169         * nss/nss_files/files-proto.c: Likewise.
16170         * nss/nss_files/files-pwd.c: Likewise.
16171         * nss/nss_files/files-rpc.c: Likewise.
16172         * nss/nss_files/files-service.c: Likewise.
16173         * nss/nss_files/files-sgrp.c: Likewise.
16174         * nss/nss_files/files-spwd.c: Likewise.
16175         * nss/nss_db/db-alias.c: Removed.
16176         * nss/nss_db/dummy-db.h: Removed.
16177
16178 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16179
16180         * nss/makedb.c: Rewritten to not use database library.
16181         * nss/Makefile: Update to build new makedb program.
16182
16183 2011-06-14  Andreas Jaeger  <aj@suse.de>
16184
16185         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16186         memset declaration.
16187
16188 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16189
16190         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16191         tmpbuf.
16192
16193 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16194
16195         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16196         * elf/Makefile ($(objpfx)ld.so): Likewise.
16197
16198         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16199         Don't list ld.so twice in dependencies.
16200
16201         * posix/bug-regex31.c: Include <stdlib.h>.
16202
16203         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16204
16205         * nis/nss_compat/compat-spwd.c
16206         (getspent_next_nss_netgr): Remove unused variable.
16207         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16208
16209         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16210         nonmembers" output to use the right array.
16211
16212         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16213
16214         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16215
16216         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16217         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16218         * catgets/gencat.c (read_input_file): Likewise.
16219         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16220
16221         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16222         variable definition inside #if's controlling its use.
16223
16224         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16225
16226         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16227
16228         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16229
16230         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16231         unreachable code.
16232
16233         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16234
16235         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16236         * configure: Regenerated.
16237
16238         * Makerules: Revert last change.
16239         * elf/Makefile: Likewise.
16240
16241 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16242
16243         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16244         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16245         (reloc-link): Likewise.
16246
16247 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16248
16249         * elf/Makefile: Add rules to build pldd.
16250         * elf/pldd.c: New file.
16251         * elf/pldd-xx.c: New file.
16252
16253 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16254
16255         * version.h: Update for 2.15 development version.
16256
16257 2011-06-07  David S. Miller  <davem@davemloft.net>
16258
16259         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16260         ifuncs.
16261         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16262         elf_machine_lazy_rel): Likewise.
16263         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16264         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16265         elf_machine_lazy_rel): Likewise.
16266         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16267         dl_hwcap via passed in argument.
16268         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16269         Likewise.
16270
16271 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16272
16273         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16274
16275 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16276
16277         [BZ #12849]
16278         * manual/fdl-1.1.texi: New file, verbatim from:
16279         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16280         * manual/lgpl-2.1.texi: New file, verbatim from:
16281         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16282         * manual/Makefile (licenses): New variable, list those new file names.
16283         (texis): Use it.
16284         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16285
16286         * manual/fdl.texi: File removed.
16287         * manual/lesser.texi: File removed.
16288         * manual/libc.texinfo (Copying, Documentation License):
16289         Use new @include file names, put @appendix directive before @include.
16290
16291 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16292
16293         [BZ #12841]
16294         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16295         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16296         (mq_open): Add __NTH.
16297
16298 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16299
16300         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16301         Assume Intel Core i3/i5/i7 processor if AVX is available.
16302
16303 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16304
16305         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16306         typo.
16307
16308 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16309
16310         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16311         memory.  Use alloca_account.  Fix memory leak when retrying.
16312
16313 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16314
16315         * version.h (RELEASE): Bump for 2.14 release.
16316         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16317
16318         * config.make.in (RANLIB): Remove entry.
16319
16320 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16321
16322         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16323         (libc.pot): Work around missing support for .ksh extension in xgettext.
16324
16325         [BZ #12684]
16326         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16327         if both request failed.
16328         (send_dg): In case of server errors clear resplen or *resplen2.
16329
16330         [BZ #12454]
16331         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16332         when there are multiple maps.
16333         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16334         (_dl_fini): Remove test here.
16335
16336         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16337
16338 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16339
16340         [BZ #12350]
16341         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16342         bit from old_res_options.
16343         (gaih_inet): Likewise.
16344
16345         [BZ #11099]
16346         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16347         as signed.
16348
16349         * resolv/res_init.c (res_setoptions): Make the code more compact.
16350
16351         [BZ #11558]
16352         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16353         set RES_USEVC.
16354
16355         [BZ #11634]
16356         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16357
16358         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16359
16360         [BZ #11781]
16361         * malloc/malloc.h: Declare malloc hook variables as volatile.
16362
16363         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16364         in last patch.
16365
16366         [BZ #11799]
16367         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16368         raise in the comment.
16369         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16370         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16371         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16372
16373 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16374
16375         [BZ #12811]
16376         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16377         grow the buffers more if it already has to be sufficient.
16378         (build_wcs_upper_buffer): Likewise.
16379         * posix/regexec.c (check_matching): Likewise.
16380         (clean_state_log_if_needed): Likewise.
16381         (extend_buffers): Don't enlarge buffers beyond size of the input
16382         buffer.
16383         Patches mostly by Emil Wojak <emil@wojak.eu>.
16384         * posix/bug-regex32.c: New file.
16385         * posix/Makefile (tests): Add bug-regex32.
16386
16387         * locale/findlocale.c (_nl_find_locale): Return right away if
16388         _nl_explode_name failed.
16389         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16390
16391         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16392
16393         * debug/xtrace.sh: Unify messages.
16394         * malloc/memusage.sh: Likewise.
16395
16396         [BZ #12813]
16397         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16398         time symbol from vDSO.  Substitute with vsyscall if not available.
16399         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16400         __vdso_time.
16401
16402         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16403         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16404         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16405         Add sendmmsg and internal_sendmmsg.
16406         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16407         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16408         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16409
16410         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16411         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16412         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16413
16414 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16415
16416         [BZ #12813]
16417         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16418         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16419         available.
16420         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16421         __vdso_getcpu.
16422
16423         [BZ #12814]
16424         * iconvdata/Makefile (tests): Add bug-iconv9.
16425         * iconvdata/bug-iconv9.c: New file.
16426
16427 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16428
16429         [BZ #12814]
16430         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16431
16432 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16433
16434         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16435         (struct user_regs_struct): Change intcs field back to cs.
16436
16437 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16438
16439         * po/ja.po: Update from translation team.
16440
16441 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16442
16443         [BZ #12795]
16444         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16445         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16446
16447 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16448
16449         * stdlib/longlong.h: Update from GCC.
16450
16451 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16452
16453         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16454         parameter name.
16455         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16456         Add parameter name.
16457         (__sysconf): Pass it down.
16458
16459 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16460
16461         [BZ #12671]
16462         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16463         some situations.
16464         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16465         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16466         add in in __libc_use_alloca calls.  Adjust callers.
16467         (glob): Use malloc in some situations.
16468
16469         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16470         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16471         pltexit.
16472
16473 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16474
16475         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16476         and CLOCK_BOOTTIME_ALARM.
16477
16478         [BZ #12782]
16479         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16480         is returned.
16481
16482         * string/_strerror.c (__strerror_r): Print negative errors as signed
16483         numbers.
16484
16485         [BZ #12777]
16486         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16487         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16488         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16489
16490         * configure.in: Fix typo in redirection and correct removal of test
16491         files in two cases.
16492
16493         [BZ #12788]
16494         * locale/setlocale.c (new_composite_name): Fix test to check for
16495         identical name of all categories.
16496
16497         [BZ #12792]
16498         * libio/filedoalloc.c (local_isatty): New function.
16499         (_IO_file_doallocate): Use local_isatty.
16500         * stdio-common/perror.c (perror): In case a new stream is used
16501         forward the stream error.
16502         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16503         error flag.
16504
16505 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16506
16507         [BZ #11869]
16508         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16509         alloca.
16510         * include/alloca.h (extend_alloca_account): Define.
16511
16512         [BZ #11857]
16513         * posix/regex.h: Fix comments with documentation of user-accessible
16514         fields after compilation and describe correct free'ing of pattern
16515         after re_compile_pattern.
16516         Patch by Reuben Thomas <rrt@sc3d.org>.
16517
16518 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16519
16520         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16521         and -mno-altivec to prevent the compiler from using Altivec and/or
16522         VSX instructions when the corresponding registers are not available.
16523
16524 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16525
16526         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16527
16528 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16529
16530         * libio/freopen.c (freopen): Use __dup2, not dup2.
16531         * libio/freopen64.c (freopen64): Likewise.
16532
16533 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16534
16535         [BZ #12775]
16536         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16537         * math/Makefile (tests): Add test-powl.
16538         (CFLAGS-test-powl.c): Define.
16539         * math/test-powl.c: New file.
16540
16541 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16542
16543         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16544
16545 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16546
16547         [BZ #11837]
16548         * iconvdata/gb18030.c: Update to GB18020-2005.
16549
16550 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16551
16552         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16553         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16554         Patch by Aharon Robbins <arnold@skeeve.com>.
16555
16556         [BZ #11892]
16557         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16558         on the stack.
16559
16560         [BZ #11895]
16561         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16562         through underflows.
16563
16564         [BZ #12766]
16565         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16566         point to strings before performing equality test for error_one_per_line
16567         mode.
16568
16569         [BZ #11697]
16570         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16571
16572         [BZ #11820]
16573         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16574         (struct user_fpregs_struct): Avoid __uint*_t types.
16575
16576         [BZ #6420]
16577         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16578         symbol info.  Use it instead of calling _dl_addr locally.
16579         (lock_and_info): New function.
16580         (tr_freehook): Call lock_and_info and pass symbol info as additional
16581         parameter to tr_where.
16582         (tr_mallochook): Likewise.
16583         (tr_reallochook): Likewise.
16584         (tr_memalignhook): Likewise.
16585
16586         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16587         used and couldn't be at all thread-safe.
16588
16589 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16590
16591         * libio/freopen.c (freopen): Don't close old file descriptor
16592         before the new one is opened.  Instead dup the new file descriptor
16593         to the old one after the new stream is created.
16594         * libio/freopen64.c (freopen64): Likewise.
16595         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16596         * libio/fileops.c (_IO_new_file_close_it): Handle new
16597         _IO_FLAGS2_NOCLOSE flag.
16598         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16599         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16600         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16601         _IO_FLAGS2_NOCLOSE flag.
16602         * include/unistd.h: Add hidden_proto for dup3.
16603         Define __have_dup3.
16604         * io/dup3.c: Define hidden symbol.
16605         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16606
16607         [BZ #7101]
16608         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16609         when an incomplete long option is used.
16610         * posix/tst-getopt_long1.c: New file.
16611         * posix/Makefile (tests): Add tst-getopt_long1.
16612
16613         [BZ #10138]
16614         * scripts/config.guess: Update from autoconf-2.68.
16615         * scripts/config.sub: Likewise.
16616
16617         [BZ #10157]
16618         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16619         tests into ...
16620         (has_cpuclock): ...this.  New function.
16621         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16622         macro here based on has_cpuclock code.
16623
16624         [BZ #10149]
16625         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16626         First byte (not low byte) is now always NUL.
16627         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16628
16629         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16630         Use non-cancelable interfaces.
16631
16632         [BZ #9809]
16633         * locale/iso-639.def: Add entry for Sorani.
16634
16635         [BZ #11901]
16636         * include/stdlib.h: Move include protection to the right place.
16637         Define abort_msg_s.  Declare __abort_msg with it.
16638         * stdlib/abort.c (__abort_msg): Adjust type.
16639         * assert/assert.c (__assert_fail_base): New function.  Majority
16640         of code from __assert_fail.  Allocate memory for __abort_msg with
16641         mmap.
16642         (__assert_fail): Now call __assert_fail_base.
16643         * assert/assert-perr.c: Remove bulk of implementation.  Use
16644         __assert_fail_base.
16645         * include/assert.hL Declare __assert_fail_base.
16646         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16647         mmap.
16648         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16649
16650 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16651
16652         [BZ #11952]
16653         [BZ #12453]
16654         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16655         until all modules are registered in the DTV.
16656         * elf/Makefile: Add rules to build and run tst-tls19.
16657         * elf/tst-tls19.c: New file.
16658         * elf/tst-tls19mod1.c: New file.
16659         * elf/tst-tls19mod2.c: New file.
16660         * elf/tst-tls19mod3.c: New file.
16661         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16662
16663         [BZ #12083]
16664         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16665         correctly.
16666
16667         [BZ #12601]
16668         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16669         two-byte sequence errors.
16670         * iconvdata/Makefile (tests): Add bug-iconv8.
16671         * iconvdata/bug-iconv8.c: New file.
16672
16673         [BZ #12626]
16674         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16675         buf2 definition.
16676
16677         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16678
16679         [BZ #12432]
16680         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16681         (dummy_getcfa): New function.
16682         (init): Get _Unwind_GetCFA address, use dummy if not found.
16683         (backtrace_helper): In recursion check, also check whether CFA changes.
16684         (__backtrace): Completely initialize arg.
16685
16686         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16687         storing incomplete byte sequence in state object.  Avoid testing for
16688         guaranteed too small input if we know there is enough data available.
16689
16690 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16691
16692         * Makeconfig (+link-pie): Indent.
16693         * Rules (binaries-pie): Define if $(have-fpie) and
16694         $(build-shared).
16695         (binaries-shared): Also filter out $(binaries-pie).
16696         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16697         * nscd/Makefile (others-pie): Add nscd.
16698         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16699         ($(objpfx)nscd): Remove command override.
16700         * login/Makefile (others-pie): Add pt_chown.
16701         ($(objpfx)pt_chown): Remove command override.
16702         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16703         remove command overrides.
16704
16705 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16706
16707         * libio/tst_putwc.c: Fix error messages.
16708
16709         [BZ #12724]
16710         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16711         currently writing and seek to current position when not.
16712         * libio/Makefile (tests): Add bug-fclose1.
16713         * libio/bug-fclose1.c: New file.
16714
16715 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16716
16717         [BZ #12511]
16718         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16719         don't set DF_1_NODELETE here.
16720         (do_lookup_x): When entering new entry test for copy relocation
16721         and if necessary set DF_1_NODELETE flag.
16722         * elf/tst-unique4.cc: New file.
16723         * elf/tst-unique4.h: New file.
16724         * elf/tst-unique4lib.cc: New file.
16725         * elf/Makefile: Add rules to build and run tst-unique4.
16726         Patch by Piotr Bury <pbury@goahead.com>.
16727
16728 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16729
16730         [BZ #12052]
16731         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16732
16733         [BZ #12625]
16734         * misc/mntent_r.c (addmntent): Flush the stream after the output
16735
16736         [BZ #12393]
16737         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16738         (is_trusted_path_normalize): Skip initial colon.  Append slash
16739         to empty buffer.  Duplicate is_trusted_path code but allow
16740         constructed patch to be prefix.
16741         (is_dst): Allow $ORIGIN followed by /.
16742         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16743         Correct testing of result of is_trusted_path_normalize
16744         (decompose_rpath): Fix warning.
16745
16746 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16747
16748         [BZ #11257]
16749         * grp/initgroups.c (internal_getgrouplist): When we found the service
16750         list through the initgroups entry in nsswitch.conf do not always
16751         continue on a successful lookup.  Don't always use the
16752         __nss_group_database value if it is set.
16753         * nss/nsswitch.conf (initgroups): Change action for successful db
16754         lookup to continue for compatibility.
16755
16756 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16757
16758         [BZ #11532]
16759         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16760         and CP774 modules.
16761         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16762         and CP774 modules.
16763         * iconvdata/tst-tables.sh: Likewise.
16764         * iconvdata/cp770.c: New file.
16765         * iconvdata/cp771.c: New file.
16766         * iconvdata/cp772.c: New file.
16767         * iconvdata/cp773.c: New file.
16768         * iconvdata/cp774.c: New file.
16769         * iconvdata/testdata/CP770: New file.
16770         * iconvdata/testdata/CP770..UTF8: New file.
16771         * iconvdata/testdata/CP771: New file.
16772         * iconvdata/testdata/CP771..UTF8: New file.
16773         * iconvdata/testdata/CP772: New file.
16774         * iconvdata/testdata/CP772..UTF8: New file.
16775         * iconvdata/testdata/CP773: New file.
16776         * iconvdata/testdata/CP773..UTF8: New file.
16777         * iconvdata/testdata/CP774: New file.
16778         * iconvdata/testdata/CP774..UTF8: New file.
16779
16780         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16781         END CHARMAP line.
16782         * iconvdata/gen-8bit-gap.sh: Likewise.
16783         * iconvdata/gen-8bit.sh: Likewise.
16784
16785         * locale/iso-639.def: Add ary entry.
16786
16787         [BZ #11258]
16788         * locale/C-translit.h.in: Add U20A1 transliteration.
16789
16790         [BZ #12178]
16791         * locale/iso-639.def: Add wae entry.
16792         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16793
16794         [BZ #12545]
16795         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16796         for n.
16797
16798         [BZ #12711]
16799         * locale/C-translit.h.in: Add entry for U20B9.
16800         Patch by pravin.d.s@gmail.com.
16801
16802 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16803
16804         [BZ #12713]
16805         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16806         ENAMETOOLONG use generic getcwd.
16807         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16808         in rtld.  Use *stat64.
16809         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16810         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16811         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16812         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16813         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16814         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16815         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16816         __fstatat64 macros.
16817         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16818         * dirent/rewinddir.c: Add libc_hidden_def.
16819         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16820         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16821
16822         * include/dirent.h (__alloc_dir): Add flags parameter.
16823         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16824         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16825         __alloc_dir.
16826         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16827         from fdopendir if O_CLOEXEC is already set.
16828
16829 2011-03-15  Alan Modra  <amodra@gmail.com>
16830
16831         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16832         l_tls_firstbyte_offset non-zero.  Save padding offset in
16833         l_tls_firstbyte_offset for later use.
16834         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16835         freeing static tls block.
16836
16837 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16838
16839         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16840         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16841         being defined by the kernel headers.
16842
16843 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16844
16845         [BZ #12734]
16846         * resolv/resolv.h: Define RES_NOTLDQUERY.
16847         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16848         no-tld-query and set RES_NOTLDQUERY.
16849         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16850         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16851         modern BIND to search name as TLD unless forbidden.
16852
16853 2011-05-07  Petr Baudis  <pasky@suse.cz>
16854             Ulrich Drepper  <drepper@gmail.com>
16855
16856         [BZ #12393]
16857         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16858         (is_trusted_path): ...to here.
16859         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16860         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16861         using is_trusted_path_normalize() in setuid scripts.
16862
16863 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16864
16865         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16866         __BEGIN/__END_DECLS.
16867
16868 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16869
16870         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16871         NSS_STATUS_NOTFOUND if no record was found.
16872
16873 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16874
16875         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16876         (headers-not-in-tirpc): Remove rpc/netdb.h
16877         * resolv/netdb.h: Revert last change.
16878
16879 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16880
16881         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16882         circular dependency between libgcc.a and libc.a.
16883
16884 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16885
16886         * resolv/netdb.h: Don't include <rpc/netdb.h>.
16887         * nis/Makefile: Don't install rpcsvc/*.
16888         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
16889         instead of <rpc/types.h>.
16890         (MAXHOSTNAMELEN): Define.
16891
16892 2011-05-03  Andreas Schwab  <schwab@redhat.com>
16893
16894         * elf/ldconfig.c (add_dir): Don't crash on empty path.
16895
16896 2011-04-28  Maciej Babinski  <mbabinski@google.com>
16897
16898         [BZ #12714]
16899         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
16900         gethostbyname4_r when IPv6 results are possible.
16901
16902 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
16903
16904         [BZ #12723]
16905         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
16906         _PC_PIPE_BUF handling.
16907
16908 2011-04-30  Bruno Haible  <bruno@clisp.org>
16909
16910         [BZ #12717]
16911         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
16912         * resolv/netdb.h (getnameinfo): Change type of flags parameter
16913         to 'int'.
16914         * inet/getnameinfo.c (getnameinfo): Likewise.
16915
16916 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
16917
16918         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
16919         to groups setting in database lookup.
16920         * nss/nsswitch.conf: Add initgroups entry.
16921
16922 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
16923
16924         [BZ #12685]
16925         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
16926         mode string.
16927         Patch by Eric Blake <eblake@redhat.com>.
16928
16929 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
16930
16931         * sunrpc/Makefile (need-export-routines): Add svc_run.
16932         (routines): Remove svc_run.
16933         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
16934         * sunrpc/clnt_perr.c (clnt_perrno): Export.
16935         * sunrpc/svc_run.c (svc_run): Likewise.
16936         * sunrpc/svc_udp.c (svcudp_create): Likewise.
16937
16938 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
16939
16940         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
16941         problem in reallocation in last patch.
16942
16943 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
16944
16945         * sunrpc/Makefile: Move inclusion of Rules.
16946
16947 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16948
16949         * nss/nss_files/files-initgroups.c: New file.
16950         * nss/Makefile (libnss_files-routines): Add files-initgroups.
16951         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
16952         _nss_files_initgroups_dyn.
16953
16954 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
16955
16956         * elf/elf.h (R_ARM_IRELATIVE): Define.
16957
16958 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
16959
16960         * po/ru.po: Update from translation team.
16961
16962 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16963
16964         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
16965         dependencies.
16966
16967 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
16968
16969         [BZ #12653]
16970         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
16971         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
16972         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
16973         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
16974         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
16975
16976 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
16977
16978         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
16979         differing bytes.
16980         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
16981         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
16982         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
16983
16984 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
16985
16986         [BZ #12420]
16987         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
16988         storing it.
16989         * stdlib/bug-getcontext.c: New file.
16990         * stdlib/Makefile: Add rules to build and run bug-getcontext.
16991
16992 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16993
16994         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
16995         instructions into .machine "z9-109".
16996         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
16997         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
16998
16999 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17000
17001         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17002         between environment variables and auxiliary vector.
17003
17004 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17005
17006         * Makefile: Add rules to build linkobj/libc.so.
17007         * include/libc-symbols.h: Define libc_hidden_nolink.
17008         * include/rpc/auth.h: Mark functions which are to be hidden.
17009         * include/rpc/auth_des.h: Likewise.
17010         * include/rpc/auth_unix.h: Likewise.
17011         * include/rpc/clnt.h: Likewise.
17012         * include/rpc/des_crypt.h: Likewise.
17013         * include/rpc/key_prot.h: Likewise.
17014         * include/rpc/pmap_clnt.h: Likewise.
17015         * include/rpc/pmap_prot.h: Likewise.
17016         * include/rpc/pmap_rmt.h: Likewise.
17017         * include/rpc/rpc_msg.h: Likewise.
17018         * include/rpc/svc.h: Likewise.
17019         * include/rpc/svc_auth.h: Likewise.
17020         * include/rpc/xdr.h: Likewise.
17021         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17022         * nss/Makefile: Likewise.
17023         * sunrpc/Makefile: Don't install headers.  Build library with normal
17024         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17025         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17026         for the compat linking library.  Remove use of INTDEF/INTUSE.
17027         * sunrpc/auth_none.c: Likewise.
17028         * sunrpc/auth_unix.c: Likewise.
17029         * sunrpc/authdes_prot.c: Likewise.
17030         * sunrpc/authuxprot.c: Likewise.
17031         * sunrpc/clnt_gen.c: Likewise.
17032         * sunrpc/clnt_perr.c: Likewise.
17033         * sunrpc/clnt_raw.c: Likewise.
17034         * sunrpc/clnt_simp.c: Likewise.
17035         * sunrpc/clnt_tcp.c: Likewise.
17036         * sunrpc/clnt_udp.c: Likewise.
17037         * sunrpc/clnt_unix.c: Likewise.
17038         * sunrpc/des_crypt.c: Likewise.
17039         * sunrpc/des_soft.c: Likewise.
17040         * sunrpc/get_myaddr.c: Likewise.
17041         * sunrpc/key_call.c: Likewise.
17042         * sunrpc/key_prot.c: Likewise.
17043         * sunrpc/netname.c: Likewise.
17044         * sunrpc/pm_getmaps.c: Likewise.
17045         * sunrpc/pm_getport.c: Likewise.
17046         * sunrpc/pmap_clnt.c: Likewise.
17047         * sunrpc/pmap_prot.c: Likewise.
17048         * sunrpc/pmap_prot2.c: Likewise.
17049         * sunrpc/pmap_rmt.c: Likewise.
17050         * sunrpc/publickey.c: Likewise.
17051         * sunrpc/rpc_cmsg.c: Likewise.
17052         * sunrpc/rpc_common.c: Likewise.
17053         * sunrpc/rpc_dtable.c: Likewise.
17054         * sunrpc/rpc_prot.c: Likewise.
17055         * sunrpc/rpc_thread.c: Likewise.
17056         * sunrpc/rtime.c: Likewise.
17057         * sunrpc/svc.c: Likewise.
17058         * sunrpc/svc_auth.c: Likewise.
17059         * sunrpc/svc_authux.c: Likewise.
17060         * sunrpc/svc_raw.c: Likewise.
17061         * sunrpc/svc_run.c: Likewise.
17062         * sunrpc/svc_simple.c: Likewise.
17063         * sunrpc/svc_tcp.c: Likewise.
17064         * sunrpc/svc_udp.c: Likewise.
17065         * sunrpc/svc_unix.c: Likewise.
17066         * sunrpc/svcauth_des.c: Likewise.
17067         * sunrpc/xcrypt.c: Likewise.
17068         * sunrpc/xdr.c: Likewise.
17069         * sunrpc/xdr_array.c: Likewise.
17070         * sunrpc/xdr_float.c: Likewise.
17071         * sunrpc/xdr_intXX_t.c: Likewise.
17072         * sunrpc/xdr_mem.c: Likewise.
17073         * sunrpc/xdr_rec.c: Likewise.
17074         * sunrpc/xdr_ref.c: Likewise.
17075         * sunrpc/xdr_sizeof.c: Likewise.
17076         * sunrpc/xdr_stdio.c: Likewise.
17077
17078 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17079
17080         [BZ #12650]
17081         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17082         * sysdeps/ia64/dl-tls.h: Likewise.
17083         * sysdeps/powerpc/dl-tls.h: Likewise.
17084         * sysdeps/s390/dl-tls.h: Likewise.
17085         * sysdeps/sh/dl-tls.h: Likewise.
17086         * sysdeps/sparc/dl-tls.h: Likewise.
17087         * sysdeps/x86_64/dl-tls.h: Likewise.
17088         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17089
17090 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17091
17092         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17093         rpath element also skip the following colon.
17094         (expand_dynamic_string_token): Add is_path parameter and pass
17095         down to DL_DST_REQUIRED and _dl_dst_substitute.
17096         (decompose_rpath): Call expand_dynamic_string_token with
17097         non-zero is_path.  Ignore empty rpaths.
17098         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17099         with zero is_path.
17100
17101 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17102
17103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17104         Make cancelable.
17105
17106 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17107
17108         [BZ #12655]
17109         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17110         Patch by Filipe David Manana <fdmanana@apache.org>.
17111
17112 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17113
17114         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17115         Maintain aligned stack.
17116         (CHECK_RSP): Remove unused macro.
17117
17118 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17119
17120         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17121         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17122
17123 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17124
17125         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17126
17127         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17128
17129 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17130
17131         [BZ #12518]
17132         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17133         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17134         * sysdeps/x86_64/memmove.c: New file.
17135         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17136         (memcpy): Renamed to ...
17137         (__new_memcpy): This.
17138         (memcpy): Provide GLIBC_2_14 memcpy.
17139         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17140         (memcpy): Provide GLIBC_2_2_5 memcpy.
17141
17142 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17143
17144         [BZ #12631]
17145         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17146
17147 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17148
17149         * misc/syncfs.c: New file.
17150         * misc/Makefile (routines): Add syncfs.
17151         * posix/unistd.h: Declare syncfs.
17152         * sysdeps/unix/syscalls.list: Add syncfs.
17153
17154 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17155
17156         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17157         open_by_handle_at.
17158         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17159         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17160         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17161         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17162         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17163         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17164         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17165
17166 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17167
17168         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17169         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17170         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17171         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17172         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17173         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17174         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17175
17176         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17177         sync_file_range.c with -fexceptions.
17178         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17179         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17180         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17181         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17182         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17183         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17184         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17185         sync_file_range as cancellation point
17186         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17187         now a wrapper around __call_sync_file_range with cancellation handling.
17188         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17189         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17190         function name to __call_sync_file_range.
17191         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17192         Add call_sync_file_range.
17193
17194 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17195
17196         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17197         bits/timex.h.
17198
17199 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17200
17201         * iconv/iconv.h: Fix typo in comment.
17202         * io/fcntl.h: Likewise.
17203         * libio/stdio.h: Likewise.
17204         * posix/spawn.h: Likewise.
17205         * posix/unistd.h: Likewise.
17206         * stdlib/stdlib.h: Likewise.
17207         * time/time.h: Likewise.
17208         * wcsmbs/wchar.h: Likewise.
17209
17210         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17211         open_by_handle): Add.
17212         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17213         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17214         Augment a few comments.
17215         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17216         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17217         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17218         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17219         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17220         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17221         open_by_handle.
17222
17223         * io/fcntl.h (AT_EMPTY_PATH): Define.
17224
17225 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17226
17227         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17228         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17229         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17230         to...
17231         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17232         * Versions.def: Add GLIBC_2.14.
17233         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17234         Export.
17235
17236 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17237
17238         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17239         round counter.
17240         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17241
17242 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17243
17244         [BZ #12597]
17245         * string/test-strncmp.c (do_page_test): New function.
17246         (check2): Likewise.
17247         (test_main): Call check2.
17248         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17249
17250 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17251
17252         [BZ #12587]
17253         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17254         Handle cache information in CPU leaf 4.
17255         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17256
17257 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17258
17259         [BZ #12583]
17260         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17261         character representation.
17262         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17263
17264 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17265
17266         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17267         END(__isnan) to END(__isnanf) to match function entry point/label
17268         EALIGN(__isnanf,...).
17269
17270 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17271
17272         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17273
17274 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17275
17276         [BZ #12510]
17277         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17278         copy from the symbol referenced in the relocation to initialize the
17279         used variable.
17280         Patch by Piotr Bury <pbury@goahead.com>.
17281         * elf/Makefile: Add rules to build and tst-unique3.
17282         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17283         * elf/tst-unique3.cc: New file.
17284         * elf/tst-unique3.h: New file.
17285         * elf/tst-unique3lib.cc: New file.
17286         * elf/tst-unique3lib2.cc: New file.
17287
17288         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17289
17290 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17291
17292         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17293         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17294         to _start.
17295
17296 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17297
17298         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17299         to-be-loaded object along a path to loader is ld.so.
17300
17301 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17302             Ulrich Drepper  <drepper@gmail.com>
17303
17304         * sysdeps/x86_64/memset.S: After aligning destination, code
17305         branches to different locations depending on the value of
17306         misalignment, when multiarch is enabled. Fix this.
17307
17308 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17309
17310         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17311         Set _x86_64_preferred_memory_instruction for AMD processsors.
17312         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17313         Set bit_Prefer_SSE_for_memop for AMD processors.
17314
17315 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17316
17317         * libio/fmemopen.c (fmemopen): Optimize a bit.
17318
17319 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17320
17321         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17322
17323 2011-03-03  Roland McGrath  <roland@redhat.com>
17324
17325         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17326
17327 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17328
17329         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17330         __bzero_ultra1 instead of __memset_ultra1.
17331
17332 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17333             Ulrich Drepper  <drepper@gmail.com>
17334
17335         [BZ #12509]
17336         * include/link.h (struct link_map): Add l_orig_initfini.
17337         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17338         returning unsuccessfully.
17339         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17340         close of a file loaded at startup, restore the original l_initfini
17341         list.
17342         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17343         list, store the pointer.
17344         * elf/Makefile ($(objpfx)noload-mem): New rule.
17345         (noload-ENV): Define.
17346         (tests): Add $(objpfx)noload-mem.
17347         * elf/noload.c: Include <memcheck.h>.
17348         (main): Call mtrace.  Close all opened handles.
17349
17350 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17351
17352         [BZ #12454]
17353         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17354         dependencies are missing.
17355
17356 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17357
17358         Fix __if_freereq crash: Unlike the generic version which uses free,
17359         Hurd needs munmap.
17360         * sysdeps/mach/hurd/ifreq.h: New file.
17361
17362 2011-01-27  Petr Baudis  <pasky@suse.cz>
17363             Ulrich Drepper  <drepper@gmail.com>
17364
17365         [BZ 12445]#
17366         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17367         to extend_alloca().
17368         * stdio-common/bug23.c: New file.
17369         * stdio-common/Makefile (tests): Add bug23.
17370
17371 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17372             Ulrich Drepper  <drepper@gmail.com>
17373
17374         [BZ #12489]
17375         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17376         before performing relro protection.  At old place add assertion
17377         to make sure nothing changed.
17378
17379 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17380             Glauber de Oliveira Costa  <glommer@gmail.com>
17381
17382         * elf/elf.h: Add new ARM TLS relocs.
17383
17384 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17385
17386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17387         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17388         cast from r3.
17389         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17390         'tests' variable.
17391         * sysdeps/wordsize-64/tst-writev.c: New file.
17392
17393 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17394
17395         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17396         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17397         insns in _dl_start to prevent a TOC reference before relocs are
17398         resolved.
17399
17400 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17401
17402         [BZ #12469]
17403         * Makeconfig: Remove RANLIB definition.
17404         * Makerules: Don't use RANLIB.
17405         * aclocal.m4: Remove ranlib test.
17406         * configure.in: No need to check for ranlib.
17407         * elf/rtld-Rules: Don't use RANLIB.
17408
17409 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17410
17411         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17412         protection macro.
17413         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17414         inclusion protection macro.
17415
17416         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17417         SIGRTMIN and SIGRTMAX and print information in that case only when
17418         SIGRTMIN is defined.
17419
17420 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17421
17422         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17423         arginfo fn returning -1.
17424
17425         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17426         and thousands string is zero terminated.
17427
17428 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17429
17430         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17431         sysdeps/unix/sysv/linux/bits/socket.h.
17432
17433 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17434
17435         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17436         (__CPU_COUNT): Remove old macros.
17437         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17438         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17439         (__CPU_ALLOC, __CPU_FREE): Add macros.
17440         (__sched_cpualloc, __sched_cpufree): Add declarations.
17441
17442 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17443
17444         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17445         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17446         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17447         (readdhstai): Return value of addhstaiX call.
17448         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17449         (addgrbyX): Return value returned by cache_addgr.
17450         (readdgrbyname): Return value returned by addgrbyX.
17451         (readdgrbygid): Likewise.
17452         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17453         (addpwbyX): Return value returned by cache_addpw.
17454         (readdpwbyname): Return value returned by addhstbyX.
17455         (readdpwbyuid): Likewise.
17456         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17457         (addservbyX): Return value returned by cache_addserv.
17458         (readdservbyname): Return value returned by addservbyX:
17459         (readdservbyport): Likewise.
17460         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17461         (addhstbyX): Return value returned by cache_addhst.
17462         (readdhstbyname): Return value returned by addhstbyX.
17463         (readdhstbyaddr): Likewise.
17464         (readdhstbynamev6): Likewise.
17465         (readdhstbyaddrv6): Likewise.
17466         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17467         (readdinitgroups): Return value returned by addinitgroupsX.
17468         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17469         (prune_cache): Keep track of timeout value of re-added entries.
17470         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17471         * nscd/nscd.h: Adjust prototypes of readd* functions.
17472
17473 2011-02-04  Roland McGrath  <roland@redhat.com>
17474
17475         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17476         (nis_stats): Likewise.
17477         * nis/nis_modify.c (nis_modify): Likewise.
17478         * nis/nis_remove.c (nis_remove): Likewise.
17479         * nis/nis_add.c (nis_add): Likewise.
17480
17481         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17482
17483         * posix/fnmatch_loop.c: Add some consts.
17484
17485         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17486
17487 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17488
17489         [BZ #12460]
17490         * config.make.in (config-cflags-novzeroupper): Define.
17491         * configure.in: Substitute libc_cv_cc_novzeroupper.
17492         * elf/Makefile (AVX-CFLAGS): Define.
17493         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17494         (CFLAGS-tst-auditmod4a.c): Likewise.
17495         (CFLAGS-tst-auditmod4b.c): Likewise.
17496         (CFLAGS-tst-auditmod6b.c): Likewise.
17497         (CFLAGS-tst-auditmod6c.c): Likewise.
17498         (CFLAGS-tst-auditmod7b.c): Likewise.
17499         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17500
17501 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17502
17503         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17504         function to the callback.
17505         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17506
17507 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17508
17509         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17510         of errno.
17511
17512 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17513
17514         [BZ #11724]
17515         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17516         of constructors.
17517         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17518         of destructors.
17519         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17520
17521         [BZ #11724]
17522         * elf/Makefile: Add rules to build and run new test.
17523         * elf/tst-initorder.c: New file.
17524         * elf/tst-initorder.exp: New file.
17525         * elf/tst-initordera1.c: New file.
17526         * elf/tst-initordera2.c: New file.
17527         * elf/tst-initordera3.c: New file.
17528         * elf/tst-initordera4.c: New file.
17529         * elf/tst-initorderb1.c: New file.
17530         * elf/tst-initorderb2.c: New file.
17531         * elf/tst-order-a1.c: New file.
17532         * elf/tst-order-a2.c: New file.
17533         * elf/tst-order-a3.c: New file.
17534         * elf/tst-order-a4.c: New file.
17535         * elf/tst-order-b1.c: New file.
17536         * elf/tst-order-b2.c: New file.
17537         * elf/tst-order-main.c: New file.
17538         New test case by George Gensure <werkt0@gmail.com>.
17539
17540 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17541
17542         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17543         decoding ACE if AI_CANONIDN.
17544
17545 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17546
17547         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17548
17549 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17550
17551         * version.h (RELEASE): Bump for 2.13 release.
17552         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17553
17554         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17555
17556         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17557         MADV_NOHUGEPAGE.
17558         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17559         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17560         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17561         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17562         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17563         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17564
17565         * posix/getconf.c: Update copyright year.
17566         * catgets/gencat.c: Likewise.
17567         * csu/version.c: Likewise.
17568         * debug/catchsegv.sh: Likewise.
17569         * debug/xtrace.sh: Likewise.
17570         * elf/ldconfig.c: Likewise.
17571         * elf/ldd.bash.in: Likewise.
17572         * elf/sprof.c (print_version): Likewise.
17573         * iconv/iconv_prog.c: Likewise.
17574         * iconv/iconvconfig.c: Likewise.
17575         * locale/programs/locale.c: Likewise.
17576         * locale/programs/localedef.c: Likewise.
17577         * malloc/memusage.sh: Likewise.
17578         * malloc/mtrace.pl: Likewise.
17579         * nscd/nscd.c (print_version): Likewise.
17580         * nss/getent.c: Likewise.
17581
17582         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17583         PF_CAIF, and PF_ALG.
17584         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17585
17586 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17587
17588         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17589         (modules-names): Use them.
17590         (ifunc-test-modules, ifunc-pie-tests): Define.
17591         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17592         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17593         (test-extras): Likewise.
17594         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17595         $(compile-command.c).
17596         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17597         (all-built-dso): Define.
17598         (check-textrel.out, check-execstack.out): Depend on it.
17599
17600         * configure.in: Don't override --enable-multi-arch.
17601
17602 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17603
17604         [BZ #6812]
17605         * nscd/hstcache.c (tryagain): Define.
17606         (cache_addhst): Return tryagain not notfound for temporary errors.
17607         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17608         failed.
17609
17610 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17611
17612         [BZ #10563]
17613         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17614         to make the syscall.
17615         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17616
17617         [BZ #12378]
17618         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17619         and fall back to matching as normal character if the string ends before
17620         the matching ']' is found.  This is what POSIX requires.
17621         * posix/testfnm.c: Adjust test result.
17622         * posix/globtest.sh: Adjust test result.  Add new test.
17623         * posix/tst-fnmatch.input: Likewise.
17624         * posix/tst-fnmatch2.c: Add new test.
17625
17626 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17627
17628         * elf/Makefile (check-execstack): Revert last change.  Depend on
17629         check-execstack.h.
17630         (check-execstack.h): New target.
17631         (generated): Add check-execstack.h.
17632         * elf/check-execstack.c: Include "check-execstack.h".
17633         (main): Revert last change.
17634         (handle_file): Return zero if GNU_STACK is absent and
17635         DEFAULT_STACK_PERMS doesn't include PF_X.
17636
17637 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17638
17639         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17640         in child fails because the descriptor is already closed.
17641         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17642         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17643         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17644
17645         [BZ #12397]
17646         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17647         syscall.
17648
17649         [BZ #10484]
17650         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17651         temporary buffer used to handle multi lookups locally.
17652         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17653
17654 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17655
17656         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17657         loader is ld.so.
17658
17659 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17660
17661         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17662         alignment for SSE2.
17663
17664 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17665
17666         [BZ #12394]
17667         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17668         characters.  When rounding increased number of integer digits recompute
17669         number of groups.
17670         * stdio-common/tst-grouping.c: New file.
17671         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17672
17673 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17674
17675         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17676         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17677
17678         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17679         void.
17680         * bits/select.h: Likewise.
17681
17682 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17683
17684         * po/ja.po: Update from translation team.
17685
17686 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17687
17688         [BZ #11155]
17689         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17690         implementation just like for lxstat, fxstatat, et al.
17691
17692 2010-12-27  Jim Meyering  <meyering@redhat.com>
17693
17694         [BZ #12348]
17695         * posix/regexec.c (build_trtable): Return failure indication upon
17696         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17697
17698 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17699
17700         [BZ #12201]
17701         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17702         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17703         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17704         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17705
17706         [BZ #12207]
17707         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17708
17709         [BZ #12204]
17710         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17711         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17712
17713 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17714
17715         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17716         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17717         script has SORT_BY_INIT_PRIORITY.
17718         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17719         NO_CTORS_DTORS_SECTIONS is defined.
17720         * elf/soinit.c: Likewise.
17721         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17722         NO_CTORS_DTORS_SECTIONS is defined.
17723         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17724         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17725         * sysdeps/sh/init-first.c: Likewise.
17726         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17727
17728 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17729
17730         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17731         always use the slow path.
17732
17733 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17734
17735         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17736         similar rule which adds the sysdep directories to the header search in
17737         order to pick up the correct platform stackinfo.h.
17738         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17739         perform test if it is, otherwise return successfully without testing.
17740         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17741         DEFAULT_STACK_PERMS define in stackinfo.h.
17742         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17743         defined in stackinfo.h.
17744         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17745         DEFAULT_STACK_PERMS defined in stackinfo.h.
17746         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17747         * sysdeps/ia64/stackinfo.h: Likewise.
17748         * sysdeps/s390/stackinfo.h: Likewise.
17749         * sysdeps/sh/stackinfo.h: Likewise.
17750         * sysdeps/sparc/stackinfo.h: Likewise.
17751         * sysdeps/x86_64/stackinfo.h: Likewise.
17752         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17753         PF_X for powerpc64.  Retain PF_X for powerpc32.
17754
17755 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17756
17757         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17758         accurately.
17759         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17760         GETDENTS_64BIT_ALIGNED.
17761
17762 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17763
17764         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17765
17766 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17767
17768         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17769         _GNU_SOURCE.
17770
17771         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17772         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17773         Remove __restrict.
17774         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17775         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17776
17777 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17778
17779         [BZ #11655]
17780         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17781         are initialized.
17782
17783 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17784
17785         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17786
17787 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17788
17789         * po/it.po: Update from translation team.
17790
17791 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17792
17793         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17794         unused codes.
17795
17796 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17797
17798         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17799
17800 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17801
17802         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17803         specially.
17804         (gaih_getanswer_slice): Likewise.
17805
17806 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17807
17808         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17809
17810 2010-05-31  Petr Baudis  <pasky@suse.cz>
17811
17812         [BZ #11149]
17813         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17814         silently even in the chroot mode.
17815
17816 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17817
17818         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17819         last patch a bit.  Pretty printing
17820
17821 2010-05-31  Petr Baudis <pasky@suse.cz>
17822
17823         [BZ #10085]
17824         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17825         initialization of skip_initgroups_dyn.
17826
17827 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17828
17829         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17830         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17831
17832 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17833
17834         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17835
17836 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17837
17838         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17839         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17840         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17841         ($(objpfx)tst-fnmatch-mem): New rule.
17842         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17843         * posix/tst-fnmatch.c (main): Call mtrace.
17844
17845 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17846
17847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17848         Support Intel processor model 6 and model 0x2c.
17849
17850 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17851
17852         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17853           signed comparison.
17854
17855 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17856
17857         [BZ #12205]
17858         * string/test-strncasecmp.c (check_result): New function.
17859         (do_one_test): Use it.
17860         (check1): New function.
17861         (test_main): Use it.
17862         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17863         Support strcasecmp and strncasecmp.
17864
17865 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17866
17867         [BZ #12194]
17868         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17869         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17870
17871 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17872
17873         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17874         IFUNC support.
17875         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17876         memset-x86-64.
17877         * sysdeps/x86_64/multiarch/bzero.S: New file.
17878         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17879         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17880         * sysdeps/x86_64/multiarch/memset.S: New file.
17881         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17882         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17883         Set bit_Prefer_SSE_for_memop for Intel processors.
17884         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
17885         Define.
17886         (index_Prefer_SSE_for_memop): Define.
17887         (HAS_PREFER_SSE_FOR_MEMOP): Define.
17888
17889 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
17890
17891         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
17892         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
17893
17894 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
17895
17896         [BZ #12191]
17897         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17898         (__x86_64_raw_data_cache_size_half): Likewise.
17899         (__x86_64_raw_shared_cache_size): Likewise.
17900         (__x86_64_raw_shared_cache_size_half): Likewise.
17901
17902         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
17903         (__x86_64_raw_data_cache_size_half): Likewise.
17904         (__x86_64_raw_shared_cache_size): Likewise.
17905         (__x86_64_raw_shared_cache_size_half): Likewise.
17906         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
17907         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
17908         and __x86_64_raw_shared_cache_size_half.  Round
17909         __x86_64_data_cache_size_half, __x86_64_data_cache_size
17910         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
17911         to multiple of 256 bytes.
17912
17913 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
17914
17915         [BZ #12167]
17916         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
17917         of inacessible symlinks.  Verify result of symlink before returning it.
17918         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
17919         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
17920
17921 2010-10-28  Erich Ritz  <erichritz@gmail.com>
17922
17923         * math/math.h (isinf): Fix typo in comment.
17924
17925 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
17926
17927         * po/da.po: Update from translation team.
17928
17929 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
17930
17931         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
17932         is added to the list.
17933
17934 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17935             Ulrich Drepper  <drepper@gmail.com>
17936
17937         * elf/dl-object.c (_dl_new_object): Don't append the new object to
17938         the global list here.  Move code to...
17939         (_dl_add_to_namespace_list): ...here.  New function.
17940         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
17941         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
17942         * elf/dl-load.c (lose): Don't remove the element from the list.
17943         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
17944         (_dl_map_object): Likewise.
17945
17946 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
17947
17948         [BZ #12159]
17949         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
17950         into all bytes of SSE register.
17951         Patch by Richard Li <richardpku@gmail.com>.
17952
17953 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
17954
17955         [BZ #12140]
17956         * malloc/malloc.c (_int_free): Fill correct number of bytes when
17957         perturbing.
17958
17959 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
17960
17961         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
17962         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
17963         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
17964         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
17965         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
17966         submachine.
17967         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
17968
17969 2010-10-22  Andreas Schwab  <schwab@redhat.com>
17970
17971         * include/dlfcn.h (__RTLD_SECURE): Define.
17972         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
17973         mode & __RTLD_SECURE instead.
17974         (open_path): Rename preloaded parameter to secure.
17975         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
17976         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
17977         * elf/dl-deps.c (openaux): Likewise.
17978         * elf/rtld.c (struct map_args): Remove is_preloaded.
17979         (map_doit): Don't use it.
17980         (dl_main): Likewise.
17981         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
17982         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
17983
17984 2010-09-09  Andreas Schwab  <schwab@redhat.com>
17985
17986         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
17987         (sysd-rules-targets): Remove duplicates.
17988         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
17989         rtld-%.$o dependency.
17990
17991 2010-10-18  Andreas Schwab  <schwab@redhat.com>
17992
17993         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
17994         _dl_map_object do it.
17995
17996 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
17997
17998         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
17999         fast fma builtins, define the macros in the C99 standard.
18000         (FP_FAST_FMAF): Likewise.
18001         (FP_FAST_FMAL): Likewise.
18002         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18003
18004         * bits/mathdef.h: Update copyright year.
18005         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18006
18007 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18008
18009         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18010         builtins, define the macros in the C99 standard.
18011         (FP_FAST_FMAF): Likewise.
18012         (FP_FAST_FMAL): Likewise.
18013         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18014         multiply/add.
18015         (FP_FAST_FMAF): Likewise.
18016
18017 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18018
18019         [BZ #3268]
18020         * math/libm-test.inc (fma_test): Some new testcases.
18021         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18022         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18023         y and infinite z.  Do multiplication by C already in long double.
18024         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18025         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18026         y and infinite z.  Do bitwise or of inexact bit into u.d.
18027         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18028         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18029         * sysdeps/i386/fpu/s_fma.S: Removed.
18030         * sysdeps/i386/fpu/s_fmal.S: Removed.
18031
18032 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18033
18034         [BZ #3268]
18035         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18036         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18037         computation is not scheduled after fetestexcept.  Fix value
18038         of minimum denormal long double.
18039
18040 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18041
18042         [BZ #3268]
18043         * math/libm-test.inc (fma_test): Add some more tests.
18044         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18045         correctly.
18046
18047 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18048
18049         * scripts/data/localplt-s390-linux-gnu.data: New file.
18050         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18051
18052 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18053
18054         [BZ #3268]
18055         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18056         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18057         instead of dbl-64.
18058         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18059         inlines.
18060         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18061         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18062         if one of x and y is very large and the other is subnormal.
18063         * sysdeps/s390/fpu/s_fmaf.c: New file.
18064         * sysdeps/s390/fpu/s_fma.c: New file.
18065         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18066         * sysdeps/powerpc/fpu/s_fma.S: New file.
18067         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18068         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18069         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18070
18071 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18072
18073         [BZ #3268]
18074         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18075         fma tests.
18076         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18077         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18078         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18079         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18080         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18081         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18082         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18083
18084 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18085
18086         [BZ #12078]
18087         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18088         * posix/bug-regex31.input: Add test case.
18089
18090 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18091
18092         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18093         * posix/bug-regex31.input: New file.
18094
18095         [BZ #12078]
18096         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18097         (parse_sub_exp): Fix last change, use postorder.
18098
18099         * posix/bug-regex31.c: New file.
18100         * posix/Makefile: Add rules to build and run bug-regex31.
18101
18102         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18103
18104         [BZ #12078]
18105         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18106
18107         [BZ #12108]
18108         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18109         to have entries in sys_siglist.
18110
18111         [BZ #12093]
18112         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18113         be NULL.
18114
18115 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18116
18117         [BZ #3268]
18118         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18119         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18120         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18121         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18122         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18123         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18124         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18125         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18126         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18127         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18128         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18129         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18130         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18131         * math/ftestexcept.c (fetestexcept): Likewise.
18132         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18133         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18134         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18135         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18136         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18137         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18138         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18139
18140 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18141
18142         [BZ #12107]
18143         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18144         newline.
18145
18146 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18147
18148         * string/bug-strstr1.c: New file.
18149         * string/Makefile: Add rules to build and run bug-strstr1.
18150
18151 2010-10-05  Eric Blake  <eblake@redhat.com>
18152
18153         [BZ #12092]
18154         * string/str-two-way.h (two_way_long_needle): Always clear memory
18155         when skipping input due to the shift table.
18156
18157 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18158
18159         [BZ #12005]
18160         * malloc/mcheck.c: Handle large requests.
18161
18162         [BZ #12077]
18163         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18164         for strncmp and strncasecmp.
18165         * string/stratcliff.c: Add tests for strcmp and strncmp.
18166         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18167
18168 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18169
18170         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18171         __set_fpscr.
18172
18173 2010-09-30  Andreas Jaeger  <aj@suse.de>
18174
18175         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18176         (CGROUP_SUPER_MAGIC): Define.
18177         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18178         Handle btrfs and cgroup file systems.
18179         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18180         Likewise.
18181
18182 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18183
18184         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18185         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18186
18187 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18188
18189         [BZ #12067]
18190         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18191         trying to locate the ELF header.
18192
18193 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18194
18195         [BZ #11611]
18196         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18197         Mask out sign-bit copies when constructing f_fsid.
18198
18199 2010-09-24  Petr Baudis <pasky@suse.cz>
18200
18201         * debug/stack_chk_fail_local.c: Add missing licence exception.
18202         * debug/warning-nop.c: Likewise.
18203
18204 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18205
18206         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18207         implementing getdents64 using getdents syscall, set d_type if
18208         __ASSUME_GETDENTS32_D_TYPE.
18209
18210 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18211
18212         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18213         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18214
18215 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18216
18217         [BZ #12037]
18218         * posix/unistd.h: Undo change of feature selection for ftruncate from
18219         2010-01-11.
18220
18221 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18222
18223         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18224         detection.
18225
18226 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18227
18228         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18229         fanotify_mark.
18230         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18231
18232 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18233
18234         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18235         variables after CHECK_SP call.
18236         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18237
18238 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18239             Ulrich Drepper  <drepper@redhat.com>
18240
18241         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18242         re-relocationg ld.so.
18243         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18244         _dl_init_paths call.
18245         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18246         here anymore.
18247
18248 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18249
18250         * resolv/res_init.c (__res_vinit): Count the default server we added.
18251
18252 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18253             Ulrich Drepper  <drepper@redhat.com>
18254
18255         [BZ #11968]
18256         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18257         (____longjmp_chk): Use %ebx for saving value across system call.
18258         Add unwind info.
18259
18260 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18261
18262         * manual/Makefile: Don't mix pattern rules with normal rules.
18263
18264 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18265
18266         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18267         operation.
18268         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18269         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18270         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18271         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18272         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18273         Likewise.
18274
18275 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18276
18277         [BZ #11979]
18278         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18279         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18280
18281 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18282
18283         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18284         * sysdeps/x86_64/addmul_1.S: Likewise.
18285         * sysdeps/x86_64/lshift.S: Likewise.
18286         * sysdeps/x86_64/mul_1.S: Likewise.
18287         * sysdeps/x86_64/rshift.S: Likewise.
18288         * sysdeps/x86_64/sub_n.S: Likewise.
18289         * sysdeps/x86_64/submul_1.S: Likewise.
18290
18291 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18292
18293         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18294         Define __sched_param instead of SCHED_* and sched_param when
18295         <bits/sched.h> is included with __need_schedparam defined.
18296         * bits/sched.h [__need_schedparam]
18297         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18298         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18299         (__defined_schedparam): Define to 1.
18300         (__sched_param): New structure, identical to sched_param.
18301         (__need_schedparam): Undefine.
18302
18303 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18304
18305         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18306         (epoll_create1): Declare.
18307
18308         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18309
18310 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18311
18312         [BZ #7066]
18313         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18314         shifting retval into place.
18315
18316 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18317
18318         * nis/rpcsvc/nis.h: Update copyright notice.
18319         * nis/rpcsvc/nis.x: Likewise.
18320         * nis/rpcsvc/nis_callback.h: Likewise.
18321         * nis/rpcsvc/nis_callback.x: Likewise.
18322         * nis/rpcsvc/nis_object.x: Likewise.
18323         * nis/rpcsvc/nis_tags.h: Likewise.
18324         * nis/rpcsvc/yp.h: Likewise.
18325         * nis/rpcsvc/yp.x: Likewise.
18326         * nis/rpcsvc/ypupd.h: Likewise.
18327         * nis/yp_xdr.c: Likewise.
18328         * nis/ypupdate_xdr.c: Likewise.
18329
18330         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18331         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18332         (pmap_getport): Use __libc_rpc_getport.
18333         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18334         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18335         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18336
18337 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18338
18339         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18340         fanotify_mark.
18341
18342 2010-08-27  Roland McGrath  <roland@redhat.com>
18343
18344         * sysdeps/i386/i686/multiarch/Makefile
18345         (CFLAGS-varshift.c): New variable.
18346
18347 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18348
18349         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18350         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18351
18352         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18353
18354         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18355
18356 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18357
18358         * sysdeps/x86_64/strlen.S: Unroll the loop.
18359         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18360         strlen-sse2 strlen-sse2-bsf.
18361         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18362         __strlen_no_bsf if bit_Slow_BSF is set.
18363         (__strlen_sse42): Removed.
18364         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18365         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18366
18367 2010-08-25  Roland McGrath  <roland@redhat.com>
18368
18369         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18370         * sysdeps/x86_64/multiarch/varshift.c: New file.
18371         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18372         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18373         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18374         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18375
18376 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18377
18378         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18379         strlen-sse2 strlen-sse2-bsf.
18380         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18381         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18382         (__strlen_sse2): Removed.
18383         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18384         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18385         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18386         bit_Slow_BSF for Atom.
18387         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18388         (index_Slow_BSF): Define.
18389         (HAS_SLOW_BSF): Define.
18390
18391 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18392
18393         [BZ #10851]
18394         * resolv/res_init.c (__res_vinit): When no server address at all
18395         is given default to loopback.
18396
18397 2010-08-24  Roland McGrath  <roland@redhat.com>
18398
18399         * configure.in: Remove config-name.h generation.
18400         * configure: Regenerated.
18401         * config-name.in: File removed.
18402         * scripts/config-uname.sh: New file.
18403         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18404         ($(objdir)config-name.h): New target.
18405
18406         * sunrpc/rpc_parse.h: Avoid nested comment.
18407
18408 2010-08-24  Richard Henderson  <rth@redhat.com>
18409             Ulrich Drepper  <drepper@redhat.com>
18410             H.J. Lu  <hongjiu.lu@intel.com>
18411
18412         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18413         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18414         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18415         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18416         _mm_alignr_epi8 with _mm_loadu_si128.
18417         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18418         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18419         (__m128i_shift_right): Removed.
18420         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18421         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18422         * sysdeps/x86_64/multiarch/varshift.h: New file.
18423         * sysdeps/x86_64/multiarch/varshift.S: New file.
18424
18425 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18426
18427         * configure.in: Move assembler checks to before sysdep dir checking.
18428
18429 2010-08-20  Petr Baudis  <pasky@suse.cz>
18430
18431         * LICENSES: Sync the sunrpc license.
18432
18433 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18434
18435         * sunrpc/auth_des.c: Update copyright notice once again.
18436         * sunrpc/auth_none.c: Likewise.
18437         * sunrpc/auth_unix.c: Likewise.
18438         * sunrpc/authdes_prot.c: Likewise.
18439         * sunrpc/authuxprot.c: Likewise.
18440         * sunrpc/bindrsvprt.c: Likewise.
18441         * sunrpc/clnt_gen.c: Likewise.
18442         * sunrpc/clnt_perr.c: Likewise.
18443         * sunrpc/clnt_raw.c: Likewise.
18444         * sunrpc/clnt_simp.c: Likewise.
18445         * sunrpc/clnt_tcp.c: Likewise.
18446         * sunrpc/clnt_udp.c: Likewise.
18447         * sunrpc/clnt_unix.c: Likewise.
18448         * sunrpc/des_crypt.c: Likewise.
18449         * sunrpc/des_soft.c: Likewise.
18450         * sunrpc/get_myaddr.c: Likewise.
18451         * sunrpc/getrpcport.c: Likewise.
18452         * sunrpc/key_call.c: Likewise.
18453         * sunrpc/key_prot.c: Likewise.
18454         * sunrpc/openchild.c: Likewise.
18455         * sunrpc/pm_getmaps.c: Likewise.
18456         * sunrpc/pm_getport.c: Likewise.
18457         * sunrpc/pmap_clnt.c: Likewise.
18458         * sunrpc/pmap_prot.c: Likewise.
18459         * sunrpc/pmap_prot2.c: Likewise.
18460         * sunrpc/pmap_rmt.c: Likewise.
18461         * sunrpc/rpc/auth.h: Likewise.
18462         * sunrpc/rpc/auth_unix.h: Likewise.
18463         * sunrpc/rpc/clnt.h: Likewise.
18464         * sunrpc/rpc/des_crypt.h: Likewise.
18465         * sunrpc/rpc/key_prot.h: Likewise.
18466         * sunrpc/rpc/netdb.h: Likewise.
18467         * sunrpc/rpc/pmap_clnt.h: Likewise.
18468         * sunrpc/rpc/pmap_prot.h: Likewise.
18469         * sunrpc/rpc/pmap_rmt.h: Likewise.
18470         * sunrpc/rpc/rpc.h: Likewise.
18471         * sunrpc/rpc/rpc_des.h: Likewise.
18472         * sunrpc/rpc/rpc_msg.h: Likewise.
18473         * sunrpc/rpc/svc.h: Likewise.
18474         * sunrpc/rpc/svc_auth.h: Likewise.
18475         * sunrpc/rpc/types.h: Likewise.
18476         * sunrpc/rpc/xdr.h: Likewise.
18477         * sunrpc/rpc_clntout.c: Likewise.
18478         * sunrpc/rpc_cmsg.c: Likewise.
18479         * sunrpc/rpc_common.c: Likewise.
18480         * sunrpc/rpc_cout.c: Likewise.
18481         * sunrpc/rpc_dtable.c: Likewise.
18482         * sunrpc/rpc_hout.c: Likewise.
18483         * sunrpc/rpc_main.c: Likewise.
18484         * sunrpc/rpc_parse.c: Likewise.
18485         * sunrpc/rpc_parse.h: Likewise.
18486         * sunrpc/rpc_prot.c: Likewise.
18487         * sunrpc/rpc_sample.c: Likewise.
18488         * sunrpc/rpc_scan.c: Likewise.
18489         * sunrpc/rpc_scan.h: Likewise.
18490         * sunrpc/rpc_svcout.c: Likewise.
18491         * sunrpc/rpc_tblout.c: Likewise.
18492         * sunrpc/rpc_util.c: Likewise.
18493         * sunrpc/rpc_util.h: Likewise.
18494         * sunrpc/rpcinfo.c: Likewise.
18495         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18496         * sunrpc/rpcsvc/key_prot.x: Likewise.
18497         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18498         * sunrpc/rpcsvc/mount.x: Likewise.
18499         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18500         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18501         * sunrpc/rpcsvc/rex.x: Likewise.
18502         * sunrpc/rpcsvc/rstat.x: Likewise.
18503         * sunrpc/rpcsvc/rusers.x: Likewise.
18504         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18505         * sunrpc/rpcsvc/spray.x: Likewise.
18506         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18507         * sunrpc/rtime.c: Likewise.
18508         * sunrpc/svc.c: Likewise.
18509         * sunrpc/svc_auth.c: Likewise.
18510         * sunrpc/svc_authux.c: Likewise.
18511         * sunrpc/svc_raw.c: Likewise.
18512         * sunrpc/svc_run.c: Likewise.
18513         * sunrpc/svc_simple.c: Likewise.
18514         * sunrpc/svc_tcp.c: Likewise.
18515         * sunrpc/svc_udp.c: Likewise.
18516         * sunrpc/svc_unix.c: Likewise.
18517         * sunrpc/svcauth_des.c: Likewise.
18518         * sunrpc/xcrypt.c: Likewise.
18519         * sunrpc/xdr.c: Likewise.
18520         * sunrpc/xdr_array.c: Likewise.
18521         * sunrpc/xdr_float.c: Likewise.
18522         * sunrpc/xdr_mem.c: Likewise.
18523         * sunrpc/xdr_rec.c: Likewise.
18524         * sunrpc/xdr_ref.c: Likewise.
18525         * sunrpc/xdr_sizeof.c: Likewise.
18526         * sunrpc/xdr_stdio.c: Likewise.
18527
18528         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18529         handling.
18530
18531 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18532
18533         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18534
18535 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18536
18537         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18538         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18539         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18540         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18541         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18542         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18543         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18544         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18545         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18546         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18547         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18548         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18549         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18550         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18551
18552 2010-07-26  Anton Blanchard  <anton@samba.org>
18553
18554         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18555         * malloc/arena.c (heap_trim): Likewise.
18556
18557 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18558
18559         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18560         here.  Not...
18561         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18562         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18563
18564 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18565
18566         * sysdeps/i386/elf/Makefile: New file.
18567
18568 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18569
18570         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18571         from fanotify_init.
18572         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18573         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18574
18575 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18576
18577         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18578         of strncasecmp_l.
18579         * sysdeps/multiarch/strcmp.S: Likewise.
18580
18581 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18582
18583         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18584         strncase_l-nonascii.
18585         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18586         Add strncase_l-ssse3.
18587         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18588         * sysdeps/x86_64/strcmp.S: Likewise.
18589         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18590         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18591         * sysdeps/x86_64/strncase.S: New file.
18592         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18593         * sysdeps/x86_64/strncase_l.S: New file.
18594         * string/Makefile (strop-tests): Add strncasecmp.
18595         * string/test-strncasecmp.c: New file.
18596
18597         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18598         warning.
18599
18600         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18601         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18602
18603 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18604
18605         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18606
18607 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18608
18609         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18610         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18611         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18612
18613 2010-05-01  Alan Modra  <amodra@gmail.com>
18614
18615         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18616         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18617         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18618         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18619         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18620         tidying.  Don't tail-call __sigjmp_save for static lib.
18621         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18622         save location.
18623         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18624         (CALL_MCOUNT): Add eh info, and nop after bl.
18625         (TAIL_CALL_SYSCALL_ERROR): New macro.
18626         (PSEUDO_RET): Use it.
18627         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18628         Correct save location of integer regs and cr.
18629         (_dl_profile_resolve): Correct cr save location.  Delete nops
18630         after bl when SHARED.  Reduce cfi size a little by better
18631         placement of cfi directives.
18632         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18633         make a stack frame.  Instead use parm save area as a temp.
18634         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18635         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18636         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18637         Don't make a stack frame for parent, use parm save area.
18638         Increase child stack frame to 112 bytes.  Don't save unused reg,
18639         and adjust reg usage.  Set up cfi on error recovery and
18640         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18642         (__makecontext): Add dummy nop after jump to exit.
18643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18644         Use correct parm save area and cr save, reduce stack frame.
18645         Correct cfi for possible PSEUDO_RET frame setup.
18646         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18647         Branch to local label emitted by PSEUDO_RET rather than
18648         __syscall_error.
18649
18650 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18651
18652         [BZ #11904]
18653         * locale/programs/locale.c (print_assignment): New function.
18654         (show_locale_vars): Use it.
18655
18656 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18657
18658         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18659         field.
18660         (struct statfs64): Likewise.
18661         (_STATFS_F_FLAGS): Define.
18662         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18663         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18664         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18665         (ST_VALID): Define locally.
18666         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18667         __statvfs_getflags, use the provided value.
18668         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18669         __ASSUME_STATFS_F_FLAGS.
18670
18671         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18672
18673         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18674         Add sys/fanotify.h.
18675         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18676         fanotify_mask for GLIBC_2.13.
18677         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18678         fanotify_init and fanotify_mark.
18679         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18680         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18681
18682         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18683         Add prlimit.
18684         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18685         prlimit64 for GLIBC_2.13.
18686         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18687         prlimit64.
18688         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18689         syscall.
18690         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18691         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18692         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18693         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18694         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18695         add prlimit alias.
18696         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18697
18698         [BZ #11903]
18699         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18700         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18701
18702         * nss/Makefile: Add rules to build and run tst-nss-test1.
18703         * shlib-versions: Add entry for libnss_test1.
18704         * nss/nss_test1.c: New file.
18705         * nss/tst-nss-test1.c: New file.
18706
18707         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18708         (__nss_configure_lookup): Set appropriate entry in
18709         __nss_configure_lookup to true.
18710         * nss/nsswitch.h: Define enum with indeces of databases in
18711         databases and __nss_database_custom arrays.  Declare
18712         __nss_database_custom.
18713         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18714         to avoid using nscd when custom rules are installed.
18715         * nss/getXXbyYY_r.c: Likewise.
18716         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18717
18718         * nss/nss_files/files-parse.c: Whitespace fixes.
18719
18720 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18721
18722         [BZ #11883]
18723         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18724         * posix/fnmatch_loop.c: Likewise.
18725
18726 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18727
18728         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18729         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18730         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18731         * Versions.def [GLIBC_2.13]: Add.
18732
18733 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18734
18735         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18736         Also fail if tpwd after pwuid call is NULL.
18737
18738 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18739
18740         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18741         when converting to ms.
18742
18743 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18744
18745         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18746         EOPNOTSUPP errors with ENOTTY.
18747         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18748         EOPNOTSUPP errors with ENOTTY.
18749
18750 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18751
18752         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18753         Add strcasecmp_l-ssse3.
18754         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18755         strcasecmp.
18756         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18757         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18758         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18759
18760 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18761
18762         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18763
18764         * string/Makefile (strop-tests): Add strcasecmp.
18765         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18766         strcasecmp_l-nonascii.
18767         (gen-as-const-headers): Add locale-defines.sym.
18768         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18769         * sysdeps/x86_64/strcasecmp.S: New file.
18770         * sysdeps/x86_64/strcasecmp_l.S: New file.
18771         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18772         * sysdeps/x86_64/locale-defines.sym: New file.
18773         * string/test-strcasecmp.c: New file.
18774
18775         * string/test-strcasestr.c: Test both ends of the range of characters.
18776         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18777
18778 2010-07-29  Roland McGrath  <roland@redhat.com>
18779
18780         [BZ #11856]
18781         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18782
18783 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18784
18785         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18786         for ld.so.
18787
18788 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18789
18790         * manual/memory.texi (Malloc Tunable Parameters): Document
18791         M_PERTURB.
18792
18793 2010-07-26  Roland McGrath  <roland@redhat.com>
18794
18795         [BZ #11840]
18796         * configure.in (-fgnu89-inline check): Set and substitute
18797         gnu89_inline, not libc_cv_gnu89_inline.
18798         * configure: Regenerated.
18799         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18800
18801 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18802
18803         * string/test-strnlen.c: New file.
18804         * string/Makefile (strop-tests): Add strnlen.
18805         * string/tester.c (test_strnlen): Add a few more test cases.
18806         * string/tst-strlen.c: Better error reporting.
18807
18808         * sysdeps/x86_64/strnlen.S: New file.
18809
18810 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18811
18812         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18813         lower-latency instructions.
18814
18815 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18816
18817         * string/test-strcasestr.c: New file.
18818         * string/test-strstr.c: New file.
18819         * string/Makefile (strop-tests): Add strstr and strcasestr.
18820         * string/str-two-way.h: Don't undefine MAX.
18821         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18822
18823 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18824
18825         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18826         strcasestr-nonascii.
18827         (CFLAGS-strcasestr-nonascii.c): Define.
18828         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18829         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18830         Remove unused attribute.
18831
18832 2010-07-20  Roland McGrath  <roland@redhat.com>
18833
18834         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18835         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18836         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18837         like LD_HWCAP_MASK can disable hwcaps.
18838
18839 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18840
18841         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18842
18843 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18844
18845         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18846         call in strcasestr.
18847         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18848         __strcasestr_sse42_nonascii.
18849         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18850         strcasestr-nonascii.c.
18851         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18852
18853 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18854
18855         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18856         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18857         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18858         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18859
18860 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18861
18862         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18863         fcntl.
18864
18865 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18866
18867         [BZ #11577]
18868         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18869         dl_signal_cerror.
18870
18871 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18872
18873         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18874         _PC_PIPE_BUF using F_GETPIPE_SZ.
18875
18876 2010-07-05  Roland McGrath  <roland@redhat.com>
18877
18878         * manual/arith.texi (Rounding Functions): Fix rint description
18879         implicit in round description.
18880
18881 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
18882
18883         * elf/Makefile: Fix linking for a few tests to make recent linker
18884         happy.
18885
18886 2010-06-30  Andreas Schwab  <schwab@redhat.com>
18887
18888         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18889         $(common-objpfx)libc_nonshared.a.
18890
18891 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
18892
18893         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
18894         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
18895         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18896         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18897         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
18898         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
18899         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18900         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
18902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
18903         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
18904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
18905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
18906         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
18907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
18908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
18909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
18910         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
18911         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
18912         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
18913         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
18914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
18915         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
18916         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
18917         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
18918         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
18919         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
18920         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
18921         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
18922         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
18923         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
18924         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
18925         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
18926         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
18927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
18928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
18929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
18930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
18931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
18932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
18933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
18934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
18935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
18936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
18937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
18938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
18939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
18940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
18941
18942 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
18943
18944         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
18945         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
18946         * string/memmove.c (memmove): Renamed to ...
18947         (MEMMOVE): ...this.  Default to memmove.
18948         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
18949         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
18950         (END_CHK): Define.
18951         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18952         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
18953         mempcpy-ssse3-back memmove-ssse3-back.
18954         * sysdeps/x86_64/multiarch/bcopy.S: New file .
18955         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
18956         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
18957         * sysdeps/x86_64/multiarch/memcpy.S: New file.
18958         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
18959         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
18960         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
18961         * sysdeps/x86_64/multiarch/memmove.c: New file.
18962         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
18963         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
18964         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
18965         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
18966         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
18967         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
18968         Define.
18969         (index_Fast_Copy_Backward): Define.
18970         (HAS_ARCH_FEATURE): Define.
18971         (HAS_FAST_REP_STRING): Define.
18972         (HAS_FAST_COPY_BACKWARD): Define.
18973
18974 2010-06-21  Andreas Schwab  <schwab@redhat.com>
18975
18976         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18977         Restore proper fallback handling.
18978
18979 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
18980
18981         [BZ #11701]
18982         * posix/group_member.c (__group_member): Correct checking loop.
18983
18984         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
18985         OOM in getpwuid_r correctly.  Return error number when the caller
18986         should return, otherwise -1.
18987         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
18988         call returning > 0 value.
18989         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
18990
18991 2010-06-07  Andreas Schwab  <schwab@redhat.com>
18992
18993         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
18994         libc_nonshared.a from targets in modules-names.
18995
18996 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
18997
18998         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
18999         requires it.
19000
19001 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19002
19003         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19004         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19005         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19006         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19007
19008 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19009
19010         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19011
19012 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19013
19014         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19015         and F_GETPIPE_SZ.
19016         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19017         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19018         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19019         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19020         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19021         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19022
19023 2010-06-14  Roland McGrath  <roland@redhat.com>
19024
19025         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19026
19027 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19028
19029         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19030         __REDIRECT followed by __THROW.
19031         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19032         * posix/getopt.h (getopt): Likewise.
19033
19034 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19035
19036         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19037         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19038         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19039         in AT_FLAGS.
19040         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19041         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19042
19043 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19044
19045         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19046
19047 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19048
19049         [BZ #11640]
19050         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19051         Properly check family and model.
19052
19053 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19054
19055         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19056
19057 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19058
19059         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19060
19061 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19062
19063         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19064         symbol reference.
19065
19066 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19067
19068         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19069         symbol reference.
19070
19071 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19072
19073         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19074         and internal_recvmmsg.
19075         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19076         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19077         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19078         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19079
19080         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19081         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19082         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19083
19084 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19085
19086         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19087
19088 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19089
19090         POWER7 optimizations.
19091         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19092         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19093
19094 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19095
19096         * version.h: Update for 2.13 development version.
19097
19098 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19099
19100         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19101         exceptions.  Return 0.
19102
19103 2010-05-07  Roland McGrath  <roland@redhat.com>
19104
19105         * elf/ldconfig.c (main): Add a const.
19106
19107 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19108
19109         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19110         (args_options): Add no-idn option.
19111         (ahosts_keys_int): Add idn_flags to ai_flags.
19112         (parse_option): Handle 'i' option to clear idn_flags.
19113
19114         * malloc/malloc.c (_int_free): Possible race in the most recently
19115         added check.  Only act on the data if no current modification
19116         happened.
19117
19118 See ChangeLog.17 for earlier changes.