Update copyright years
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * iconv/gconv_db.c: Update copyright years.
4
5 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
6
7         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
8         unwind info if defined PIC. Fix special cases description.
9         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
10
11         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
12         DP_HI_MASK entry.
13         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
14
15 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
16
17         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
18
19         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
20         is NULL.
21
22         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
23         (LDLIBS-tst-chk4): This.
24         (LDFLAGS-tst-chk5): Renamed to ...
25         (LDLIBS-tst-chk5): This.
26         (LDFLAGS-tst-chk6): Renamed to ...
27         (LDLIBS-tst-chk6): This.
28         (LDFLAGS-tst-lfschk4): Renamed to ...
29         (LDLIBS-tst-lfschk4): This.
30         (LDFLAGS-tst-lfschk5): Renamed to ...
31         (LDLIBS-tst-lfschk5): This.
32         (LDFLAGS-tst-lfschk6): Renamed to ...
33         (LDLIBS-tst-lfschk6): This.
34
35         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
36         on $(common-objpfx)soversions.mk.
37
38 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
39
40         [BZ #10014]
41         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
42         example host name.
43
44 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
45
46         * malloc/arena.c (arena_get_retry): New function that gets
47         another arena for the caller to try its request on.
48         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
49         current arena cannot fulfill the request.
50         (__libc_memalign): Likewise.
51         (__libc_memalign): Likewise.
52         (__libc_pvalloc): Likewise.
53         (__libc_calloc): Likewise.
54
55 2012-09-05  John Tobey  <john.tobey@gmail.com>
56
57         [BZ #13542]
58         * manual/arith.texi (Operations on Complex): Fix description
59         of carg branch cut.
60
61 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
62
63         [BZ #10014]
64         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
65         host name.
66
67         [BZ #10038]
68         * manual/memory.texi (Memory): Make order of menu items match
69         order of sections.
70
71 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
72
73         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
74         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
75         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
76
77 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
78
79         * csu/libc-tls.c (static_dtv): Renamed to ...
80         (_dl_static_dtv): This.  Make it global.
81         (_dl_initial_dtv): Removed.
82         (__libc_setup_tls): Updated.
83         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
84         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
85         DL_INITIAL_DTV.
86
87 2012-09-06  Petr Machata  <pmachata@redhat.com>
88
89         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
90         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
91         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
92         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
93
94 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
95
96         [BZ #14545]
97         * csu/libc-tls.c (_dl_initial_dtv): New variable.
98         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
99         freeing dtv[-1].
100
101 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
102
103         [BZ #14544]
104         * Makeconfig (link-static-before-libc): Replace $(+prector)
105         with $(+prectorT).
106         (link-static-after-libc): Replace $(+postctor) with
107         $(+postctorT).
108         (link-bounded): Replace $(+prector)/$(+postctor) with
109         $(+prectorT)/$(+postctorT).
110         (+prectorT): New macro.
111         (+postctorT): Likewise.
112
113 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
114
115         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
116         (round_str): Handle values above the maximum for IBM long double
117         as inexact.
118         * stdlib/tst-strtod-round.c (tests): Regenerated.
119
120 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
121
122         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
123         assembler flag.
124         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
125         zarch_nohighgprs around the zarch optimized routines.
126         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
127         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
128         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
129         for zarch.
130
131 2012-09-05  David S. Miller  <davem@davemloft.net>
132
133         * sysdeps/sparc/fpu/libm-test-ulps: Update.
134
135         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
136         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
137         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
138         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
139         entries.
140
141 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
142
143         * malloc/arena.c: Fold copyright years.
144         * malloc/mcheck.c, malloc/memusage.c: Likewise.
145
146 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
147
148         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
149
150 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
151
152         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
153
154 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
155
156         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
157         change internal state upon failure.
158
159 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
160
161         * malloc/mcheck.c (mcheck_check_all): Fix typo.
162         * malloc/memusage.c (mmap): Likewise.
163         (mmap64, mremap): Likewise.  Adjust name in comment.
164
165 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
166
167         * libio/fileops.c: Fix typos in comments.
168         * libio/oldfileops.c: Likewise.
169         * libio/wfileops.c: Likewise.
170
171 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
172
173         [BZ #1349]
174         * malloc/Makefile (tests): Add tst-malloc-usable test case.
175         (tst-malloc-usable-ENV): Set environment for test case.
176         * malloc/hooks.c (malloc_check_get_size): New function to get
177         requested size.
178         * malloc/malloc.c (musable): Use malloc_check_get_size.
179         * malloc/tst-malloc-usable.c: New test case.
180
181 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
182
183         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
184
185 2012-09-05  Allan McRae  <allan@archlinux.org>
186
187         [BZ #13966]
188         * configure.in (CXX_SYSINCLUDES): Use compiler output to
189         determine header location.
190         * configure: Regenerated.
191
192 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
193
194         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
195         float format.
196         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
197         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
198         format.
199         (test): Regenerate.
200
201 2012-09-04  David S. Miller  <davem@davemloft.net>
202
203         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
204         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
205         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
206
207 2012-09-04  Florian Weimer  <fweimer@redhat.com>
208
209         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
210         failures.
211
212         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
213
214 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
215
216         [BZ #9914]
217         * libio/iogetdelim.c: Include <limits.h>.
218         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
219         + len + 1 would overflow.
220
221 2012-09-03  Andreas Jaeger  <aj@suse.de>
222
223         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
224         * sysdeps/i386/fpu/libm-test-ulps: Update.
225
226 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
227
228         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
229         Add s_sinf-sse2, s_conf-sse2.
230
231         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
232         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
233         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
234         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
235
236         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
237         for using routine as __sinf_ia32.
238         Use macro for function declaration and weak_alias.
239         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
240         for using routine as __cosf_ia32.
241         Use macro for function declaration and weak_alias.
242
243         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
244         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
245
246         * sysdeps/x86_64/fpu/s_sinf.S: New file.
247         * sysdeps/x86_64/fpu/s_cosf.S: New file.
248         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
249
250         * math/libm-test.inc (cos_test): Add more test cases.
251         (sin_test): Likewise.
252         (sincos_test): Likewise.
253
254 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
255
256         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
257         (IFUNC_RESOLVE): Make pointers to the specialized implementations
258         hidden.
259         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
260
261 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
262
263         [BZ #14538]
264         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
265         first element of the GOT.
266         (elf_machine_load_address): Return the difference between
267         the runtime address of _DYNAMIC and elf_machine_dynamic ().
268
269 2012-09-01  Allan McRae  <allan@archlinux.org>
270
271         [BZ #13412]
272         * configure.in (AWK): Require gawk version 3.0 or later.
273         * configure: Regenerated.
274
275 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
276
277         * sysdeps/unix/sysv/linux/kernel-features.h
278         (__ASSUME_POSIX_CPU_TIMERS): Remove.
279         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
280         [__NR_clock_getres]: Make code unconditional.
281         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
282         (clock_getcpuclockid): Remove code left unreachable by removal of
283         conditionals.
284         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
285         code unconditional.
286         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
287         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
288         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
289         Make code unconditional.
290         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
291         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
292         * sysdeps/unix/sysv/linux/clock_settime.c
293         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
294         conditional code.
295         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
296         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
297
298 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
299
300         [BZ #14476]
301         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
302         scripts/test-installation.pl.
303
304         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
305         and $ld_so_version if it is set.
306
307 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
308
309         [BZ #14516]
310         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
311         failure if reading from procfs failed.
312         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
313
314 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
315
316         * sysdeps/unix/sysv/linux/kernel-features.h
317         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
318         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
319         Remove conditional code.
320         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
321         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
322         Remove conditional code.
323         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
324         * sysdeps/unix/sysv/linux/i386/fxstat.c
325         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
326         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
327         * sysdeps/unix/sysv/linux/i386/fxstatat.c
328         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
329         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
330         * sysdeps/unix/sysv/linux/i386/lxstat.c
331         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
332         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
333         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
334         Remove conditional code.
335         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
336         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
337         Remove conditional code.
338         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
339         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
340         <kernel-features.h>.
341         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
342         Remove.
343         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
344         Remove conditional code.
345         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
346         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
347         Remove conditional.
348
349 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
350
351         [BZ #5400]
352         * NEWS: Add fixed bug number.
353
354 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
355
356         [BZ #14519]
357         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
358         underflowing exponent in case of negative sign.
359         * stdlib/tst-strtod-round-data: Add more tests.
360         * stdlib/tst-strtod-round.c (tests): Regenerated.
361
362         [BZ #3479]
363         * stdlib/strtod_l.c (NDIG): Remove.
364         (HEXNDIG): Likewise.
365         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
366         smallest representable value.
367         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
368         lie within an exact representation of 1/2 ulp of the result.
369         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
370         unconditionally.
371         (TENS_P9_IDX): Define unconditionally.
372         (TENS_P9_SIZE): Likewise.
373         (TENS_P10_IDX): Likewise.
374         (TENS_P10_SIZE): Likewise.
375         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
376         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
377         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
378         entries for 10^2^13 and 10^2^14.
379         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
380         (TENS_P13_IDX): Define.
381         (TENS_P13_SIZE): Likewise.
382         (TENS_P14_IDX): Likewise.
383         (TENS_P14_SIZE): Likewise.
384         (_fpioconst_pow10): Change array size to
385         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
386         unconditional.
387         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
388         1024]: Add entries for 10^2^13 and 10^2^14.
389         [LAST_POW10 > _LAST_POW10]: Remove #error.
390         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
391         (_fpioconst_pow10): Change array size to
392         FPIOCONST_POW10_ARRAY_SIZE.
393         * stdlib/gen-fpioconst.c: New file.
394         * stdlib/gen-tst-strtod-round.c: Likewise.
395         * stdlib/tst-strtod-round-data: Likewise.
396         * stdlib/tst-strtod-round.c: Likewise.
397         * stdlib/Makefile (tests): Add tst-strtod-round.
398
399         [BZ #14459]
400         * stdlib/strtod_l.c: Include <stdint.h>.
401         (NDEBUG): Do not define.
402         (round_and_return): Change EXPONENT parameter to type intmax_t.
403         Rearrange calculations to avoid internal overflow possibilities.
404         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
405         Rearrange calculations to avoid internal overflow possibilities.
406         Assert that number fits inside MPNSIZE limbs.
407         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
408         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
409         calculations and add assertions to avoid internal overflow
410         possibilities.  Add casts to avoid signed/unsigned operations.
411         * stdlib/tst-strtod-overflow.c: New file.
412         * stdlib/Makefile (tests): Add tst-strtod-overflow.
413
414 2012-08-25  Marek Polacek  <polacek@redhat.com>
415
416         * time/time.h: Fix some typos in comments.
417
418 2012-08-23  Roland McGrath  <roland@hack.frob.com>
419
420         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
421         * posix/tst-rfc3484-2.c: Likewise.
422         * posix/tst-rfc3484-3.c: Likewise.
423
424 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
425
426         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
427         (EF_ARM_ABI_FLOAT_HARD): Likewise.
428
429 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
430
431         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
432         #include of fxstatat64.c.
433
434 2012-08-22  Roland McGrath  <roland@hack.frob.com>
435
436         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
437         * shadow/getspent_r.c: Likewise.
438         * shadow/getspnam.c: Likewise.
439         * shadow/getspnam_r.c: Likewise.
440         * gshadow/getsgent.c: Likewise.
441         * gshadow/getsgent_r.c: Likewise.
442         * gshadow/getsgnam.c: Likewise.
443         * gshadow/getsgnam_r.c: Likewise.
444         * inet/getnetbyad.c: Likewise.
445         * inet/getnetbyad_r.c: Likewise.
446         * inet/getnetbynm.c: Likewise.
447         * inet/getnetbynm_r.c: Likewise.
448         * inet/getnetent.c: Likewise.
449         * inet/getnetent_r.c: Likewise.
450         * inet/getproto.c: Likewise.
451         * inet/getproto_r.c: Likewise.
452         * inet/getprtent.c: Likewise.
453         * inet/getprtent_r.c: Likewise.
454         * inet/getprtname.c: Likewise.
455         * inet/getprtname_r.c: Likewise.
456         * inet/getrpcbyname.c: Likewise.
457         * inet/getrpcbyname_r.c: Likewise.
458         * inet/getrpcbynumber.c: Likewise.
459         * inet/getrpcbynumber_r.c: Likewise.
460         * inet/getrpcent.c: Likewise.
461         * inet/getrpcent_r.c: Likewise.
462         * inet/getaliasent.c: Likewise.
463         * inet/getaliasent_r.c: Likewise.
464         * inet/getaliasname.c: Likewise.
465         * inet/getaliasname_r.c: Likewise.
466         * nscd/getgrgid_r.c: Likewise.
467         * nscd/getgrnam_r.c: Likewise.
468         * nscd/gethstbyad_r.c: Likewise.
469         * nscd/gethstbynm3_r.c: Likewise.
470         * nscd/getpwnam_r.c: Likewise.
471         * nscd/getpwuid_r.c: Likewise.
472         * nscd/getsrvbynm_r.c: Likewise.
473         * nscd/getsrvbypt_r.c: Likewise.
474         * nscd/gai.c: Likewise.
475
476         * configure.in (build_nscd): New substituted variable, set
477         by --disable-build-nscd and defaults to $use_nscd.
478         * configure: Regenerated.
479         * config.make.in (build-nscd): New substituted variable.
480         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
481         Change conditional to require [$(build-nscd) = yes] as well.
482         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
483
484         [BZ# 13696]
485         * configure.in (use_nscd): New substituted variable, set by
486         --disable-nscd.  If enabled, define USE_NSCD.
487         * configure: Regenerated.
488         * config.h.in: Add USE_NSCD.
489         * config.make.in (use-nscd): New substituted variable.
490         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
491         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
492         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
493         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
494         (CFLAGS-getgrnam_r.c): Likewise.
495         (CFLAGS-initgroups.c): Likewise.
496         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
497         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
498         Variables removed.
499         * inet/getnetgrent_r.c
500         (nscd_setnetgrent): New function, broken out of ...
501         (setnetgrent): ... here.  Call it.
502         (innetgr): Conditionalize nscd bits on [USE_NSCD].
503         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
504         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
505         * nscd/Makefile (routines, aux): Move definitions after include of
506         Makeconfig.  Conditionalize on [$(use-nscd) != no].
507         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
508         Conditionalize on [USE_NSCD].
509         (is_nscd, nscd_init_cb): Likewise.
510         (nss_load_library): Conditionalize init callback on [USE_NSCD].
511         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
512         * nss/nss_db/db-init.c: Likewise.
513         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
514         [USE_NSCD].
515         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
516         (make_request): Use it.
517         (cache_valid_p): New function.
518         (__check_pf): Use it.
519         * NEWS: Add item for --disable-nscd.
520
521 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
522
523         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
524         to support sed >= 4.2.1-20-ga9bf076.
525         * configure: Regenerated.
526
527 2012-08-22  Roland McGrath  <roland@hack.frob.com>
528
529         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
530         Conditionalize whole body on [IREL].
531
532 2012-08-22  Jeff Law <law@redhat.com>
533
534         [BZ #14505]
535         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
536         if the family is PF_UNSPEC.
537
538 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
539
540         * Makerules (lib-version): Rename from V.
541         (install-lib-nosubdir): Change V to lib-version.
542
543 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
544
545         [BZ #14252]
546         * powerpc32/power6/wcschr.c: New file.
547         * powerpc32/power6/wcscpy.c: New file.
548         * powerpc32/power6/wcsrchr.c: New file.
549         * powerpc64/power6/wcschr.c: New file.
550         * powerpc64/power6/wcscpy.c: New file.
551         * powerpc64/power6/wcsrchr.c: New file.
552
553 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
554
555         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
556         (two_way_short_needle): Use it.
557         * string/strstr.c (AVAILABLE1_USES_J): Define.
558         * string/strcasestr.c: Likewise.
559
560         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
561         array references.
562         * string/strcasestr.c (TOLOWER): Make side-effect safe.
563
564         [BZ #11607]
565         * NEWS: Add an entry.
566         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
567         define their defaults.
568         (two_way_short_needle): Detect end-of-string on-the-fly.
569         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
570         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
571         * string/bug-strcasestr1.c: New test.
572         * string/Makefile: Run it.
573
574 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
575
576         [BZ #11607]
577         * string/str-two-way.h (two_way_short_needle): Optimize matching of
578         the first character.
579
580 2012-08-21  Roland McGrath  <roland@hack.frob.com>
581
582         * csu/elf-init.c (__libc_csu_irel): Function removed.
583         * csu/libc-start.c (apply_irel): New function.
584         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
585
586 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
587
588         * sysdeps/unix/sysv/linux/kernel-features.h
589         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
590         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
591         <kernel-features.h>.
592         [__NR_fadvise64_64]: Make code unconditional.
593         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
594         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
595         !__NR_fadvise64_64)]: Likewise.
596         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
597         !__NR_fadvise64_64))]: Likewise.
598         [__NR_fadvise64]: Make code unconditional.
599         [!__NR_fadvise64]: Remove conditional code.
600         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
601         <kernel-features.h>.
602         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
603         unconditional.
604         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
605         conditional code.
606         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
607         not include <kernel-features.h>.
608         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
609         unconditional.
610         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
611         conditional code.
612         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
613         include <kernel-features.h>.
614         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
615         unconditional.
616         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
617         conditional code.
618
619 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
620
621         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
622         slight instruction rearrangements per scrollpipe analysis.
623         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
624
625 2012-08-20  Roland McGrath  <roland@hack.frob.com>
626
627         * manual/syslog.texi (syslog; vsyslog, closelog):
628         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
629         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
630
631         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
632         DSOCAPS to match condition on defining it.
633
634 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
635
636         * sysdeps/unix/sysv/linux/kernel-features.h
637         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
638         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
639         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
640         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
642         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
643         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
645         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
646         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
647
648         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
649         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
650
651         * sysdeps/unix/sysv/linux/kernel-features.h
652         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
653         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
654         unconditional.
655         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
656         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
657         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
658         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
659         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
660         Make code unconditional.
661         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
662         (__mmap64) [!__NR_mmap2]: Likewise.
663         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
664         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
665         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
666         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
667         [__NR_mmap2]: Make code unconditional.
668         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
669         (__mmap64) [!__NR_mmap2]: Likewise.
670
671 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
672
673         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
674
675 2012-08-18  Andreas Jaeger  <aj@suse.de>
676
677         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
678
679 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
680
681         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
682         * include/unistd.h (__have_sock_cloexec): Likewise.
683         (__have_pipe2): Likewise.
684         (__have_dup3): Likewise.
685
686 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
687
688         [BZ #9685]
689         * include/unistd.h (__have_pipe2): Change define into an extern int.
690         (__have_dup3): Likewise.
691         * socket/have_sock_cloexec.c: Include fcntl.h.
692         (__have_pipe2): New variable.
693         (__have_dup3): Likewise.
694
695 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
696
697         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
698
699 2012-08-17  Marek Polacek  <polacek@redhat.com>
700
701         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
702         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
703
704 2012-08-17  Roland McGrath  <roland@hack.frob.com>
705
706         * configure.in: Add AC_SUBST for sysheaders.
707         * configure: Regenerated.
708         * config.make.in (sysheaders): New substituted variable.
709
710         * sysdeps/unix/mkfifo.c: Moved ...
711         * sysdeps/posix/mkfifo.c: ... here.
712         * sysdeps/unix/mkfifoat.c: Moved ...
713         * sysdeps/posix/mkfifoat.c: ... here.
714
715         * sysdeps/unix/utime.c: Moved ...
716         * sysdeps/posix/utime.c: ... here.
717
718         * sysdeps/unix/time.c: Moved ...
719         * sysdeps/posix/time.c: ... here.
720         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
721         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
722
723         * sysdeps/unix/nice.c: Moved ...
724         * sysdeps/posix/nice.c: ... here.
725
726         * sysdeps/unix/alarm.c: Moved ...
727         * sysdeps/posix/alarm.c: ... here.
728
729         * intl/Makefile ($(codeset_mo)): Depend on the input file.
730
731 2012-08-17  Jeff Law <law@redhat.com>
732
733         * intl/Makefile (codeset_mo): New variable.
734         ($(codeset_mo)): New target.
735         (tst-codeset.out): Depend on that.  Remove explicit rule.
736         (tst-gettext3.out, tst-gettext5.out): Likewise.
737         (LOCPATH-ENV, tst-codeset-ENV): New variables.
738         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
739         * intl/tst-codeset.sh: Remove.
740         * intl/tst-gettext3.sh: Likewise.
741         * intl/tst-gettext5.sh: Likewise.
742
743 2012-08-17  Roland McGrath  <roland@hack.frob.com>
744
745         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
746         * sysdeps/unix/syscalls.list: ... here.
747
748         * sysdeps/posix/getaddrinfo.c
749         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
750         (gaiconf_init, gaiconf_reload): Use them.
751         [!_STATBUF_ST_NSEC]
752         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
753         Define using time_t rather than struct timespec.
754
755         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
756         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
757         Macros removed.
758         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
759         [!NO_THREADS].
760         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
761         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
762         Likewise.
763
764         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
765         __libc_cleanup_push argument.
766
767         * bits/param.h: New file.
768         * misc/sys/param.h: New file.
769         * include/sys/param.h: New file.
770         * misc/Makefile (headers): Add bits/param.h.
771         * sysdeps/generic/sys/param.h: File removed.
772         * sysdeps/unix/sysv/linux/bits/param.h: New file.
773         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
774         * sysdeps/mach/hurd/bits/param.h: New file.
775         * sysdeps/mach/hurd/sys/param.h: New file.
776
777         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
778         last change.
779
780         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
781         [_IO_MTSAFE_IO].
782         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
783         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
784         New macros.
785
786         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
787         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
788         rather than -D_IO_MTSAFE_IO conditionally.
789         * stdio-common/Makefile (CPPFLAGS): Likewise.
790         * wcsmbs/Makefile (CPPFLAGS): Likewise.
791         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
792         Use $(libio-mtsafe).
793         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
794         of -D_IO_MTSAFE_IO.
795         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
796         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
797         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
798         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
799         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
800         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
801         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
802         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
803         (CFLAGS-fread_u_chk.c): Likewise.
804         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
805         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
806         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
807         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
808         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
809         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
810         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
811         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
812         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
813
814         * libio/Makefile: Test [$(libc-reentrant) = yes]
815         instead of [$(filter %REENTRANT, $(defines)) nonempty].
816
817         * Makeconfig
818         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
819         * sysdeps/pthread/configure: File removed.
820         * sysdeps/pthread/Makeconfig: New file.
821         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
822         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
823
824 2012-08-16  Gary Benson  <gbenson@redhat.com>
825
826         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
827         unmapping the first object in a namespace.
828
829 2012-08-16  Roland McGrath  <roland@hack.frob.com>
830
831         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
832         (__internal_setnetgrent): ... this.  Add internal_function to
833         definition.  Add libc_hidden_def.
834         (setnetgrent): Update caller.
835         (internal_endnetgrent): Renamed to ...
836         (__internal_endnetgrent): ... this.  Add internal_function to
837         definition.  Add libc_hidden_def.
838         (endnetgrent): Update caller.
839         (internal_getnetgrent_r): Renamed to ...
840         (__internal_getnetgrent_r): ... this.  Add internal_function to
841         definition.  Add libc_hidden_def.
842         (__getnetgrent_r): Update caller.
843         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
844
845 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
846
847         * stdlib/longlong.h: Update from GCC.
848
849 2012-08-16  Roland McGrath  <roland@hack.frob.com>
850
851         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
852         on _QL, which is set by umul_ppmm but never used.
853         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
854         variables, which are set by GMP macros but never used.
855         * stdio-common/_itowa.c (_itowa): Likewise.
856         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
857         * stdlib/mod_1.c (mpn_mod_1): Likewise.
858
859 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
860
861         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
862         struct La_sh_regs is not constant.
863         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
864         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
865         and struct La_sparc64_regs are not constant.
866
867 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
868
869         * sysdeps/unix/sysv/linux/kernel-features.h
870         (__ASSUME_POSIX_TIMERS): Remove.
871         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
872         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
873         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
874         Make code unconditional.
875         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
876         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
877         Make code unconditional.
878         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
879         * sysdeps/unix/sysv/linux/clock_nanosleep.c
880         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
881         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
882         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
883         Make code unconditional.
884         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
885         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
886         (__libc_missing_posix_timers): Remove.
887
888 2012-08-15  Roland McGrath  <roland@hack.frob.com>
889
890         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
891         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
892
893         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
894
895         * elf/dl-sym.c: Include <stdlib.h>.
896
897         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
898         constants, which avoids warnings in 32-bit builds.
899
900         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
901         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
902
903         * misc/lseek.c: File moved to ...
904         * io/lseek.c: ... here.
905
906         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
907
908         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
909         shifting LEN more than 31 bits at once.
910
911 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
912
913         [BZ #14195]
914         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
915         segmentation fault for a case of two empty input strings.
916         * string/test-strncasecmp.c (check1): Renamed to...
917         (bz12205): ...this.
918         (bz14195): Add new testcase for two empty input strings and N > 0.
919         (test_main): Call new testcase, adapt for renamed function.
920
921 2012-08-15  Andreas Jaeger  <aj@suse.de>
922
923         [BZ #14090]
924         * crypt/md5test2.c: New test, based on test supplied by Serge
925         Belyshev <belyshev@depni.sinp.msu.ru>.
926         * crypt/Makefile (xtests): Add md5test-giant..
927         * crypt/Makefile ($(objpfx)md5test-giant): Add.
928
929 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
930
931         [BZ #14090]
932         * crypt/md5.c (md5_process_block): Don't assume the buffer
933         length is less than 2**32.
934         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
935         length is less than 2**64.
936
937 2012-08-15  Roland McGrath  <roland@hack.frob.com>
938
939         * string/str-two-way.h: Include <sys/param.h>.
940         (MAX): Macro removed.
941
942         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
943         Move #define and #undef of memmove to just before and after
944         including <string.h>.
945
946         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
947         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
948         and after including <string.h>.  Move declarations of
949         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
950         to before #include "string/memmove.c".
951
952         * include/dirent.h: Declare __getdirentries.
953
954         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
955         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
956
957 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
958
959         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
960         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
961         * sysdeps/i386/configure: Regenerated.
962         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
963         STABS_CURRENT_FILE, and STABS_FUN.
964         (END): Remove call to STABS_FUN_END.
965         (STABS_CURRENT_FILE1): Delete.
966         (STABS_CURRENT_FILE): Likewise.
967         (STABS_FUN): Likewise.
968         (STABS_FUN_END): Likewise.
969         (STABS_FUN2): Likewise.
970         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
971         * sysdeps/x86_64/configure: Regenerated.
972
973 2012-08-14  Roland McGrath  <roland@hack.frob.com>
974
975         * elf/dl-open.c: Include <atomic.h>.
976         * elf/dl-lookup.c: Likewise.
977
978 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
979
980         * sysdeps/unix/sysv/linux/kernel-features.h
981         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
982         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
983         unconditionally.
984         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
985         unconditionally.
986         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
987         condition on __ASSUME_CLONE_THREAD_FLAGS.
988
989 2012-08-14  Andreas Jaeger  <aj@suse.de>
990
991         * sysdeps/i386/fpu/libm-test-ulps: Update.
992
993 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
994
995         * include/atomic.h (atomic_exchange_and_add): Split into ...
996         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
997         New atomic macros.
998
999 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
1000
1001         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1002
1003 2012-08-13  Jeff Law <law@redhat.com>
1004
1005         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1006         null byte in the output string.
1007
1008 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1009
1010         * sysdeps/unix/sysv/linux/kernel-features.h
1011         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1012         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1013         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1014         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1015         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1016         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1017         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1018
1019 2012-08-09  Jeff Law <law@redhat.com>
1020
1021         [BZ #13939]
1022         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1023         When avoid_arena is set, don't retry in the that arena.  Pick the
1024         next one, whatever it might be.
1025         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1026         (arena_lock): Pass in new parameter to arena_get2.
1027         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1028         arena_get2.
1029         (__libc_malloc): Unify retrying after main arena failure with
1030         __libc_memalign version.
1031         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1032
1033 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1034
1035         [BZ #14166]
1036         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1037         to __redirect_strstr.
1038         (__strstr_sse42): Use typeof __redirect_strstr.
1039         (__strstr_ia32): Likewise.
1040         (__libc_strstr): New prototype.
1041         (strstr): Renamed to ...
1042         (__libc_strstr): This.
1043         (strstr): New strong alias of __libc_strstr.
1044         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1045         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1046         __redirect_time.
1047         Include <time.h>.
1048         (__libc_time): New prototype.
1049         (time_ifunc): Replace time with __libc_time.
1050         (time): New strong alias and hidden definition of __libc_time.
1051         (__GI_time): Remove strong alias.
1052         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1053         Include <stddef.h>.
1054         (memmove): Redefined to __redirect_memmove.
1055         (__memmove_sse2): Use typeof __redirect_memmove.
1056         (__memmove_ssse3): Likewise.
1057         (__memmove_ssse3_back): Likewise.
1058         (__libc_memmove): New prototype.
1059         (memmove): Renamed to ...
1060         (__libc_memmove): This.
1061         (memmove): New strong alias of __libc_memmove.
1062
1063 2012-08-08  Mark Salter  <msalter@redhat.com>
1064
1065         * elf/elf.h
1066         (R_MN10300_TLS_GD): Define.
1067         (R_MN10300_TLS_LD): Likewise.
1068         (R_MN10300_TLS_LDO): Likewise.
1069         (R_MN10300_TLS_GOTIE): Likewise.
1070         (R_MN10300_TLS_IE): Likewise.
1071         (R_MN10300_TLS_LE): Likewise.
1072         (R_MN10300_TLS_DTPMOD): Likewise.
1073         (R_MN10300_TLS_DTPOFF): Likewise.
1074         (R_MN10300_TLS_TPOFF): Likewise.
1075         (R_MN10300_SYM_DIFF): Likewise.
1076         (R_MN10300_ALIGN): Likewise.
1077         (R_MN10300_NUM): Update.
1078
1079 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1080
1081         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1082         Remove.
1083
1084 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1085
1086         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1087
1088         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1089         sysdeps/unix -> sysdeps/posix move.
1090         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1091
1092 2012-08-07      Allan McRae     <allan@archlinux.org>
1093
1094         [BZ #14303]
1095         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1096         (SUNOS_CPP): Likewise.
1097         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1098         not found.
1099         (open_input): Call CPP using execvp.
1100
1101 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1102
1103         * sysdeps/unix/sysv/linux/kernel-features.h
1104         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1105         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1106         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1107         (__ASSUME_WAITID_SYSCALL): Likewise.
1108         * sysdeps/unix/sysv/linux/dl-execstack.c
1109         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1110         code unconditional.
1111         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1112         conditional code.
1113         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1114         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1115         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1116         code.
1117         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1118         unconditional.
1119         [__ASSUME_WAITID_SYSCALL]: Likewise.
1120         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1121
1122 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1123
1124         * sysdeps/unix/closedir.c: Renamed to ...
1125         * sysdeps/posix/closedir.c: ... here.
1126         * sysdeps/unix/dirfd.c: Renamed to ...
1127         * sysdeps/posix/dirfd.c: ... here.
1128         * sysdeps/unix/dirstream.h: Renamed to ...
1129         * sysdeps/posix/dirstream.h: ... here.
1130         * sysdeps/unix/fdopendir.c: Renamed to ...
1131         * sysdeps/posix/fdopendir.c: ... here.
1132         * sysdeps/unix/opendir.c: Renamed to ...
1133         * sysdeps/posix/opendir.c: ... here.
1134         * sysdeps/unix/readdir.c: Renamed to ...
1135         * sysdeps/posix/readdir.c: ... here.
1136         * sysdeps/unix/readdir_r.c: Renamed to ...
1137         * sysdeps/posix/readdir_r.c: ... here.
1138         * sysdeps/unix/rewinddir.c: Renamed to ...
1139         * sysdeps/posix/rewinddir.c: ... here.
1140         * sysdeps/unix/seekdir.c: Renamed to ...
1141         * sysdeps/posix/seekdir.c: ... here.
1142         * sysdeps/unix/telldir.c: Renamed to ...
1143         * sysdeps/posix/telldir.c: ... here.
1144         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1145         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1146         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1147         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1148
1149         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1150         * bits/fcntl.h: ... here.
1151
1152         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1153         not 0.
1154         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1155         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1156         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1157         (struct flock): Move l_start, l_len to the beginning.
1158         Use __pid_t for l_pid.
1159         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1160         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1161         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1162         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1163         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1164         [__USE_LARGEFILE64] (struct flock64): New type.
1165         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1166
1167         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1168         * bits/dirent.h: ... here.
1169
1170         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1171         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1172
1173 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1174
1175         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1176         Change from 2.6.0 to 2.6.16.
1177         * sysdeps/unix/sysv/linux/configure: Regenerated.
1178         * sysdeps/unix/sysv/linux/kernel-features.h
1179         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1180         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1181         version.
1182         (__ASSUME_UTIMES): Likewise.
1183         (__ASSUME_CLONE_STOPPED): Remove.
1184         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1185         architectures, not kernel version.
1186         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1187         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1188         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1189         (__ASSUME_WAITID_SYSCALL): Likewise.
1190         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1191         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1192         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1193         refer to older versions.
1194
1195 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1196
1197         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1198         Define alphasort64 as an alias.
1199         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1200         Define versionsort64 as an alias.
1201         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1202         Define scandir64 as an alias.
1203         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1204         Define scandirat64 as an alias.
1205         * dirent/alphasort64.c (alphasort64):
1206         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1207         * dirent/versionsort64.c: Likewise.
1208         * dirent/scandir64.c: Likewise.
1209         * dirent/scandirat64.c: Likewise.
1210         * sysdeps/wordsize-64/alphasort.c: File removed.
1211         * sysdeps/wordsize-64/alphasort64.c: File removed.
1212         * sysdeps/wordsize-64/scandir.c: File removed.
1213         * sysdeps/wordsize-64/scandir64.c: File removed.
1214         * sysdeps/wordsize-64/scandirat.c: File removed.
1215         * sysdeps/wordsize-64/scandirat64.c: File removed.
1216         * sysdeps/wordsize-64/versionsort.c: File removed.
1217         * sysdeps/wordsize-64/versionsort64.c: File removed.
1218         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1219         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1220         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1221         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1222         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1223         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1224         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1225         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1226
1227         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1228         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1229         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1230         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1231         [defined __arch64__ || defined __sparcv9]
1232         (__INO_T_MATCHES_INO64_T): New macro.
1233         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1234         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1235         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1236         * sysdeps/unix/sysv/linux/bits/dirent.h
1237         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1238         (_DIRENT_MATCHES_DIRENT64): New macro.
1239
1240         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1241         Define lockf64 as an alias.
1242         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1243         Define fseeko64 as an alias.
1244         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1245         Define ftello64 as an alias.
1246         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1247         Define _IO_fgetpos64 and fgetpos64 as aliases.
1248         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1249         Define _IO_fsetpos64 and fsetpos64 as aliases.
1250         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1251         Conditionalize body on this.
1252         * libio/fseeko64.c: Likewise.
1253         * libio/ftello64.c: Likewise.
1254         * libio/iofgetpos64.c: Likewise.
1255         * libio/iofsetpos64.c: Likewise.
1256         * sysdeps/wordsize-64/lockf.c: File removed.
1257         * sysdeps/wordsize-64/lockf64.c: File removed.
1258         * sysdeps/wordsize-64/fseeko.c: File removed.
1259         * sysdeps/wordsize-64/fseeko64.c: File removed.
1260         * sysdeps/wordsize-64/ftello.c: File removed.
1261         * sysdeps/wordsize-64/ftello64.c: File removed.
1262         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1263         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1264         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1265         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1266         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1267         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1268         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1269         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1270         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1271         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1272         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1273         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1274         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1275         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1276
1277         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1278         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1279         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1280         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1281         [defined __arch64__ || defined __sparcv9]
1282         (__OFF_T_MATCHES_OFF64_T): New macro.
1283         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1284         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1285         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1286         (__OFF_T_MATCHES_OFF64_T): New macro.
1287
1288 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1289
1290         * stdlib/secure-getenv.c (__secure_getenv): Replace
1291         GLIBC_2_16 with GLIBC_2_17.
1292
1293 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1294
1295         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1296         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1297
1298 2012-08-03  David S. Miller  <davem@davemloft.net>
1299
1300         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1301
1302 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1303
1304         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1305         Remove.
1306         (__ASSUME_CORRECT_SI_PID): Likewise.
1307         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1308         (__ASSUME_TMPFS_NAME): Likewise.
1309         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1310         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1311         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1312         (HAVE_AUX_SECURE): Make definition unconditional.
1313         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1314         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1315
1316 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1317
1318         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1319         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1320         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1321         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1322         __eloop_threshold instead of SYMLOOP_MAX.
1323
1324         * sysdeps/generic/eloop-threshold.h: New file.
1325         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1326         of MAXSYMLINKS.
1327         * elf/chroot_canon.c (chroot_canon): Likewise.
1328
1329 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1330
1331         [BZ #13717]
1332         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1333         Change to 2.6.0 everywhere.
1334         * sysdeps/unix/sysv/linux/configure: Regenerated.
1335         * sysdeps/unix/sysv/linux/kernel-features.h
1336         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1337         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1338         kernel versions.
1339         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1340         (__ASSUME_FUTEX_REQUEUE): Remove.
1341         (__ASSUME_STATFS64): Define unconditionally.
1342         (__ASSUME_AT_SECURE): Likewise.
1343         (__ASSUME_CORRECT_SI_PID): Likewise.
1344         (__ASSUME_TGKILL): Define without depending on kernel version for
1345         i386.
1346         (__ASSUME_UTIMES): Likewise.
1347         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1348         kernel version.
1349         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1350         (__ASSUME_TMPFS_NAME): Likewise.
1351         * README: Update reference to Linux kernel versions.
1352
1353 2012-08-02  Marek Polacek  <polacek@redhat.com>
1354
1355         [BZ# 14150]
1356         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1357         libc_cv_asm_type_prefix with %.
1358         * configure: Regenerated.
1359         * include/libc-symbols.h: Remove comment about
1360         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1361         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1362         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1363         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1364         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1365         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1366         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1367         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1368         * elf/tst-unique2mod1.c: Likewise.
1369         * elf/tst-unique1mod2.c: Likewise.
1370         * elf/tst-unique1mod1.c: Likewise.
1371         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1372         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1373         Replace ASM_TYPE_DIRECTIVE with .type.
1374         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1375         * sysdeps/i386/sysdep.h: Likewise.
1376         * sysdeps/x86_64/sysdep.h: Likewise.
1377         * sysdeps/sh/sysdep.h: Likewise.
1378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1379         Do not define ASM_TYPE_DIRECTIVE.
1380         * sysdeps/powerpc/sysdep.h: Likewise.
1381         * sysdeps/powerpc/powerpc32/sysdep.h:
1382         Replace ASM_TYPE_DIRECTIVE with .type.
1383         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1384         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1385         * sysdeps/i386/fpu/e_powf.S: Likewise.
1386         * sysdeps/i386/fpu/e_expl.S: Likewise.
1387         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1388         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1389         * sysdeps/i386/fpu/e_pow.S: Likewise.
1390         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1391         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1392         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1393         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1394         * sysdeps/i386/fpu/e_log2.S: Likewise.
1395         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1396         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1397         * sysdeps/i386/fpu/e_powl.S: Likewise.
1398         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1399         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1400         * sysdeps/i386/fpu/e_logl.S: Likewise.
1401         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1402         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1403         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1404         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1405         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1406         * sysdeps/i386/fpu/e_log.S: Likewise.
1407         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1408         * sysdeps/i386/fpu/e_logf.S: Likewise.
1409         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1410         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1411         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1412         * sysdeps/i386/fpu/e_log10.S: Likewise.
1413         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1414         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1415         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1416         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1417         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1418         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1419         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1420         * sysdeps/i386/i686/strtok.S: Likewise.
1421         * sysdeps/i386/i386-mcount.S: Likewise.
1422         * sysdeps/i386/strtok.S: Likewise.
1423         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1424         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1425         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1426         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1427         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1428         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1429         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1430         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1431         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1432         * sysdeps/x86_64/_mcount.S: Likewise.
1433         * sysdeps/x86_64/strtok.S: Likewise.
1434         * sysdeps/sh/_mcount.S: Likewise.
1435
1436 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1437
1438         * libio/iofopen.c: Include <fcntl.h>.
1439         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1440         (_IO_fopen64, fopen64): Define as aliases.
1441         * libio/iofopen64.c: Include <fcntl.h>.
1442         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1443         Conditionalize body on this.
1444         * sysdeps/wordsize-64/iofopen.c: File removed.
1445         * sysdeps/wordsize-64/iofopen64.c: File removed.
1446
1447 2012-08-01  Marek Polacek  <polacek@redhat.com>
1448
1449         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1450         Use dlfcn directly instead of a variable.
1451         (binfmt-subdir): Do not define.
1452         (dlfcn): Likewise.
1453
1454 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1455
1456         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1457         Remove all definitions.
1458         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1459         <kernel-features.h>.
1460         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1461         (miss_F_GETOWN_EX): Remove all definitions.
1462         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1463         macro definition.
1464         [!__ASSUME_FCNTL64]: Remove conditional code.
1465         [__ASSUME_FCNTL64]: Make code unconditional.
1466         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1467         <kernel-features.h>.
1468         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1469         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1470         (lockf64) [__NR_fcntl64]: Make code unconditional.
1471         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1472
1473         * sysdeps/unix/sysv/linux/kernel-features.h
1474         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1475         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1476         Make code unconditional.
1477         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1478         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1480         [__NR_vfork]: Make code unconditional.
1481         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1482         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1484         [__NR_vfork]: Make code unconditional.
1485         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1486         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1487
1488 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1489
1490         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1491         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1492
1493         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1494         Define mkstemp64 as an alias.
1495         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1496         Define mkstemps64 as an alias.
1497         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1498         Define mkostemp64 as an alias.
1499         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1500         Define mkostemps64 as an alias.
1501         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1502         Conditionalize body on this.
1503         * misc/mkostemp64.c: Likewise.
1504         * misc/mkostemps64.c: Likewise.
1505         * misc/mkstemps64.c: Likewise.
1506         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1507         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1508         * sysdeps/wordsize-64/mkostemp.c: File removed.
1509         * sysdeps/wordsize-64/mkstemp.c: File removed.
1510         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1511         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1512         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1513         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1514
1515         [BZ #14138]
1516         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1517         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1518         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1519         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1520
1521         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1522         compat_symbol macros from <shlib-compat.h> rather than the underlying
1523         default_symbol_version and symbol_version macros, so that DEFAULT
1524         lines in shlib-versions are respected.
1525         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1526
1527 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1528
1529         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1530         Declare with warn_unused_result.
1531         (setgid, setregid, setegid, setresgid): Likewise.
1532         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1533         Likewise.
1534         * WUR-REPORT: Remove set*id functions.
1535
1536 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1537
1538         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1539
1540 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1541
1542         * include/sys/socket.h (__libc_accept, __libc_accept4):
1543         Add attribute_hidden.
1544         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1545
1546         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1547         use of PTR_MANGLE.
1548         * inet/getnetgrent_r.c (setup): Likewise.
1549
1550         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1551
1552 2012-07-31  David S. Miller  <davem@davemloft.net>
1553
1554         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1555
1556 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1557
1558         [BZ #13629]
1559         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1560         value between 1.0 and 2.0 and smaller part has absolute value less
1561         than 1.0.
1562         * math/s_clog10.c (__clog10): Likewise.
1563         * math/s_clog10f.c (__clog10f): Likewise.
1564         * math/s_clog10l.c (__clog10l): Likewise.
1565         * math/s_clogf.c (__clogf): Likewise.
1566         * math/s_clogl.c (__clogl): Likewise.
1567         * math/libm-test.inc (clog_test): Add more tests.
1568         (clog10_test): Likewise.
1569         * sysdeps/i386/fpu/libm-test-ulps: Update.
1570         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1571
1572 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1573
1574         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1575         Exit with zero in case no suitable GID is found, and write a
1576         message to standard error.
1577
1578 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1579
1580         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1581         rather than to 1.
1582         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1583         (MAXPATHLEN): Removed.
1584         (NOGROUP, NODEV): New macros.
1585         (setbit, clrbit, isset, isclr): New macros.
1586         (howmany, roundup, powerof2): New macros.
1587         (DEV_BSIZE): New macro.
1588
1589         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1590         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1591
1592         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1593         definition on [!__NO_LONG_DOUBLE_MATH].
1594
1595         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1596         PTR_MANGLE and PTR_DEMANGLE.
1597
1598         * socket/accept4.c (accept4): Rename to __libc_accept4.
1599         Define accept4 as a weak alias.
1600
1601         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1602         on [_DIRENT_HAVE_D_TYPE].
1603         * io/ftw.c (ftw_dir): Likewise.
1604
1605         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1606
1607         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1608
1609         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1610         Use the BSD numbers rather than the arbitrary ones we had.
1611         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1612         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1613         (SIGXCPU, SIGXFSZ): New macros.
1614         (_NSIG): Now 32.
1615
1616         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1617         initializer on [_LIBC_REENTRANT].
1618
1619         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1620         definitions inside [_POSIX_MAPPED_FILES].
1621
1622         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1623
1624         * dirent/opendir.c: Include <fcntl.h>.
1625
1626         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1627         (__libc_getspecific): Likewise.
1628         (__libc_key_create): Likewise.
1629
1630         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1631         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1632         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1633         (tmpfile64): Define as alias.
1634         * sysdeps/wordsize-64/tmpfile.c: File removed.
1635         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1636         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1637         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1638
1639         * stdio-common/vfscanf.c: Include <stdbool.h>.
1640         * nss/makedb.c: Likewise.
1641         * stdio-common/_i18n_number.h: Likewise.
1642         * argp/argp-help.c: Likewise.
1643         * posix/wordexp.c: Likewise.
1644         * sysdeps/posix/spawni.c: Likewise.
1645         * nss/nss_files/files-initgroups.c: Likewise.
1646         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1647         * nss/nss_files/files-initgroups.c: Likewise.
1648         * nss/nss_db/db-netgrp.c: Likewise.
1649         * nss/nss_db/db-initgroups.c: Likewise.
1650         * io/fchmodat.c: Include <sys/stat.h>.
1651
1652         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1653         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1654
1655         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1656         [HAVE_MMAP].
1657
1658         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1659         Add multiple inclusion protection.
1660
1661 2012-07-27  David S. Miller  <davem@davemloft.net>
1662
1663         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1664
1665 2012-07-27  Gary Benson  <gbenson@redhat.com>
1666
1667         [BZ #14298]
1668         * elf/rtld.c: Include <stap-probe.h>.
1669         (dl_main): Added static probes "init_start" and "init_complete".
1670         * elf/dl-load.c: Include <stap-probe.h>.
1671         (lose): Take new parameter "nsid".
1672         Added static probe "map_failed".
1673         (_dl_map_object_from_fd): Pass namespace id to lose.
1674         Added static probe "map_start".
1675         (open_verify): Pass namespace id to lose.
1676         * elf/dl-open.c: Include <stap-probe.h>.
1677         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1678         and "reloc_complete".
1679         * elf/dl-close.c: Include <stap-probe.h>.
1680         (_dl_close_worker): Added static probes "unmap_start" and
1681         "unmap_complete".
1682         * elf/rtld-debugger-interface.txt: New file documenting the above.
1683
1684 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1685
1686         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1687         rather than a string variable.
1688         * sunrpc/rpc_main.c (h_output): Likewise.
1689         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1690
1691 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1692
1693         * inet/check_native.c: New file.
1694
1695 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1696
1697         [BZ #13629]
1698         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1699         if larger part has absolute value 1.0.
1700         * math/s_clog10.c (__clog10): Likewise.
1701         * math/s_clog10f.c (__clog10f): Likewise.
1702         * math/s_clog10l.c (__clog10l): Likewise.
1703         * math/s_clogf.c (__clogf): Likewise.
1704         * math/s_clogl.c (__clogl): Likewise.
1705         * math/libm-test.inc (clog_test): Add more tests.
1706         (clog10_test): Likewise.
1707         * sysdeps/i386/fpu/libm-test-ulps: Update.
1708         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1709
1710         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1711         (pltexit): Likewise.
1712         (La_regs): Likewise.
1713         (La_retval): Likewise.
1714         (int_retval): Likewise.
1715         Update #error for removed macros to refer only to definitions in
1716         tst-audit.h.
1717         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1718         macro.
1719         (pltexit): Likewise.
1720         (La_regs): Likewise.
1721         (La_retval): Likewise.
1722         (int_retval): Likewise.
1723         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1724         macro.
1725         (pltexit): Likewise.
1726         (La_regs): Likewise.
1727         (La_retval): Likewise.
1728         (int_retval): Likewise.
1729         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1730         macro.
1731         (pltexit): Likewise.
1732         (La_regs): Likewise.
1733         (La_retval): Likewise.
1734         (int_retval): Likewise.
1735         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1736         macro.
1737         (pltexit): Likewise.
1738         (La_regs): Likewise.
1739         (La_retval): Likewise.
1740         (int_retval): Likewise.
1741         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1742         macro.
1743         (pltexit): Likewise.
1744         (La_regs): Likewise.
1745         (La_retval): Likewise.
1746         (int_retval): Likewise.
1747         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1748         macro.
1749         (pltexit): Likewise.
1750         (La_regs): Likewise.
1751         (La_retval): Likewise.
1752         (int_retval): Likewise.
1753         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1754         macro definitions in tst-audit.h.
1755         * sysdeps/i386/tst-audit.h: New file.
1756         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1757         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1758         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1759         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1760         * sysdeps/sh/tst-audit.h: Likewise.
1761         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1762         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1763         * sysdeps/x86_64/tst-audit.h: Likewise.
1764
1765 2012-07-26  Andreas Jaeger  <aj@suse.de>
1766
1767         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1768         ptrace.
1769
1770         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1771         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1772         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1773         PTRACE_O_MASK.
1774         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1775         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1776         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1777
1778         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1779         value.
1780
1781         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1782         _sigsys.
1783         (si_call_addr, si_syscall, si_arch): Define new macro.
1784         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1785         _sigsys.
1786         (si_call_addr, si_syscall, si_arch): Define new marcro.
1787         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1788         _sigsys.
1789         (si_call_addr, si_syscall, si_arch): Define new macro.
1790         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1791         _sigsys.
1792         (si_call_addr, si_syscall, si_arch): Define new macro.
1793
1794 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1795
1796         [BZ #13717]
1797         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1798         Change to 2.4.21 where previously 2.4.1.
1799         * sysdeps/unix/sysv/linux/configure: Regenerated.
1800         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1801         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1802         Linux kernel version.
1803         (__ASSUME_STD_AUXV): Remove.
1804         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1805         kernel version.
1806         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1807         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1808         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1809         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1810         (__ASSUME_NETLINK_SUPPORT): Likewise.
1811         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1812         (__no_netlink_support): Remove conditional definition.
1813         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1814         Remove.
1815         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1816         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1817         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1818         (if_nameindex_ioctl): Remove.
1819         (if_nameindex_netlink): Do not handle __no_netlink_support.
1820         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1821         code.
1822         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1823         Remove conditional code.
1824         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1825         code.
1826         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1827         unconditional.
1828         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1829         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1830         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1831         Remove.
1832         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1833         [!__ASSUME_STD_AUXV]: Remove conditional code.
1834         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1835         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1836         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1837         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1838         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1839         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1840         code.
1841         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1842         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1843         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1844         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1845         conditional code.
1846         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1847         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1848         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1849         code.
1850         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1851         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1852         conditional code.
1853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1854         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1855         code unconditional.
1856         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1857         conditional code.
1858         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1859         unconditional.
1860         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1861         conditional code.
1862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1863         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1864         unconditional.
1865         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1866         conditional code.
1867         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1868         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1869         code unconditional.
1870         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1871         conditional code.
1872         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1873         unconditional.
1874         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1875         conditional code.
1876         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1877         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1878         code unconditional.
1879         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1880         conditional code.
1881         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1882         unconditional.
1883         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1884         conditional code.
1885
1886 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1887
1888         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1889         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1890         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1891         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1892         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1893         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1894         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1895         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1896         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1897         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1898         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1899         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1900         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1901         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1902         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1903         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1904         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1905         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1906         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1907         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1908         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1909         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1910         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1911
1912 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1913
1914         * Versions.def: Add GLIBC_2.17.
1915         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1916         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1917         Introduce __libc_secure_getenv.
1918         * stdlib/Versions (2.17): Add secure_getenv
1919         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1920         * stdlib/secure-getenv.c: Rename __secure_getenv to
1921         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1922         symbol __secure_getenv for GLIBC_2.0.
1923         * stdlib/tst-secure-getenv.c: New.
1924         * stdlib/Makefile (tests): Add testcase.
1925         * manual/startup.texi (Environment Access): Document
1926         secure_getenv.
1927         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1928         __libc_secure_getenv.
1929         * inet/ruserpass.c (ruserpass): Likewise.
1930         * malloc/mtrace.c (mtrace): Likewise.
1931         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1932         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1933         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1934         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1935         HAVE_SECURE_GETENV.
1936         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1937         __secure_getenv to __libc_secure_getenv.
1938         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1939         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1940         Likewise.
1941         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1942         Likewise.
1943         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1944         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1945         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1946         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1947         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1948         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1949         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1950
1951 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1952
1953         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1954         (struct La_i86_retval): Likewise.
1955         (struct La_x86_64_regs): Likewise.
1956         (struct La_x86_64_retval): Likewise.
1957         (struct La_x32_regs): Likewise.
1958         (struct La_x32_retval): Likewise.
1959         (struct La_ppc32_regs): Likewise.
1960         (struct La_ppc32_retval): Likewise.
1961         (struct La_ppc64_regs): Likewise.
1962         (struct La_ppc64_retval): Likewise.
1963         (struct La_sh_regs): Likewise.
1964         (struct La_sh_retval): Likewise.
1965         (struct La_s390_32_regs): Likewise.
1966         (struct La_s390_32_retval): Likewise.
1967         (struct La_s390_64_regs): Likewise.
1968         (struct La_s390_64_retval): Likewise.
1969         (struct La_sparc32_regs): Likewise.
1970         (struct La_sparc32_retval): Likewise.
1971         (struct La_sparc64_regs): Likewise.
1972         (struct La_sparc64_retval): Likewise.
1973         (struct audit_ifaces): Remove architecture-specific pltenter and
1974         pltexit members.
1975         * sysdeps/i386/ldsodefs.h: New file.
1976         * sysdeps/powerpc/ldsodefs.h: Likewise.
1977         * sysdeps/s390/ldsodefs.h: Likewise.
1978         * sysdeps/sh/ldsodefs.h: Likewise.
1979         * sysdeps/sparc/ldsodefs.h: Likewise.
1980         * sysdeps/x86_64/ldsodefs.h: Likewise.
1981
1982 2012-07-25  Marek Polacek  <polacek@redhat.com>
1983
1984         [BZ #6808]
1985         * math/libm-test.inc (yn_test): Add another test.
1986         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1987         to ERANGE when the result is +-Inf.
1988         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1989         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1990         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1991         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1992
1993 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1994
1995         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1996         equal to 0.
1997         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1998         clock_t.
1999         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
2000
2001 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
2002
2003         * configure.in <sysdeps resolving>: Correct printing
2004         Implies_before.
2005         * configure: Regenerate.
2006
2007 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2008
2009         * math/w_ilogb.c: Include <limits.h>.
2010         * math/w_ilogbl.c: Likewise.
2011
2012 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2013
2014         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2015         va_copy.  Document allowing for unavailable va_copy only as
2016         pre-C99 compatibility.
2017         * manual/string.texi (Copying and Concatenation): Use va_copy
2018         instead of __va_copy in concat example.
2019
2020 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2021
2022         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2023         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2024         it if not null.
2025
2026         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2027         with O_NOLINK passed to __file_name_lookup.
2028
2029         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2030         with O_NOLINK passed to __file_name_lookup.
2031
2032         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2033         negative N or less than NGIDS.
2034
2035         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2036         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2037         enough.  Use memcpy instead of strncpy.
2038
2039 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2040
2041         * elf/Makefile (check-data): Remove.
2042         (localplt.data): New vpath directive.
2043         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2044         instead of $(check-data).
2045         * scripts/data/localplt-generic.data: Move to ...
2046         * sysdeps/generic/localplt.data: ... here.
2047         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2048         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2049         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2051         ... here.
2052         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2054         ... here.
2055         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2056         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2057         ... here.
2058         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2060         ... here.
2061         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2062         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2063         ... here.
2064         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2065         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2066         ... here.
2067
2068 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2069
2070         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2071         PPC32 and PPC64 files.
2072         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2073         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2074
2075 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2076
2077         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2078         __makecontext_ret to ...
2079         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2080         ... here and call exit if uc_link is NULL.  New file.
2081         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2082         __makecontext_ret.S.
2083         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2084         __makecontext_ret to ...
2085         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2086         ... here and call exit if uc_link is NULL.  New file.
2087         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2088         __makecontext_ret.S.
2089
2090 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2091
2092         * elf/elf.h (R_390_IRELATIVE): New definition.
2093         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2094         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2095         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2096         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2097         (elf_machine_lazy_rel): Likewise.
2098         * sysdeps/s390/dl-irel.h: New file.
2099         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2100         * sysdeps/s390/s390-64/memset.S: New asm code.
2101         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2102         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2103         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2104         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2105         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2106         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2107         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2108         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2109         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2110         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2111         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2112         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2113         * sysdeps/s390/s390-32/memset.S: New asm code.
2114         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2115
2116 2012-07-17  Marek Polacek  <polacek@redhat.com>
2117
2118         [BZ #14349]
2119         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2120         * sysdeps/s390/s390-64/configure.in: Likewise.
2121         * sysdeps/sparc/configure.in: Likewise.
2122         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2123         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2124         * sysdeps/i386/configure.in: Likewise.
2125         * sysdeps/x86_64/configure.in: Likewise.
2126         * sysdeps/sh/configure.in: Likewise.
2127         * sysdeps/s390/s390-32/configure: Regenerated.
2128         * sysdeps/s390/s390-64/configure: Likewise.
2129         * sysdeps/x86_64/configure: Likewise.
2130         * sysdeps/sh/configure: Likewise.
2131         * sysdeps/powerpc/powerpc64/configure: Likewise.
2132         * sysdeps/powerpc/powerpc32/configure: Likewise.
2133         * sysdeps/sparc/configure: Likwise.
2134         * sysdeps/i386/configure: Likewise.
2135
2136         * elf/dl-open.c: Comment fixes.
2137
2138 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2139
2140         * Makefile [CXX] (check-data): Remove.
2141         [CXX] (c++-types.data): New vpath directive.
2142         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2143         vpath.  Do not allow for C++ type data being missing.
2144         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2145         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2146         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2147         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2148         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2149         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2150         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2152         ... here.
2153         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2154         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2155         ... here.
2156         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2157         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2158         ... here.
2159         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2160         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2161         ... here.
2162         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2163         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2164         ... here.
2165         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2166         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2167         ... here.
2168         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2169         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2170         ... here.
2171         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2172         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2173
2174         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2175         definitions to architecture-specific files.
2176         (TLS_IE): Likewise.
2177         (TLS_LD): Likewise.
2178         (TLS_GD): Likewise.
2179         * sysdeps/i386/tls-macros.h: New file.
2180         * sysdeps/powerpc/tls-macros.h: Likewise.
2181         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2182         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2183         * sysdeps/sh/tls-macros.h: Likewise.
2184         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2185         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2186         * sysdeps/x86_64/tls-macros.h: Likewise.
2187
2188 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2189
2190         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2191         zero value for regular exit case.
2192
2193         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2194         (__start_context): Preserve zero value for regular exit case.
2195
2196 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2197             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2198
2199         * manual/setjmp.texi (setcontext): Clarify normal process
2200         termination when uc_link is the null pointer.
2201         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2202         exit call.
2203
2204 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2205
2206         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2207         preprocessor.  Test for each exception mask separately.
2208
2209 2012-07-16  Andreas Jaeger  <aj@suse.de>
2210
2211         * po/ru.po: Update from translation team.
2212
2213 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2214
2215         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2216         equal to 0.
2217         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2218         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2219         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2220         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2221         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2222
2223 2012-07-13  Andreas Jaeger  <aj@suse.de>
2224
2225         * po/fr.po: Update from translation team.
2226
2227 2012-07-12  Marek Polacek  <polacek@redhat.com>
2228
2229         [BZ #14173]
2230         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2231         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2232         loop condition.
2233
2234 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2235
2236         [BZ #13717]
2237         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2238         Change to 2.4.1 where previously 2.4.0.
2239         * sysdeps/unix/sysv/linux/configure: Regenerated.
2240         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2241         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2242         version.
2243         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2244         (__ASSUME_AT_CLKTCK): Remove.
2245         (__ASSUME_AT_PAGESIZE): Likewise.
2246         (__ASSUME_AT_XID): Likewise.
2247         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2248         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2249         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2250         unconditionally.
2251         (HAVE_AUX_PAGESIZE): Likewise.
2252         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2253         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2254         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2255
2256 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2257
2258         [BZ #14307]
2259         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2260         the temporary buffer used to invoke __gethostbyname2_r,
2261         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2262         host_data / struct gaih_addrtuple.
2263         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2264         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2265         header file nss/nsswitch.h.
2266         * nss/nsswitch.h (global scope): Add definition of implementation
2267         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2268         resolv/nss_dns/dns-host.c).
2269
2270 2012-07-11  Andreas Jaeger  <aj@suse.de>
2271
2272         * po/fr.po: Update from translation team.
2273
2274         * po/sv.po: Update from translation team
2275         * po/fr.po: Another update from translation team.
2276
2277 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2278
2279         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2280         for subnormals or multiply small sinh result by itself.
2281         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2282         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2283
2284 2012-07-11  David S. Miller  <davem@davemloft.net>
2285
2286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2287
2288 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2289
2290         [BZ #14347]
2291         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2292         (INTERNAL_MARK): Shift it here.
2293
2294 2012-07-10  Marek Polacek  <polacek@redhat.com>
2295
2296         [BZ #14151]
2297         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2298         libc_cv_asm_global_directive with .globl.
2299         * configure: Regenerated.
2300         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2301         with .globl.
2302         * sysdeps/i386/configure: Regenerated.
2303         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2304         with .globl.
2305         * sysdeps/x86_64/configure: Regenerated.
2306         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2307         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2308         * elf/tst-unique2mod2.c: Likewise.
2309         * elf/tst-unique2mod1.c: Likewise.
2310         * elf/tst-unique1mod2.c: Likewise.
2311         * elf/tst-unique1mod1.c: Likewise.
2312         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2313         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2314         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2315         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2316         * sysdeps/mach/sysdep.h: Likewise.
2317         * sysdeps/i386/sysdep.h: Likewise.
2318         * sysdeps/i386/i386-mcount.S: Likewise.
2319         * sysdeps/x86_64/_mcount.S: Likewise.
2320         * sysdeps/x86_64/sysdep.h: Likewise.
2321         * sysdeps/sh/_mcount.S: Likewise.
2322         * sysdeps/sh/sysdep.h: Likewise.
2323         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2324         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2325         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2326         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2327         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2328         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2329         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2330         * locale/localeinfo.h: Likewise.
2331         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2332         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2333
2334 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2335
2336         [BZ #14336]
2337         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2338         system".
2339         * manual/message.texi (The Uniforum approach): Likewise.
2340         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2341         (glibc iconv Implementation): Likewise.
2342
2343 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2344
2345         [BZ #14337]
2346         * math/s_clog.c (__clog): Avoid scaling a value down where that
2347         could result in underflow.
2348         * math/s_clog10.c (__clog10): Likewise.
2349         * math/s_clog10f.c (__clog10f): Likewise.
2350         * math/s_clog10l.c (__clog10l): Likewise.
2351         * math/s_clogf.c (__clogf): Likewise.
2352         * math/s_clogl.c (__clogl): Likewise.
2353         * math/libm-test.inc (clog_test): Add more tests.
2354         (clog10_test): Likewise.
2355         * sysdeps/i386/fpu/libm-test-ulps: Update.
2356         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2357
2358 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2359
2360         [BZ #14283]
2361         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2362         by 7 not 8 to examine high bit of fractional part.
2363
2364         [BZ #14042]
2365         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2366         for call to __mcount_internal.
2367         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2368         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2369         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2370
2371 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2372
2373         [BZ #14154]
2374         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2375         approximation for values within 0x1p-13f of an odd multiple of
2376         pi/4.
2377         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2378         exception.  Add more tests.
2379         * sysdeps/i386/fpu/libm-test-ulps: Update.
2380
2381         [BZ #6778]
2382         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2383         inputs and return -1 for them.  Do not check for +Inf in case not
2384         reachable for +Inf.
2385         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2386         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2387         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2388         and return -1 for them.  Do not check for +Inf in case not
2389         reachable for +Inf.
2390         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2391         define.
2392         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2393         and return -1 for them.  Do not check for +Inf in case not
2394         reachable for +Inf.
2395         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2396         spurious underflow.
2397         * sysdeps/i386/fpu/libm-test-ulps: Update.
2398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2399
2400 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2401
2402         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2403
2404 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2405
2406         [BZ #14157]
2407         [BZ #14331]
2408         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2409         could result in spurious underflow.  Scale down values above
2410         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2411         * math/s_csqrtf.c (__csqrtf): Likewise.
2412         * math/s_csqrtl.c (__csqrtl): Likewise.
2413         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2414         spurious underflow.
2415         * sysdeps/i386/fpu/libm-test-ulps: Update.
2416         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2417
2418 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2419
2420         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2421         xopen-msg.sed.
2422         * catgets/xopen-msg.awk: New file.
2423         * catgets/xopen-msg.sed: Removed.
2424
2425         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2426         po2text.sed.
2427         * intl/po2test.awk: New file.
2428         * intl/po2test.sed: Removed.
2429
2430 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2431
2432         [BZ #14328]
2433         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2434         or multiply small sinh result by itself.
2435         * math/s_ctanf.c (__ctanf): Likewise.
2436         * math/s_ctanh.c (__ctanh): Likewise.
2437         * math/s_ctanhf.c (__ctanhf): Likewise.
2438         * math/s_ctanhl.c (__ctanhl): Likewise.
2439         * math/s_ctanl.c (__ctanl): Likewise.
2440         * math/libm-test.inc (ctan_test_tonearest): New function.
2441         (ctan_test_towardzero): Likewise.
2442         (ctan_test_downward): Likewise.
2443         (ctan_test_upward): Likewise.
2444         (ctanh_test_tonearest): Likewise.
2445         (ctanh_test_towardzero): Likewise.
2446         (ctanh_test_downward): Likewise.
2447         (ctanh_test_upward): Likewise.
2448         (main): Call these new functions.
2449         * sysdeps/i386/fpu/libm-test-ulps: Update.
2450         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2451
2452 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2453
2454         * .gitignore: Delete /ports entry.
2455
2456 2012-07-03  Andreas Jaeger  <aj@suse.de>
2457
2458         * po/bg.po: Update from translation team.
2459         * po/cs.po: Likewise.
2460         * po/de.po: Likewise.
2461         * po/hr.po: Likewise.
2462         * po/nl.pl: Likewise.
2463         * po/pl.po: Likewise.
2464         * po/vi.po: Likewise.
2465
2466 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2467
2468         * Makeconfig [!+link] (+link-before-libc): New variable.
2469         [!+link] (+link-after-libc): Likewise.
2470         [!+link] (+link-tests): Likewise.
2471         [!+link] (+link): Define in terms of $(+link-before-libc) and
2472         $(+link-after-libc).
2473         [!+link-static] (+link-static-before-libc): New variable.
2474         [!+link-static] (+link-static-after-libc): Likewise.
2475         [!+link-static] (+link-static-tests): Likewise.
2476         [!+link-static] (+link-static): Define in terms of
2477         $(+link-static-before-libc) and $(+link-static-after-libc).
2478         [build-shared] (link-libc-before-gnulib): New variable.
2479         [build-shared] (link-libc-tests): Likewise.
2480         [build-shared] (link-libc): Define in terms of
2481         $(link-libc-before-gnulib).
2482         [!build-shared] (link-libc-tests): New variable.
2483         (link-libc-static-tests): New variable.
2484         [!gnulib] (gnulib-arch): New variable.
2485         [!gnulib] (gnulib-tests): Likewise.
2486         [!gnulib] (static-gnulib-arch): Likewise.
2487         [!gnulib] (static-gnulib-tests): Likewise.
2488         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2489         Define with "=" instead of ":=".
2490         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2491         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2492         * Rules (binaries-all-notests): New variable.
2493         (binaries-all-tests): Likewise.
2494         (binaries-static-notests): Likewise.
2495         (binaries-static-tests): Likewise.
2496         (binaries-all): Define using $(binaries-all-notests) and
2497         $(binaries-all-tests).
2498         (binaries-static): Define using $(binaries-static-notests) and
2499         $(binaries-static-tests).
2500         (binaries-shared-tests): New variable.
2501         (binaries-shared-notests): Likewise.
2502         (binaries-shared): Remove variable.
2503         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2504         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2505         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2506         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2507         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2508         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2509         * elf/Makefile (sln-modules): New variable.
2510         (extra-objs): Add $(sln-modules:=.o).
2511         (ldconfig-modules): Add static-stubs.
2512         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2513         * elf/static-stubs.c: New file.
2514
2515         [BZ #14283]
2516         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2517         by 7 not 8 to examine high bit of fractional part.  Use volatile
2518         variables when splitting into final array of floats if
2519         __FLT_EVAL_METHOD__ != 0.
2520         * math/libm-test.inc (cos_test): Add another test.
2521         (sin_test): Likewise.
2522         * sysdeps/i386/fpu/libm-test-ulps: Update.
2523
2524         [BZ #14273]
2525         * math/libm-test.inc (cosh_test): Add more tests.
2526
2527         * version.h (RELEASE): Set to "development".
2528         (VERSION): Set to "2.16.90".
2529
2530 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2531
2532         * NEWS: Update copyright. Remove last-updated date.
2533         Mention math library bug fixes and timezone data changes.
2534         * README: Mention GNU/Hurd, x32, and HPPA support status.
2535
2536 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2537
2538         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2539
2540 2012-06-27  Andreas Jaeger  <aj@suse.de>
2541
2542         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2543
2544 2012-06-25  Andreas Jaeger  <aj@suse.de>
2545
2546         * sysdeps/s390/fpu/libm-test-ulps: Update.
2547
2548 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2549             Thomas Schwinge  <thomas@codesourcery.com>
2550
2551         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2552         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2553         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2554         fanotify_mark.
2555
2556 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2557
2558         * sysdeps/mach/start.c: Remove file.
2559         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2560         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2561         * sysdeps/sh/init-first.c: Likewise.
2562
2563         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2564         registers for frame unwinding purposes, add CFI directives.
2565         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2566         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2567         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2568         Likewise.
2569
2570         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2571         __fortify_fail returning.
2572         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2573
2574         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2575         sysdeps/sh/____longjmp_chk.S.
2576         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2577         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2578         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2579         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2580
2581         * sysdeps/sh/abort-instr.h: New file.
2582         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2583         process in case exit returns.
2584
2585         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2586         initialize the GOT register before use.
2587
2588         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2589         calculation of ARGC > 4.
2590
2591         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2592         meaningful names to some local labels.
2593
2594 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2595             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2596
2597         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2598         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2599         (__arch_compare_and_exchange_val_16_acq): Likewise.
2600         (__arch_compare_and_exchange_val_32_acq): Likewise.
2601         (atomic_exchange_and_add): Fix gUSA sequence.
2602         (atomic_add): Likewise.
2603         (atomic_add_negative): Likewise.
2604         (atomic_add_zero): Likewise.
2605         (atomic_bit_test_set): Likewise.
2606
2607 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2608
2609         [BZ #13579]
2610         * include/link.h (struct link_map): Add l_free_initfini.
2611         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2612         l_initfini.
2613         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2614         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2615         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2616         set.
2617
2618 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2619
2620         * configure.in: Use AC_LANG_SOURCE.
2621         * configure: Regenerate.
2622
2623 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2624
2625         * configure.in (libc_cv_localstatedir): New substituted variable.
2626         * configure: Regenerated.
2627         * config.make.in (localstatedir): New variable, substituted from
2628         libc_cv_localstatedir.
2629         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2630         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2631         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2632         * sysdeps/gnu/configure: Regenerated.
2633
2634 2012-06-21  Jeff Law  <law@redhat.com>
2635
2636         [BZ #14277]
2637         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2638         free.  Simplify list management for _LIBC case.
2639
2640 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2641
2642         [BZ #14273]
2643         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2644         Clear sign bit of 64-bit integer value before comparing against
2645         overflow value.
2646
2647         * sysdeps/mach/configure: Regenerated.
2648
2649 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2650
2651         [BZ #14278]
2652         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2653
2654 2012-06-21  Jeff Law  <law@redhat.com>
2655
2656         [BZ #13882]
2657         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2658         uint16_t for elements in the "seen" array to avoid char overflows.
2659         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2660         * elf/dl-open.c (dl_open_worker): Likewise.
2661
2662 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2663
2664         * scripts/list-sources.sh: Scan PORTS for translations.
2665         * po/libc.pot: Regenerated.
2666
2667 2012-06-21  Andreas Jaeger  <aj@suse.de>
2668
2669         [BZ #12194]
2670         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2671         warning.
2672         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2673         * bits/byteswap-16.h (__bswap_16): Likewise.
2674         * bits/byteswap.h (__bswap_constant_16): Likewise.
2675
2676 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2677
2678         [BZ #14117]
2679         * sysdeps/i386/fpu_control.h: Removed.
2680         * sysdeps/x86_64/fpu_control.h: Moved to ...
2681         * sysdeps/x86/fpu_control.h: Here.
2682
2683         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2684         (_FPU_SETCW): Likewise.
2685
2686 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2687
2688         [BZ #14117]
2689         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2690         * sysdeps/x86/fpu/bits/mathinline.h: This.
2691         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2692
2693         [BZ #14050]
2694         [BZ #14117]
2695         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2696         functions if __x86_64__ is defined.
2697
2698 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2699
2700         * string/endian.h: Add !__ASSEMBLER__ condition for including
2701         conversion interfaces.
2702
2703 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2704
2705         [BZ #14241]
2706         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2707         of ABS(x) in calculating zero to negative powers other than odd
2708         integers.
2709         * math/libm-test.inc (pow_test): Add more tests.
2710
2711 2012-06-15  Andreas Jaeger  <aj@suse.de>
2712
2713         * manual/contrib.texi (Contributors): Update entry of Liubov
2714         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2715         Machado Filho.
2716
2717 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2718
2719         * string/string.h: Add __wur to GNU version of strerror_r.
2720
2721 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2722
2723         [BZ #14229]
2724         * string/Makefile (tests): Add tst-strtok_r.
2725         * string/tst-strtok_r.c: New file.
2726         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2727         RAX_LP/RDX_LP on SAVE_PTR.
2728
2729 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2730
2731         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2732
2733 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2734
2735         * libm_test.inc (csqrt_test): Allow more spurious underflow
2736         exceptions.
2737         (j0_test): Likewise.
2738         (j1_test): Likewise.
2739         (y0_test): Likewise.
2740         (y1_test): Likewise.
2741
2742 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2743
2744         * po/Makefile (libc.pot): Use UTF-8 charset.
2745
2746 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2747
2748         [BZ #14210]
2749         Suppress sign-conversion warning from FD_SET.
2750         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2751         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2752         not unsigned long int.
2753         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2754
2755 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2756
2757         [BZ #14050]
2758         [BZ #14117]
2759         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2760         __extern_always_inline instead of __extern_inline.
2761         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2762         (__signbit): Likewise.
2763         (__signbitl): Support C++ namespace.
2764         (lrintf): New inline function.
2765         (lrint): Likewise.
2766         (llrintf): Likewise.
2767         (llrint): Likewise.
2768         (fmaxf): Likewise.
2769         (fmax): Likewise.
2770         (fminf): Likewise.
2771         (fmin): Likewise.
2772         (rint): Likewise.
2773         (rintf): Likewise.
2774         (ceil): Likewise.
2775         (ceilf): Likewise.
2776         (floor): Likewise.
2777         (floorf): Likewise.
2778         (nearbyint): Likewise.
2779         (nearbyintf): Likewise.
2780
2781 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2782
2783         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2784         non-default versions.
2785
2786 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2787
2788         [BZ #14218]
2789         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2790
2791 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2792
2793         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2794         (FE_UPWARD, FE_DOWNWARD): Don't define.
2795         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2796         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2797
2798         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2799         reading it.
2800         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2801         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2802
2803 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2804
2805         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2806         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2807         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2808         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2809
2810 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2811
2812         [BZ #14117]
2813         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2814         * sysdeps/i386/fpu/Implies: New file.
2815         * sysdeps/x86_64/fpu/Implies: Likewise.
2816         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2817         * sysdeps/x86/fpu/bits/fenv.h: This.
2818
2819         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2820         __SSE_MATH__.
2821
2822 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2823
2824         [BZ #14134]
2825         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2826         character 0xffff that matches the last element of the
2827         conversion table.
2828
2829 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2830
2831         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2832         fmodl commit.
2833
2834 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2835
2836         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2837         values higher than 25.6283.
2838
2839 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2840
2841         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2842         subnormal exponent extraction and add some __builtin_expect.
2843         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2844         Fix for subnormal mantissa calculation.
2845
2846 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2847
2848         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2849         cpu2 is -1 and errno is not ENOSYS.
2850
2851 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2852
2853         [BZ #14117]
2854         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2855         * sysdeps/x86/bits/string.h: This.
2856         * sysdeps/x86_64/bits/string.h: Removed.
2857
2858         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2859         if not compiling for x86-64, but compiling for >= i486.
2860
2861         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2862         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2863
2864         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2865         New macro from Linux kernel 3.4.0.
2866         (FP_XSTATE_MAGIC2): Likewise.
2867         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2868         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2869         (struct _fpx_sw_bytes): New struct.
2870         (struct _xsave_hdr): Likewise.
2871         (struct _ymmh_state): Likewise.
2872         (struct _xstate): Likewise.
2873
2874         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2875         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2876         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2877         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2878         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2879         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2880
2881         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2882         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2883         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2884         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2885         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2886         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2887
2888 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2889
2890         [BZ #13743]
2891         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2892         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2893         (sysdep_headers): Include sys/platform/ppc.h.
2894         * sysdeps/powerpc/test-gettimebase.c: Test for
2895         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2896         * manual/Makefile (appendices): Include platform.texi.
2897         * manual/contrib.texi (Contributors): Update @node pointers.
2898         * manual/maint.texi (Maintenance): Likewise.
2899         (Platform): New node.
2900         * manual/platform.texi: New file.  Document the new features.
2901
2902 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2903             Jakub Jelinek  <jakub@redhat.com>
2904
2905         [BZ #14188]
2906         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2907         where __builtin_expect is unavailable.
2908
2909 2012-06-03  David S. Miller  <davem@davemloft.net>
2910
2911         * stdlib/longlong.h: Updated from GCC.
2912
2913 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2914
2915         [BZ #14042]
2916         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2917         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2918         __mcount_internal.
2919         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2920         (GLIBC_2.16): Likewise.
2921
2922 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2923
2924         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2925
2926 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2927
2928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2929         (default-abi): New variable.
2930         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2931         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2932         variable.
2933         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2934         Likewise.
2935         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2936         Likewise.
2937         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2938         Likewise.
2939
2940         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2941         definition.  Document in comment.
2942
2943 2012-06-01  David S. Miller  <davem@davemloft.net>
2944
2945         * stdlib/longlong.h: Updated from GCC.
2946
2947 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2948
2949         [BZ #14117]
2950         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2951         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2952         sys/debugreg.h sys/io.h here.
2953         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2954         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2955         sys/io.h.
2956         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2957         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2958         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2959         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2960         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2961         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2962
2963         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2964         Define only if __x86_64__ is defined.
2965
2966 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2967
2968         [BZ #14048]
2969         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2970         Use int64_t for variable i.
2971         * math/libm-test.inc (fmod_test): Add more tests.
2972
2973         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2974         z computation is not scheduled after fetestexcept.
2975         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2976         Use math_force_eval instead of asm to ensure calculation scheduled
2977         before exception test.
2978         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2979         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2980
2981 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2982
2983         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2984         computation is not scheduled after fetestexcept.
2985
2986 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2987
2988         [BZ #14117]
2989         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2990         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2991
2992 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2993
2994         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2995         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2996
2997 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2998
2999         [BZ #14117]
3000         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
3001         <bits/wordsize.h>.
3002         (__WCHAR_MIN): Support __WORDSIZE == 64.
3003         (__WCHAR_MAX): Likewise.
3004
3005         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3006         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3007
3008         [BZ #14183]
3009         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3010         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3011
3012         [BZ #14117]
3013         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3014         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3015
3016         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3017         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3018
3019         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3020         Defined to 1 if __x86_64__ isn't defined.
3021         (_STAT_VER_LINUX_OLD): New.
3022         (st_atime): Remove duplicate.
3023         (st_mtime): Likewise.
3024         (st_ctime): Likewise.
3025
3026 2012-05-31  David S. Miller  <davem@davemloft.net>
3027
3028         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3029         entries.
3030
3031 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3032
3033         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3034         gen-libm-test.pl.
3035
3036         [BZ #14132]
3037         * elf/dl-reloc.c: Include <_itoa.h>.
3038         (_dl_reloc_bad_type): Remove use of INTUSE.
3039         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3040         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3041         * stdio-common/psiginfo.c (psiginfo): Likewise.
3042         * stdio-common/psignal.c (psignal): Likewise.
3043         * string/strsignal.c (strsignal): Likewise.
3044         * include/signal.h (_sys_siglist): Declare hidden proto.
3045         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3046         INTVARDEF with libc_hidden_data_def.
3047         * stdio-common/itoa-udigits.c: Likewise.
3048         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3049         (_itoa_lower_digits_internal): Remove declaration.
3050         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3051         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3052         (_sys_sigabbrev_internal): Remove aliases.
3053         (_sys_siglist): Define hidden alias.
3054
3055 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3056
3057         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3058         bits/sysctl.h.
3059
3060 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3061
3062         [BZ #14117]
3063         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3064         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3065
3066         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3067         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3068         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3069         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3070         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3071         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3072
3073         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3074         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3075         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3076
3077         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3078         with __addr.
3079         (insw): Likewise.
3080         (insl): Likewise.
3081         (outsb): Likewise.
3082         (outsw): Likewise.
3083         (outsl): Likewise.
3084
3085         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3086         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3087         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3088
3089         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3090         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3091         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3092         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3093         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3094         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3095
3096         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3097         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3098
3099         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3100         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3101
3102         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3103         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3104         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3105
3106         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3107         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3108         to ...
3109         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3110
3111         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3112         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3113         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3114
3115         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3116         for x86-64.
3117         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3118
3119 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3120
3121         * math/math.h (M_El): Use two more decimal places.
3122         (M_LOG2El): Likewise.
3123         (M_LOG10El): Likewise.
3124         (M_LN2l): Likewise.
3125         (M_LN10l): Likewise.
3126         (M_PIl): Likewise.
3127         (M_PI_2l): Likewise.
3128         (M_PI_4l): Likewise.
3129         (M_1_PIl): Likewise.
3130         (M_2_PIl): Likewise.
3131         (M_2_SQRTPIl): Likewise.
3132         (M_SQRT2l): Likewise.
3133         (M_SQRT1_2l): Likewise.
3134
3135 2012-05-31  David S. Miller  <davem@davemloft.net>
3136
3137         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3138         values between float registers.
3139         * sysdeps/sparc/sparc64/memset.S: Likewise.
3140         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3141
3142 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3143
3144         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3145         -D_FORTIFY_SOURCE=1.
3146         (CPPFLAGS-tst-longjmp_chk.c): Define.
3147         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3148         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3149         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3150         CFLAGS-tst-wchar-h.c.
3151
3152 2012-05-31  Marek Polacek  <polacek@redhat.com>
3153
3154         [BZ #14132]
3155         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3156         __endmntent_internal): Remove declaration.
3157         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3158         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3159         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3160
3161 2012-05-30  David S. Miller  <davem@davemloft.net>
3162
3163         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3164         (___Q_simulate_exceptions): Use real FP ops rather than writing
3165         into the %fsr.
3166         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3167         Likewise.
3168
3169 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3170
3171         [BZ #14117]
3172         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3173         * sysdeps/x86/bits/xtitypes.h: This.
3174
3175         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3176         * sysdeps/x86/bits/wordsize.h: This.
3177
3178         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3179         * sysdeps/x86/bits/huge_vall.h: This.
3180
3181         * sysdeps/i386/bits/select.h: Removed.
3182         * sysdeps/x86_64/bits/select.h: Renamed to ...
3183         * sysdeps/x86/bits/select.h: This.
3184
3185         * sysdeps/i386/bits/setjmp.h: Removed.
3186         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3187         * sysdeps/x86/bits/setjmp.h: This.
3188
3189         * sysdeps/i386/bits/mathdef.h: Removed.
3190         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3191         * sysdeps/x86/bits/mathdef.h: This.
3192
3193 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3194
3195         [BZ #14132]
3196         * include/sys/socket.h (__connect_internal)
3197         (__libc_sa_len_internal): Remove declaration.
3198         (__connect, __libc_sa_len): Declare hidden_proto.
3199         (SA_LEN): Remove use of INTUSE.
3200         * socket/connect.c: Add libc_hidden_def.
3201         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3202         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3203         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3204         alias.
3205         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3206         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3207         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3208         of adding _internal alias.
3209
3210 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3211
3212         [BZ #14117]
3213         * sysdeps/i386/bits/link.h: Removed.
3214         * sysdeps/i386/bits/linkmap.h: Likewise.
3215         * sysdeps/x86_64/bits/link.h: Renamed to ...
3216         * sysdeps/x86/bits/link.h: This.
3217         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3218         * sysdeps/x86/bits/linkmap.h: This.
3219
3220         * sysdeps/i386/bits/endian.h: Removed.
3221         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3222         * sysdeps/x86/bits/endian.h: This.
3223
3224         * sysdeps/i386/bits/byteswap.h: Removed.
3225         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3226         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3227         * sysdeps/x86/bits/byteswap.h: This.
3228         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3229         * sysdeps/x86/bits/byteswap-16.h: This.
3230         * sysdeps/i386/Implies: Add x86.
3231         * sysdeps/x86_64/Implies: Likewise.
3232
3233 2012-05-30  David S. Miller  <davem@davemloft.net>
3234
3235         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3236         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3237         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3238         (FP_TRAPPING_EXCEPTIONS): Define.
3239         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3240         (FP_TRAPPING_EXCEPTIONS): Define.
3241         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3242         subnormals only when inexact has been signalled or underflow
3243         exceptions are enabled.
3244         (_FP_PACK_CANONICAL): Likewise.
3245
3246 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3247
3248         [BZ #14183]
3249         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3250         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3251
3252 2012-05-30  Richard Henderson  <rth@twiddle.net>
3253
3254         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3255         with #ifndef NOT_IN_libc.
3256
3257         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3258         marked to avoid plt entry.
3259
3260 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3261
3262         [BZ #14112]
3263         * Makeconfig (default-abi): New macro.
3264         (abi-includes): Likewise.
3265         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3266         $(abi-$(default-abi)-lib-soname) for soname if defined.
3267         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3268         abi-variants.
3269         * Makefile (installed-stubs): Likewise.
3270         * include/stubs-biarch.h: Removed.
3271         * scripts/lib-names.awk: Only handle one library at a time.
3272         * scripts/soversions.awk: Remove WORDSIZE support.
3273         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3274         entries.
3275         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3276         Removed.
3277         (syscall-list-default-condition): Likewise.
3278         (syscall-list-default-condition): Likewise.
3279         (syscall-list-includes): Likewise.
3280         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3281         syscall-list-* with abi-*.  Handle undefined abi-variants.
3282         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3283         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3284         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3285         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3286         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3287         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3288         Removed.
3289         (syscall-list-32-options): Likewise.
3290         (syscall-list-32-condition): Likewise.
3291         (syscall-list-64-options): Likewise.
3292         (syscall-list-64-condition): Likewise.
3293         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3294         macro.
3295         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3296         Renamed to ...
3297         (abi-*): This.
3298         (abi-64-ld-soname): New macro.
3299         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3300         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3301         Renamed to ...
3302         (abi-*): This.
3303         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3304         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3305
3306 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3307
3308         * sysdeps/unix/sysv/linux/kernel-features.h
3309         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3310         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3311         include <kernel-features.h>.
3312         [!__NR_ftruncate64]: Remove conditional code.
3313         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3314         [__NR_ftruncate64]: Make code unconditional.
3315         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3316         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3317         include <kernel-features.h>.
3318         [!__NR_ftruncate64]: Remove conditional code.
3319         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3320         [__NR_ftruncate64]: Make code unconditional.
3321         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3323         include <kernel-features.h>.
3324         [!__NR_ftruncate64]: Remove conditional code.
3325         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3326         [__NR_ftruncate64]: Make code unconditional.
3327         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3328         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3329         include <kernel-features.h>.
3330         [!__NR_ftruncate64]: Remove conditional code.
3331         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3332         [__NR_ftruncate64]: Make code unconditional.
3333         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3334
3335         * configure.in (libc_cv_fpie): Weaken to a compile test using
3336         LIBC_TRY_CC_OPTION.
3337         * configure: Regenerated.
3338
3339 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3340
3341         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3342         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3345         Refreshed.
3346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3347         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3348         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3349         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3350         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3351         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3352         Refreshed.
3353
3354 2012-05-27  David S. Miller  <davem@davemloft.net>
3355
3356         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3357         (___Q_zero): New.
3358         (__Q_simulate_exceptions): Return void.  Change to simulate
3359         exceptions by writing into the %fsr.
3360         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3361         (__Qp_handle_exceptions): Likewise.
3362         (numbers): Delete.
3363         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3364         __Qp_handle_exceptions.
3365         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3366         __Qp_handle_exceptions.
3367         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3368         as unused and give dummy FP_RND_NEAREST initializer.
3369         (FP_INHIBIT_RESULTS): Define.
3370         (___Q_simulate_exceptions): Update declaration.
3371         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3372         formatting.
3373         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3374         as unused and give dummy FP_RND_NEAREST initializer.
3375         (__Qp_handle_exceptions): Update declaration.
3376         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3377         formatting.
3378
3379 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3380
3381         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3382         the temporary FPU control word.
3383         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3384         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3385         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3386         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3387         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3388         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3389         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3390         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3391         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3392         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3393         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3394
3395 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3396
3397         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3398         fields.
3399
3400 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3401
3402         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3403         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3404         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3405         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3406         Likewise.
3407         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3408         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3409         Likewise.
3410
3411 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3412
3413         * po/h.po: Update from translation team.
3414
3415 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3416
3417         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3418
3419         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3420         handling of denormals.
3421         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3422         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3423         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3424         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3425         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3426         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3427         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3428         Likewise.
3429
3430 2012-05-26  Marek Polacek  <polacek@redhat.com>
3431
3432         [BZ #14152]
3433         * math/libm-test.inc (fma_test): Don't always expect underflow
3434         exception.
3435
3436 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3437
3438         [BZ #12416]
3439         * elf/tst-execstack.c: Include stackinfo.h.
3440         (do_test): Adjust test case to ensure that pthread_getattr_np
3441         behaviour remains the same after marking stack executable.
3442
3443 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3444
3445         * sysdeps/unix/sysv/linux/kernel-features.h
3446         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3447         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3448         kernel-features.h.
3449         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3450         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3451         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3452         kernel-features.h.
3453         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3454         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3455
3456 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3457
3458         * configure.in: Define the default includes to being none.
3459         * configure: Regenerated.
3460
3461 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3462
3463         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3464         * sysdeps/x86_64/setjmp.S: Likewise.
3465         * sysdeps/i386/bsd-setjmp.S: Likewise.
3466         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3467         * sysdeps/i386/setjmp.S: Likewise.
3468         * sysdeps/i386/__longjmp.S: Likewise.
3469         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3470         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3471
3472         * include/stap-probe.h: New file.
3473         * configure.in: Handle --enable-systemtap.
3474         * configure: Regenerated.
3475         * config.h.in (USE_STAP_PROBE): New #undef.
3476         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3477         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3478         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3479
3480 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3481
3482         [BZ #13717]
3483         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3484         to 2.4.0 where earlier.
3485         * sysdeps/unix/sysv/linux/configure: Regenerated.
3486         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3487         <kernel-features.h>.
3488         [__ASSUME_32BITUIDS]: Make code unconditional.
3489         [!__ASSUME_32BITUIDS]: Remove conditional code.
3490         * sysdeps/unix/sysv/linux/i386/fchown.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/i386/fchownat.c (fchownat)
3495         [__ASSUME_32BITUIDS]: Make code unconditional.
3496         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3497         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3498         <kernel-features.h>.
3499         [__ASSUME_32BITUIDS]: Make code unconditional.
3500         [!__ASSUME_32BITUIDS]: Remove conditional code.
3501         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3502         <kernel-features.h>.
3503         [__ASSUME_32BITUIDS]: Make code unconditional.
3504         [!__ASSUME_32BITUIDS]: Remove conditional code.
3505         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3506         <kernel-features.h>.
3507         [__ASSUME_32BITUIDS]: Make code unconditional.
3508         [!__ASSUME_32BITUIDS]: Remove conditional code.
3509         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3510         <kernel-features.h>.
3511         [__ASSUME_32BITUIDS]: Make code unconditional.
3512         [!__ASSUME_32BITUIDS]: Remove conditional code.
3513         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3514         <kernel-features.h>.
3515         [__ASSUME_32BITUIDS]: Make code unconditional.
3516         [!__ASSUME_32BITUIDS]: Remove conditional code.
3517         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3518         <kernel-features.h>.
3519         [__ASSUME_32BITUIDS]: Make code unconditional.
3520         [!__ASSUME_32BITUIDS]: Remove conditional code.
3521         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3522         <kernel-features.h>.
3523         [__ASSUME_32BITUIDS]: Make code unconditional.
3524         [!__ASSUME_32BITUIDS]: Remove conditional code.
3525         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3526         <kernel-features.h>.
3527         [__ASSUME_32BITUIDS]: Make code unconditional.
3528         [!__ASSUME_32BITUIDS]: Remove conditional code.
3529         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3530         <kernel-features.h>.
3531         [__ASSUME_32BITUIDS]: Make code unconditional.
3532         [!__ASSUME_32BITUIDS]: Remove conditional code.
3533         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3534         <kernel-features.h>.
3535         [__ASSUME_32BITUIDS]: Make code unconditional.
3536         [!__ASSUME_32BITUIDS]: Remove conditional code.
3537         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3538         <kernel-features.h>.
3539         [__NR_setresgid] (__setresgid): Do not declare.
3540         [__ASSUME_32BITUIDS]: Make code unconditional.
3541         [!__ASSUME_32BITUIDS]: Remove conditional code.
3542         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3543         <kernel-features.h>.
3544         [__NR_setresuid] (__setresuid): Do not declare.
3545         [__ASSUME_32BITUIDS]: Make code unconditional.
3546         [!__ASSUME_32BITUIDS]: Remove conditional code.
3547         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3548         <kernel-features.h>.
3549         [__ASSUME_32BITUIDS]: Make code unconditional.
3550         [!__ASSUME_32BITUIDS]: Remove conditional code.
3551         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3552         <kernel-features.h>.
3553         [__ASSUME_32BITUIDS]: Make code unconditional.
3554         [!__ASSUME_32BITUIDS]: Remove conditional code.
3555         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3556         <kernel-features.h>.
3557         [__ASSUME_32BITUIDS]: Make code unconditional.
3558         [!__ASSUME_32BITUIDS]: Remove conditional code.
3559         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3560         <kernel-features.h>.
3561         [__ASSUME_32BITUIDS]: Make code unconditional.
3562         [!__ASSUME_32BITUIDS]: Remove conditional code.
3563         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3564         <kernel-features.h>.
3565         [__ASSUME_32BITUIDS]: Make code unconditional.
3566         [!__ASSUME_32BITUIDS]: Remove conditional code.
3567         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3568         <kernel-features.h>.
3569         [__ASSUME_32BITUIDS]: Make code unconditional.
3570         [!__ASSUME_32BITUIDS]: Remove conditional code.
3571         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3572         <kernel-features.h>.
3573         [__ASSUME_32BITUIDS]: Make code unconditional.
3574         [!__ASSUME_32BITUIDS]: Remove conditional code.
3575         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3576         <kernel-features.h>.
3577         [__ASSUME_32BITUIDS]: Make code unconditional.
3578         [!__ASSUME_32BITUIDS]: Remove conditional code.
3579         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3580         <kernel-features.h>.
3581         [__ASSUME_32BITUIDS]: Make code unconditional.
3582         [!__ASSUME_32BITUIDS]: Remove conditional code.
3583         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3584         <kernel-features.h>.
3585         [__ASSUME_32BITUIDS]: Make code unconditional.
3586         [!__ASSUME_32BITUIDS]: Remove conditional code.
3587         * sysdeps/unix/sysv/linux/kernel-features.h
3588         (__ASSUME_SETRESUID_SYSCALL): Remove.
3589         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3590         (__ASSUME_32BITUIDS): Likewise.
3591         (__ASSUME_LDT_WORKS): Likewise.
3592         (__ASSUME_O_DIRECTORY): Likewise.
3593         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3594         architecture but not kernel version.
3595         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3596         (__ASSUME_MMAP2_SYSCALL): Likewise.
3597         (__ASSUME_STAT64_SYSCALL): Likewise.
3598         (__ASSUME_IPC64): Likewise.
3599         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3600         <kernel-features.h>.
3601         [__ASSUME_32BITUIDS]: Make code unconditional.
3602         [!__ASSUME_32BITUIDS]: Remove conditional code.
3603         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3604         <kernel-features.h>.
3605         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3606         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3607         132096]: Remove conditional code.
3608         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3609         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3610         <kernel-features.h>.
3611         [__ASSUME_32BITUIDS]: Make code unconditional.
3612         [!__ASSUME_32BITUIDS]: Remove conditional code.
3613         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3614         <kernel-features.h>.
3615         [__ASSUME_32BITUIDS]: Make code unconditional.
3616         [!__ASSUME_32BITUIDS]: Remove conditional code.
3617         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3618         <kernel-features.h>.
3619         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3620         unconditional.
3621         (__setresgid): Do not declare.
3622         [__ASSUME_32BITUIDS]: Make code unconditional.
3623         [!__ASSUME_32BITUIDS]: Remove conditional code.
3624         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3625         <kernel-features.h>.
3626         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3627         unconditional.
3628         (__setresuid): Do not declare.
3629         [__ASSUME_32BITUIDS]: Make code unconditional.
3630         [!__ASSUME_32BITUIDS]: Remove conditional code.
3631         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3632         <kernel-features.h>.
3633         [__ASSUME_32BITUIDS]: Make code unconditional.
3634         [!__ASSUME_32BITUIDS]: Remove conditional code.
3635         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3636         <kernel-features.h>.
3637         [__ASSUME_32BITUIDS]: Make code unconditional.
3638         [!__ASSUME_32BITUIDS]: Remove conditional code.
3639
3640 2012-05-25  Richard Henderson  <rth@twiddle.net>
3641
3642         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3643         dl_hwcap to ifunc resolver.
3644         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3645         elf_ifunc_invoke.
3646         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3647         dl_hwcap to ifunc resolver.
3648         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3649
3650 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3651
3652         [BZ #14153]
3653         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3654         for |x| <= 2**-26, not 2**-57.
3655         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3656         exception.
3657
3658 2012-05-24  Jeff Law  <law@redhat.com>
3659
3660         * stdio-common/Makefile (tests): Add bug25.
3661         * stdio-common/bug25.c: New test.
3662
3663 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3664
3665         [BZ #13576]
3666         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3667         multiple of MALLOC_ALIGNMENT in size.
3668         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3669
3670 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3671
3672         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3673         Require >= 256.
3674         (FILENAME_MAX): Use macro-int-constant.
3675         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3676         (_IOFBF): Use macro-int-constant.
3677         (_IOLBF): Likewise.
3678         (_IONBF): Likewise.
3679         (SEEK_CUR): Likewise.
3680         (SEEK_END): Likewise.
3681         (SEEK_SET): Likewise.
3682         (TMP_MAX): Likewise.
3683         (EOF): Use macro-int-constant.  Require < 0.
3684         (NULL): Use macro-constant.  Require == 0.
3685         (stdin): Require type to be FILE *.
3686         (stdout): Likewise.
3687         (stderr): Likewise.
3688         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3689         macro-int-constant.
3690         (EXIT_SUCCESS): Likewise.
3691         (NULL): Use macro-constant.  Require == 0.
3692         (RAND_MAX): Use macro-int-constant.
3693         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3694         [C99-based standards] (strtof): Require function.
3695         [C99-based standards] (strtold): Likewise.
3696         [C99-based standards] (strtoll): Likewise.
3697         [C99-based standards] (strtoull): Likewise.
3698         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3699         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3700         [ISO || ISO99 || ISO11] (math.h): Likewise.
3701         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3702         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3703         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3704
3705 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3706
3707         [BZ #14132]
3708         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3709         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3710         * intl/dgettext.c (DCGETTEXT): Likewise.
3711         * intl/gettext.c (DCGETTEXT): Likewise.
3712         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3713         * posix/regex_internal.h (gettext): Likewise.
3714         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3715         Remove declaration.
3716         * include/argz.h (__argz_count_internal)
3717         (__argz_stringify_internal): Remove declaration.
3718         (__argz_count, __argz_stringify): Declare hidden proto.
3719         * intl/dcgettext.c: Remove use of INTDEF.
3720         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3721         * string/argz-stringify.c: Likewise.
3722         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3723         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3724         Declare hidden proto.
3725         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3726         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3727         Declare hidden proto.
3728         * include/stdio.h (__asprintf_internal): Don't declare.
3729         (__asprintf): Don't define as macro.  Declare hidden proto.
3730         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3731         (__fsetlocking): Declare hidden proto.
3732         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3733         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3734         hidden proto.
3735         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3736         (_IO_setlinebuf): Remove use of INTUSE.
3737         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3738         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3739         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3740         Remove declaration.
3741         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3742         (_IO_do_flush): Remove use of INTUSE.
3743         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3744         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3745         (_IO_adjust_column, _IO_least_wmarker)
3746         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3747         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3748         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3749         (_IO_default_doallocate, _IO_wdefault_doallocate)
3750         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3751         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3752         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3753         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3754         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3755         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3756         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3757         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3758         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3759         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3760         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3761         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3762         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3763         proto.
3764         (_IO_flush_all_internal, _IO_adjust_column_internal)
3765         (_IO_default_uflow_internal, _IO_default_finish_internal)
3766         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3767         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3768         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3769         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3770         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3771         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3772         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3773         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3774         (_IO_file_close_internal, _IO_file_close_it_internal)
3775         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3776         (_IO_file_init_internal, _IO_file_attach_internal)
3777         (_IO_file_fopen_internal, _IO_file_read_internal)
3778         (_IO_file_sync_internal, _IO_file_seek_internal)
3779         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3780         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3781         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3782         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3783         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3784         (_IO_list_all_internal, _IO_link_in_internal)
3785         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3786         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3787         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3788         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3789         (_IO_do_write_internal, _IO_padn_internal)
3790         (_IO_getline_info_internal, _IO_getline_internal)
3791         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3792         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3793         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3794         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3795         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3796         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3797         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3798         with libc_hidden_ver, remove use of INTUSE.
3799         * libio/genops.c: Likewise.
3800         * libio/freopen.c: Likewise.
3801         * libio/freopen64.c: Likewise.
3802         * libio/iofclose.c: Likewise.
3803         * libio/iofdopen.c: Likewise.
3804         * libio/iofflush.c: Likewise.
3805         * libio/iofflush_u.c: Likewise.
3806         * libio/iofgets.c: Likewise.
3807         * libio/iofgets_u.c: Likewise.
3808         * libio/iofopen.c: Likewise.
3809         * libio/iofopncook.c: Likewise.
3810         * libio/iofread.c: Likewise.
3811         * libio/iofread_u.c: Likewise.
3812         * libio/ioftell.c: Likewise.
3813         * libio/iofwrite.c: Likewise.
3814         * libio/iogetline.c: Likewise.
3815         * libio/iogets.c: Likewise.
3816         * libio/iogetwline.c: Likewise.
3817         * libio/iopadn.c: Likewise.
3818         * libio/iopopen.c: Likewise.
3819         * libio/ioseekoff.c: Likewise.
3820         * libio/ioseekpos.c: Likewise.
3821         * libio/iosetbuffer.c: Likewise.
3822         * libio/iosetvbuf.c: Likewise.
3823         * libio/ioungetc.c: Likewise.
3824         * libio/ioungetwc.c: Likewise.
3825         * libio/iovdprintf.c: Likewise.
3826         * libio/iovsprintf.c: Likewise.
3827         * libio/iovsscanf.c: Likewise.
3828         * libio/memstream.c: Likewise.
3829         * libio/obprintf.c: Likewise.
3830         * libio/oldfileops.c: Likewise.
3831         * libio/oldiofclose.c: Likewise.
3832         * libio/oldiofdopen.c: Likewise.
3833         * libio/oldiofopen.c: Likewise.
3834         * libio/oldiopopen.c: Likewise.
3835         * libio/oldstdfiles.c: Likewise.
3836         * libio/putc.c: Likewise.
3837         * libio/setbuf.c: Likewise.
3838         * libio/setlinebuf.c: Likewise.
3839         * libio/stdfiles.c: Likewise.
3840         * libio/strops.c: Likewise.
3841         * libio/vasprintf.c: Likewise.
3842         * libio/vscanf.c: Likewise.
3843         * libio/vsnprintf.c: Likewise.
3844         * libio/vswprintf.c: Likewise.
3845         * libio/wfiledoalloc.c: Likewise.
3846         * libio/wfileops.c: Likewise.
3847         * libio/wgenops.c: Likewise.
3848         * libio/wmemstream.c: Likewise.
3849         * libio/wstrops.c: Likewise.
3850         * libio/__fpurge.c: Likewise.
3851         * libio/__fsetlocking.c: Likewise.
3852         * assert/assert.c: Likewise.
3853         * debug/fgets_chk.c: Likewise.
3854         * debug/fgets_u_chk.c: Likewise.
3855         * debug/fread_chk.c: Likewise.
3856         * debug/fread_u_chk.c: Likewise.
3857         * debug/gets_chk.c: Likewise.
3858         * debug/obprintf_chk.c: Likewise.
3859         * debug/vasprintf_chk.c: Likewise.
3860         * debug/vdprintf_chk.c: Likewise.
3861         * debug/vsnprintf_chk.c: Likewise.
3862         * debug/vsprintf_chk.c: Likewise.
3863         * malloc/mtrace.c: Likewise.
3864         * misc/error.c: Likewise.
3865         * misc/syslog.c: Likewise.
3866         * stdio-common/asprintf.c: Likewise.
3867         * stdio-common/fxprintf.c: Likewise.
3868         * stdio-common/getw.c: Likewise.
3869         * stdio-common/isoc99_fscanf.c: Likewise.
3870         * stdio-common/isoc99_scanf.c: Likewise.
3871         * stdio-common/isoc99_vfscanf.c: Likewise.
3872         * stdio-common/isoc99_vscanf.c: Likewise.
3873         * stdio-common/isoc99_vsscanf.c: Likewise.
3874         * stdio-common/printf-prs.c: Likewise.
3875         * stdio-common/printf_fp.c: Likewise.
3876         * stdio-common/printf_fphex.c: Likewise.
3877         * stdio-common/printf_size.c: Likewise.
3878         * stdio-common/putw.c: Likewise.
3879         * stdio-common/scanf.c: Likewise.
3880         * stdio-common/sprintf.c: Likewise.
3881         * stdio-common/tmpfile.c: Likewise.
3882         * stdio-common/vfprintf.c: Likewise.
3883         * stdio-common/vfscanf.c: Likewise.
3884         * stdlib/strfmon_l.c: Likewise.
3885         * sunrpc/openchild.c: Likewise.
3886         * sunrpc/xdr_stdio.c: Likewise.
3887         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3888         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3889
3890 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3891
3892         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3893
3894         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3895         in the third column, to generate for the shared library an IFUNC
3896         that uses _dl_vdso_vsym.
3897         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3898         * Makeconfig (object-suffixes-noshared): New variable.
3899
3900         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3901         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3902         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3903         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3904
3905         [BZ #14132]
3906         * include/sys/time.h (__gettimeofday): Remove macro.
3907         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3908         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3909         Remove INTDEF.
3910         (__gettimeofday): Add libc_hidden_def.
3911         (gettimeofday): Add libc_hidden_weak.
3912         * sysdeps/mach/gettimeofday.c: Likewise.
3913         * sysdeps/posix/gettimeofday.c: Likewise.
3914         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3915         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3916         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3917         (__gettimeofday_internal): Remove strong_alias.
3918         (__gettimeofday): Add libc_hidden_def.
3919         (gettimeofday): Add libc_hidden_weak.
3920         * sysdeps/unix/syscalls.list (gettimeofday):
3921         Remove __gettimeofday_internal alias.
3922
3923 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3924             H.J. Lu  <hongjiu.lu@intel.com>
3925
3926         [BZ #12495]
3927         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3928         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3929         (largebin_index_32_big): New.
3930         (largebin_index): Use it for 16-byte alignment.
3931         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3932         correction with front_misalign.
3933
3934 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3935
3936         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3938         Likewise.
3939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3940         Likewise.
3941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3942         Likewise.
3943         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3944         Likewise.
3945         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3946         Likewise.
3947         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3948         Likewise.
3949         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3950         Likewise.
3951         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3952         Likewise.
3953         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3954         Likewise.
3955         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3956         Likewise.
3957         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3958         Likewise.
3959         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3960         Likewise.
3961
3962         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3963         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3964
3965 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3966
3967         [BZ #10846]
3968         [BZ #14036]
3969         * math/libm-test.inc (exp_test): Add test from bug 14036.
3970         (pow_test): Add test from bug 10846.
3971
3972         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3973         and other flags.
3974         (special_function): Do not include flags in test name.
3975         (parse_args): Likewise.
3976         * sysdeps/i386/fpu/libm-test-ulps: Update.
3977         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3978         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3979         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3981
3982         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3983         exceptions.
3984         * math/libm-test.inc ("Philosophy"): Update comment about
3985         exception testing.
3986         (UNDERFLOW_EXCEPTION): New macro.
3987         (UNDERFLOW_EXCEPTION_OK): Likewise.
3988         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3989         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3990         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3991         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3992         (INVALID_EXCEPTION_OK): Update value.
3993         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3994         (OVERFLOW_EXCEPTION_OK): Likewise.
3995         (IGNORE_ZERO_INF_SIGN): Likewise.
3996         (test_exceptions): Handle underflow exceptions.
3997         (acos_test): Update for underflow exception expectations.
3998         (cexp_test): Likewise.
3999         (clog_test): Likewise.
4000         (clog10_test): Likewise.
4001         (csqrt_test): Likewise.
4002         (ctan_test): Likewise.
4003         (ctanh_test): Likewise.
4004         (exp_test): Likewise.
4005         (exp10_test): Likewise.
4006         (exp2_test): Likewise.
4007         (expm1_test): Likewise.
4008         (fma_test): Likewise.
4009         (j0_test): Likewise.
4010         (jn_test): Likewise.
4011         (nexttoward_test): Likewise.
4012         (pow_test): Likewise.
4013         (scalbn_test): Likewise.
4014         (scalbln_test): Likewise.
4015         (tan_test): Likewise.
4016         (y1_test): Likewise.
4017         * sysdeps/i386/fpu/libm-test-ulps: Update.
4018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4019
4020 2012-05-23  David S. Miller  <davem@davemloft.net>
4021
4022         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4023         (__libc_sigaction): Remove unused local variables.
4024
4025 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4026
4027         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4028
4029 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4030
4031         mktime: avoid signed integer overflow
4032         * time/mktime.c (__mktime_internal): Do not mishandle the case
4033         where diff == INT_MIN.
4034
4035         mktime: simplify computation of average
4036         * time/mktime.c (ranged_convert): Use new time_t_avg function
4037         instead of rolling our own (probably-slower) code.
4038
4039         mktime: do not assume signed right shift propagates sign bit
4040         * time/mktime.c (isdst_differ): New static function.
4041         (__mktime_internal): No need to normalize tm_isdst now.
4042         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4043         tm_isdst values.
4044
4045         mktime: merge another wrapv change from gnulib
4046         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4047         from some compilers.
4048
4049         mktime: remove incorrect attempt at unusual arithmetics
4050         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4051         The code didn't really work on such machines anyway.
4052         (TYPE_MINIMUM): Assume two's complement.
4053         (twos_complement_arithmetic): Verify that long_int and time_t
4054         are two's complement (or unsigned, in the latter case).
4055
4056         mktime: check signed shifts on long_int and time_t, too
4057         * time/mktime.c (SHR): Check that shifts work as desired
4058         on the types long_int and time_t too, as SHR is used on
4059         such types.
4060
4061         mktime: do not assume 'long' is wide enough
4062         * time/mktime.c (verify): Move decl up.
4063         (long_int): New type.
4064         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4065         to remove assumption in the code that 'long' is wide enough to
4066         store year values.  This assumption is not true on x32 and on
4067         some non-glibc platforms.
4068
4069         mktime: merge wrapv change from gnulib
4070         * time/mktime.c (WRAPV): New macro.
4071         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4072         (guess_time_tm, __mktime_internal): Do not assume that signed
4073         integer overflow wraps around; modern compilers generate code
4074         where this assumption is no longer valid.
4075
4076 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4077
4078         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4079         Replace "jmp L(pseudo_end)" with "ret".
4080         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4081         Likewise.
4082
4083 2012-05-23  Andreas Jaeger  <aj@suse.de>
4084
4085         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4086         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4087
4088 2012-05-23  Andreas Jaeger  <aj@suse.de>
4089             Maximilian Attems  <max@stro.at>
4090
4091         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4092         New macros.
4093
4094 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4095
4096         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4097         code so that pseudo_end is just ret and the stack pointer is
4098         correct also for static library in error case.
4099
4100 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4101
4102         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4103         move to syscalls.list.
4104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4105         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4107         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4108
4109         * manual/install.texi (Running make install): Do not mention Linux
4110         kernel version for which pt_chown is not needed.
4111         (Linux): Do not mention problems with nscd with 2.0 kernels.
4112         * INSTALL: Regenerated.
4113
4114 2012-05-23  Andreas Jaeger  <aj@suse.de>
4115
4116         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4117         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4118         macro.
4119         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4120         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4121         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4122         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4123         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4124         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4125         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4126         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4127         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4128         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4129         * sysdeps/unix/sysv/linux/bits/in.h
4130         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4131
4132 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4133
4134         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4135         (PREPARE_VERSION): Just use assert instead, it will be elided
4136         under [NDEBUG] anyway.
4137
4138 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4139
4140         * sysdeps/unix/sysv/linux/Makefile: Include
4141         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4142         (sysdep_routines): Remove sysctl.
4143         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4144         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4145         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4146         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4147         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4148
4149 2012-05-22  Andreas Jaeger  <aj@suse.de>
4150
4151         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4152         that pseudo_end is just ret and the stack pointer is correct also
4153         for static library in error case.
4154
4155 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4156
4157         [BZ #14122]
4158         * nss/nsswitch.c (defconfig_entries): New variable.
4159         (__nss_database_lookup): Don't leak defconfig entries.
4160         (nss_parse_service_list): Don't leak on error paths.
4161         (free_database_entries): New function.
4162         (free_defconfig): New function.
4163         (free_mem): Move common code to free_database_entries.
4164
4165 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4166
4167         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4168         Add arch_prctl.
4169         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4170
4171         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4172         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4173         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4174         New macro.
4175         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4176         (INTERNAL_SYSCALL_TYPES): Likewise.
4177         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4178         (LOAD_REGS_TYPES_[1-6]): Likewise.
4179         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4180         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4181
4182 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4183
4184         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4185         copysignl for GLIBC_2_0.
4186         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4187         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4188         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4189         logbl for GLIBC_2_0.
4190         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4191         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4192
4193 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4194
4195         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4196         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4197
4198         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4199         Use "neg %eax".
4200
4201         * time/mktime.c: Update copyright years.
4202
4203 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4204
4205         mktime: merge comment-quoting-style change from gnulib
4206         * time/mktime.c: Quote 'like this' in comments.
4207         The GNU coding standards suggest that we no longer quote `like this',
4208         as "`" and "'" are typically rendered asymmetrically nowadays.
4209         The typical gnulib style is to quote 'like this' when quoting
4210         code, and "like this" when quoting English.
4211
4212         * time/mktime.c (compile-command): Add "-I.".
4213
4214         mktime: merge mktime-internal.h change from gnulib
4215         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4216
4217         mktime: merge time_r change from gnulib
4218         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4219
4220         mktime: merge DEBUG change from gnulib
4221         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4222         case system <time.h> has a #define.
4223
4224         mktime: merge <sys/types.h> change from gnulib
4225         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4226         since <time.t> is now guaranteed to define time_t.
4227
4228         mktime: merge HAVE_CONFIG_H change from gnulib
4229         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4230
4231 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4232
4233         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4234         Use "neg %eax".
4235
4236         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4237         __rlim_t cast.
4238         (struct rusage): Use anonymous union to pad each field to
4239         __syscall_slong_t.
4240
4241 2012-05-21  David S. Miller  <davem@davemloft.net>
4242
4243         * Makefules (o-iterator): Remove .s cases.
4244         (compile-command.s): Delete.
4245         (COMPILE.s): Delete.
4246         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4247
4248 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4249
4250         * configure.in (libc_cv_predef_stack_protector): Only consider
4251         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4252         * configure: Regenerated.
4253
4254 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4255
4256         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4257         New macro.  Use R*LP on int and pointer.
4258         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4259         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4260         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4261         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4262
4263         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4264         [__WORDSIZE_TIME64_COMPAT32] instead of
4265         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4266         (struct utmp): Likewise.
4267         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4268         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4269         Renamed to ...
4270         (__WORDSIZE_TIME64_COMPAT32): This.
4271         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4272         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4273         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4274         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4275         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4276         (__WORDSIZE_TIME64_COMPAT32): New macro.
4277
4278 2012-05-21  Andreas Jaeger  <aj@suse.de>
4279
4280         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4281         only if [SHARED]. Add prototype for __wcschr_ia32.
4282
4283 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4284
4285         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4286         of %rbp unmolested in the jmp_buf while mangling the low bits.
4287         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4288         unmolested high bits of %rbp while demangling the low bits.
4289         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4290
4291 2012-05-21  Andreas Jaeger  <aj@suse.de>
4292
4293         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4294         * sunrpc/svc_simple.c: Use it for registerrpc.
4295         * sunrpc/xcrypt.c: Use it for passwd2des.
4296
4297         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4298
4299 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4300
4301         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4302         Don't define if [__SYSCALL_WORDSIZE != 32].
4303         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4304         New macro.
4305
4306 2012-05-21  Bruno Haible  <bruno@clisp.org>
4307             Andreas Jaeger  <aj@suse.de>
4308
4309         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4310         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4311         inptr and inend for must_buffer_ch.
4312         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4313         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4314         * stdio-common/Makefile (tests): Remove bug15.
4315         (bug15-ENV): Remove macro.
4316         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4317         anymore.
4318
4319 2012-05-19  Andreas Jaeger  <aj@suse.de>
4320             Roland McGrath  <roland@hack.frob.com>
4321
4322         * manual/contrib.texi: Completely rewritten. It contains now an
4323         alphabetical list of contributors and their contributions.
4324
4325 2012-05-21  Richard Henderson  <rth@twiddle.net>
4326
4327         * misc/getauxval.c (__getauxval): Use unsigned long int.
4328         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4329         (getauxval): Use unsigned long int.
4330
4331 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4332
4333         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4334
4335 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4336
4337         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4338         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4339         __alignof__ (long double).
4340
4341 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4342
4343         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4344
4345 2012-05-20  Richard Henderson  <rth@twiddle.net>
4346
4347         * misc/getauxval.c: New file.
4348         * misc/sys/auxv.h: New file.
4349         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4350         (routines): Add getauxval.
4351         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4352         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4353         * elf/dl-sysdep.c (_dl_auxv): Remove.
4354         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4355         * elf/dl-support.c (_dl_auxv): New variable.
4356         (_dl_aux_init): Initialize it.
4357         * manual/startup.texi (Auxiliary Vector): New node.
4358         * sysdeps/generic/bits/hwcap.h: New file.
4359         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4360         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4361         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4362         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4363         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4364         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4366         Update.
4367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4368         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4370         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4371         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4372         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4373         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4374         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4375
4376 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4377
4378         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4379
4380 2012-05-19  David S. Miller  <davem@davemloft.net>
4381
4382         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4383
4384 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4385
4386         [BZ #14123]
4387         * math/s_ccosh.c: Include <float.h>
4388         (__ccosh): Avoid internal overflow calculating sinh and cosh
4389         values before multiplying by sin and cos values.
4390         * math/s_ccoshf.c: Likewise.
4391         * math/s_ccoshl.c: Likewise.
4392         * math/s_csin.c: Likewise.
4393         * math/s_csinf.c: Likewise.
4394         * math/s_csinl.c: Likewise.
4395         * math/s_csinh.c: Likewise.
4396         * math/s_csinhf.c: Likewise.
4397         * math/s_csinhl.c: Likewise.
4398         * math/libm-test.inc (ccos_test): Add more tests.
4399         (ccosh_test): Likewise.
4400         (csin_test): Likewise.
4401         (csinh_test): Likewise.
4402         * sysdeps/i386/fpu/libm-test-ulps: Update.
4403         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4404
4405 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4406
4407         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4408         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4409
4410         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4411
4412 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4413
4414         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4415         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4416         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4417         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4418         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4419         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4420         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4421         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4422         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4423         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4424         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4425         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4426         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4427         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4428         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4429         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4430         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4431         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4432         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4433         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4434         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4435         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4436         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4437         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4438         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4439         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4440         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4441         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4442         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4443         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4444         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4445
4446 2012-05-18  Andreas Jaeger  <aj@suse.de>
4447
4448         * csu/.gitignore: Delete.
4449
4450 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4451
4452         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4453         (timex): Use __syscall_slong_t.
4454
4455 2012-05-18  Andreas Jaeger  <aj@suse.de>
4456             Carlos O'Donell  <carlos_odonell@mentor.com>
4457
4458         * manual/install.texi (Configuring and compiling): Update
4459         description about files modified in the source directory.
4460         * INSTALL: Regenerated.
4461
4462 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4463
4464         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4465         value.  Use "or" to set return value to -1.
4466         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4467         negate return value.
4468
4469 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4470
4471         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4472         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4473         failure if the compiler has Graphite support disabled.
4474         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4475         Likewise.
4476         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4477         CFLAGS-memmove.c): Likewise.
4478         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4479         Likewise.
4480
4481 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4482
4483         * sysdeps/x86_64/x32/_itoa.h: New file.
4484
4485         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4486         getdents system call only if kernel and user dirents have the
4487         same d_ino and d_off.
4488
4489         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4490         LLONG_MAX != LONG_MAX.
4491         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4492         (_fitoa_word): Likewise.
4493
4494         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4495         years.
4496         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4497         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4498         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4499
4500         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4501         include <bits/wordsize.h>.  Check __x86_64__ instead of
4502         __WORDSIZE.
4503         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4504         if __x86_64__ is defined.  Use anonymous union on fpstate.
4505
4506         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4507         anonymous union.
4508
4509 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4510
4511         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4512         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4513         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4514         Refer to _rtld_local_ro instead of _rtld_global_ro.
4515         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4516         Likewise.
4517         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4518         Likewise.
4519         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4520         Likewise.
4521         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4522         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4523         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4524
4525         * sysdeps/powerpc/powerpc32/dl-machine.c
4526         (__elf_machine_runtime_setup) [PROF]: Don't reference
4527         _dl_prof_resolve.
4528
4529 2012-05-18  Andreas Jaeger  <aj@suse.de>
4530
4531         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4532         function only available for GCCs before 3.4 since GCC 3.4
4533         introduced a builtin.
4534         (lrint): Likewise.
4535         (llrintf): Likewise.
4536         (llrint): Likewise.
4537         (fmaxf): Likewise.
4538         (fmax): Likewise.
4539         (fminf): Likewise.
4540         (fmin): Likewise.
4541         (rint): Likewise.
4542         (rintf): Likewise.
4543         (nearbyint): Likewise.
4544         (nearbyintf): Likewise.
4545         (ceil): Likewise.
4546         (ceilf): Likewise.
4547         (floor): Likewise.
4548         (floorf): Likewise.
4549
4550 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4551
4552         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4553         on both fields and cast pointer to __syscall_ulong_t.
4554
4555         * bits/types.h (__fsword_t): New type.
4556         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4557         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4558         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4559         (__FSWORD_T_TYPE): Likewise.
4560         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4561         (__FSWORD_T_TYPE): Likewise.
4562         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4563         (__FSWORD_T_TYPE): Likewise.
4564         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4565         (__FSWORD_T_TYPE): Likewise.
4566         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4567         __SWORD_TYPE with __fsword_t.
4568         (statfs64): Likewise.
4569
4570 2012-05-17  David S. Miller  <davem@davemloft.net>
4571
4572         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4573
4574 2012-05-17  Andreas Jaeger  <aj@suse.de>
4575
4576         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4577         warning.
4578
4579 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4580
4581         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4582
4583 2012-05-17  Andreas Jaeger  <aj@suse.de>
4584
4585         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4586         when it is used.
4587
4588 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4589
4590         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4591
4592 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4593
4594         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4595         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4596
4597 2012-05-17  Andreas Jaeger  <aj@suse.de>
4598             Carlos O'Donell  <carlos_odonell@mentor.com>
4599
4600         [BZ #14059]
4601         * sysdeps/x86_64/multiarch/init-arch.h
4602         (bit_YMM_Usable): Rename to...
4603         (bit_AVX_Usable): ... this.
4604         (bit_FMA4_Usable): New macro.
4605         (bit_XMM_state): New macro.
4606         (bit_YMM_state): New macro.
4607         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4608         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4609         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4610         (CPUID_OSXSAVE): New macro.
4611         (CPUID_AVX): New macro.
4612         (CPUID_FMA4): New macro.
4613         (index_YMM_Usable): Rename to...
4614         (index_AVX_Usable): ... this.
4615         (HAS_AVX): Use HAS_ARCH_FEATURE.
4616         (HAS_FMA4): Likewise.
4617         (HAS_YMM_USABLE): Remove.
4618         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4619         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4620         are present.
4621         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4622         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4623         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4624         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4625         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4626
4627 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4628
4629         * math/libm-test.c: Support platforms without multiple rounding modes.
4630         * math/bug-nextafter.c: Support platforms without FP exceptions.
4631         * math/bug-nexttoward.c: Likewise.
4632         * math/test-fenv.c: Likewise.
4633         * math/test-misc.c: Likewise.
4634         * stdlib/bug-getcontext.c: Likewise.
4635
4636 2012-05-17  Andreas Jaeger  <aj@suse.de>
4637
4638         * manual/examples/search.c (critter_cmp): Change signature to
4639         avoid warnings.
4640         * manual/string.texi (Collation Functions): Likewise.
4641
4642 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4643
4644         * bits/types.h: Fold copyright years.
4645         * bits/typesizes.h: Likewise.
4646         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4647         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4648         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4649         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4650         * time/time.h: Likewise.
4651
4652 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4653
4654         [BZ #208]
4655         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4656         in instead of returning them.  Return void.
4657         (__libc_mallinfo): Accumulate over all arenas.
4658         (__malloc_stats): Adjust for change in int_mallinfo interface.
4659
4660 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4661
4662         [BZ #10375]
4663         * configure.in (NM): Add AC_CHECK_TOOL for it.
4664         (libc_extra_cflags): New substituted variable.
4665         Check for -fstack-protector being used implicitly.
4666         * configure: Regenerated.
4667         * config.make.in (config-extra-cflags): New variable,
4668         gets @libc_extra_cflags@.
4669         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4670
4671         [BZ #10375]
4672         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4673         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4674         * configure: Regenerated.
4675         * config.make.in (CPPUNDEFS): New substituted variable.
4676         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4677         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4678         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4679
4680 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4681
4682         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4683         (mq_attr): Use __syscall_slong_t.
4684
4685 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4686
4687         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4688         Check __x86_64__ instead of __WORDSIZE.
4689         (_STAT_VER_LINUX): Likewise.
4690         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4691         __syscall_ulong_t and __syscall_slong_t.
4692         (stat64): Likewise.
4693
4694 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4695
4696         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4697
4698 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4699
4700         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4701
4702 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4703
4704         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4705         __syscall_ulong_t.
4706
4707         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4708         include <bits/wordsize.h>.  Check __x86_64__ instead of
4709         __WORDSIZE.
4710         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4711         defined.
4712         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4713
4714         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4715         include <bits/wordsize.h>.  Check __x86_64__ instead of
4716         __WORDSIZE.
4717         (user_regs_struct): Use "__extension__ unsigned long long"
4718         instead of "unsigned long" if __x86_64__ is defined.
4719         (user): Likewise.  Pad after pointer field if __ILP32__ is
4720         defined.
4721
4722 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4723
4724         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4725         versions 5 to 9.
4726         * configure: Regenerated.
4727         * manual/install.texi (texinfo): Increase version requirement to
4728         4.5 or later.
4729         * INSTALL: Regenerated.
4730
4731         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4732
4733 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4734
4735         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4736
4737         * sysdeps/x86_64/x32/ffs.c: New file.
4738
4739         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4740         __syscall_ulong_t.
4741         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4742         defined.  Use __syscall_ulong_t.
4743         (shminfo): Use __syscall_ulong_t.
4744         (shm_info): Likewise.
4745
4746         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4747         __syscall_ulong_t.
4748
4749         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4750         <bits/wordsize.h>.
4751         (msgqnum_t): Use __syscall_ulong_t.
4752         (msglen_t): Likewise.
4753         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4754         __syscall_ulong_t.
4755
4756         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4757         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4758
4759         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4760
4761         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4762         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4763
4764         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4765         __syscall_slong_t.
4766
4767         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4768         include <bits/wordsize.h>.  Check __x86_64__ instead of
4769         __WORDSIZE.
4770
4771         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4772         "unsigned long long int" if __x86_64__ is defined.
4773         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4774
4775         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4776         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4777         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4778
4779         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4780         <stdint.h>.
4781         (GET_PC): Cast to uintptr_t first.
4782         (GET_FRAME): Likewise.
4783         (GET_STACK): Likewise.
4784
4785         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4786         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4787         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4788         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4789         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4790         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4791         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4792         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4793         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4794         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4795         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4796         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4797         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4798         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4799         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4800         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4801         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4802         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4803         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4804         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4805         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4806         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4807         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4808         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4809         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4810         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4811         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4812         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4813         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4814
4815 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4816
4817         * Makerules (+depfiles): Also collect depfiles from .oS in
4818         $(extra-objs).
4819         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4820         .oS, $(libnldbl-routines)).
4821
4822         * Makerules (native-compile-mkdep-flags): Define.
4823         * sunrpc/Makefile (extra-objs): Add $(addprefix
4824         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4825         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4826         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4827         calling $(make-target-directory).
4828
4829 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4830
4831         * bits/types.h (__snseconds_t): Removed.
4832         * time/time.h (struct timespec): Replace __snseconds_t with
4833         __syscall_slong_t.
4834         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4835         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4836         Likewise.
4837         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4838         (__SNSECONDS_T_TYPE): Likewise.
4839         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4840         (__SNSECONDS_T_TYPE): Likewise.
4841         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4842         (__SNSECONDS_T_TYPE): Likewise.
4843
4844 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4845
4846         * sysdeps/mach/hurd/bits/typesizes.h
4847         (__SYSCALL_SLONG_TYPE): New macro.
4848         (__SYSCALL_ULONG_TYPE): Likewise.
4849
4850 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4851
4852         * bits/types.h (__syscall_slong_t): New type.
4853         (__syscall_ulong_t): Likewise.
4854
4855         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4856         (__SYSCALL_ULONG_TYPE): Likewise.
4857         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4858         (__SYSCALL_SLONG_TYPE): Likewise.
4859         (__SYSCALL_ULONG_TYPE): Likewise.
4860         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4861         (__SYSCALL_SLONG_TYPE): Likewise.
4862         (__SYSCALL_ULONG_TYPE): Likewise.
4863         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4864         (__SYSCALL_SLONG_TYPE): Likewise.
4865         (__SYSCALL_ULONG_TYPE): Likewise.
4866
4867 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4868
4869         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4870         Add sigaltstack-offsets.sym.
4871         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4872         <sigaltstack-offsets.h>.
4873         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4874         longjmp_msg pointer.
4875         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4876         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4877         signal stack.
4878         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4879
4880 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4881
4882         * elf/stackguard-macros.h: Remove file.
4883         * sysdeps/generic/stackguard-macros.h: New file.
4884         * sysdeps/i386/stackguard-macros.h: Likewise.
4885         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4886         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4887         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4888         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4889         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4890         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4891         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4892         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4893         <elf/stackguard-macros.h>.
4894
4895         [BZ #14109]
4896         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4897         __aligned__ in attribute.
4898         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4899         (gregset_t): Likewise.
4900
4901 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4902
4903         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4904         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4905         * sysdeps/x86_64/x32/Implies-after: New file.
4906
4907 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4908
4909         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4910         and access return value for _dl_profile_fixup.  Use R10_LP to
4911         load frame size.
4912
4913 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4914
4915         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4916
4917 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4918
4919         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4920         * sysdeps/x86_64/x32/sysdep.h: New file.
4921
4922 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4923
4924         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4925         * sysdeps/x86_64/setjmp.S: Likewise.
4926
4927 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4928
4929         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4930         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4931         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4932         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4933         remove unused global constant.
4934
4935 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4936
4937         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4938         include of <not-cancel.h>.
4939
4940 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4941
4942         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4943
4944 2012-05-15  Jeff Law  <law@redhat.com>
4945             Andreas Jaeger  <aj@suse.de>
4946
4947         [BZ #13594]
4948         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4949         out from...
4950         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4951         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4952         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4953         code changing __hst_map_handle.map.
4954
4955 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4956
4957         * configure.in (sysnames): Look for Implies-before and Implies-after
4958         files.
4959         * configure: Regenerated.
4960
4961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4962
4963         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4964         8-byte data alignment with LP_SIZE alignment.
4965
4966 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4967
4968         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4969         into R10_LP.
4970
4971 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4972
4973         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4974
4975 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4976
4977         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4978         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4979         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4980         Likewise.
4981         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4982
4983 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4984
4985         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4986         (stackinfo_sub_sp): Likewise.
4987
4988 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4989
4990         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4991         RAX_LP.
4992
4993 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4994
4995         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4996         into R*_LP.
4997
4998 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4999
5000         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
5001         sizes into R*_LP.
5002
5003 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5004
5005         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5006
5007 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5008
5009         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5010         into R11_LP and load __x86_64_shared_cache_size_half into
5011         R8_LP.
5012
5013 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5014
5015         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5016         R8_LP.
5017
5018 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5019
5020         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5021         logb for POWER7.
5022         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5023         logbf for POWER7.
5024         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5025         logbl for POWER7.
5026         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5027         powerpc32/power7/fpu/s_logb.c via #include.
5028         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5029         powerpc32/power7/fpu/s_logbf.c via #include.
5030         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5031         powerpc32/power7/fpu/s_logbl.c via #include.
5032
5033 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5034
5035         * README.libm: Remove file.
5036
5037 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5038
5039         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5040         count for x32.  Use R*_LP and omit operand-size suffix.
5041
5042 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5043
5044         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5045         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5046         * sysdeps/x86_64/x32/shlib-versions: New file.
5047
5048 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5049
5050         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5051         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5052         Use _dl_fatal_printf instead.
5053
5054 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5055
5056         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5057         set if not set by the user.  Do not allow for being unset.
5058         * sysdeps/unix/sysv/linux/configure: Regenerated.
5059
5060 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5061
5062         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5063         the `q' suffix from lea and replace .quad with ASM_ADDR.
5064
5065 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5066
5067         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5068         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5069         instead of $17.
5070         (PTR_DEMANGLE): Likewise.
5071
5072 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5073
5074         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5075         (LP_OP): Likewise.
5076         (ASM_ADDR): Likewise.
5077         (RAX_LP): Likewise.
5078         (RBP_LP): Likewise.
5079         (RBX_LP): Likewise.
5080         (RCX_LP): Likewise.
5081         (RDI_LP): Likewise.
5082         (RSI_LP): Likewise.
5083         (RSP_LP): Likewise.
5084         (R8_LP): Likewise.
5085         (R9_LP): Likewise.
5086         (R10_LP): Likewise.
5087         (R10_LP): Likewise.
5088         (R11_LP): Likewise.
5089         (R12_LP): Likewise.
5090         (R13_LP): Likewise.
5091         (R14_LP): Likewise.
5092         (R15_LP): Likewise.
5093
5094 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5095
5096         * sysdeps/x86_64/x32/dl-machine.h: New file.
5097
5098 2012-05-14  Andreas Jaeger  <aj@suse.de>
5099
5100         * manual/Makefile (subdir): Remove export of subdir.
5101         (all): Remove target.
5102         (.PHONY): Remove all from list.
5103         (mkinstalldirs): Remove.
5104         (.PHONY): Remove installdirs from list.
5105         ($(inst_infodir)/libc.info): Use make-target-directory.
5106         (installdirs): Remove.
5107         (subdir_%): Remove.
5108         (glibc-targets): Remove.
5109         (lib): Remove.
5110         (stubs): Remove.
5111         ($(objpfx)stubs ../po/manual.pot): Remove.
5112         ($(objpfx)stamp%): Remove.
5113         (make-target-directory): Remove.
5114         (subdir_install): Remove.
5115         (routines): Remove.
5116         (aux): Remove.
5117         (sources): Remove.
5118         (objects): Remove.
5119         (headers): Remove.
5120
5121         [BZ #13750]
5122         * manual/.gitignore: Remove, it's not needed anymore.
5123         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5124         all files in it.
5125         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5126         directory.
5127         (texis): Renamed to $(objpfx)texis.
5128         (texis-path): New, contains path to generated files.
5129         (chapters.%): Use texis-path for complete path, add extra argument
5130         libc-texinfo.sh.
5131         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5132         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5133         (summary,texi, stamp-summary): Use complete path of
5134         files. Generate files in build dir.
5135         (dir-add.texi): Build in build dir.
5136         (libm-err.texi,stamp-libm-err): Likewise.
5137         (version.texi, stamp-version): Likewise.
5138         (.%c.texi): Likewise.
5139         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5140         (mostlyclean): Remove target.
5141         (realclean): Remove target.
5142         (generated): Add new variable with contents from mostlyclean and
5143         realclean, remove entries duplicated in common-mostlyclean, add
5144         stamp-libm-err and stamp-version.
5145         (generated-dirs): Add libc directory.
5146         ($(inst_infodir)/libc.info): Install files from build dir.
5147
5148         * manual/install.texi (Configuring and compiling): Adjust since
5149         the info files are not part of the tar ball anymore.
5150
5151 2012-05-14  Andreas Jaeger  <aj@suse.de>
5152
5153         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5154         variable.
5155
5156 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5157
5158         [BZ #13717]
5159         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5160         to 2.2.0 where earlier.
5161         * sysdeps/unix/sysv/linux/configure: Regenerated.
5162         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5163         Remove conditional code.
5164         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5165         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5166         Remove conditional code.
5167         [!__NR_lchown]: Likewise.
5168         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5169         [__NR_lchown]: Likewise.
5170         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5171         comment referencing __ASSUME_LCHOWN_SYSCALL.
5172         * sysdeps/unix/sysv/linux/i386/sigaction.c
5173         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5174         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5175         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5176         Remove conditional code.
5177         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5178         (__protocol_available): Remove #if 0 code.
5179         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5180         conditional code.
5181         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5182         * sysdeps/unix/sysv/linux/kernel-features.h
5183         (__ASSUME_GETCWD_SYSCALL): Don't define.
5184         (__ASSUME_REALTIME_SIGNALS): Likewise.
5185         (__ASSUME_PREAD_SYSCALL): Likewise.
5186         (__ASSUME_PWRITE_SYSCALL): Likewise.
5187         (__ASSUME_POLL_SYSCALL): Likewise.
5188         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5189         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5190         non-SPARC.
5191         (__ASSUME_SIOCGIFNAME): Don't define.
5192         (__ASSUME_MSG_NOSIGNAL): Likewise.
5193         (__ASSUME_SENDFILE): Define unconditionally.
5194         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5195         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5196         conditional code.
5197         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5198         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5199         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5200         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5201         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5202         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5203         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5204         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5205         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5206         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5207         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5208         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5209         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5210         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5211         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5212         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5214         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5215         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5216         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5217         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5218         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5219         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5220         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5221         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5223         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5224         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5225         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5226         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5227         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5228         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5229         Remove conditional code.
5230         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5231         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5232         Remove conditional code.
5233         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5234         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5235         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5236         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5237         Remove conditional code.
5238         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5239         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5240         Remove conditional code.
5241         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5242         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5243         Remove conditional code.
5244         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5245         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5246         Remove conditional code.
5247         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5248         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5249         Remove conditional code.
5250         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5251         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5252         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5253         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5254         * sysdeps/unix/sysv/linux/sigaction.c
5255         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5256         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5257         * sysdeps/unix/sysv/linux/sigpending.c
5258         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5259         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5260         * sysdeps/unix/sysv/linux/sigprocmask.c
5261         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5262         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5263         * sysdeps/unix/sysv/linux/sigsuspend.c
5264         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5265         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5266         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5267         (__libc_missing_rt_sigs): Remove.
5268         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5269         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5270         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5271         Remove conditional code.
5272         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5273         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5274         return 1.
5275         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5276         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5277         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5278         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5279
5280 2012-05-14  Andreas Jaeger  <aj@suse.de>
5281
5282         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5283         it's not used in glibc.
5284         (__coshm1): Likewise.
5285         (__acosh1p): Likewise.
5286         (__sgn): Likewise.
5287
5288         * manual/string.texi (Copying and Concatenation): Add missing
5289         variable in concat example.
5290         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5291
5292 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5293
5294         [BZ #14103]
5295         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5296         __builtin_clzl with __builtin_clzll.
5297
5298 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5299
5300         [BZ #14104]
5301         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5302         libc_freeres_ptr.
5303
5304 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5305
5306         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5307         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5308         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5309         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5310
5311 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5312
5313         * NEWS: Update ia64 info.
5314
5315 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5316
5317         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5318         used as bcopy.
5319
5320 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5321
5322         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5323         * sysdeps/unix/syscalls.list (dup3): Likewise.
5324         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5325         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5326
5327 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5328
5329         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5330         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5331
5332 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5333
5334         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5335         thread pointer.
5336         (TLS_IE): Use mov/add instead of movq/addq to load thread
5337         pointer.
5338         (TLS_GD_PREFIX): New.
5339         (TLS_GD): Use it.
5340
5341 2012-05-11  David S. Miller  <davem@davemloft.net>
5342
5343         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5344         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5345         (_FPU_SETCW): Likewise.
5346
5347 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5348
5349         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5350         is 32-byte aligned.
5351
5352 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5353
5354         [BZ #11837]
5355         * iconvdata/gb18030.c: Update tables.
5356         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5357         characters specially.
5358         (BODY for TO_LOOP): Add encoding of missing ranges.
5359
5360 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5361
5362         [BZ #13673]
5363         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5364         * sysdeps/mach/hurd/dup3.c: Likewise.
5365         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5366         * sysdeps/powerpc/memmove.c:: Likewise.
5367
5368 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5369
5370         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5371         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5372
5373 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5374
5375         * elf/elf.h (R_X86_64_RELATIVE64): New.
5376         (R_X86_64_NUM): Updated.
5377         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5378         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5379         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5380         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5381         tst-quad1pie tst-quad2pie
5382         (modules-names): Add tst-quadmod1 tst-quadmod2.
5383         ($(objpfx)tst-quad1): New dependency.
5384         ($(objpfx)tst-quad2): Likewise.
5385         ($(objpfx)tst-quad1pie): Likewise.
5386         ($(objpfx)tst-quad2pie): Likewise.
5387         * sysdeps/x86_64/tst-quad1.c: New file.
5388         * sysdeps/x86_64/tst-quad1pie.c: New file.
5389         * sysdeps/x86_64/tst-quad2.c: Likewise.
5390         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5391         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5392         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5393         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5394         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5395
5396 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5397
5398         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5399         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5400         * streams/stropts.h (t_scalar_t): Define type.
5401
5402         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5403         (_PATH_PRESERVE): Set to "/var/lib".
5404         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5405
5406         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5407         instead of int.
5408
5409         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5410         if __dir_mkfile succeeded.
5411
5412         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5413         checking for _hurd_dtablesize.  Unlock it right after having
5414         finished _hurd_dtable allocation.
5415
5416 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5417
5418         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5419         * sysdeps/mach/hurd/configure: Regenerated.
5420         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5421         special-casing to...
5422         * sysdeps/gnu/configure.in: ... this new file.
5423         * sysdeps/unix/sysv/linux/configure: Regenerated.
5424         * sysdeps/gnu/configure: New generated file.
5425
5426         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5427         for Linux: use nsec instead of usec, as well as:
5428         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5429         members of type struct timespec.
5430         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5431         New macros.
5432         (struct stat64): Likewise.
5433         (_STATBUF_ST_NSEC): New macro.
5434         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5435
5436         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5437         __strtoul_internal rather than strtoul.
5438
5439 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5440
5441         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5442         and reject them.
5443
5444 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5445
5446         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5447         which preserves existing values.
5448         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5449
5450 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5451
5452         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5453         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5454         greater than FD_SETSIZE.
5455
5456 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5457
5458         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5459         allocated, call __vm_protect to finish enabling the existing space, and
5460         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5461         allocate the remainder.
5462
5463 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5464
5465         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5466         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5467
5468 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5469
5470         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5471         sysdeps/mach/hurd/readlink.c.
5472
5473         * posix/tst-sysconf.c (posix_options): Only use
5474         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5475         _POSIX_SYNCHRONIZED_IO when they are defined
5476         * sysdeps/mach/hurd/bits/posix_opt.h:
5477         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5478         (_XOPEN_REALTIME): Undefine macro.
5479         (_XOPEN_REALTIME_THREADS): Undefine macro.
5480         (_XOPEN_SHM): Undefine macro.
5481         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5482         macro to -1.
5483         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5484         macro to -1.
5485         (_POSIX_ASYNC_IO): Undefine macro.
5486         (_POSIX_PRIORITIZED_IO): Undefine macro.
5487         (_POSIX_SPIN_LOCKS): Define macro to -1.
5488
5489         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5490         SA_NODEFER, SA_RESETHAND.
5491         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5492         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5493         F_DUPFD_CLOEXEC.
5494
5495 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5496
5497         * elf/Makefile (pldd-modules): Define unconditionally.
5498
5499 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5500
5501         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5502
5503 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5504
5505         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5506         Return ENOENT when name is empty.
5507         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5508
5509 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5510
5511         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5512
5513         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5514
5515 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5516
5517         Fix mlock in all cases except non-readable pages.
5518         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5519         instead of VM_PROT_ALL as parameter to __vm_wire function.
5520
5521         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5522         (__mkdir): When path is `/', just fail with EEXIST.
5523         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5524
5525 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5526
5527         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5528         <sys/uio.h> (for writev).
5529         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5530         and <sys/param.h> (for MIN).
5531
5532 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5533
5534         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5535         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5536         if interrupted.
5537
5538 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5539
5540         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5541         Depend on against $(link-rpcuserlibs).
5542
5543 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5544
5545         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5546         (__libc_stack_end): Do not use attribute_relro.
5547         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5548         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5549         to libthread-provided value.
5550         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5551         attribute_relro.
5552
5553 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5554
5555         [BZ #3748]
5556         * bits/libc-lock.h (__libc_once_get): New macro.
5557         * sysdeps/mach/bits/libc-lock.h: Likewise.
5558         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5559         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5560         instead of using implementation details.
5561
5562         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5563         * libio/freopen.c: Likewise.
5564         * libio/freopen64.c: Likewise.
5565         * misc/syslog.c: Likewise.
5566         * nscd/connections.c: Likewise.
5567         * nscd/netgroupcache.c: Likewise.
5568         * sysdeps/posix/getcwd.c: Likewise.
5569
5570 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5571
5572         * math/w_ilogbf.c: Add #include <limits.h>.
5573
5574 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5575
5576         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5577         path instead of returning without unlocking.
5578
5579         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5580         immediate-write ioctls.
5581         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5582
5583 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5584
5585         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5586         __builtin_frame_address instead of making assumptions about the
5587         location of the return address relative to DATA.  Force early load of
5588         the return address.
5589         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5590         __builtin_frame_address.
5591
5592         dup3 for GNU Hurd.
5593         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5594         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5595         implement dup3 and do some further code clean-ups.
5596         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5597         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5598
5599 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5600
5601         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5602
5603         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5604         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5605         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5606         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5607         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5608         d->port.lock.
5609
5610         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5611         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5612         when handler == SIG_ERR, not when handler != SIG_ERR.
5613
5614 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5615
5616         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5617         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5618         definitions.
5619
5620         accept4 for GNU Hurd.
5621         * include/sys/socket.h (__libc_accept4): New prototype.
5622         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5623         to implement __libc_accept4.
5624         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5625         __libc_accept4.
5626         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5627
5628         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5629         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5630         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5631         signal-defines.sym.
5632
5633 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5634
5635         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5636
5637 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5638
5639         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5640         assertion on O_CLOEXEC flag.
5641         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5642         * hurd/intern-fd.c: Likewise.
5643         * hurd/port2fd.c: Likewise.
5644
5645 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5646
5647         [BZ #3906]
5648         * bits/in.h (IPV6_PKTINFO): Define new macro.
5649         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5650
5651 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5652
5653         [BZ #13954]
5654         [BZ #13955]
5655         [BZ #13956]
5656         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5657         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5658         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5659         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5660         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5661         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5662         * math/libm-test.inc (logb_test) : Additional logb tests.
5663
5664 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5665             Andreas Jaeger  <aj@suse.de>
5666
5667         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5668         * configure: Regenerated.
5669         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5670         * config.make.in (link-obsolete-rpc): New substituted variable.
5671         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5672         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5673         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5674         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5675         so that libc.a contains the symbols.
5676         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5677         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5678         * sunrpc/auth_none.c: Likewise.
5679         * sunrpc/auth_unix.c: Likewise.
5680         * sunrpc/authdes_prot.c: Likewise.
5681         * sunrpc/authuxprot.c: Likewise.
5682         * sunrpc/clnt_gen.c: Likewise.
5683         * sunrpc/clnt_perr.c: Likewise.
5684         * sunrpc/clnt_raw.c: Likewise.
5685         * sunrpc/clnt_simp.c: Likewise.
5686         * sunrpc/clnt_tcp.c: Likewise.
5687         * sunrpc/clnt_udp.c: Likewise.
5688         * sunrpc/clnt_unix.c: Likewise.
5689         * sunrpc/des_crypt.c: Likewise.
5690         * sunrpc/des_soft.c: Likewise.
5691         * sunrpc/get_myaddr.c: Likewise.
5692         * sunrpc/key_call.c: Likewise.
5693         * sunrpc/key_prot.c: Likewise.
5694         * sunrpc/netname.c: Likewise.
5695         * sunrpc/pm_getmaps.c: Likewise.
5696         * sunrpc/pm_getport.c: Likewise.
5697         * sunrpc/pmap_clnt.c: Likewise.
5698         * sunrpc/pmap_prot.c: Likewise.
5699         * sunrpc/pmap_prot2.c: Likewise.
5700         * sunrpc/pmap_rmt.c: Likewise.
5701         * sunrpc/publickey.c: Likewise.
5702         * sunrpc/rpc_cmsg.c: Likewise.
5703         * sunrpc/rpc_common.c: Likewise.
5704         * sunrpc/rpc_dtable.c: Likewise.
5705         * sunrpc/rpc_prot.c: Likewise.
5706         * sunrpc/rpc_thread.c: Likewise.
5707         * sunrpc/rtime.c: Likewise.
5708         * sunrpc/svc.c: Likewise.
5709         * sunrpc/svc_auth.c: Likewise.
5710         * sunrpc/svc_raw.c: Likewise.
5711         * sunrpc/svc_run.c: Likewise.
5712         * sunrpc/svc_tcp.c: Likewise.
5713         * sunrpc/svc_udp.c: Likewise.
5714         * sunrpc/svc_unix.c: Likewise.
5715         * sunrpc/svcauth_des.c: Likewise.
5716         * sunrpc/xcrypt.c: Likewise.
5717         * sunrpc/xdr.c: Likewise.
5718         * sunrpc/xdr_array.c: Likewise.
5719         * sunrpc/xdr_float.c: Likewise.
5720         * sunrpc/xdr_intXX_t.c: Likewise.
5721         * sunrpc/xdr_mem.c: Likewise.
5722         * sunrpc/xdr_rec.c: Likewise.
5723         * sunrpc/xdr_ref.c: Likewise.
5724         * sunrpc/xdr_sizeof.c: Likewise.
5725         * sunrpc/xdr_stdio.c: Likewise.
5726
5727 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5728
5729         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5730         change.  Update copyright years.
5731
5732 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5733
5734         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5735
5736 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5737             Joseph Myers  <joseph@codesourcery.com>
5738             Paul Pluzhnikov  <ppluzhnikov@google.com>
5739
5740         [BZ #14012]
5741         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5742         requiring rpcgen.
5743         [cross-compiling] (extra-libs): Likewise.
5744         [cross-compiling] (extra-libs-others): Likewise.
5745         [cross-compiling] (librpcsvc-routines): Likewise.
5746         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5747         [cross-compiling] (omit-deps): Likewise.
5748         (sunrpc-CPPFLAGS): New variable.
5749         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5750         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5751         (cross-rpcgen-objs): New variable.
5752         (extra-objs): Append $(cross-rpcgen-objs).
5753         ($(cross-rpcgen-objs)): New rule.
5754         ($(objpfx)cross-rpcgen): Likewise.
5755         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5756         comment.
5757         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5758         ($(objpfx)x%.stmp): Likewise.
5759         * sunrpc/proto.h [IS_IN_build] (_): Define.
5760         [IS_IN_build] (_libc_intl_domainname): Likewise.
5761
5762 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5763
5764         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5765         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5766         and R_X86_64_TPOFF64.
5767
5768 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5769
5770         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5771         sysdeps/unix/sysv/syscalls.list.
5772         (stime): Likewise.
5773         (utime): Likewise.
5774         * sysdeps/unix/sysv/syscalls.list: Remove file.
5775
5776 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5777
5778         [BZ #3440]
5779         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5780         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5781         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5782         (__LC_IDENTIFICATION): Make these macros useful in #if
5783         expressions, as required by C99.
5784
5785 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5786
5787         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5788         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5789         after this.
5790
5791 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5792
5793         * stdlib/longlong.h: Updated from GCC.
5794
5795 2012-05-09  Andreas Jaeger  <aj@suse.de>
5796
5797         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5798         default is first entry.
5799         (run_mode): Set type.
5800         (main): Remove informal message about syslog.
5801         (options): Fix typo.
5802
5803         [BZ #14053]
5804         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5805         to asm.
5806         (lrint): Likewise.
5807         (llrintf): Likewise.
5808         (llrint): Likewise.
5809         (rint): Likewise.
5810         (rintf): Likewise.
5811         (nearbyint): Likewise.
5812         (nearbyintf): Likewise.
5813
5814 2012-05-09  Andreas Jaeger  <aj@suse.de>
5815             Pedro Alves  <palves@redhat.com>
5816
5817         * nscd/nscd.c (run_mode): Use enum.
5818         (main): Cleanup coding style issue.
5819
5820 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5821             Andreas Jaeger  <aj@suse.de>
5822
5823         * nscd/nscd.c (go_background): Replaced with...
5824         (run_mode): ... this.
5825         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5826         (options): Add -F --foreground.
5827         (main): Implement it.
5828         (parse_opt): Parse it.
5829
5830 2012-05-09  Andreas Jaeger  <aj@suse.de>
5831
5832         [BZ #14083]
5833         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5834         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5835         -Wconversion warning.
5836         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5837         Likewise.
5838
5839 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5840
5841         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5842         == 0.
5843         (LC_ALL): Use macro-int-constant.
5844         (LC_COLLATE): Likewise.
5845         (LC_CTYPE): Likewise.
5846         (LC_MESSAGES): Likewise.
5847         (LC_MONETARY): Likewise.
5848         (LC_NUMERIC): Likewise.
5849         (LC_TIME): Likewise.
5850         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5851         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5852         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5853         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5854         Specify type.
5855         [C99-based standards] (float_t): Expect type.
5856         [C99-based standards] (double_t): Expect type.
5857         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5858         type.
5859         [C99-based standards] (HUGE_VALL): Likewise.
5860         [C99-based standards] (INFINITY): Likewise.
5861         [C99-based standards] (NAN): Likewise.
5862         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5863         [C99-based standards] (FP_NAN): Likewise.
5864         [C99-based standards] (FP_NORMAL): Likewise.
5865         [C99-based standards] (FP_SUBNORMAL): Likewise.
5866         [C99-based standards] (FP_ZERO): Likewise.
5867         [C99-based standards] (FP_FAST_FMA): Use
5868         optional-macro-int-constant.  Specify type.  Require == 1.
5869         [C99-based standards] (FP_FAST_FMAF): Likewise.
5870         [C99-based standards] (FP_FAST_FMAL): Likewise.
5871         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5872         [C99-based standards] (FP_ILOGBNAN): Likewise.
5873         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5874         Specify type.
5875         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5876         [C99-based standards] (math_errhandling): Specify type.
5877         [ISO99 || ISO11] (signgam): Do not allow.
5878         [non-C99-based standards] (copysignf): Do not allow.
5879         [non-C99-based standards] (exp2f): Likewise.
5880         [non-C99-based standards] (log2f): Likewise.
5881         [non-C99-based standards] (modff): Allow.
5882         [non-C99-based standards] (erff): Do not allow.
5883         [non-C99-based standards] (erfcf): Likewise.
5884         [non-C99-based standards] (gammaf): Likewise.
5885         [non-C99-based standards] (hypotf): Likewise.
5886         [non-C99-based standards] (j0f): Likewise.
5887         [non-C99-based standards] (j1f): Likewise.
5888         [non-C99-based standards] (jnf): Likewise.
5889         [non-C99-based standards] (lgammaf): Likewise.
5890         [non-C99-based standards] (tgammaf): Likewise.
5891         [non-C99-based standards] (y0f): Likewise.
5892         [non-C99-based standards] (y1f): Likewise.
5893         [non-C99-based standards] (ynf): Likewise.
5894         [non-C99-based standards] (isnanf): Likewise.
5895         [non-C99-based standards] (acoshf): Likewise.
5896         [non-C99-based standards] (asinhf): Likewise.
5897         [non-C99-based standards] (atanhf): Likewise.
5898         [non-C99-based standards] (cbrtf): Likewise.
5899         [non-C99-based standards] (expm1f): Likewise.
5900         [non-C99-based standards] (ilogbf): Likewise.
5901         [non-C99-based standards] (log1pf): Likewise.
5902         [non-C99-based standards] (logbf): Likewise.
5903         [non-C99-based standards] (nextafterf): Likewise.
5904         [non-C99-based standards] (remainderf): Likewise.
5905         [non-C99-based standards] (rintf): Likewise.
5906         [non-C99-based standards] (scalbf): Likewise.
5907         [non-C99-based standards] (copysignl): Likewise.
5908         [non-C99-based standards] (exp2l): Likewise.
5909         [non-C99-based standards] (log2l): Likewise.
5910         [non-C99-based standards] (modfl): Allow.
5911         [non-C99-based standards] (erfl): Do not allow.
5912         [non-C99-based standards] (erfcl): Likewise.
5913         [non-C99-based standards] (gammal): Likewise.
5914         [non-C99-based standards] (hypotl): Likewise.
5915         [non-C99-based standards] (j0l): Likewise.
5916         [non-C99-based standards] (j1l): Likewise.
5917         [non-C99-based standards] (jnl): Likewise.
5918         [non-C99-based standards] (lgammal): Likewise.
5919         [non-C99-based standards] (tgammal): Likewise.
5920         [non-C99-based standards] (y0l): Likewise.
5921         [non-C99-based standards] (y1l): Likewise.
5922         [non-C99-based standards] (ynl): Likewise.
5923         [non-C99-based standards] (isnanl): Likewise.
5924         [non-C99-based standards] (acoshl): Likewise.
5925         [non-C99-based standards] (asinhl): Likewise.
5926         [non-C99-based standards] (atanhl): Likewise.
5927         [non-C99-based standards] (cbrtl): Likewise.
5928         [non-C99-based standards] (expm1l): Likewise.
5929         [non-C99-based standards] (ilogbl): Likewise.
5930         [non-C99-based standards] (log1pl): Likewise.
5931         [non-C99-based standards] (logbl): Likewise.
5932         [non-C99-based standards] (nextafterl): Likewise.
5933         [non-C99-based standards] (remainderl): Likewise.
5934         [non-C99-based standards] (rintl): Likewise.
5935         [non-C99-based standards] (scalbl): Likewise.
5936         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5937         [non-C99-based standards] (FP_*): Do not allow.
5938         [C99-based standards] (FP_*): Change to
5939         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5940         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5941         allow.
5942         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5943         (SIG_ERR): Likewise.
5944         [X/Open-based standards] (SIG_HOLD): Likewise.
5945         (SIG_IGN): Likewise.
5946         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5947         positive value.
5948         (SIGFPE): Likewise.
5949         (SIGILL): Likewise.
5950         (SIGINT): Likewise.
5951         (SIGSEGV): Likewise.
5952         (SIGTER): Likewise.
5953         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5954         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5955         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5956         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5957         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5958         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5959         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5960         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5961         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5962         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5963         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5964         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5965         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5966         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5967         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5968         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5969         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5970         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5971         [X/Open-based standards] (SIGTRAP): Likewise.
5972         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5973         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5974         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5975         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5976         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5977         allow.
5978
5979 2012-05-08  Ian Wienand  <ianw@vmware.com>
5980
5981         [BZ #14080]
5982         * time/tzset.c (__tzset_parse_tz): Update default rules for
5983         daylight time changes in the Energy Policy Act of 2005.
5984
5985 2012-05-09  Andreas Jaeger  <aj@suse.de>
5986
5987         [BZ #13983]
5988         * elf/ldconfig.c (parse_conf): Change string to make clear that
5989         ldconfig only issued a warning if ld.so.conf does not exist.
5990
5991 2012-05-08  David S. Miller  <davem@davemloft.net>
5992
5993         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5994         movxtod instead of popping the value on the stack.
5995
5996         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5997
5998 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5999
6000         * config.h.in: Add HAVE_ARM_PCS_VFP.
6001
6002 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
6003
6004         [BZ #13979]
6005         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6006         checking but the checks are disabled for any reason.
6007
6008 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6009
6010         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6011         and ELF64_R_TYPE with ELFW(R_TYPE).
6012
6013 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6014
6015         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6016         (ulimit): Likewise.
6017
6018         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6019         (settimeofday): Likewise.
6020
6021 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6022
6023         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6024         a struct th_u2 inside the union, and move tu_block/tu_code into
6025         a new th_u3 union of tu_block/tu_code inside of that.  Move
6026         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6027         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6028         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6029         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6030         (th_stuff): Change to th_u1.tu_stuff.
6031         (th_data): Define.
6032         (th_msg): Change to th_u1.th_u2.tu_data.
6033
6034 2012-05-07  David S. Miller  <davem@davemloft.net>
6035
6036         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6037
6038         [BZ #14074]
6039         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6040         (SETUP_PIC_REG): Use it.
6041         (SETUP_PIC_REG_LEAF): Use it.
6042
6043 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6044
6045         [BZ #13885]
6046         [BZ #13923]
6047         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6048         USE_AS_EXPM1L.
6049         (EXPL_FINITE): Likewise.
6050         (FLDLOG): Likewise.
6051         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6052         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6053         e_expl.S.
6054         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6055         USE_AS_EXPM1L.
6056         (EXPL_FINITE): Likewise.
6057         (FLDLOG): Likewise.
6058         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6059         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6060         e_expl.S.
6061         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6062         test of -max_value argument for long double.
6063         * sysdeps/i386/fpu/libm-test-ulps: Update.
6064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6065
6066 2012-05-06  David S. Miller  <davem@davemloft.net>
6067
6068         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6069         quad soft-float symbols whose references which are compiler
6070         generated.
6071         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6072
6073 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6074
6075         [BZ #13884]
6076         [BZ #13914]
6077         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6078         USE_AS_EXP10L.
6079         (EXPL_FINITE): Likewise.
6080         (FLDLOG): Likewise.
6081         (c0): Likewise.
6082         (c1): Likewise.
6083         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6084         Adjust comments for base varying.
6085         (__expl_finite): Change alias to EXPL_FINITE.
6086         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6087         e_expl.S.
6088         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6089         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6090         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6091         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6092         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6093         USE_AS_EXP10L.
6094         (EXPL_FINITE): Likewise.
6095         (FLDLOG): Likewise.
6096         (c0): Likewise.
6097         (c1): Likewise.
6098         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6099         Adjust comments for base varying.
6100         (__expl_finite): Change alias to EXPL_FINITE.
6101         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6102         tests for bugs.
6103         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6104
6105         [BZ #14064]
6106         * math/libm-test.inc (check_float_internal): Correct ulp
6107         calculation for subnormal expected results.
6108
6109 2012-05-06  Andreas Jaeger  <aj@suse.de>
6110
6111         * Makeconfig (+math-flags): New, set to -frounding-math.
6112         (+cflags): Add +math-flags so that all of glibc gets compiled with
6113         it.
6114
6115         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6116
6117 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6118
6119         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6120         Disable one test.
6121
6122         [BZ #13787]
6123         [BZ #13922]
6124         [BZ #14036]
6125         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6126         (__ieee754_expl): Allow for and saturate large arguments.
6127         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6128         (u_threshold): Likewise.
6129         (__exp): Call __ieee754_exp before checking for overflow and
6130         underflow.
6131         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6132         (u_threshold): Likewise.
6133         (__expf): Call __ieee754_expf before checking for overflow and
6134         underflow.
6135         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6136         (u_threshold): Likewise.
6137         (__expl): Call __ieee754_expl before checking for overflow and
6138         underflow.
6139         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6140         (__ieee754_expl): Allow for and saturate large arguments.
6141         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6142         missing overflow exception on overflow.
6143         (expm1_test): Do not allow missing overflow exception on overflow.
6144
6145         * sysdeps/i386/fpu/e_expl.c: Move to ...
6146         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6147         rather than using inline asm.
6148         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6149         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6150         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6151
6152         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6153         (nice): Likewise.
6154         (poll): Likewise.
6155         (signal): Likewise.
6156         (time): Likewise.
6157         (times): Likewise.
6158
6159 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6160
6161         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6162         sysdeps/unix/common/syscalls.list.
6163         (fchmod): Likewise.
6164         (fchown): Likewise.
6165         (ftruncate): Likewise.
6166         (getrusage): Likewise.
6167         (gettimeofday): Likewise.
6168         (setpgid): Likewise.
6169         (setregid): Likewise.
6170         (setreuid): Likewise.
6171         (sigaction): Likewise.
6172         (truncate): Likewise.
6173         (vhangup): Likewise.
6174         * sysdeps/unix/common/syscalls.list: Remove file.
6175         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6176         * sysdeps/unix/sysv/linux/Implies: Likewise.
6177
6178 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6179
6180         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6181         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6182         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6183         Moved to ...
6184         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6185         Here.
6186         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6187         to ...
6188         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6189         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6190         to ...
6191         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6192         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6193         to ...
6194         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6195         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6196         to ...
6197         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6198         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6199         to ...
6200         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6201         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6202         to ...
6203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6204         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6205         to ...
6206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6207         Here.
6208         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6209         to ...
6210         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6211         Here.
6212         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6213         to ...
6214         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6215         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6216         Moved to ...
6217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6218         Here.
6219         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6220         to ...
6221         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6222
6223 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6224
6225         * sysdeps/unix/common/bits/dirent.h: Remove file.
6226         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6227
6228         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6229         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6230         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6231         * sysdeps/unix/bsd/isatty.c: Likewise.
6232         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6233         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6234         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6235
6236 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6237
6238         [BZ #13563]
6239         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6240         long double comparison inaccuracies.
6241         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6242         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6243
6244 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6245
6246         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6247         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6248
6249 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6250
6251         [BZ #14049]
6252         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6253         nonzero digits before rounding a hex value.
6254         * stdlib/tst-strtod.c (tests): Add another test.
6255
6256 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6257
6258         * sysdeps/s390/fpu/libm-test-ulps: Update.
6259
6260 2012-05-03  Andreas Jaeger  <aj@suse.de>
6261
6262         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6263         does not get optimized out.
6264         (malloc_opt_barrier): New.
6265
6266 2012-05-03  Andreas Jaeger  <aj@suse.de>
6267             Roland McGrath  <roland@hack.frob.com>
6268
6269         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6270         intermediate file deletion.
6271         (generated): Add .symlist files.
6272
6273 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6274
6275         [BZ #13775]
6276         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6277         Redirect under this condition.
6278         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6279         [__USE_GNU] (__dprintf_chk): Not under this condition.
6280         [__USE_GNU] (__vdprintf_chk): Likewise.
6281         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6282         under this condition.
6283         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6284         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6285         [__USE_XOPEN2K8] (vdprintf): Likewise.
6286         [__USE_GNU] (__dprintf_chk): Not under this condition.
6287         [__USE_GNU] (__vdprintf_chk): Likewise.
6288         [__USE_GNU] (dprintf): Likewise.
6289         [__USE_GNU] (vdprintf): Likewise.
6290
6291 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6292
6293         * elf/Makefile (common-generated): Set this instead of generated for
6294         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6295         $(all-built-dso)-derived lists.
6296
6297 2012-05-03  Andreas Jaeger  <aj@suse.de>
6298
6299         * sysdeps/i386/fpu/libm-test-ulps: Update.
6300
6301         * FAQ: Removed.
6302         * FAQ.in: Likewise.
6303         * scripts/gen-FAQ.pl: Likewise.
6304         * manual/install.texi (Installation): Point to online location of
6305         FAQ.
6306         * Makefile (files-for-dist): Remove FAQ.
6307         (FAQ): Remove.
6308
6309 2012-05-02  Allan McRae  <allan@archlinux.org>
6310
6311         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6312         (LDFLAGS-reldepmod5.so): Likewise.
6313         (LDFLAGS-reldep6mod1.so): Likewise.
6314         (LDFLAGS-reldep6mod4.so): Likewise.
6315         (LDFLAGS-reldep8mod3.so): Likewise.
6316         (LDFLAGS-unload4mod1.so): Likewise.
6317         (LDFLAGS-unload4mod2.so): Likewise.
6318         (LDFLAGS-tst-initorder): Likewise.
6319         (LDFLAGS-tst-initordera2.so): Likewise.
6320         (LDFLAGS-tst-initordera3.so): Likewise.
6321         (LDFLAGS-tst-initordera4.so): Likewise.
6322         (LDFLAGS-tst-initorderb2.so): Likewise.
6323         (LDFLAGS-noload): Likewise.
6324         (LDFLAGS-next): Likewise.
6325         (LDFLAGS-order2mod1.so): Likewise.
6326         (LDFLAGS-order2mod2.so): Likewise.
6327         (LDFLAGS-tst-initorder2): Likewise.
6328         (LDFLAGS-tst-initorder2a.so): Likewise.
6329         (LDFLAGS-tst-initorder2b.so): Likewise.
6330         (LDFLAGS-tst-initorder2c.so): Likewise.
6331         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6332
6333 2012-05-02  David S. Miller  <davem@davemloft.net>
6334
6335         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6336
6337 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6338
6339         [BZ #14055]
6340         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6341
6342 2012-05-02  Andreas Jaeger  <aj@suse.de>
6343
6344         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6345         since we manipulate rounding mode.
6346         (CPPFLAGS-test-idouble.c): Likewise.
6347         (CPPFLAGS-test-ifloat.c): Likewise.
6348         (CFLAGS-test-ldouble.c): Likewise.
6349         (CFLAGS-test-double.c): Likewise.
6350         (CFLAGS-test-float.c): Likewise.
6351         (CFLAGS-test-misc.c): Likewise.
6352         (CFLAGS-test-test-fenv.c): Likewise.
6353
6354 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6355
6356         [BZ #2550]
6357         [BZ #2570]
6358         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6359         comparisons to determine direction to adjust input.
6360
6361 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6362
6363         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6364         output to the target.
6365
6366         * scripts/localplt.awk: New file.
6367         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6368         (check-localplt-CFLAGS): Variable removed.
6369         ($(all-built-dso:=.jmprel)): New static pattern rule.
6370         (generated): Add those targets.
6371         (localplt-built-dso): New variable.
6372         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6373
6374         * elf/check-localplt.c: File removed.
6375
6376         * scripts/check-execstack.awk: New file.
6377         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6378         (check-execstack-CFLAGS): Variable removed.
6379         ($(objpfx)check-execstack.h): Target removed.
6380         ($(objpfx)execstack-default): New target.
6381         (generated): Add that instead of check-execstack.h.
6382         ($(all-built-dso:=.phdr)): New static pattern rule.
6383         (generated): Add those targets.
6384         * elf/check-execstack.c: File removed.
6385
6386         * scripts/check-textrel.awk: New file.
6387         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6388         (check-textrel-CFLAGS): Variable removed.
6389         (all-built-dso): Use := to define.o
6390         ($(all-built-dso:=.dyn)): New static pattern rule.
6391         (generated): Add those targets.
6392         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6393         * config.make.in (READELF): New substituted variable.
6394         * elf/check-textrel.c: File removed.
6395
6396 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6397
6398         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6399         allow.
6400         * conform/data/ctype.h-data [C99-based standards] (isblank):
6401         Expect function.
6402         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6403         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6404         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6405         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6406         Specify type.  Require positive value.
6407         (EILSEQ): Likewise.
6408         (ERANGE): Likewise.
6409         [ISO || POSIX] (EILSEQ): Do not expect.
6410         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6411         Specify type.  Require positive value.
6412         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6413         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6414         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6415         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6416         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6417         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6418         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6419         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6420         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6421         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6422         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6423         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6424         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6425         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6426         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6427         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6428         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6429         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6430         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6431         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6432         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6433         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6434         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6435         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6436         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6437         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6438         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6439         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6440         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6441         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6442         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6443         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6444         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6445         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6446         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6447         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6448         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6449         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6450         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6451         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6452         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6453         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6454         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6455         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6456         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6457         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6458         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6460         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6462         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6463         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6464         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6469         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6475         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6476         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6477         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6478         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6479         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6480         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6482         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6483         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6484         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6485         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6486         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6487         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6488         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6489         Require >= 2.
6490         (FLT_ROUNDS): Expect as macro, not constant.
6491         (FLT_MANT_DIG): Use macro-int-constant.
6492         (DBL_MANT_DIG): Likewise.
6493         (LDBL_MANT_DIG): Likewise.
6494         (FLT_DIG): Likewise.
6495         (DBL_DIG): Likewise.
6496         (LDBL_DIG): Likewise.
6497         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6498         (DBL_MIN_EXP): Likewise.
6499         (LDBL_MIN_EXP): Likewise.
6500         (FLT_MAX_EXP): Use macro-int-constant.
6501         (DBL_MAX_EXP): Likewise.
6502         (LDBL_MAX_EXP): Likewise.
6503         (FLT_MAX_10_EXP): Likewise.
6504         (DBL_MAX_10_EXP): Likewise.
6505         (LDBL_MAX_10_EXP): Likewise.
6506         (FLT_MAX): Use macro-constant.
6507         (DBL_MAX): Likewise.
6508         (LDBL_MAX): Likewise.
6509         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6510         (DBL_EPSILON): Likewise.
6511         (LDBL_EPSILON): Likewise.
6512         (FLT_MIN): Likewise.
6513         (DBL_MIN): Likewise.
6514         (LDBL_MIN): Likewise.
6515         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6516         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6517         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6518         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6519         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6520         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6521         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6522         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6523         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6524         [ISO11] (FLT_TRUE_MIN): Likewise.
6525         [ISO11] (LDBL_TRUE_MIN): Likewise.
6526         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6527         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6528         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6529         (SCHAR_MAX): Likewise.
6530         (UCHAR_MAX): Likewise.
6531         (CHAR_MIN): Likewise.
6532         (CHAR_MAX): Likewise.
6533         (MB_LEN_MAX): Use macro-int-constant.
6534         (SHRT_MIN): Use macro-int-constant.  Specify type.
6535         (SHRT_MAX): Likewise.
6536         (USHRT_MAX): Likewise.
6537         (INT_MAX): Likewise.
6538         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6539         bound negative.
6540         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6541         bound with "U".
6542         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6543         bound with "L".
6544         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6545         bound negative.  Suffix upper bound with "L".
6546         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6547         bound with "UL".
6548         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6549         Specify type.
6550         [C99-based standards] (LLONG_MAX): Likewise.
6551         [C99-based standards] (ULLONG_MAX): Likewise.
6552         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6553         == 0.
6554         [ISO11] (max_align_t): Require type.
6555         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6556
6557         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6558         from $CFLAGS, without defining away __attribute__ calls.
6559         (checknamespace): Use $CFLAGS_namespace.
6560
6561         * conform/conformtest.pl (@keywords): Only include C99 keywords
6562         for standards based on C99 or C11.
6563
6564         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6565         Disable tests.
6566         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6567         UNIX98]: Likewise.
6568
6569         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6570         usability of symbols in #if.
6571
6572         * conform/conformtest.pl: If macro or constant types start
6573         "promoted:", expect the symbol to be of the following type
6574         promoted by the integer promotions.
6575
6576         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6577         in one place.  Also handle "macro-constant".
6578
6579         * conform/conformtest.pl: Only accept expected macro values with
6580         "==".  Parse all "macro" lines in one place.
6581         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6582
6583         * conform/conformtest.pl: Handle braced types on "constant" lines
6584         instead of handling "typed-constant".
6585         * conform/data/signal.h-data: Use "constant" instead of
6586         "typed-constant".
6587
6588         * conform/conformtest.pl: Handle "optional-" at start of lines in
6589         one place rather than duplicating several cases.  Handle each
6590         format of "macro" line with initial "optional-".
6591
6592         * conform/conformtest.pl: Only accept expected constant or
6593         optional-constant values with "==".  Parse all "constant" lines in
6594         one place.  Parse all "optional-constant" lines in one place.
6595         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6596         * conform/data/fmtmsg.h-data: Likewise.
6597         * conform/data/netinet/in.h-data: Likewise.
6598         * conform/data/tar.h-data: Likewise.
6599         * conform/data/limits.h-data: Use "==" form on "constant" and
6600         "optional-constant" lines.
6601
6602         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6603         Use -std=c99 for XOPEN2K.
6604         (@knownproblems): Remove.
6605         (newtoken): Don't check %isknown.
6606
6607         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6608         Do not expect macro.
6609         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6610         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6611         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6612         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6613         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6614         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6615         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6616         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6617         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6618         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6619         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6620         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6621         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6622         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6623         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6624         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6625         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6626         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6627         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6628         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6629         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6630         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6631         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6632         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6633         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6634         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6635         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6636         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6637         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6638         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6639         [XPG3] (acosh): Likewise.
6640         [XPG3] (asinh): Likewise.
6641         [XPG3] (atanh): Likewise.
6642         [XPG3] (cbrt): Likewise.
6643         [XPG3] (expm1): Likewise.
6644         [XPG3] (ilogb): Likewise.
6645         [XPG3] (log1p): Likewise.
6646         [XPG3] (logb): Likewise.
6647         [XPG3] (nextafter): Likewise.
6648         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6649         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6650         [XPG3] (remainder): Likewise.
6651         [XPG3] (rint): Likewise.
6652         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6653         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6654         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6655         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6656         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6657         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6658         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6659         [UNIX98 || XOPEN2K] (scalb): Expect.
6660         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6661         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6662         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6663         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6664         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6665         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6666         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6667         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6668         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6669         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6670         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6671         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6672         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6673         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6674         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6675         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6676         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6677         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6678         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6679         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6680         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6681         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6682         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6683         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6684         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6685         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6686         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6687         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6688         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6689         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6690         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6691         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6692         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6693         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6694         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6695         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6696         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6697         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6698         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6699         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6700         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6701         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6702         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6703         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6704         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6705         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6706         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6707         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6708         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6709         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6710         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6711         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6712         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6713         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6714         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6715         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6716         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6717         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6718         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6719         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6720         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6721         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6722         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6723         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6724         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6725         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6726         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6727         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6728         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6729         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6730         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6731         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6732         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6733         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6734         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6735         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6736         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6737         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6738         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6739         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6740         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6741         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6742         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6743         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6744         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6745         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6746         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6747         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6748         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6749         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6750         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6751         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6752         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6753         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6754         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6755         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6756         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6757         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6758         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6759         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6760         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6761         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6762         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6763         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6764         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6765         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6766         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6767         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6768         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6769         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6770         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6771         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6772         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6773         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6774         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6775         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6776         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6777         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6778         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6779         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6780         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6781         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6782         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6783         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6784         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6785         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6786         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6787         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6788         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6789         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6790         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6791         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6792         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6793         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6794         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6795         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6796         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6797
6798         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6799         _XOPEN_SOURCE_EXTENDED for XPG4.
6800
6801         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6802
6803         * Makeconfig (localtime): Remove variable.
6804         (inst_localtime-file): Likewise.
6805
6806 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6807
6808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6809         Update.
6810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6811         Update.
6812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6813         Update.
6814         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6815         Update.
6816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6817         Update.
6818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6819         Update.
6820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6821         Update.
6822         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6823         Update.
6824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6825         Update.
6826
6827 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6828
6829         [BZ #2550]
6830         [BZ #2570]
6831         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6832         comparisons to determine direction to adjust input.
6833         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6834         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6835         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6836         Likewise.
6837         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6838         Likewise.
6839         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6840         Likewise.
6841         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6842         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6843         Likewise.
6844         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6845         Likewise.
6846         * math/libm-test.inc (nexttoward_test): Add more tests.
6847
6848 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6849
6850         [BZ #14040]
6851         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6852         in version GLIBC_2.1, not GLIBC_2.0.
6853         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6854         Likewise.
6855
6856 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6857
6858         [BZ #13942]
6859         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6860         (1 - x) * (1 + x).
6861         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6862         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6863         * math/libm-test.inc (acos_test): Add more tests.
6864         (asin_test): Likewise.
6865         * sysdeps/i386/fpu/libm-test-ulps: Update.
6866         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6867
6868         [BZ #14034]
6869         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6870         of square root.
6871         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6872         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6873         * math/libm-test.inc (acos_test_tonearest): New function.
6874         (acos_test_towardzero): Likewise.
6875         (acos_test_downward): Likewise.
6876         (acos_test_upward): Likewise.
6877         (asin_test_tonearest): Likewise.
6878         (asin_test_towardzero): Likewise.
6879         (asin_test_downward): Likewise.
6880         (asin_test_upward): Likewise.
6881         (main): Call the new functions.
6882         * sysdeps/i386/fpu/libm-test-ulps: Update.
6883         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6884
6885         [BZ #13884]
6886         [BZ #13924]
6887         * math/e_exp10.c: Include <float.h>.
6888         (__ieee754_exp10): Handle underflow here rather than multiplying
6889         large negative argument by M_LN10.
6890         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6891         of __ieee754_expf.
6892         * math/e_exp10l.c: Include <float.h>.
6893         (__ieee754_exp10l): Handle underflow here rather than multiplying
6894         large negative argument by M_LN10l.
6895         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6896         spurious overflow exception on underflow.
6897
6898 2012-04-29  Marek Polacek  <polacek@redhat.com>
6899
6900         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6901         (__fortify_function): New macro.
6902         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6903         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6904         __extern_always_inline.
6905         * libio/bits/stdio2.h: Likewise.
6906         * libio/bits/stdio.h: Likewise.
6907         * string/string.h: Likewise.
6908         * string/bits/string3.h: Likewise.
6909         * include/stdio.h: Likewise.
6910         * stdlib/bits/stdlib.h: Likewise.
6911         * stdlib/stdlib.h: Likewise.
6912         * rt/bits/mqueue2.h: Likewise.
6913         * rt/mqueue.h: Likewise.
6914         * posix/bits/unistd.h: Likewise.
6915         * posix/unistd.h: Likewise.
6916         * io/bits/poll2.h: Likewise.
6917         * io/bits/fcntl2.h: Likewise.
6918         * io/fcntl.h: Likewise.
6919         * io/sys/poll.h: Likewise.
6920         * misc/bits/syslog.h: Likewise.
6921         * misc/bits/syslog-ldbl.h: Likewise.
6922         * misc/sys/syslog.h: Likewise.
6923         * socket/bits/socket2.h: Likewise.
6924         * socket/sys/socket.h: Likewise.
6925         * debug/tst-chk1.c: Likewise.
6926         * wcsmbs/bits/wchar2.h: Likewise.
6927         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6928         * wcsmbs/wchar.h: Likewise.
6929
6930 2012-04-29  Andreas Jaeger  <aj@suse.de>
6931
6932         * Makerules (tests): Remove enable-check-abi protection.
6933         (check-abi-warn): Remove.
6934         (check-abi-%): Remove check-abi-warn usage.
6935
6936         * configure.in: Remove check-abi configure option.
6937         * configure: Regenerated.
6938         * config.make.in (enable-check-abi): Remove.
6939
6940 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6941
6942         [BZ #14033]
6943         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6944         double functions to double *_finite functions.
6945
6946         [BZ #13941]
6947         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6948         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6949         LDBL_MIN_EXP.
6950         * stdio-common/Makefile (tests): Add tst-sprintf3.
6951         * stdio-common/tst-sprintf3.c: New file.
6952
6953         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6954         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6955
6956 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6957
6958         * conform/conformtest.pl: Remove duplicate typed-constant
6959         handling.
6960
6961 2012-04-28  David S. Miller  <davem@davemloft.net>
6962
6963         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6964         (check-abi-%): Remove AWK script prerequisite and explicit
6965         abilist directory.
6966         (check-abi): Rewrite to just diff the symlist with the abilist.
6967         (config-tls, config-abi-config): Delete, no longer used.
6968         (update-abi-%): Remove AWK script and explicit abilist directory.
6969         (update-abi): Rewrite to simply compare and conditionally copy the
6970         symlist and the sysdep abilist file.  Remove update-abi-config
6971         checks.
6972         * abilist/ld.abilist: Remove.
6973         * abilist/libBrokenLocale.abilist: Remove.
6974         * abilist/libanl.abilist: Remove.
6975         * abilist/libcrypt.abilist: Remove.
6976         * abilist/libdl.abilist: Remove.
6977         * abilist/librt.abilist: Remove.
6978         * abilist/libthread_db.abilist: Remove.
6979         * abilist/libutil.abilist: Remove.
6980         * scripts/extract-abilist.awk: Remove.
6981         * scripts/merge-abilist.awk: Remove.
6982         * sysdeps/generic/libcidn.abilist: New file.
6983         * sysdeps/generic/libnss_compat.abilist: New file.
6984         * sysdeps/generic/libnss_db.abilist: New file.
6985         * sysdeps/generic/libnss_dns.abilist: New file.
6986         * sysdeps/generic/libnss_files.abilist: New file.
6987         * sysdeps/generic/libnss_hesiod.abilist: New file.
6988         * sysdeps/generic/libnss_nis.abilist: New file.
6989         * sysdeps/generic/libnss_nisplus.abilist: New file.
6990         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6991         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6992         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6993         file.
6994         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6995         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6996         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6997         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6998         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6999         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
7000         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
7001         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
7002         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
7003         file.
7004         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7005         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7006         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7007         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7008         file.
7009         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7010         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7011         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7012         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7013         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7014         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7015         file.
7016         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7017         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7018         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7019         file.
7020         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7021         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7022         New file.
7023         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7024         New file.
7025         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7026         New file.
7027         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7028         New file.
7029         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7030         New file.
7031         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7032         New file.
7033         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7034         New file.
7035         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7036         New file.
7037         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7038         New file.
7039         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7040         New file.
7041         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7042         New file.
7043         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7044         New file.
7045         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7046         New file.
7047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7048         file.
7049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7050         New file.
7051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7052         New file.
7053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7054         file.
7055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7056         New file.
7057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7058         New file.
7059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7060         file.
7061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7062         New file.
7063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7064         New file.
7065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7066         New file.
7067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7068         New file.
7069         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7070         New file.
7071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7072         New file.
7073         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7075         file.
7076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7077         New file.
7078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7079         file.
7080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7081         file.
7082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7083         file.
7084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7085         file.
7086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7087         file.
7088         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7089         New file.
7090         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7091         file.
7092         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7093         file.
7094         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7095         New file.
7096         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7097         file.
7098         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7099         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7100         file.
7101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7102         New file.
7103         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7104         file.
7105         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7106         file.
7107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7108         file.
7109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7110         file.
7111         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7112         file.
7113         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7114         New file.
7115         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7116         file.
7117         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7118         file.
7119         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7120         New file.
7121         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7122         file.
7123         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7124         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7125         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7126         file.
7127         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7128         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7129         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7130         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7131         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7132         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7133         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7134         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7135         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7136         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7137         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7139         file.
7140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7141         New file.
7142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7143         file.
7144         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7145         file.
7146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7147         file.
7148         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7149         file.
7150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7151         file.
7152         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7153         New file.
7154         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7155         New file.
7156         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7157         file.
7158         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7159         New file.
7160         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7161         file.
7162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7163         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7164         file.
7165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7166         New file.
7167         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7168         file.
7169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7170         file.
7171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7172         file.
7173         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7174         file.
7175         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7176         file.
7177         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7178         New file.
7179         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7180         New file.
7181         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7182         file.
7183         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7184         New file.
7185         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7186         file.
7187
7188 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7189
7190         * conform/conformtest.pl: Fix typo in handling typed-constant from
7191         allow-header.
7192
7193 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7194
7195         * README: Cut down references to pre-2.6 Linux kernels and
7196         Linuxthreads.  Update lists of configurations in libc and ports
7197         and sort alphabetically.  Say "or newer" with Linux kernel version
7198         requirements.
7199
7200         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7201
7202 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7203
7204         [BZ #887]
7205         * math/libm-test.inc (logb_test_downward): New test to expose
7206         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7207         rounding mode.
7208
7209 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7210
7211         [BZ #14027]
7212         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7213         to be done.
7214         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7215         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7216
7217 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7218
7219         * sysdeps/unix/i386/brk.S: Remove file.
7220         * sysdeps/unix/i386/dl-brk.S: Likewise.
7221         * sysdeps/unix/i386/pipe.S: Likewise.
7222         * sysdeps/unix/i386/sigreturn.S: Likewise.
7223         * sysdeps/unix/i386/syscall.S: Likewise.
7224         * sysdeps/unix/i386/vfork.S: Likewise.
7225         * sysdeps/unix/i386/wait.S: Likewise.
7226
7227         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7228         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7229
7230         * configure.in (arm*-none*): Do not allow without
7231         --enable-hacker-mode.
7232         (netbsd*): Remove case setting base_os.
7233         (386bsd*): Likewise.
7234         (freebsd*): Likewise.
7235         (bsdi*): Likewise.
7236         (osf*): Likewise.
7237         (sunos*): Likewise.
7238         (ultrix*): Likewise.
7239         (newsos*): Likewise.
7240         (dynix*): Likewise.
7241         (*bsd*): Likewise.
7242         (sysv*): Likewise.
7243         (isc*): Likewise.
7244         (esix*): Likewise.
7245         (sco*): Likewise.
7246         (minix*): Likewise.
7247         (irix4*): Likewise.
7248         (irix6*): Likewise.
7249         (solaris[2-9]*): Likewise.
7250         (none): Likewise.
7251         * configure: Regenerated.
7252
7253 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7254
7255         [BZ #11521]
7256         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7257         overflow or cancellation in calculating denominator.
7258         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7259         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7260         down expression to avoid unexpected rounding in newer GCCs.
7261         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7262
7263 2012-04-26  David S. Miller  <davem@davemloft.net>
7264
7265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7266         long-double compat symbols.
7267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7270         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7277         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7278         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7279         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7280
7281 2012-04-25  David S. Miller  <davem@davemloft.net>
7282
7283         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7284         HWCAP_* values only after the memory barriers have been defined.
7285         (atomic_full_barrier): Define.
7286         (atomic_read_barrier): Define.
7287         (atomic_write_barrier): Define.
7288
7289 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7290
7291         * shlib-versions: Add libgcc_s version information.
7292         * sysdeps/generic/libgcc_s.h: Remove.
7293         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7294         libgcc_s.h.
7295         * sysdeps/gnu/unwind-resume.c: Likewise.
7296         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7297
7298 2012-04-25  David S. Miller  <davem@davemloft.net>
7299
7300         * sysdeps/unix/sparc/brk.S: Delete.
7301         * sysdeps/unix/sparc/dl-brk.S: Delete.
7302         * sysdeps/unix/sparc/pipe.S: Delete.
7303         * sysdeps/unix/sparc/sysdep.S: Delete.
7304         * sysdeps/unix/sparc/sysdep.h: Delete.
7305         * sysdeps/unix/sparc/vfork.S: Delete.
7306         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7307         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7308         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7309         ret_ERRVAL, r0, r1, MOVE): Define.
7310         (JUMPTARGET): Remove.
7311         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7312         sysdeps/unix/sparc/sysdep.h
7313         (ENTRY, END): Remove.
7314         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7315
7316 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7317
7318         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7319         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7320         -DIS_IN_build.
7321
7322         * timezone/README: Update upstream location and email address for
7323         tzcode and tzdata.
7324         * timezone/zdump.c: Update from tzcode 2012b.
7325         * timezone/zic.c: Likewise.
7326
7327         * configure.in (libc_cv_as_needed): Remove test.
7328         * configure: Regenerated.
7329         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7330         conditional definition.
7331         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7332         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7333         * config.make.in (have-as-needed): Remove variable.
7334
7335 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7336             Paul Pluzhnikov  <ppluzhnikov@google.com>
7337
7338         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7339         strings correctly.
7340
7341 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7342
7343         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7344         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7345         * sysdeps/sh/strlen.S: Likewise.
7346
7347 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7348
7349         * sysdeps/unix/fork.S: Remove file.
7350         * sysdeps/unix/i386/fork.S: Likewise.
7351         * sysdeps/unix/sparc/fork.S: Likewise.
7352
7353         * sysdeps/unix/system.c: Remove file.
7354         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7355
7356         * sysdeps/unix/getegid.S: Remove file.
7357         * sysdeps/unix/geteuid.S: Likewise.
7358
7359 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7360
7361         * scripts/check-localplt.awk: New file.
7362         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7363         of diff.
7364         * scripts/data/localplt-generic.data: Add a comment.
7365
7366         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7367         NODE when __dir_mkfile failed.
7368         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7369         Reported by Ludovic Courtès <ludo@gnu.org>.
7370
7371 2012-04-24  Andreas Jaeger  <aj@suse.de>
7372
7373         * Makerules (common-clean): Also remove gen-as-const-headers
7374         files.
7375
7376 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7377
7378         * Makerules (native-compile): Do not change working directory for
7379         build.  Use $(OUTPUT_OPTION) in command.
7380         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7381
7382 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7383
7384         [BZ #13886]
7385         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7386         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7387         * math/libm-test.inc (floor_test): Add more tests.
7388         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7389
7390 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7391
7392         * sysdeps/unix/getdents.c: Remove file.
7393         * sysdeps/unix/sysv/getdents.c: Likewise.
7394         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7395
7396         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7397         sysdeps/unix/mman/syscalls.list.
7398         (mmap): Likewise.
7399         (mprotect): Likewise.
7400         (msync): Likewise.
7401         (munmap): Likewise.
7402         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7403         * sysdeps/unix/mman/syscalls.list: Remove.
7404         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7405
7406         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7407         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7408         * configure: Regenerated.
7409         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7410         $(libgcc_s_suffix).
7411         * config.make.in (libgcc_s_suffix): Remove variable.
7412
7413 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7414
7415         * sysdeps/unix/sysv/gethostname.c: Move to ...
7416         * sysdeps/posix/gethostname.c: ... here.
7417
7418         * sysdeps/unix/execve.S: Remove file.
7419
7420         * sysdeps/unix/_exit.S: Remove file.
7421
7422 2012-04-23  Andreas Jaeger  <aj@suse.de>
7423
7424         [BZ #13739]
7425         * manual/Makefile: Remove make dist support, there's no
7426         need for a stand-alone documentation tar ball.
7427         (TEXI2DVI): Define always, it's not in Makeconfig.
7428         (dist): Removed.
7429         (tar-it): Removed.
7430         (edition): Removed.
7431         (glibc-doc-$(edition).tar): Removed
7432         (%.Z): Removed.
7433         (%.gz): Removed.
7434         (%.uu): Removed.
7435         (ETAGS): Remove, it's in Makeconfig.
7436         (move-if-change): Remove, it's in Makeconfig.
7437
7438 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7439
7440         [BZ #13970]
7441         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7442         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7443         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7444         (strtod_l, strtof_l, strtold_l): Remove __wur.
7445         It is not necessarily an error to ignore strtol's return value.
7446         One can reliably look at the stored endptr to decide whether
7447         the number had valid syntax.
7448
7449 2012-04-21  Andreas Jaeger  <aj@suse.de>
7450
7451         [BZ #13739]
7452         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7453
7454 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7455
7456         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7457         * sysdeps/unix/sysv/Versions: Remove file.
7458
7459 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7460
7461         [BZ #13927]
7462         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7463
7464 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7465
7466         [BZ #7064]
7467         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7468         version from __vm86.
7469
7470 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7471
7472         * sysdeps/unix/common/lxstat.c: Remove file.
7473         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7474
7475         * sysdeps/unix/sysv/Makefile: Remove file.
7476
7477         * sysdeps/unix/sysv/direct.h: Remove file.
7478
7479         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7480         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7481         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7482         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7483         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7484         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7485         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7486
7487         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7488
7489         * sysdeps/unix/xmknod.c: Remove file.
7490         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7491
7492         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7493
7494         * sysdeps/unix/sysv/i386/time.S: Remove file.
7495
7496         * sysdeps/unix/fxstat.c: Remove file.
7497         * sysdeps/unix/xstat.c: Likewise.
7498         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7499
7500         * sysdeps/unix/sysv/sigaction.c: Remove file.
7501
7502         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7503         (sysdep_headers): Remove variable.
7504         [termio.h not in sysdep_headers] (generated): Likewise.
7505         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7506         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7507         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7508         * sysdeps/unix/sysv/tcflow.c: Likewise.
7509         * sysdeps/unix/sysv/tcflush.c: Likewise.
7510         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7511         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7512         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7513         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7514         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7515
7516         * sysdeps/unix/siglist.c: Remove file.
7517
7518         * sysdeps/unix/getppid.S: Remove file.
7519
7520         * sysdeps/unix/mkdir.c: Remove file.
7521         * sysdeps/unix/rmdir.c: Likewise.
7522
7523 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7524
7525         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7526         ERR_MAX value.
7527         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7528         errlist-compat value.
7529
7530 2012-04-18  David S. Miller  <davem@davemloft.net>
7531
7532         * sysdeps/generic/memcopy.h (reg_char): Delete.
7533         * debug/strcat_chk.c: Use char, not reg_char.
7534         * debug/strcpy_chk.c: Likewise.
7535         * debug/strncat_chk.c: Likewise.
7536         * debug/strncpy_chk.c: Likewise.
7537         * string/memchr.c: Likewise.
7538         * string/memrchr.c: Likewise.
7539         * string/rawmemchr.c: Likewise.
7540         * string/strcat.c: Likewise.
7541         * string/strchr.c: Likewise.
7542         * string/strchrnul.c: Likewise.
7543         * string/strcmp.c: Likewise.
7544         * string/strcpy.c: Likewise.
7545         * string/strncat.c: Likewise.
7546         * string/strncmp.c: Likewise.
7547         * string/strncpy.c: Likewise.
7548
7549 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7550
7551         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7552         __builtin_memcopy is called when src and dest ranges are known to not
7553         overlap.
7554
7555 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7556
7557         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7558         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7559         fwd_align_merge macro call.
7560         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7561         bwd_align_merge macro call.
7562         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7563
7564 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7565
7566         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7567         bwd_align_merge macros.
7568         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7569         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7570         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7571
7572 2012-04-18  David S. Miller  <davem@davemloft.net>
7573
7574         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7575
7576 2012-04-18  Andreas Jaeger  <aj@suse.de>
7577
7578         [BZ# 6794]
7579         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7580         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7581         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7582
7583         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7584         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7585         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7586
7587         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7588         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7589         Adjust for changed ldbl-128 files.
7590
7591         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7592         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7593         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7594
7595 2012-04-17  David S. Miller  <davem@davemloft.net>
7596
7597         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7598
7599 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7600
7601         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7602         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7603         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7604         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7605         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7606         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7607
7608 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7609
7610         [BZ #6794]
7611         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7612         * math/libm-test.inc: Add ilogb errno and exception tests.
7613         * math/w_ilogb.c: New file: ilogb wrapper.
7614         * math/w_ilogbf.c: New file: ilogbf wrapper.
7615         * math/w_ilogbl.c: New file: ilogbl wrapper.
7616         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7617         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7618         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7619         exception being thrown with 0.0 as argument.
7620         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7621         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7622         exception being thrown with 0.0 as argument.
7623         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7624         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7625         exception being thrown with 0.0 as argument.
7626         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7627         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7628         exception being thrown with 0.0 as argument.
7629         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7630         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7631         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7632         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7633         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7634         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7635         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7636         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7637         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7638
7639 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7640
7641         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7642         with altivec.
7643
7644 2012-04-16  Marek Polacek  <polacek@redhat.com>
7645
7646         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7647
7648 2012-04-16  Marek Polacek  <polacek@redhat.com>
7649
7650         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7651         operands of fdivp instruction.
7652
7653 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7654
7655         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7656         * elf/tst-auditmod3b.c: Likewise.
7657         * elf/tst-auditmod4b.c: Likewise.
7658         * elf/tst-auditmod5b.c: Likewise.
7659         * elf/tst-auditmod6b.c: Likewise.
7660         * elf/tst-auditmod6c.c: Likewise.
7661         * elf/tst-auditmod7b.c: Likewise.
7662         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7663         * sysdeps/x86_64/preconfigure.in: Likewise.
7664         * sysdeps/x86_64/preconfigure: Regenerated.
7665
7666 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7667
7668         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7669         __ILP32__.
7670
7671 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7672
7673         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7674         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7675
7676 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7677
7678         [BZ #13973]
7679         * locale/iso-639.def: Fix gl language name. Spotted by
7680         Yaron Shahrabani.
7681
7682 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7683
7684         [BZ #2074]
7685         * libio/libio.h (__io_write_fn): Update comment.
7686
7687 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7688
7689         [BZ #2074]
7690         * stdio.texi (Hook Functions): The user provided writer function
7691         is not allowed to return -1.
7692
7693 2012-04-11  David S. Miller  <davem@davemloft.net>
7694
7695         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7696
7697 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7698
7699         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7700         Add a leading slash to rtkaio.
7701
7702 2012-04-11  Jim Meyering  <meyering@redhat.com>
7703
7704         [BZ #11959]
7705         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7706         It is not necessarily an error to ignore fwrite's return
7707         value.  One can reliably use ferror to test for errors after
7708         the fact.
7709
7710 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7711
7712         * bits/types.h (__snseconds_t): New type.
7713         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7714
7715         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7716         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7717         (__SNSECONDS_T_TYPE): Likewise.
7718         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7719         (__SNSECONDS_T_TYPE): Likewise.
7720         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7721         (__SNSECONDS_T_TYPE): Likewise.
7722
7723 2012-04-10  Andreas Jaeger  <aj@suse.de>
7724
7725         [BZ #2636]
7726         * manual/time.texi (Processor Time): Return type of times is
7727         elapsed real time since an arbitrary point in the past.
7728         (CPU Time): Move CLK_TCK from here...
7729         (Processor Time): ...to here.  Correct description.
7730         * manual/conf.texi (Constants for Sysconf): Correct description of
7731         _SC_CLK_TCK.
7732
7733 2012-04-10  David S. Miller  <davem@davemloft.net>
7734
7735         [BZ #13967]
7736         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7737         where the is a gap between DT_REL(A) and DT_JMPREL.
7738
7739 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7740
7741         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7742         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7743         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7744
7745 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7746
7747         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7748         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7749         (dl_main): Handle --inhibit-cache.
7750         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7751         _dl_inhibit_cache.
7752         * elf/dl-load.c (_dl_map_object): Use it.
7753         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7754
7755 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7756
7757         [BZ #13872]
7758         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7759         (__ieee754_powl): Saturate large exponents rather than testing for
7760         overflow of y*log2(x).
7761         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7762         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7763         exceptions.
7764
7765         [BZ #11521]
7766         * math/s_ctan.c: Include <float.h>.
7767         (__ctan): Avoid internal overflow or cancellation in calculating
7768         denominator.
7769         * math/s_ctanf.c: Likewise.
7770         * math/s_ctanl.c: Likewise.
7771         * math/s_ctanh.c: Likewise.
7772         * math/s_ctanhf.c: Likewise.
7773         * math/s_ctanhl.c: Likewise.
7774         * math/libm-test.inc (ctan_test): Add more tests.
7775         (ctanh_test): Likewise.
7776         * sysdeps/i386/fpu/libm-test-ulps: Update.
7777         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7778
7779 2012-04-09  Andreas Jaeger  <aj@suse.de>
7780
7781         [BZ #6894]
7782         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7783         is an optional BSD extension.
7784
7785         [BZ #10254]
7786         * manual/stdio.texi (Opening Streams): Document additional fopen
7787         parameters.
7788
7789 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7790
7791         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7792         %eax without telling the compiler.
7793
7794 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7795
7796         [BZ # 13963]
7797         * manual/install.texi: Use sourceware.org.
7798
7799 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7800
7801         [BZ #13873]
7802         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7803         (__ieee754_pow): Generate overflow and underflow using huge*huge
7804         and tiny*tiny rather than just returning constant infinity or zero
7805         for large exponents.
7806         * math/libm-test.inc (pow_test): Require overflow exceptions for
7807         applicable cases of large exponents.
7808
7809         [BZ #706]
7810         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7811         (__ieee754_pow): Use iterative multiplication algorithm only for
7812         integer exponents with absolute value below 1024.  Check for odd
7813         integer exponents when using algorithm for real exponents.
7814         * math/libm-test.inc (pow_test): Add more tests.
7815         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7816
7817 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7818
7819         [BZ #13705]
7820         * math/libm-test.inc (exp_test): Do not allow overflow exception
7821         on underflow test.
7822
7823 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7824
7825         [BZ #13705]
7826         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7827         instead of __kernel_standard_f.
7828
7829 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7830
7831         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7832         * sysdeps/x86_64/memset_chk.S: Likewise.
7833
7834 2012-04-08  Andreas Jaeger  <aj@suse.de>
7835
7836         [BZ #10153]
7837         * manual/startup.texi (Environment Access): Describe return value
7838         for putenv and setenv.
7839
7840         [BZ #6895]
7841         * manual/filesys.texi (Directory Entries): Add description for
7842         DT_LNK.
7843
7844         [BZ #6890]
7845         * manual/filesys.texi (Directory Entries): Clarify that it's file
7846         system not operating system in the description of DT_UNKNOWN.
7847
7848         [BZ #6578]
7849         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7850
7851 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7852
7853         [BZ #6649]
7854         * manual/llio.texi (Opening and Closing Files): Add cross
7855         reference to explain mode argument.
7856
7857 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7858
7859         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7860         * sysdeps/x86_64/memset_chk.S: Likewise.
7861
7862 2012-04-07  David S. Miller  <davem@davemloft.net>
7863
7864         * elf/elf.h (R_SPARC_WDISP10): Define.
7865         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7866         R_SPARC_SIZE32.
7867         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7868         R_SPARC_SIZE64 and R_SPARC_H34.
7869
7870 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7871
7872         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7873         conditions and remove no longer applicable assertion.
7874
7875 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7876
7877         * bits/byteswap.h: Include <features.h>.
7878         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7879         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7880
7881 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7882
7883         * bits/byteswap.h (__bswap_16): Removed.
7884         Include <bits/byteswap-16.h> to get __bswap_16.
7885         * sysdeps/i386/bits/byteswap.h: Likewise.
7886         * sysdeps/s390/bits/byteswap.h: Likewise.
7887         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7888         * bits/byteswap-16.h: New file.
7889         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7890         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7891         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7892         * string/Makefile (headers): Add bits/byteswap-16.h.
7893
7894 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7895
7896         [BZ #13895]
7897         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7898         extra indirection.
7899         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7900         * nss/tst-nss-static.c: New.
7901
7902 2012-04-06  Robert Millan  <rmh@gnu.org>
7903
7904         [BZ #6486]
7905         * manual/llio.texi (File Position Primitive): lseek
7906         refers to WHENCE when it really means OFFSET.
7907
7908 2012-04-06  Andreas Jaeger  <aj@suse.de>
7909
7910         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7911         strncmp declarations.
7912
7913         * abilist/libc.abilist: Add __poll and __ppoll.
7914
7915 2012-04-05  David S. Miller  <davem@davemloft.net>
7916
7917         * scripts/check-local-headers.sh: Accept a host triplet in the
7918         path matched by the exclude regexp.
7919
7920         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7921         definition.
7922         * sysdeps/powerpc/powerpc32/dl-machine.h
7923         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7924         * sysdeps/s390/s390-32/dl-machine.h
7925         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7926         * sysdeps/sparc/sparc32/dl-machine.h
7927         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7928         * sysdeps/sparc/sparc64/dl-machine.h
7929         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7930
7931         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7932         lazy binding.
7933         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7934         undefined symbol errors.
7935
7936         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7937         DT_NEEDED entries.
7938
7939 2012-04-05  Michael Matz  <matz@suse.de>
7940
7941         [BZ #13592]
7942         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7943
7944 2012-04-05  Andreas Jaeger  <aj@suse.de>
7945
7946         [BZ #13908]
7947         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7948         comment.
7949
7950 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7951
7952         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7953         which ROUND is no valid rounding mode.
7954
7955 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7956
7957         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7958         read again.
7959         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7960
7961 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7962
7963         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7964         an exception using FPU order intentionally.
7965
7966 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7967
7968         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7969         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7970         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7971         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7972
7973 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7974
7975         [BZ #12340]
7976         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7977         EINVAL when BUFLEN is too smal.
7978
7979 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7980
7981         [BZ #13553]
7982         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7983         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7984
7985 2012-04-03  Andreas Jaeger  <aj@suse.de>
7986
7987         [BZ #13938]
7988         * manual/setjmp.texi (System V contexts): Fix sentence.
7989
7990         [BZ #13926]
7991         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7992         New macro for this case.
7993         [!__GNUC__] (__bswap_64): New inline function for this case.
7994         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7995         * bits/byteswap.h: Likewise.
7996         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7997         ull, guard with __GLIBC_HAVE_LONG_LONG.
7998
7999         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
8000         __GLIBC_HAVE_LONG_LONG.
8001
8002         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
8003         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8004
8005 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8006
8007         [BZ #13691]
8008         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8009         inptr and inend, rather than using last_ch.
8010
8011 2012-04-02  David S. Miller  <davem@davemloft.net>
8012
8013         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8014         * stdio-common/printf-parse.h (read_int): Change return type to
8015         'int', return -1 on INT_MAX overflow.
8016         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8017         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8018         overflows INT_MAX.  Check for overflow of in-format-string precision
8019         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8020         SIZE_MAX not INT_MAX for integer overflow test.
8021         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8022         skip the construct in the format string but do not record anything.
8023         * stdio-common/bug22.c: Adjust to test both width/prevision
8024         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8025         explicitly for proper errno values.
8026
8027 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8028
8029         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8030         CHAR_MAX.
8031         * string/test-strcmp.c [! WIDE]: Likewise.
8032         * time/tst-mktime2.c: Likewise for INT_MAX.
8033         * string/test-string.h: #include <sys/param.h> for MIN.
8034
8035         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8036         * sysdeps/i386/init-first.c (init): Likewise.
8037         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8038         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8039         * sysdeps/sh/init-first.c (init): Likewise.
8040
8041 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8042
8043         * po/ru.po: Update from translation team.
8044         * po/vi.po: Likewise.
8045
8046 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8047
8048         * resolv/nss_dns/dns-host.c: Merge copyright years.
8049
8050 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8051
8052         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8053         Optimize memcpy with prefetch if
8054         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8055         src, dst pointers have unequal 16 byte alignments.
8056
8057 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8058
8059         [BZ #13928]
8060         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8061         from a CNAME entry and return the minimum ttl for the query.
8062         (gaih_getanswer_slice): Likewise.
8063
8064 2012-03-30  Jeff Law  <law@redhat.com>
8065
8066         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8067         due to long keys.
8068         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8069         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8070
8071         * resolv/nss_dns/dns-host.c: Update copyright year.
8072
8073 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8074
8075         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8076         requests to save a system call.  Fix check that all bytes are sent.
8077
8078         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8079         comments for sendmmsg.
8080
8081 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8082
8083         [BZ #13691]
8084         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8085         with only 1 character between 0x0041 and 0x01b0.
8086         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8087         * wcsmbs/tst-mbsnrtowcs.c: New file.
8088
8089 2012-03-29  David S. Miller  <davem@davemloft.net>
8090
8091         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8092         small copies by hand.
8093
8094 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8095
8096         [BZ #13761]
8097         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8098         _nss_compat_initgroups_dyn): Fall back to malloc/free
8099         for large group memberships.
8100
8101 2012-03-28  David S. Miller  <davem@davemloft.net>
8102
8103         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8104         that branches into memcpy.
8105         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8106         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8107         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8108         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8109         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8110         bits.
8111         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8112         implementation too.
8113         * sysdeps/sparc/mempcpy.S: New file.
8114
8115         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8116         the IFUNC routine in the libc case.
8117         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8118
8119         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8120         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8121         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8122         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8123         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8124         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8125         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8126         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8127
8128         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8129         loop to 256 bytes instead of 64 bytes and fix test signedness.
8130
8131         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8132         * sysdeps/sparc/sparc32/Makefile: rather than here...
8133         * sysdeps/sparc/sparc64/Makefile: and here.
8134
8135 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8136
8137         * malloc/mallocbug.c: Avoid warnings about unused variables.
8138
8139 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8140
8141         [BZ #13760]
8142         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8143         in the right place. Discard and retry query if response is
8144         larger than input buffer size.
8145
8146 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8147
8148         [BZ #369]
8149         [BZ #2678]
8150         [BZ #3866]
8151         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8152         x for large integer exponent.
8153         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8154         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8155         sign of result as needed afterwards.
8156         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8157         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8158         result for underflowing pow the same as for overflow.
8159         (__kernel_standard_l): Handle powl overflow and underflow here
8160         rather than calling __kernel_standard.
8161         * math/libm-test.inc (pow_test): Add more tests.
8162
8163         [BZ #3868]
8164         [BZ #13879]
8165         [BZ #13910]
8166         [BZ #13911]
8167         [BZ #13912]
8168         [BZ #13913]
8169         [BZ #13915]
8170         [BZ #13916]
8171         [BZ #13917]
8172         [BZ #13918]
8173         [BZ #13919]
8174         [BZ #13920]
8175         [BZ #13921]
8176         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8177         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8178         (__kernel_standard_l): New function.
8179         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8180         __kernel_standard.
8181         * math/w_acosl.c (__acosl): Likewise.
8182         * math/w_asinl.c (__asinl): Likewise.
8183         * math/w_atan2l.c (__atan2l): Likewise.
8184         * math/w_atanhl.c (__atanhl): Likewise.
8185         * math/w_coshl.c (__coshl): Likewise.
8186         * math/w_exp10l.c (__exp10l): Likewise.
8187         * math/w_exp2l.c (__exp2l): Likewise.
8188         * math/w_fmodl.c (__fmodl): Likewise.
8189         * math/w_hypotl.c (__hypotl): Likewise.
8190         * math/w_j0l.c (__j0l, __y0l): Likewise.
8191         * math/w_j1l.c (__j1l, __y1l): Likewise.
8192         * math/w_jnl.c (__jnl, __ynl): Likewise.
8193         * math/w_lgammal.c (__lgammal): Likewise.
8194         * math/w_log10l.c (__log10l): Likewise.
8195         * math/w_log2l.c (__log2l): Likewise.
8196         * math/w_logl.c (__logl): Likewise.
8197         * math/w_powl.c (__powl): Likewise.
8198         * math/w_remainderl.c (__remainderl): Likewise.
8199         * math/w_scalbl.c (sysv_scalbl): Likewise.
8200         * math/w_sinhl.c (__sinhl): Likewise.
8201         * math/w_sqrtl.c (__sqrtl): Likewise.
8202         * math/w_tgammal.c (__tgammal): Likewise.
8203         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8204         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8205         * math/libm-test.inc (acos_test): Add more tests.
8206         (acosh_test): Likewise.
8207         (asin_test): Likewise.
8208         (atanh_test): Likewise.
8209         (exp_test): Likewise.
8210         (exp10_test): Likewise.
8211         (exp2_test): Likewise.
8212         (expm1_test): Likewise.
8213         (lgamma_test): Likewise.
8214         (log_test): Likewise.
8215         (log10_test): Likewise.
8216         (log1p_test): Likewise.
8217         (log2_test): Likewise.
8218         (pow_test): Do not allow some spurious overflow exceptions.
8219         (sqrt_test): Add more tests.
8220         (tgamma_test): Likewise.
8221         (y0_test): Likewise.
8222         (y1_test): Likewise.
8223         (yn_test): Likewise.
8224
8225 2012-03-27  Anton Blanchard  <anton@samba.org>
8226
8227         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8228         MAP_HUGETLB.
8229         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8230         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8231         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8232
8233 2012-03-27  David S. Miller  <davem@davemloft.net>
8234
8235         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8236
8237         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8238         have-as-vis3 check.
8239
8240 2012-03-27  Andreas Jaeger  <aj@suse.de>
8241
8242         * sysdeps/x86_64/elf/configure.in: Moved to ...
8243         * sysdeps/x86_64/configure.in: ... here.
8244         * sysdeps/x86_64/elf/start.S: Moved to ...
8245         * sysdeps/x86_64/start.S: ... here.
8246         * sysdeps/x86_64/elf/configure: Delete.
8247
8248         * sysdeps/x86_64/configure.in: Merge contents from
8249         sysdeps/i386/configure.in (without i686 check).
8250
8251         * sysdeps/i386/elf/Versions: Merge into ...
8252         * sysdeps/i386/Versions: ... this.
8253         * sysdeps/i386/elf/Versions: Delete file.
8254         * sysdeps/i386/elf/start.S: Moved to ...
8255         * sysdeps/i386/start.S: ...here.
8256         * sysdeps/i386/elf/configure.in: Merge into...
8257         * sysdeps/i386/configure.in: ...here.
8258         * sysdeps/i386/elf/configure.in: Delete file.
8259         * sysdeps/i386/elf/configure: Delete file.
8260
8261         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8262         * debug/backtracesyms.c: ... here.
8263         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8264         * debug/backtracesymsfd.c: ... here.
8265         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8266         * sysdeps/generic/ifunc-sel.h: ... here.
8267
8268         * sysdeps/unix/i386/start.c: Delete file.
8269         * sysdeps/unix/sparc/start.c: Delete file.
8270         * sysdeps/unix/start.c: Delete file.
8271
8272         * sysdeps/sh/elf/configure.in: Moved to ...
8273         * sysdeps/sh/configure.in: ... here.
8274         * sysdeps/sh/elf/start.S: Moved to ...
8275         * sysdeps/sh/start.S: ... here.
8276         * sysdeps/sh/elf/configure: Delete file.
8277
8278         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8279         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8280         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8281         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8282         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8283         * sysdeps/powerpc/powerpc64/start.S: here.
8284         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8285         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8286         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8287         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8288         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8289
8290         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8291         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8292         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8293         * sysdeps/powerpc/powerpc32/start.S: ... here.
8294         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8295         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8296         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8297
8298         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8299         * sysdeps/powerpc/ifunc-sel.h: ... here.
8300         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8301         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8302
8303         * sysdeps/sparc/elf/configure.in: Moved to ...
8304         * sysdeps/sparc/configure.in: ... here.
8305         * sysdeps/sparc/elf/configure: Delete file.
8306         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8307         * sysdeps/sparc/sparc32/start.S: ... here.
8308         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8309         * sysdeps/sparc/sparc64/start.S: ... here.
8310         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8311         * sysdeps/sparc/sparc32/Makefile: ... this.
8312         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8313         * sysdeps/sparc/sparc64/Makefile: ... this.
8314
8315         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8316         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8317         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8318         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8319         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8320         * sysdeps/s390/s390-32/setjmp.S: ... here.
8321         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8322         * sysdeps/s390/s390-32/configure.in: ... here.
8323         * sysdeps/s390/s390-32/elf/configure: Delete file.
8324         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8325         * sysdeps/s390/s390-32/start.S: ... here.
8326
8327         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8328         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8329         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8330         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8331         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8332         * sysdeps/s390/s390-64/setjmp.S: ... here.
8333         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8334         * sysdeps/s390/s390-64/configure.in: ... here
8335         * sysdeps/s390/s390-64/elf/configure: Delete file.
8336         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8337         * sysdeps/s390/s390-64/start.S: ... here.
8338         * sysdeps/s390/s390-64/elf/configure: Delete.
8339
8340         * configure.in: Remove support for elf directories in sysdeps.
8341
8342         * configure: Regenerated.
8343         * sysdeps/i386/configure: Regenerated.
8344         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8345         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8346         * sysdeps/s390/s390-32/configure: Regenerated.
8347         * sysdeps/s390/s390-64/configure: Regenerated.
8348         * sysdeps/sh/configure: Regenerated.
8349         * sysdeps/sparc/configure: Regenerated.
8350         * sysdeps/x86_64/configure: Regenerated.
8351
8352 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8353
8354         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8355
8356         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8357         denormal result into account.
8358
8359 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8360
8361         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8362         Reported by Allan McRae <allan@archlinux.org>.
8363
8364 2012-03-23  Jeff Law  <law@redhat.com>
8365
8366         * nss/getnssent.c (__nss_getent): Fix typo.
8367
8368 2012-03-23  David S. Miller  <davem@davemloft.net>
8369
8370         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8371
8372 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8373
8374         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8375         to pad to uint64_t for each field.
8376         (dl_tls_index): Replace unsigned long with uint64_t.
8377
8378 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8379         Paul Pluzhnikov  <ppluzhnikov@google.com>
8380
8381         [BZ #6528]
8382         * grp/Makefile (otherlibs): Don't set it.
8383         * inet/Makefile (otherlibs): Likewise.
8384         * login/Makefile (otherlibs): Likewise.
8385         * nscd/Makefile (otherlibs): Likewise.
8386         * posix/Makefile (otherlibs): Likewise.
8387         * pwd/Makefile (otherlibs): Likewise.
8388         * rt/Makefile (otherlibs): Likewise.
8389         * sunrpc/Makefile (otherlibs): Likewise.
8390         * nss/Makefile (otherlibs): Likewise.
8391         Add libnss_files to routines and static-only-routines.
8392         ($(objpfx)getent): Remove rule.
8393         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8394         static-only-routines.
8395
8396 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8397
8398         [BZ #13892]
8399         * math/s_cexp.c: Include <float.h>.
8400         (__cexp): Handle exp result overflowing not necessarily
8401         overflowing both real and imaginary parts of result.
8402         * math/s_cexpf.c: Likewise.
8403         * math/s_cexpl.c: Likewise.
8404         * math/libm-test.inc (cexp_test): Add more tests.
8405         * sysdeps/i386/fpu/libm-test-ulps: Update.
8406         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8407
8408 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8409
8410         * include/link.h (ELFW): New macro.
8411         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8412         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8413
8414 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8415
8416         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8417         with uint64_t.
8418
8419 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8420
8421         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8422         declaration.
8423         (struct La_x32_retval): Likewise.
8424
8425 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8426
8427         * sysdeps/x86_64/preconfigure.in: New file.
8428         * sysdeps/x86_64/preconfigure: New generated file.
8429
8430 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8431
8432         [BZ #13824]
8433         * math/e_exp2l.c: Include <float.h>.
8434         (__ieee754_exp2l): Handle overflow and underflow cases
8435         separately.  Only pass fractional part of argument to
8436         __ieee754_expl.
8437         * math/libm-test.inc (exp2_test): Add more tests.
8438
8439         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8440         negating x to take absolute value.
8441         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8442         Likewise.
8443         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8444         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8445         Likewise.
8446         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8447         computing low part if x was negated.
8448         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8449
8450 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8451
8452         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8453         la_x32_gnu_pltexit.
8454         (pltexit): Cast int_retval to ptrdiff_t.
8455         * elf/tst-auditmod3b.c: Likewise.
8456         * elf/tst-auditmod4b.c: Likewise.
8457         * elf/tst-auditmod5b.c: Likewise.
8458         * elf/tst-auditmod6b.c: Likewise.
8459         * elf/tst-auditmod6c.c: Likewise.
8460         * elf/tst-auditmod7b.c: Likewise.
8461
8462         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8463         and x32_gnu_pltexit.
8464
8465         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8466         __ELF_NATIVE_CLASS.
8467         (La_x32_regs): New macro.
8468         (La_x32_retval): Likewise.
8469         (la_x32_gnu_pltenter): New function prototype.
8470         (la_x32_gnu_pltexit): Likewise.
8471
8472 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8473
8474         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8475         exponent.
8476
8477         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8478
8479         * configure.in (libc_cv_cc_nofma): Check for option to disable
8480         generation of FMA instructions.
8481         * configure: Regenerate.
8482         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8483         * sysdeps/ieee754/dbl-64/Makefile: New file.
8484         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8485         Remove brandred-fma4.
8486         (CFLAGS-brandred-fma4.c): Remove.
8487         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8488         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8489         define.
8490         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8491         define.
8492
8493 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8494
8495         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8496         LLONG_MAX != LONG_MAX.
8497         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8498         (_fitoa_word): Likewise.
8499         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8500         LLONG_MAX != LONG_MAX.
8501         * stdio-common/_itowa.h: Include <_itoa.h>.
8502         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8503         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8504         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8505         only if not defined.
8506         (_ITOA_WORD_TYPE): Likewise.
8507         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8508         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8509
8510 2012-03-21  David S. Miller  <davem@davemloft.net>
8511
8512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8513
8514 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8515
8516         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8517         of x86_64 when setting libc_cv_slibdir, libdir and
8518         libc_cv_localedir.
8519         * sysdeps/unix/sysv/linux/configure: Regenerated.
8520
8521 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8522
8523         * manual/lang.texi (Old Varargs): Remove section.
8524         (How Variadic): Update menu.
8525         (va_start): Do not mention varargs.h.
8526
8527 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8528             Joseph Myers  <joseph@codesourcery.com>
8529
8530         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8531         link test.
8532         * configure: Regenerated.
8533
8534 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8535
8536         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8537         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8538         conformtest.pl
8539
8540 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8541
8542         * NOTES: Remove.
8543         * Makefile (files-for-dist): Remove NOTES.
8544         (NOTES): Remove rule.
8545         * README: Don't refer to NOTES.
8546         * manual/creature.texi: Don't include macros.texi.
8547         * manual/intro.texi (creature.texi): Remove comment referring to
8548         NOTES.
8549
8550         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8551         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8552         * configure: Regenerated.
8553         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8554         LIBC_TRY_CC_OPTION.
8555         (libc_cv_as_i686): Likewise.
8556         (libc_cv_cc_avx): Likewise.
8557         (libc_cv_cc_sse2avx): Likewise.
8558         (libc_cv_cc_fma4): Likewise.
8559         (libc_cv_cc_novzeroupper): Likewise.
8560         * sysdeps/i386/configure: Regenerated.
8561
8562         [BZ #13883]
8563         * sysdeps/i386/fpu/s_cexp.S: Remove.
8564         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8565         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8566         * math/libm-test.inc (cexp_test): Add more tests.
8567         * sysdeps/i386/fpu/libm-test-ulps: Update.
8568         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8569
8570 2012-03-21  Allan McRae  <allan@archlinux.org>
8571
8572         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8573
8574 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8575
8576         [BZ #13871]
8577         * math/w_exp2.c: Do not include <float.h>.
8578         (o_threshold, u_threshold): Remove.
8579         (__exp2): Calculate result before checking finiteness and calling
8580         __kernel_standard.
8581         * math/w_exp2f.c: Likewise.
8582         * math/w_exp2l.c: Likewise.
8583         * math/libm-test.inc (exp2_test): Require overflow exception for
8584         1e6 input.
8585
8586         [BZ #3866]
8587         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8588         range of signed 64-bit integers before using fistpll.  Remove
8589         checks for whether integers fit in mantissa bits.
8590         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8591         the range of signed 32-bit integers before using fistpl.  Remove
8592         checks for whether integers fit in mantissa bits.
8593         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8594         (__ieee754_powl): Test for y outside the range of signed 64-bit
8595         integers before using fistpll.  Reduce 64-bit values to 63-bit
8596         ones as needed.
8597         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8598         divide-by-zero is raised for zero to large negative powers.
8599         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8600         (__ieee754_powl): Test for y outside the range of signed 64-bit
8601         integers before using fistpll.  Reduce 64-bit values to 63-bit
8602         ones as needed.
8603         * math/libm-test.inc (pow_test): Add more tests.
8604
8605 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8606
8607         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8608         <stdio-common/_itoa.h>.
8609         * debug/segfault.c: Likewise.
8610         * elf/dl-cache.c: Likewise.
8611         * elf/dl-minimal.c: Likewise.
8612         * elf/dl-misc.c: Likewise.
8613         * elf/dl-sysdep.c: Likewise.
8614         * elf/dl-version.c: Likewise.
8615         * elf/rtld.c: Likewise.
8616         * hurd/hurdsock.c: Likewise.
8617         * hurd/lookup-retry.c: Likewise.
8618         * malloc/malloc.c: Likewise.
8619         * malloc/mtrace.c: Likewise.
8620         * nscd/nscd_getgr_r.c: Likewise.
8621         * nscd/nscd_getpw_r.c: Likewise.
8622         * nscd/nscd_getserv_r.c: Likewise.
8623         * posix/getopt_init.c: Likewise.
8624         * posix/wordexp.c: Likewise.
8625         * stdio-common/_itoa.c: Likewise.
8626         * stdio-common/printf_fphex.c: Likewise.
8627         * stdio-common/vfprintf.c: Likewise.
8628         * string/_strerror.c: Likewise.
8629         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8630         * sysdeps/i386/i686/hp-timing.h: Likewise.
8631         * sysdeps/mach/_strerror.c: Likewise.
8632         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8633         * sysdeps/mach/hurd/sethostid.c: Likewise.
8634         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8635         * sysdeps/mach/xpg-strerror.c: Likewise.
8636         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8637         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8638         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8639         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8640         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8641         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8642         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8643         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8644         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8645         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8646         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8647         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8648         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8649         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8650         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8651         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8652         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8653         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8654         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8655         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8656         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8657
8658         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8659
8660         * stdio-common/_itoa.h: Moved to ...
8661         * sysdeps/generic/_itoa.h: Here.
8662
8663         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8664
8665         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8666         instead of "_itoa.h" and "_itowa.h".
8667         * stdio-common/vfprintf.: Likewise.
8668
8669 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8670
8671         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8672         <bits/wordsize.h>.
8673         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8674         (__signbit): Likwise.
8675         (llrintf): Likwise.
8676         (llrint): Likwise.
8677
8678 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8679
8680         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8681         __WORDSIZE != 64.
8682
8683 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8684
8685         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8686         OVERFLOW_EXCEPTION_OK.
8687         * math/libm-test.inc ("Philosophy"): Update comment about
8688         exception testing.
8689         (OVERFLOW_EXCEPTION): Define.
8690         (OVERFLOW_EXCEPTION_OK): Likewise.
8691         (INVALID_EXCEPTION_OK): Renumber.
8692         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8693         (IGNORE_ZERO_INF_SIGN): Likewise.
8694         (test_exceptions): Handle FE_OVERFLOW.
8695         (exp10_test): Expect overflow exceptions.
8696         (exp2_test): Likewise.
8697         (expm1_test): Likewise.
8698         (nextafter_test): Likewise.
8699         (pow_test): Likewise.
8700         (scalbn_test): Likewise.
8701         (scalbln_test): Likewise.
8702
8703 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8704
8705         * sysdeps/x86_64/bits/atomic.h
8706         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8707         64bit integer.
8708         (atomic_exchange_acq): Likewise.
8709         (__arch_exchange_and_add_body): Likewise.
8710         (__arch_add_body): Likewise.
8711         (atomic_add_negative): Likewise.
8712         (atomic_add_zero): Likewise.
8713
8714 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8715
8716         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8717         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8718
8719 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8720
8721         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8722         Check __x86_64__ instead of __WORDSIZE.
8723
8724 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8725
8726         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8727
8728 2012-03-19  David S. Miller  <davem@davemloft.net>
8729
8730         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8731
8732         * sysdeps/sparc/fpu/fenv_private.h: New file.
8733         * sysdeps/sparc/fpu/math_private.h: Use it.
8734         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8735         Remove.
8736         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8737         (libc_feholdexcept_setroundl): Remove.
8738         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8739         Remove.
8740         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8741         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8742
8743 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8744
8745         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8746         int64_t instead of long int.
8747         (INSERT_WORDS64): Likwise.
8748
8749 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8750
8751         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8752         _Unwind_GetCFA return to _Unwind_Ptr first.
8753
8754 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8755
8756         [BZ #13629]
8757         * math/s_clog.c: Include <float.h>.
8758         (__clog): Scale large or subnormal inputs.
8759         * math/s_clogf.c: Likewise.
8760         * math/s_clogl.c: Likewise.
8761         * math/s_clog10.c: Include <float.h>.
8762         (M_LOG10_2): Define.
8763         (__clog10): Scale large or subnormal inputs.
8764         * math/s_clog10f.c: Likewise.
8765         * math/s_clog10l.c: Likewise.
8766         * math/libm-test.inc (clog_test): Add more tests.
8767         (clog10_test): Likewise.
8768         * sysdeps/i386/fpu/libm-test-ulps: Update.
8769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8770
8771         [BZ #11451]
8772         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8773         x and y.
8774         * math/libm-test.inc (atan2_test): Add another test.
8775
8776         * Makerules (common-objdir-compile): Remove.
8777         * sysdeps/unix/Makefile (config-generated): Do not add
8778         $(unix-generated) to variable.
8779         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8780         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8781         Remove rule.
8782         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8783         Likewise.
8784         [generic bits/local_lim.h] (before-compile): Do not append to
8785         variable.
8786         [generic bits/local_lim.h] (common-generated): Likewise.
8787         [generic sys/param.h] (before-compile): Do not append to variable.
8788         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8789         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8790         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8791         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8792         include.
8793         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8794         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8795         [generic sys/param.h] ($(addprefix
8796         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8797         [generic sys/param.h] (common-generated): Do not append to
8798         variable.
8799         [generic sys/param.h] (sysdep_headers): Likewise.
8800         [generic bits/errno.h] (before-compile): Do not append to
8801         variable.
8802         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8803         rule.
8804         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8805         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8806         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8807         [generic bits/errno.h] (common-generated): Do not append to
8808         variable.
8809         [generic bits/ioctls.h] (before-compile): Do not append to
8810         variable.
8811         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8812         rule.
8813         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8814         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8815         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8816         rule.
8817         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8818         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8819         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8820         [generic bits/ioctls.h] (common-generated): Do not append to
8821         variable.
8822         [generic sys/syscall.h] (syscall.h): Remove variable.
8823         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8824         rule.
8825         [generic sys/syscall.h] (before-compile): Do not append to
8826         variable.
8827         [generic sys/syscall.h] (common-generated): Likewise.
8828         * sysdeps/unix/errnos-tmpl.c: Remove file.
8829         * sysdeps/unix/errnos.awk: Likewise.
8830         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8831         * sysdeps/unix/ioctls.awk: Likewise.
8832         * sysdeps/unix/mk-local_lim.c: Likewise.
8833         * sysdeps/unix/snarf-ioctls: Likewise.
8834
8835 2012-03-19  Richard Henderson  <rth@twiddle.net>
8836
8837         * sysdeps/i386/fpu/fenv_private.h: New file.
8838         * sysdeps/i386/fpu/math_private.h: Use it.
8839         (math_opt_barrier, math_force_eval): Remove.
8840         (libc_feholdexcept_setround_53bit): Remove.
8841         (libc_feupdateenv_53bit): Remove.
8842         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8843         (math_opt_barrier, math_force_eval): Remove.
8844         (libc_feholdexcept): Remove.
8845         (libc_feholdexcept_setround): Remove.
8846         (libc_fetestexcept, libc_fesetenv): Remove.
8847         (libc_feupdateenv_test): Remove.
8848         (libc_feupdateenv, libc_feholdsetround): Remove.
8849         (libc_feresetround): Remove.
8850
8851         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8852         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8853
8854         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8855         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8856         (libc_feupdateenv_testl): New.
8857         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8858         (libc_feupdateenv_testf): New.
8859         (libc_feupdateenv): Use libc_feupdateenv_test.
8860         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8861         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8862
8863         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8864         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8865         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8866         (libc_feresetround_noex): New.
8867         (libc_feresetround_noexf): New.
8868         (libc_feresetround_noexl): New.
8869         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8870         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8871         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8872         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8873         SET_RESTORE_ROUND.
8874         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8875         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8876         (__cos): Likewise.
8877         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8878         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8879         SET_RESTORE_ROUND_NOEX.
8880         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8881         SET_RESTORE_ROUND_NOEXF.
8882         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8883         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8884         (libc_feholdsetroundf): New.
8885         (libc_feresetround, libc_feresetroundf): New.
8886
8887         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8888         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8889         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8890
8891         * sysdeps/generic/math_private.h: Include <fenv.h>.
8892         (default_libc_feholdexcept): New.
8893         (default_libc_feholdexcept_setround): New.
8894         (default_libc_fesetenv, default_libc_feupdateenv): New.
8895         (libc_feholdexcept): Only define if undefined.
8896         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8897         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8898         (libc_feholdexcept_setroundl): Likewise.
8899         (libc_feholdexcept_setround_53bit): Likewise.
8900         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8901         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8902         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8903         (libc_feupdateenv_53bit): Likewise.
8904         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8905         (libc_feholdexcept): Convert from macro to inline function.
8906         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8907         (libc_fesetenv, libc_feupdateenv): Likewise.
8908
8909         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8910         not previously defined.
8911         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8912         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8913         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8914         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8915         * sysdeps/ieee754/flt-32/math_private.h: New file.
8916         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8917         math_private.h below SET_FLOAT_WORD.
8918         (__isnan, __isinf_ns, __finite): Remove.
8919         (__isnanf, __isinf_nsf, __finitef): Remove.
8920
8921 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8922
8923         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8924
8925 2012-03-17  David S. Miller  <davem@davemloft.net>
8926
8927         [BZ #6471]
8928         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8929         for 2.16.
8930
8931 2012-03-16  David S. Miller  <davem@davemloft.net>
8932
8933         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8934         warnings.
8935
8936         [BZ #6471]
8937         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8938         properly.
8939         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8940         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8941         sysdep_routines when subdir is sysvipc.
8942         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8943         __getshmlba helper.
8944
8945         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8946
8947 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8948
8949         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8950         [__LP64__].
8951
8952 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8953
8954         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8955         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8956         (__lround): Renamed to ...
8957         (__llround): This.  Replace long int with long long int.
8958         Define lround functions as aliases of llround functions.
8959         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8960
8961 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8962
8963         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8964         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8965         adresses to uintptr_t.  Replace "long int" and "unsigned long
8966         int" with "greg_t" on va_arg.
8967
8968 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8969
8970         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8971         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8972
8973         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8974         Move e_machine check before EI_CLASS check.  Handle x32
8975         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8976         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8977         SKIP_EM_IA_64 and include
8978         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8979
8980         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8981         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8982         (add_system_dir): New macro.
8983
8984         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8985         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8986
8987 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8988
8989         [BZ #2551]
8990         [BZ #2552]
8991         [BZ #2553]
8992         [BZ #2554]
8993         [BZ #2562]
8994         [BZ #2563]
8995         [BZ #2565]
8996         [BZ #2566]
8997         [BZ #2576]
8998         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8999         (y0): Likewise.
9000         * math/w_j0f.c (j0f): Likewise.
9001         (y0f): Likewise.
9002         * math/w_j0l.c (__j0l): Likewise.
9003         (__y0l): Likewise.
9004         * math/w_j1.c (j1): Likewise.
9005         (y1): Likewise.
9006         * math/w_j1f.c (j1f): Likewise.
9007         (y1f): Likewise.
9008         * math/w_j1l.c (__j1l): Likewise.
9009         (__y1l): Likewise.
9010         * math/w_jn.c (jn): Likewise.
9011         (yn): Likewise.
9012         * math/w_jnf.c (jnf): Likewise.
9013         (ynf): Likewise.
9014         * math/w_jnl.c (__jnl): Likewise.
9015         (__ynl): Likewise.
9016         * math/libm-test.inc (j0_test): Add more tests.
9017         (j1_test): Likewise.
9018         (jn_test): Likewise.  Add trailing semicolon to existing test.
9019         (y0_test): Likewise.
9020         (y1_test): Likewise.
9021         * sysdeps/i386/fpu/libm-test-ulps: Update.
9022         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9023
9024         [BZ #13851]
9025         [BZ #13854]
9026         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9027         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9028         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9029         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9030         (__tanl): Set errno for infinite argument.
9031         * sysdeps/i386/fpu/mptan.c: Remove.
9032         * sysdeps/i386/fpu/s_tan.S: Likewise.
9033         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9034         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9035         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9036         * math/libm-test.inc (tan_test): Add more tests and enable more
9037         tests for double and long double.
9038         * sysdeps/i386/fpu/libm-test-ulps: Update.
9039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9040
9041 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9042
9043         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9044         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9045
9046 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9047
9048         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9049         * configure.in: Use it for both main tree and add-ons.
9050         * configure: Regenerated.
9051
9052 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9053
9054         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9055
9056 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9057
9058         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9059         in comment.
9060
9061         [BZ #13851]
9062         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9063         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9064         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9065         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9066         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9067         infinite argument.
9068         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9069         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9070         != 0 for prec == 2.
9071         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9072         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9073         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9074         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9075         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9076         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9077         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9078         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9079         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9080         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9081         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9082         * math/libm-test.inc (cos_test): Add more tests and enable more
9083         tests for long double.
9084         (sin_test): Likewise.
9085         (sincos_test): Likewise.
9086         * sysdeps/i386/fpu/libm-test-ulps: Update.
9087         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9088
9089 2012-03-16  David S. Miller  <davem@davemloft.net>
9090
9091         * sysdeps/sparc/fpu/math_private.h: New file.
9092
9093 2012-03-15  David S. Miller  <davem@davemloft.net>
9094
9095         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9096         file.
9097         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9098         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9099         file.
9100         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9101         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9102         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9103         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9104         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9105         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9106         sysdep routines.
9107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9108
9109         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9110         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9111
9112         * sysdeps/sparc/sparc-ifunc.h: New file.
9113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9114         sparc-ifunc.h
9115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9117         Likewise.
9118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9119         Likewise.
9120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9124         Likewise.
9125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9126         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9128         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9130         Likewise.
9131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9132         Likewise.
9133         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9134         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9135         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9136         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9137         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9138         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9139         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9140         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9141         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9142         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9143         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9144         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9145         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9146         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9147         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9148         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9149         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9150         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9151         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9152         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9153         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9154         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9155         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9156         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9157
9158 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9159
9160         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9161         scaling.
9162         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9163
9164 2012-03-15  Andreas Jaeger  <aj@suse.de>
9165
9166         [BZ #13852]
9167         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9168         ieee754/flt-32 implementation for sin, cos and sincos.
9169         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9170         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9171         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9172         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9173         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9174         ieee754/flt-32 implementation for tan.
9175
9176         * math/libm-test.inc (cos_test): Enable some large input tests for
9177         float as well
9178         (sin_test): Likewise.
9179         (sincos_test): Likewise.
9180         (tan_test): Add tests for large input.
9181
9182         * sysdeps/i386/fpu/libm-test-ulps: Update.
9183
9184 2012-03-15  Andreas Jaeger  <aj@suse.de>
9185
9186         [BZ #13658]
9187         * math/libm-test.inc (cos_test): Add more test cases.
9188         (sin_test): Likewise.
9189         (sincos_test): Likewise.
9190
9191 2012-03-15  Andreas Jaeger  <aj@suse.de>
9192
9193         [BZ #13837]
9194         * math/libm-test.inc (cos_test): Add a test case for large input
9195         value.
9196         (sin_test): Likewise.
9197         (sincos_test): Likewise.
9198
9199 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9200         Joseph Myers  <joseph@codesourcery.com>
9201
9202         [BZ #13658]
9203         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9204         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9205         * sysdeps/i386/fpu/branred.c: Likewise.
9206         * sysdeps/i386/fpu/dosincos.c: Likewise.
9207         * sysdeps/i386/fpu/mpa.c: Likewise.
9208         * sysdeps/i386/fpu/s_cos.S: Likewise.
9209         * sysdeps/i386/fpu/s_sin.S: Likewise.
9210         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9211         * sysdeps/i386/fpu/sincos32.c: Likewise.
9212
9213         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9214         Define.
9215         (libc_feupdateenv_53bit): Define.
9216         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9217         Define.
9218         (libc_feupdateenv_53bit): Define.
9219
9220         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9221         53 bit (without extend i386 double precision).
9222
9223         * math/libm-test.inc (sincos_test): Add tests for large input.
9224         (sin): Likewise.
9225         (cos): Likewise.
9226
9227         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9228
9229 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9230
9231         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9232
9233 2012-03-15  David S. Miller  <davem@davemloft.net>
9234
9235         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9236         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9237         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9238         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9239         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9240         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9241         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9242         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9243         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9244         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9245         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9246         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9247         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9248         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9249         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9251         file.
9252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9254         file.
9255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9257         file.
9258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9259         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9260         file.
9261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9262         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9263         fmin/fmax sysdep routines.
9264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9265
9266 2012-03-14  David S. Miller  <davem@davemloft.net>
9267
9268         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9269         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9270         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9271         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9272         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9273         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9274         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9275         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9276         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9277         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9278         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9279         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9280         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9281         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9282         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9283         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9284         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9285         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9286         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9287         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9288         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9289         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9290         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9291         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9292         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9293         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9294         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9295         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9296         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9297         routines.
9298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9299         file.
9300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9302         file.
9303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9304         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9305         file.
9306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9308         file.
9309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9310         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9311         file.
9312         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9314         file.
9315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9316         file.
9317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9318         file.
9319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9320         file.
9321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9322         New file.
9323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9324         file.
9325         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9326         file.
9327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9328         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9329         file.
9330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9331         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9332         file.
9333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9334         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9335         file.
9336         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9337         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9338         VIS3 routines.
9339
9340         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9341         New file.
9342
9343         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9344
9345         * sysdeps/sparc/configure.in: New file.
9346         * sysdeps/sparc/configure: Generate.
9347         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9348         * configure: Regenerate.
9349         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9350         * config.make.in (have-as-vis3): New.
9351         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9352         available use -Av9d instead of -Av9a.
9353         * sysdeps/sparc/sparc64/Makefile: Likewise.
9354         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9356         New file.
9357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9358         file.
9359         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9360         New file.
9361         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9362         file.
9363         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9364         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9365         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9366         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9367         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9368
9369         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9370         fzeros/fnegs to load 0x80000000 into a float register instead of
9371         using the stack.
9372         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9373
9374 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9375
9376         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9377         bits/syscall.h.
9378         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9379         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9380         ($(inst_includedir)/bits/syscall.h): Remove rule.
9381         ($(objpfx)bits/syscall.d): Include instead of
9382         $(objpfx)syscall-list.d.
9383         (generated): Change syscall-list.h and syscall-list.d to
9384         bits/syscall.h and bits/syscall.d.
9385
9386 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9387
9388         [BZ #13846]
9389         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9390
9391 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9392
9393         [BZ #13841]
9394         * math/s_csqrt.c: Include <float.h>.
9395         (__csqrt): Scale large or subnormal inputs.
9396         * math/s_csqrtf.c: Likewise.
9397         * math/s_csqrtl.c: Likewise.
9398         * math/libm-test.inc (csqrt_test): Add more tests.
9399         * sysdeps/i386/fpu/libm-test-ulps: Update.
9400         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9401
9402         [BZ #13840]
9403         * math/libm-test.inc (hypot_test): Add more tests.
9404
9405 2012-03-13  David S. Miller  <davem@davemloft.net>
9406
9407         [BZ #13840]
9408         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9409         double-precision for the calculation instead of scaling.
9410
9411 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9412
9413         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9414         manipulate bits before adding and subtracting TWO52[sx].
9415         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9416         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9417         Likewise.
9418         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9419
9420 2012-03-13  David S. Miller  <davem@davemloft.net>
9421
9422         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9423         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9424         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9425         rtld-global-offsets.h
9426         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9427
9428         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9429         large parameters.
9430
9431         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9432
9433         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9434         'err' in the ifdef scope in which it is actually used.
9435
9436         * nss/nss_db/db-init.c: Include string.h
9437
9438 2012-03-12  David S. Miller  <davem@davemloft.net>
9439
9440         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9441         masking out of the most significant byte of random value used.
9442         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9443         Fix coding style in previous change.
9444
9445         * sysdeps/unix/sysv/linux/kernel-features.h
9446         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9447         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9448         expression.
9449         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9450         later.
9451
9452 2012-03-11  David S. Miller  <davem@davemloft.net>
9453
9454         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9455         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9456         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9457         for 'resultvar' otherwise things get truncated on 64-bit.
9458
9459         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9460         Fix masking out of the most significant byte of random value used.
9461
9462         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9463
9464 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9465
9466         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9467
9468 2012-03-09  David S. Miller  <davem@davemloft.net>
9469
9470         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9471         variables with appropriate CPP guards.
9472         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9473         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9474         on resulting framesize and the management of the outregs buffer for pltexit.
9475         Preserve floating point return values across _dl_call_pltexit call.
9476         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9477         framesize and the management of the outregs buffer for pltexit.
9478         Preserve floating point return values across _dl_call_pltexit
9479         call.
9480         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9481         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9482         (print_exit): Fix format string for return register value.
9483
9484 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9485
9486         * sunrpc/Makefile (others): Add rpcgen.
9487         ($(objpfx)rpcgen): Remove special build rule and dependency on
9488         libc.
9489         * sunrpc/rpcgen.c: New file.
9490
9491 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9492
9493         [BZ #13673]
9494         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9495         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9496         * sysdeps/i386/crti.S: Likewise.
9497         * sysdeps/i386/crtn.S: Likewise.
9498         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9499         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9500         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9501         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9502         * sysdeps/sh/crti.S: Likewise.
9503         * sysdeps/sh/crtn.S: Likewise.
9504         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9505
9506         [BZ #13673]
9507         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9508         with URL.
9509         * locale/programs/locfile-kw.gperf: Likewise.
9510         * locale/programs/charmap-kw.h: Regenerated.
9511         * locale/programs/locfile-kw.h: Likewise.
9512
9513         [BZ #13673]
9514         * intl/plural.y: Replace FSF snail mail address with URL.
9515         * intl/plural.c: Regenerated.
9516
9517 2012-03-09  Richard Henderson  <rth@twiddle.net>
9518
9519         * include/math_private.h: Remove file.
9520         * math/math_private.h: Move file ...
9521         * sysdeps/generic/math_private.h: ... here.
9522
9523         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9524         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9525         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9526
9527         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9528         and <math_private.h>.
9529         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9530         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9531         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9532         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9533         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9534         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9535         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9536         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9537         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9538         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9539         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9540         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9541         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9542         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9543         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9544         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9545         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9546         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9547         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9548         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9549         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9550         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9551         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9552         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9553         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9554         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9555         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9556         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9557         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9558         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9559         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9560         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9561         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9562         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9563         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9564         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9565         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9566         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9567         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9568         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9569         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9570         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9571         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9572         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9573         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9574         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9575         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9576         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9577         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9578         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9579         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9580         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9581         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9582         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9583         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9584         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9585         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9586         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9587         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9588         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9589         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9590         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9591         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9592         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9593         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9594         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9595         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9596         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9597         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9598         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9599         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9600         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9601         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9602         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9603         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9604         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9605         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9606         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9607         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9608         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9609         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9610         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9611         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9612         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9613         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9614         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9615         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9616         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9617         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9618         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9619         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9620         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9621         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9622         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9623         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9624         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9625         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9626         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9627         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9628         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9629         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9630         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9631         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9632         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9633         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9634         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9635         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9636         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9637         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9638         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9639         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9640         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9641         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9642         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9643         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9644         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9645         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9646         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9647         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9648         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9649         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9650         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9651         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9652         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9653         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9654         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9655         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9656         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9657         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9658         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9659         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9660         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9661         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9662         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9663         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9664         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9665         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9666         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9667         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9668         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9669         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9670         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9671         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9672         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9673         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9674         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9675         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9676         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9677         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9678         * sysdeps/ieee754/k_standard.c: Likewise.
9679         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9680         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9681         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9682         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9683         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9684         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9685         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9686         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9687         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9688         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9689         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9690         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9691         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9692         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9693         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9694         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9695         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9696         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9697         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9698         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9699         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9700         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9701         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9702         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9703         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9704         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9705         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9706         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9707         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9708         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9709         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9710         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9711         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9712         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9713         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9714         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9715         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9716         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9717         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9718         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9719         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9720         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9721         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9722         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9723         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9724         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9725         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9726         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9727         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9728         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9729         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9730         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9731         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9732         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9733         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9734         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9735         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9736         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9737         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9738         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9739         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9740         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9741         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9742         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9743         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9744         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9745         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9746         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9747         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9748         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9749         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9750         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9751         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9752         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9753         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9754         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9755         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9756         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9757         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9758         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9759         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9760         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9761         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9762         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9763         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9764         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9765         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9766         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9767         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9768         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9769         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9770         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9771         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9772         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9773         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9774         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9775         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9776         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9777         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9778         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9779         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9780         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9781         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9782         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9783         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9784         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9785         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9786         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9787         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9788         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9789         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9790         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9791         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9792         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9793         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9794         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9795         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9796         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9797         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9798         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9799         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9800         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9801         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9802         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9803         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9804         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9805         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9806         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9807         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9808         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9809         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9810         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9811         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9812         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9813         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9814         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9815         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9816         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9817         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9818         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9820         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9821         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9822         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9823         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9824         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9825         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9826         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9827         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9828         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9829         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9830         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9831         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9832         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9833         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9834         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9835         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9836         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9837         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9838         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9839         * sysdeps/ieee754/s_lib_version.c: Likewise.
9840         * sysdeps/ieee754/s_matherr.c: Likewise.
9841         * sysdeps/ieee754/s_signgam.c: Likewise.
9842         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9843         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9844         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9845         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9846         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9847         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9848         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9849         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9850         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9851         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9852         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9853         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9854         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9855         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9856         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9857         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9858         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9859         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9860         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9861         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9862         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9863
9864 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9865
9866         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9867         * sunrpc/rpc_main.c: Likewise.
9868         * sunrpc/rpc_svcout.c: Likewise.
9869
9870 2012-03-09  David S. Miller  <davem@davemloft.net>
9871
9872         * include/math_private.h: New file.
9873
9874 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9875
9876         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9877         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9878         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9879         from <bits/socket_type.h>.
9880         (enum __socket_type): Don't define here.
9881         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9882         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9883         bits/socket_type.h.
9884
9885         [BZ #13566]
9886         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9887         checking __USE_GNU.
9888
9889         * Makerules ($(inst_includedir)/%.h): New rule.
9890         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9891         (install-others): Remove variable setting.
9892         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9893
9894 2012-03-08  Richard Henderson  <rth@twiddle.net>
9895
9896         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9897         from macro to inline function; merge with the
9898         !__LIBC_INTERNAL_MATH_INLINES version.
9899         (__ieee754_sqrtf): Likewise.
9900
9901         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9902         to inline function.
9903         (__rintf, __floor, __floorf): Likewise.
9904
9905         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9906         macro to inline function.
9907         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9908
9909         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9910         not <math/math_private.h>.
9911
9912 2012-03-08  David S. Miller  <davem@davemloft.net>
9913
9914         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9915         copyright year.
9916         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9917
9918 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9919
9920         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9921         normalization.
9922         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9923         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9924
9925 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9926
9927         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9928         be defined individually, they must be defined as a block.  Define
9929         S for printing a string instead of hidint the different by using a
9930         macro for adding the 'l'.
9931         * stdio-common/tst-fphex-wide.c: Adjust.
9932
9933 2012-03-07  Marek Polacek  <polacek@redhat.com>
9934
9935         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9936
9937 2012-03-08  Marek Polacek  <polacek@redhat.com>
9938
9939         [BZ #13806]
9940         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9941         * stdio-common/tst-fphex.c: Define a few macros to make the
9942         test reusable.  Use them.
9943         * stdio-common/tst-fphex-wide.c: New file.
9944
9945 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9946
9947         [BZ #6911]
9948         * manual/macros.texi (gnusystems): New macro.
9949         (nongnusystems): Likewise.
9950         (gnulinuxhurdsystems): Likewise.
9951         (gnuhurdsystems): Likewise..
9952         (gnulinuxsystems): Likewise.
9953         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9954         variants of the GNU system, not "GNU system".
9955         * manual/conf.texi: Likewise.
9956         * manual/errno.texi: Likewise.  Update example of errno macro
9957         expansion.
9958         * manual/filesys.texi: Likewise.
9959         (getumask): Document as specific to GNU/Hurd.
9960         * manual/install.texi: Likewise.  Reword some references to
9961         GNU/Linux.
9962         * manual/intro.texi: Likewise.
9963         * manual/io.texi: Likewise.
9964         (File Name Portability): Detail which constraints are inapplicable
9965         to all GNU systems and which are only inapplicable to GNU/Hurd.
9966         * manual/job.texi: Likewise.
9967         * manual/llio.texi: Likewise.
9968         (O_NOCTTY): Document as present on GNU/Linux.
9969         * manual/maint.texi: Likewise.
9970         * manual/memory.texi: Likewise.
9971         * manual/pattern.texi: Likewise.
9972         * manual/pipe.texi: Likewise.
9973         * manual/process.texi: Likewise.
9974         * manual/resource.texi: Likewise.
9975         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9976         child on GNU/Hurd.
9977         * manual/setjmp.texi: Likewise.
9978         * manual/signal.texi: Likewise.
9979         * manual/startup.texi: Likewise.
9980         * manual/stdio.texi: Likewise.
9981         * manual/terminal.texi: Likewise.
9982         (ONLCR): Document as POSIX.
9983         (OXTABS): Document availability on GNU/Linux as XTABS.
9984         (ONOEOT): Document availability separately from other bits.
9985         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9986         * manual/time.texi: Likewise.
9987         * manual/users.texi: Likewise.
9988         * INSTALL: Regenerated.
9989         * sysdeps/gnu/errlist.c: Regenerated.
9990
9991         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9992         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9993         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9994         puts.
9995         * configure: Regenerated.
9996
9997 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9998
9999         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
10000         default includes instead of AC_HEADER_CHECK.
10001         * sysdeps/i386/configure: Regenerated.
10002
10003         [BZ #10716]
10004         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10005         * math/s_cacoshf.c (__cacoshf): Likewise.
10006         * math/s_cacoshl.c (__cacoshl): Likewise.
10007         * math/s_casinh.c (__casinh): Set signs of result from argument.
10008         * math/s_casinhf.c (__casinhf): Likewise.
10009         * math/s_casinhl.c (__casinhl): Likewise.
10010         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10011         (casinh_test): Add more tests.
10012         * sysdeps/i386/fpu/libm-test-ulps: Update.
10013         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10014
10015 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10016
10017         * po/zh_TW.po: Update from translation team.
10018
10019         * login/Makefile (distribute): Remove variable.
10020         * catgets/Makefile: Likewise.
10021         * mach/Makefile: Likewise.
10022         * malloc/Makefile: Likewise.
10023         * misc/Makefile: Likewise.
10024         * iconv/Makefile: Likewise.
10025         * nscd/Makefile: Likewise.
10026         * hurd/Makefile: Likewise.
10027         * manual/Makefile: Likewise.
10028         * locale/Makefile: Likewise.
10029         * intl/Makefile: Likewise.
10030         * conform/Makefile: Likewise.
10031         * nss/Makefile: Likewise.
10032         * time/Makefile: Likewise.
10033         * soft-fp/Makefile: Likewise.
10034         * dirent/Makefile: Likewise.
10035         * gmon/Makefile: Likewise.
10036         * po/Makefile: Likewise.
10037         * rt/Makefile: Likewise.
10038         * socket/Makefile: Likewise.
10039         * math/Makefile: Likewise.
10040         * signal/Makefile: Likewise.
10041         * debug/Makefile: Likewise.
10042         * elf/Makefile: Likewise.
10043         * timezone/Makefile: Likewise.
10044         * stdlib/Makefile: Likewise.
10045         * iconvdata/Makefile: Likewise.
10046         * sunrpc/Makefile: Likewise.
10047         * io/Makefile: Likewise.
10048         * argp/Makefile: Likewise.
10049         * inet/Makefile: Likewise.
10050         * hesiod/Makefile: Likewise.
10051         * grp/Makefile: Likewise.
10052         * csu/Makefile: Likewise.
10053         * wctype/Makefile: Likewise.
10054         * crypt/Makefile: Likewise.
10055         * libio/Makefile: Likewise.
10056         * string/Makefile: Likewise.
10057         * nis/Makefile: Likewise.
10058         * resolv/Makefile: Likewise.
10059         * stdio-common/Makefile: Likewise.
10060         * wcsmbs/Makefile: Likewise.
10061         * dlfcn/Makefile: Likewise.
10062         * posix/Makefile: Likewise.
10063
10064         [BZ #6959]
10065         * timezone/Makefile: Don't install timezone files, just the programs
10066         and scripts.
10067
10068 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10069
10070         * nss/databases.def: Add missing gshadow entry.
10071
10072         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10073
10074 2012-03-06  Marek Polacek  <polacek@redhat.com>
10075
10076         [BZ #13726]
10077         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10078         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10079         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10080         * stdio-common/tst-long-dbl-fphex.c: New file.
10081
10082 2012-03-06  David S. Miller  <davem@davemloft.net>
10083
10084         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10085         (set_obp_int): New function.
10086         (get_obp_int): New function.
10087         (__get_clockfreq_via_dev_openprom): Likewise.
10088         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10089         Avoid unused variable warnings on 'val' and use builtin_expect.
10090         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10091         __builtin_expect.
10092         (INLINE_CLONE_SYSCALL): Likewise.
10093
10094 2012-03-05  David S. Miller  <davem@davemloft.net>
10095
10096         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10097
10098 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10099
10100         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10101
10102         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10103         only for |x| >= 40.
10104         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10105
10106 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10107
10108         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10109         Replace gettimeofday with __vdso_gettimeofday.
10110
10111         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10112         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10113         __vdso_clock_gettime and __vdso_getcpu.
10114
10115         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10116         time with __vdso_time.
10117
10118 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10119
10120         * manual/lang.texi (size_t): Note types to which size_t may be
10121         equivalent with the GNU C Library, but do not describe when
10122         differences between them are significant.
10123
10124 2012-03-05  Andreas Jaeger  <aj@suse.de>
10125
10126         * sysdeps/i386/fpu/libm-test-ulps: Update.
10127
10128 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10129
10130         [BZ #3976]
10131         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10132         (__ieee754_pow): Save and restore rounding mode and use
10133         round-to-nearest for main computations.
10134         * math/libm-test.inc (pow_test_tonearest): New function.
10135         (pow_test_towardzero): Likewise.
10136         (pow_test_downward): Likewise.
10137         (pow_test_upward): Likewise.
10138         (main): Call the new functions.
10139         * sysdeps/i386/fpu/libm-test-ulps: Update.
10140         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10141
10142         [BZ #3976]
10143         * math/libm-test.inc (cosh_test_tonearest): New function.
10144         (cosh_test_towardzero): Likewise.
10145         (cosh_test_downward): Likewise.
10146         (cosh_test_upward): Likewise.
10147         (sinh_test_tonearest): Likewise.
10148         (sinh_test_towardzero): Likewise.
10149         (sinh_test_downward): Likewise.
10150         (sinh_test_upward): Likewise.
10151         (main): Call the new functions.
10152         * sysdeps/i386/fpu/libm-test-ulps: Update.
10153         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10154
10155 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10156
10157         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10158         default stack guard is set in last bytes.
10159         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10160
10161 2012-03-05  Kees Cook  <keescook@chromium.org>
10162
10163         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10164
10165         [BZ #13656]
10166         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10167         possibly allocate from heap instead of stack.
10168         * stdio-common/bug-vfprintf-nargs.c: New file.
10169         * stdio-common/Makefile (tests): Add nargs overflow test.
10170
10171 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10172
10173         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10174
10175 2012-03-03  Marek Polacek  <polacek@redhat.com>
10176
10177         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10178         * math/math_private.h: Likewise.
10179         * stdlib/tst-strtod.c: Likewise.
10180         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10181         * sysdeps/x86_64/bits/atomic.h: Likewise.
10182
10183 2012-03-02  David S. Miller  <davem@davemloft.net>
10184
10185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10188         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10189         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10190         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10191         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10192         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10193
10194 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10195
10196         [BZ #13792]
10197         * manual/examples/README: New file, says the example source files
10198         can be used under GPL>=2.
10199         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10200         line containing just "*/".
10201         * manual/examples/add.c: Add copyright header (GPL>=2).
10202         * manual/examples/argp-ex1.c: Likewise.
10203         * manual/examples/argp-ex2.c: Likewise.
10204         * manual/examples/argp-ex3.c: Likewise.
10205         * manual/examples/argp-ex4.c: Likewise.
10206         * manual/examples/atexit.c: Likewise.
10207         * manual/examples/db.c: Likewise.
10208         * manual/examples/dir.c: Likewise.
10209         * manual/examples/dir2.c: Likewise.
10210         * manual/examples/execinfo.c: Likewise.
10211         * manual/examples/filecli.c: Likewise.
10212         * manual/examples/filesrv.c: Likewise.
10213         * manual/examples/fmtmsgexpl.c: Likewise.
10214         * manual/examples/genpass.c: Likewise.
10215         * manual/examples/inetcli.c: Likewise.
10216         * manual/examples/inetsrv.c: Likewise.
10217         * manual/examples/isockad.c: Likewise.
10218         * manual/examples/longopt.c: Likewise.
10219         * manual/examples/memopen.c: Likewise.
10220         * manual/examples/memstrm.c: Likewise.
10221         * manual/examples/mkfsock.c: Likewise.
10222         * manual/examples/mkisock.c: Likewise.
10223         * manual/examples/mygetpass.c: Likewise.
10224         * manual/examples/pipe.c: Likewise.
10225         * manual/examples/popen.c: Likewise.
10226         * manual/examples/rprintf.c: Likewise.
10227         * manual/examples/search.c: Likewise.
10228         * manual/examples/select.c: Likewise.
10229         * manual/examples/setjmp.c: Likewise.
10230         * manual/examples/sigh1.c: Likewise.
10231         * manual/examples/sigusr.c: Likewise.
10232         * manual/examples/stpcpy.c: Likewise.
10233         * manual/examples/strdupa.c: Likewise.
10234         * manual/examples/strftim.c: Likewise.
10235         * manual/examples/strncat.c: Likewise.
10236         * manual/examples/subopt.c: Likewise.
10237         * manual/examples/swapcontext.c: Likewise.
10238         * manual/examples/termios.c: Likewise.
10239         * manual/examples/testopt.c: Likewise.
10240         * manual/examples/testpass.c: Likewise.
10241         * manual/examples/timeval_subtract.c: Likewise.
10242
10243         [BZ #13792]
10244         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10245         function to ...
10246         * manual/timeval_subtract.c.texi: ... here, new file.
10247
10248 2012-03-02  David S. Miller  <davem@davemloft.net>
10249
10250         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10251
10252 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10253
10254         [BZ #3976]
10255         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10256         (__sin): Save and restore rounding mode and use round-to-nearest
10257         for all computations.
10258         (__cos): Save and restore rounding mode and use round-to-nearest
10259         for all computations.
10260         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10261         <fenv.h>.
10262         (tan): Save and restore rounding mode and use round-to-nearest for
10263         all computations.
10264         * math/libm-test.inc (cos_test_tonearest): New function.
10265         (cos_test_towardzero): Likewise.
10266         (cos_test_downward): Likewise.
10267         (cos_test_upward): Likewise.
10268         (sin_test_tonearest): Likewise.
10269         (sin_test_towardzero): Likewise.
10270         (sin_test_downward): Likewise.
10271         (sin_test_upward): Likewise.
10272         (tan_test_tonearest): Likewise.
10273         (tan_test_towardzero): Likewise.
10274         (tan_test_downward): Likewise.
10275         (tan_test_upward): Likewise.
10276         (main): Call the new functions.
10277         * sysdeps/i386/fpu/libm-test-ulps: Update.
10278         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10279
10280         [BZ #10135]
10281         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10282         small n, then large n, before computing and testing k+n.
10283         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10284         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10285         Likewise.
10286         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10287         Likewise.
10288         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10289         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10290         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10291         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10292         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10293         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10294         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10295         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10296         * math/libm-test.inc (scalbn_test): Add more tests.
10297         (scalbln_test): Likewise.
10298
10299         * manual/filesys.texi (mode_t): Describe constraints on size and
10300         signedness, not exact equivalence to a particular type.
10301         (ino_t): Likewise.
10302         (ino64_t): Likewise.
10303         (dev_t): Likewise.
10304         (nlink_t): Likewise.
10305         (blkcnt_t): Likewise.
10306         (blkcnt64_t): Likewise.
10307         * manual/llio.texi (off_t): Likewise.
10308
10309         [BZ #3976]
10310         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10311         (__ieee754_exp): Save and restore rounding mode and use
10312         round-to-nearest for all computations.
10313         * math/libm-test.inc (exp_test_tonearest): New function.
10314         (exp_test_towardzero): Likewise.
10315         (exp_test_downward): Likewise.
10316         (exp_test_upward): Likewise.
10317         (main): Call the new functions.
10318         * sysdeps/i386/fpu/libm-test-ulps: Update.
10319         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10320
10321 2012-03-01  Chris Demetriou  <cgd@google.com>
10322
10323         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10324         have predictable order.
10325
10326 2012-03-01  David S. Miller  <davem@davemloft.net>
10327
10328         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10329
10330         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10331         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10332         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10333         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10334
10335         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10336         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10337         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10338         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10339         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10340         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10341         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10342         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10343         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10344
10345         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10346
10347         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10348         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10349         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10350
10351         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10352         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10353         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10354         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10355         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10356         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10357         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10358         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10359         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10360         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10361         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10362         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10363         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10364         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10365         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10366         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10367         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10368         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10369         * sysdeps/sparc/elf/configure: Regenerated.
10370
10371 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10372
10373         * configure.in (AS, LD): Require binutils 2.20 or later.
10374         * configure: Regenerated.
10375         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10376         as required minimum version.
10377         * INSTALL: Regenerated.
10378
10379         [BZ #2541]
10380         [BZ #4108]
10381         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10382         before squaring exponent.
10383         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10384         bottom long double and 27 bits of top long double before squaring
10385         exponent.
10386         * math/libm-test.inc (erfc_test): Add more tests.
10387         * sysdeps/i386/fpu/libm-test-ulps: Update.
10388         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10390
10391 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10392
10393         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10394         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10395         containing bit-fields.
10396         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10397         * soft-fp/single.h (_FP_UNION_S): Likewise.
10398         * soft-fp/double.h (_FP_UNION_D): Likewise.
10399
10400 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10401
10402         [BZ #13786]
10403         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10404         not include ../strcmp.S.
10405         [USE_AS_STRNCASECMP_L]: Likewise.
10406         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10407         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10408         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10409         (__strncasecmp_l_ia32): Define as alias to
10410         __strncasecmp_l_nonascii.
10411
10412         [BZ #5794]
10413         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10414         * sysdeps/i386/fpu/libm-test-ulps: Update.
10415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10416
10417         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10418         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10419
10420 2012-02-29  Jeff Law  <law@redhat.com>
10421
10422         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10423         out of bounds read.
10424
10425 2012-02-29  Marek Polacek  <polacek@redhat.com>
10426
10427         [BZ #13706]
10428         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10429         * elf/Makefile: Add rules to run tst-unused-dep.out.
10430
10431 2012-02-28  David S. Miller  <davem@davemloft.net>
10432
10433         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10434         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10435         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10436         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10437         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10438         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10439
10440 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10441
10442         * math/libm-test.inc (llround_test): Move one test from
10443         lround_test.  Use TEST_f_L in moved test.
10444         (lround_test): Move misplaced test to llround_test.  Add testcase
10445         from bug 2561.
10446
10447 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10448
10449         * sysdeps/x86_64/fpu/e_expf.S: New file.
10450         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10451
10452 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10453
10454         [BZ #13637]
10455         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10456         of remain_len that may cause incomplete multi-byte character and
10457         false match.
10458         * posix/bug-regex33.c: New file.
10459         * posix/Makefile (tests): Add bug-regex33.
10460
10461 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10462
10463         * manual/macros.texi: New file.
10464         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10465         * manual/libc.texinfo: Include macros.texi.
10466         * manual/creatute.texi: Likewise.
10467         * manual/install.texi: Likewise.
10468         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10469         @glibcadj{} in references to the GNU C Library.
10470         * manual/charset.texi: Likewise.
10471         * manual/conf.texi: Likewise.
10472         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10473         when not using those macros.
10474         * manual/creature.texi: Likewise.
10475         * manual/crypt.texi: Likewise.
10476         * manual/errno.texi: Likewise.
10477         * manual/filesys.texi: Likewise.
10478         * manual/header.texi: Likewise.
10479         * manual/install.texi: Likewise.
10480         * manual/intro.texi: Likewise.
10481         * manual/io.texi: Likewise.
10482         * manual/job.texi: Likewise.
10483         * manual/lang.texi: Likewise.
10484         * manual/libc.texiinfo: Likewise.
10485         * manual/llio.texi: Likewise.
10486         * manual/locale.texi: Likewise.
10487         * manual/maint.texi: Likewise.
10488         * manual/math.texi: Likewise.
10489         * manual/memory.texi: Likewise.
10490         * manual/message.texi: Likewise.
10491         * manual/nss.texi: Likewise.
10492         * manual/pattern.texi: Likewise.
10493         * manual/process.texi: Likewise.
10494         * manual/resource.texi: Likewise.
10495         * manual/search.texi: Likewise.
10496         * manual/setjmp.texi: Likewise.
10497         * manual/signal.texi: Likewise.
10498         * manual/socket.texi: Likewise.
10499         * manual/startup.texi: Likewise.
10500         * manual/stdio.texi: Likewise.
10501         * manual/string.texi: Likewise.
10502         * manual/sysinfo.texi: Likewise.
10503         * manual/syslog.texi: Likewise.
10504         * manual/terminal.texi: Likewise.
10505         * manual/time.texi: Likewise.
10506         * manual/users.texi: Likewise.
10507         * INSTALL: Regenerated.
10508         * NOTES: Regenerated.
10509         * sysdeps/gnu/errlist.c: Regenerated.
10510
10511 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10512
10513         * include/dirent.h: Include <dirstream.h> before
10514         <dirent/dirent.h>.
10515
10516 2012-02-28  David S. Miller  <davem@davemloft.net>
10517
10518         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10519         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10520         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10521         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10522
10523 2012-02-27  David S. Miller  <davem@davemloft.net>
10524
10525         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10526         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10527         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10528         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10529
10530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10531         frame pointer instead of stack pointer relative arg slot.
10532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10533         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10534         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10535
10536 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10537
10538         [BZ #3992]
10539         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10540
10541 2012-02-27  David S. Miller  <davem@davemloft.net>
10542
10543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10544         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10545         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10546         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10547         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10548         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10549         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10550         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10551
10552 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10553
10554         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10555         later.  Allow versions 5-9.
10556         * configure: Regenerated.
10557         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10558         required minimum version and 4.6 as recommended version.  Do not
10559         mention bugs in GCC 2.7 and 2.8.
10560         * INSTALL: Regenerated.
10561
10562 2012-02-27  David S. Miller  <davem@davemloft.net>
10563
10564         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10565         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10566         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10567         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10568         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10569         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10570         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10571         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10572
10573         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10574         manipulate bits before adding and subtracting TWO112[sx].
10575         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10576
10577 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10578
10579         [BZ #13775]
10580         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10581         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10582         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10583         being in POSIX, because they are in 1003.1-2008.
10584
10585         * rt/tst-aio.c: Include <fcntl.h>.
10586         * rt/tst-aio7.c: Likewise.
10587         * rt/tst-aio64.c: Likewise.
10588
10589         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10590
10591 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10592
10593         * manual/install.texi (--with-headers): Describe headers as
10594         interface headers, not private headers.
10595         (Specific advice for GNU/Linux systems): Describe use of headers
10596         from "make headers_install", not private headers from older
10597         kernels.
10598         * INSTALL: Regenerated.
10599         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10600         Change to 2.6.19.
10601         * sysdeps/unix/sysv/linux/configure: Regenerated.
10602
10603         * manual/llio.texi (fclean): Remove documentation.
10604
10605         * manual/Makefile (libc-texi-generated): New variable.  Include
10606         version.texi.
10607         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10608         $(libc-texi-generated), not duplicated list of files.
10609         (version.texi, stamp-version): New rules.
10610         (realclean): Remove $(libc-texi-generated), not individual files
10611         from that list.  Do not remove dir-add.texinfo.
10612         * manual/libc.texinfo: Comment out uses of edition numbers and
10613         references to printed manual.  Remove last-updated dates.
10614         (EDITION): Comment out.
10615         (ISBN): Likewise.
10616         (VERSION, UPDATED): Remove.
10617         (version.texi): Include.
10618
10619 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10620
10621         * sysdeps/posix/spawni.c: Include <signal.h>.
10622         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10623         * sysdeps/pthread/aio_fsync.c: Likewise.
10624
10625 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10626
10627         * conform/Makefile (tests): Run only when not cross-compiling and
10628         when fast-check is not defined.
10629
10630         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10631         * conform/data/limits.h-data: Fixes for POSIX2008.
10632         * conform/run-conformtest.sh: Run all tests.
10633         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10634         headers.
10635         * include/bits/dlfcn.h: Likewise.
10636         * include/langinfo.h: Likewise.
10637         * include/monetary.h: Likewise.
10638         * include/sys/poll.h: Likewise.
10639
10640         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10641         for __USE_GNU.
10642         * posix/spawn.h: Define __need_sigset_t.
10643         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10644         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10645         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10646         to get sigevent_t only.
10647         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10648         only for __USE_GNU.
10649         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10650         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10651         process_vm_writev only for __USE_GNU.
10652         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10653
10654         * conform/Makefile: For now ignore errors from run-conformtest.
10655         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10656         POSIX to avoid namespace pollution.  Don't prepend headers.
10657         * conform/data/aio.h-data: Fixes for POSIX testing.
10658         * conform/data/fcntl.h-data: Likewise.
10659         * conform/data/glob.h-data: Likewise.
10660         * conform/data/grp.h-data: Likewise.
10661         * conform/data/pthread.h-data: Likewise.
10662         * conform/data/pwd.h-data: Likewise.
10663         * conform/data/signal.h-data: Likewise.
10664         * conform/data/spawn.h-data: Likewise.
10665         * conform/data/stdio.h-data: Likewise.
10666         * conform/data/stdlib.h-data: Likewise.
10667         * conform/data/stropts.h-data: Likewise.
10668         * conform/data/sys/mman.h-data: Likewise.
10669         * conform/data/sys/stat.h-data: Likewise.
10670         * conform/data/sys/types.h-data: Likewise.
10671         * conform/data/sys/wait.h-data: Likewise.
10672         * conform/data/time.h-data: Likewise.
10673         * conform/data/unistd.h-data: Likewise.
10674         * conform/data/utime.h-data: Likewise.
10675
10676         * io/sys/stat.h: fchmod was always in POSIX.
10677         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10678         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10679         * rt/aio.h: Define __need_timespec before including <time.h>.
10680         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10681         struct.  Add forward declaration of pthread_attr_t and use it in
10682         sigevent.
10683         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10684         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10685         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10686         always remove CLK_TCK definition.
10687
10688 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10689
10690         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10691
10692 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10693
10694         * conform/run-conformtest.sh: New file.
10695         * conform/Makefile: Run run-conformtest for tests.
10696         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10697         support.
10698
10699         * conform/data/uchar.h-data: New file.
10700         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10701         * conform/data/arpa/inet.h-data: Likewise.
10702         * conform/data/assert.h-data: Likewise.
10703         * conform/data/complex.h-data: Likewise.
10704         * conform/data/cpio.h-data: Likewise.
10705         * conform/data/ctype.h-data: Likewise.
10706         * conform/data/dirent.h-data: Likewise.
10707         * conform/data/dlfcn.h-data: Likewise.
10708         * conform/data/errno.h-data: Likewise.
10709         * conform/data/fcntl.h-data: Likewise.
10710         * conform/data/float.h-data: Likewise.
10711         * conform/data/fmtmsg.h-data: Likewise.
10712         * conform/data/fnmatch.h-data: Likewise.
10713         * conform/data/ftw.h-data: Likewise.
10714         * conform/data/glob.h-data: Likewise.
10715         * conform/data/grp.h-data: Likewise.
10716         * conform/data/iconv.h-data: Likewise.
10717         * conform/data/inttypes.h-data: Likewise.
10718         * conform/data/langinfo.h-data: Likewise.
10719         * conform/data/libgen.h-data: Likewise.
10720         * conform/data/limits.h-data: Likewise.
10721         * conform/data/locale.h-data: Likewise.
10722         * conform/data/math.h-data: Likewise.
10723         * conform/data/monetary.h-data: Likewise.
10724         * conform/data/mqueue.h-data: Likewise.
10725         * conform/data/ndbm.h-data: Likewise.
10726         * conform/data/net/if.h-data: Likewise.
10727         * conform/data/netdb.h-data: Likewise.
10728         * conform/data/netinet/in.h-data: Likewise.
10729         * conform/data/nl_types.h-data: Likewise.
10730         * conform/data/poll.h-data: Likewise.
10731         * conform/data/pthread.h-data: Likewise.
10732         * conform/data/pwd.h-data: Likewise.
10733         * conform/data/regex.h-data: Likewise.
10734         * conform/data/sched.h-data: Likewise.
10735         * conform/data/search.h-data: Likewise.
10736         * conform/data/semaphore.h-data: Likewise.
10737         * conform/data/setjmp.h-data: Likewise.
10738         * conform/data/signal.h-data: Likewise.
10739         * conform/data/spawn.h-data: Likewise.
10740         * conform/data/stdarg.h-data: Likewise.
10741         * conform/data/stdio.h-data: Likewise.
10742         * conform/data/stdlib.h-data: Likewise.
10743         * conform/data/string.h-data: Likewise.
10744         * conform/data/strings.h-data: Likewise.
10745         * conform/data/stropts.h-data: Likewise.
10746         * conform/data/sys/ipc.h-data: Likewise.
10747         * conform/data/sys/mman.h-data: Likewise.
10748         * conform/data/sys/msg.h-data: Likewise.
10749         * conform/data/sys/resource.h-data: Likewise.
10750         * conform/data/sys/select.h-data: Likewise.
10751         * conform/data/sys/sem.h-data: Likewise.
10752         * conform/data/sys/shm.h-data: Likewise.
10753         * conform/data/sys/socket.h-data: Likewise.
10754         * conform/data/sys/stat.h-data: Likewise.
10755         * conform/data/sys/statvfs.h-data: Likewise.
10756         * conform/data/sys/time.h-data: Likewise.
10757         * conform/data/sys/timeb.h-data: Likewise.
10758         * conform/data/sys/times.h-data: Likewise.
10759         * conform/data/sys/types.h-data: Likewise.
10760         * conform/data/sys/uio.h-data: Likewise.
10761         * conform/data/sys/un.h-data: Likewise.
10762         * conform/data/sys/utsname.h-data: Likewise.
10763         * conform/data/sys/wait.h-data: Likewise.
10764         * conform/data/syslog.h-data: Likewise.
10765         * conform/data/tar.h-data: Likewise.
10766         * conform/data/termios.h-data: Likewise.
10767         * conform/data/utime.h-data: Likewise.
10768         * conform/data/utmpx.h-data: Likewise.
10769         * conform/data/varargs.h-data: Likewise.
10770         * conform/data/wchar.h-data: Likewise.
10771         * conform/data/wctype.h-data: Likewise.
10772         * conform/data/wordexp.h-data: Likewise.
10773
10774         * include/stropts.h: New file.
10775         * include/uchar.h: New file.
10776         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10777         * include/assert.h: Likewise.
10778         * include/ctype.h: Likewise.
10779         * include/dirent.h: Likewise.
10780         * include/dlfcn.h: Likewise.
10781         * include/fcntl.h: Likewise.
10782         * include/fnmatch.h: Likewise.
10783         * include/glob.h: Likewise.
10784         * include/grp.h: Likewise.
10785         * include/libio.h: Likewise.
10786         * include/locale.h: Likewise.
10787         * include/math.h: Likewise.
10788         * include/net/if.h: Likewise.
10789         * include/netdb.h: Likewise.
10790         * include/netinet/in.h: Likewise.
10791         * include/pthread.h: Likewise.
10792         * include/pwd.h: Likewise.
10793         * include/regex.h: Likewise.
10794         * include/sched.h: Likewise.
10795         * include/search.h: Likewise.
10796         * include/setjmp.h: Likewise.
10797         * include/signal.h: Likewise.
10798         * include/stdio.h: Likewise.
10799         * include/stdlib.h: Likewise.
10800         * include/string.h: Likewise.
10801         * include/sys/cdefs.h: Likewise.
10802         * include/sys/mman.h: Likewise.
10803         * include/sys/msg.h: Likewise.
10804         * include/sys/resource.h: Likewise.
10805         * include/sys/select.h: Likewise.
10806         * include/sys/socket.h: Likewise.
10807         * include/sys/stat.h: Likewise.
10808         * include/sys/statvfs.h: Likewise.
10809         * include/sys/time.h: Likewise.
10810         * include/sys/times.h: Likewise.
10811         * include/sys/uio.h: Likewise.
10812         * include/sys/utsname.h: Likewise.
10813         * include/sys/wait.h: Likewise.
10814         * include/termios.h: Likewise.
10815         * include/time.h: Likewise.
10816         * include/ulimit.h: Likewise.
10817         * include/unistd.h: Likewise.
10818         * include/utime.h: Likewise.
10819         * include/wchar.h: Likewise.
10820         * include/wctype.h: Likewise.
10821         * include/wordexp.h: Likewise.
10822
10823         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10824
10825         * time/time.h: TIME_UTC must be a macro.
10826         Make timespec_get available for ISO C11 only as well.
10827
10828 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10829
10830         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10831         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10832
10833 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10834
10835         * configure.in: Use -o not -a in test for unsupported multi-arch.
10836
10837 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10838
10839         * manual/texinfo.tex: Update to version 2012-01-19.16.
10840
10841 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10842
10843         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10844
10845 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10846
10847         [BZ #13738]
10848         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10849         * manual/fdl-1.3.texi: New file.
10850         * manual/fdl-1.1.texi: File removed.
10851
10852         [BZ #13738]
10853         * manual/libc.texinfo (FDL_VERSION): New @set.
10854         Use it for mention of FDL in cover text.
10855         (Documentation License): Use it in @include file name.
10856
10857 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10858             Roland McGrath  <roland@hack.frob.com>
10859
10860         [BZ #5461]
10861         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10862         not LONG_LONG_MAX and LONG_LONG_MIN.
10863         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10864         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10865         name.
10866         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10867
10868 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10869
10870         [BZ #2547]
10871         [BZ #11365]
10872         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10873         manipulate bits before adding and subtracting TWO23[sx].
10874         * math/libm-test.inc (nearbyint_test): Add more tests.
10875
10876 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10877
10878         [BZ #2548]
10879         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10880         bits before adding and subtracting TWO23[sx].
10881         * math/libm-test.inc (rint_test): Add more tests.
10882         (rint_test_tonearest): Likewise.
10883         (rint_test_towardzero): Likewise.
10884         (rint_test_downward): Likewise.
10885         (rint_test_upward: Likewise.
10886
10887 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10888
10889         [BZ #10110]
10890         * include/stdc-predef.h: New file.  Extracted from features.h.
10891         * include/features.h: Include stdc-predef.h.
10892         * Makefile (headers): Add stdc-predef.h.
10893         * CONFORMANCE (Compiler limitations): Update.
10894
10895 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10896
10897         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10898
10899 2012-02-21  David S. Miller  <davem@davemloft.net>
10900
10901         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10902         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10903
10904 2012-02-20  David S. Miller  <davem@davemloft.net>
10905
10906         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10907         using a normal save/restore sequence, rather than allocating a
10908         dummy stack frame just to store a frame pointer and restore.
10909         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10910
10911 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10912
10913         * manual/install.texi: Fix stray word in line-wrapped comment.
10914
10915 2012-02-20  David S. Miller  <davem@davemloft.net>
10916
10917         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10918         both binutils and gcc support GOTDATA.
10919
10920         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10921         "rd %pc" in the PIC register setup sequences.
10922
10923         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10924         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10925         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10926         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10927         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10928         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10929         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10930         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10931         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10932         (SYSCALL_ERROR_HANDLER): Likewise.
10933         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10934         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10935         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10936         (SYSCALL_ERROR_HANDLER): Likewise.
10937
10938         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10939         (HAVE_GCC_GOTDATA): New.
10940         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10941         relocation support in both binutils and gcc.
10942         * sysdeps/sparc/elf/configure: Regenerate.
10943
10944         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10945         * sysdeps/sparc/sparc32/elf/configure: Delete.
10946         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10947         * sysdeps/sparc/sparc64/elf/configure: Delete.
10948         * sysdeps/sparc/elf/configure.in: New file.
10949         * sysdeps/sparc/elf/configure: Generate.
10950
10951         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10952         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10953         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10954         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10955         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10956
10957 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10958
10959         * manual/install.texi: Do not mention specific glibc version
10960         numbers.
10961         * manual/libc.texinfo (VERSION, UPDATED): Update.
10962         (@copying): Use @copyright{} and range of years.
10963
10964 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10965
10966         [BZ #13695]
10967         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10968         [crti.S not in sysdirs] (generated): Do not append.
10969         [crti.S not in sysdirs] (omit-deps): Likewise.
10970         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10971         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10972         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10973         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10974         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10975         Likewise.
10976         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10977         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10978         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10979         * csu/defs.awk: Remove file.
10980         * sysdeps/generic/initfini.c: Likewise.
10981         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10982         variable.
10983         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10984         Likewise.
10985
10986 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10987
10988         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10989         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10990         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10991         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10992         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10993         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10994         <bits/epoll.h>.
10995         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10996         (__EPOLL_PACKED): Define to empty if not defined by
10997         <bits/epoll.h>.
10998         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10999         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11000         bits/epoll.h.
11001
11002 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11003
11004         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11005         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11006         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11007         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11008         <bits/timerfd.h>.
11009         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11010         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11011         bits/timerfd.h.
11012
11013 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11014
11015         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11016         in C locale.
11017         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11018         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11019         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11021
11022 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11023
11024         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11025         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11026
11027 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11028
11029         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11030         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11031         defined.
11032         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11033         Likewise.
11034         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11035         entry for 2.16.
11036
11037 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11038
11039         * math/w_acos.c: Use non-signaling floating-point comparisons.
11040         * math/w_acosf.c: Likewise.
11041         * math/w_acosh.c: Likewise.
11042         * math/w_acoshf.c: Likewise.
11043         * math/w_acoshl.c: Likewise.
11044         * math/w_acosl.c: Likewise.
11045         * math/w_asin.c: Likewise.
11046         * math/w_asinf.c: Likewise.
11047         * math/w_asinl.c: Likewise.
11048         * math/w_atanh.c: Likewise.
11049         * math/w_atanhf.c: Likewise.
11050         * math/w_atanhl.c: Likewise.
11051         * math/w_exp2.c: Likewise.
11052         * math/w_exp2f.c: Likewise.
11053         * math/w_exp2l.c: Likewise.
11054         * math/w_j0.c: Likewise.
11055         * math/w_j0f.c: Likewise.
11056         * math/w_j0l.c: Likewise.
11057         * math/w_j1.c: Likewise.
11058         * math/w_j1f.c: Likewise.
11059         * math/w_j1l.c: Likewise.
11060         * math/w_jn.c: Likewise.
11061         * math/w_jnf.c: Likewise.
11062         * math/w_log.c: Likewise.
11063         * math/w_log10.c: Likewise.
11064         * math/w_log10f.c: Likewise.
11065         * math/w_log10l.c: Likewise.
11066         * math/w_log2.c: Likewise.
11067         * math/w_log2f.c: Likewise.
11068         * math/w_log2l.c: Likewise.
11069         * math/w_logf.c: Likewise.
11070         * math/w_logl.c: Likewise.
11071         * math/w_sqrt.c: Likewise.
11072         * math/w_sqrtf.c: Likewise.
11073         * math/w_sqrtl.c: Likewise.
11074         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11075         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11076         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11077         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11078         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11079
11080 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11081
11082         [BZ #9739]
11083         * manual/string.texi (strnlen): Use correct parameter name in
11084         equivalent expression.
11085
11086 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11087
11088         [BZ #11174]
11089         * manual/users.texi (seteuid): Consistently use neweuid for
11090         argument name.
11091
11092 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11093
11094         [BZ #13704]
11095         * manual/nss.texi (Services in the NSS configuration): Correct
11096         list of services in example configuration file.
11097
11098 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11099
11100         [BZ #11322]
11101         * manual/arith.texi: Remove statements about negative zero
11102         behaving identically to zero.
11103
11104 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11105
11106         [BZ #5993]
11107         * manual/install.texi: Do not document upgrading from libc5.
11108
11109 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11110
11111         [BZ #4596]
11112         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11113
11114 2012-02-18  David S. Miller  <davem@davemloft.net>
11115
11116         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11117         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11118         %o7 across the call.
11119         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11120         instead.
11121         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11122         SETUP_PIC_REG_LEAF.
11123         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11124         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11125         * sysdeps/sparc/crtn.S: Likewise.
11126
11127 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11128
11129         * aout/Makefile: Remove.
11130
11131 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11132
11133         [BZ #13058]
11134         * manual/examples/argp-ex1.c (main): Format definition in GNU
11135         style.
11136         * manual/examples/argp-ex2.c (main): Likewise.
11137         * manual/examples/argp-ex3.c (main): Likewise.
11138         * manual/examples/argp-ex4.c (main): Likewise.
11139         * manual/examples/longopt.c (main): Use new-style prototype
11140         definition.
11141         * manual/examples/strncat.c (main): Specify return type and use
11142         (void) for arguments.
11143         * manual/examples/subopt.c (main): Use char **argv argument.
11144
11145 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11146
11147         [BZ #5077]
11148         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11149         rounding modes.
11150
11151 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11152
11153         [BZ #6907]
11154         * manual/string.texi (strchr): Change when strchrnul is
11155         recommended.
11156
11157 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11158
11159         [BZ #174]
11160         * manual/locale.texi (setlocale): Document LOCPATH.
11161
11162 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11163
11164         [BZ #10210]
11165         * manual/process.texi (execle): Move @dots{} before last argument.
11166
11167 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11168
11169         [BZ #12047]
11170         * manual/charset.texi (Generic Charset Conversion): Fix typo
11171         (LC_TYPE -> LC_CTYPE).
11172
11173 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11174
11175         [BZ #5805]
11176         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11177         (scalbnf): Likewise.
11178         (scalbnl): Likewise.
11179         (scalbln): Likewise.
11180         (scalblnf): Likewise.
11181         (scalblnl): Likewise.
11182         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11183         (vwarnx): Likewise.
11184         (verr): Likewise.
11185         (verrx): Likewise.
11186         * manual/filesys.texi (telldir): Use braces around return type.
11187         * manual/llio.texi (mmap): Add space after comma.
11188         (mmap64): Likewise.
11189         * manual/math.texi (jn): Use @var{} on parameter names.
11190         (jnf): Likewise.
11191         (jnl): Likewise.
11192         (yn): Likewise.
11193         (ynf): Likewise.
11194         (ynl): Likewise.
11195         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11196         line.
11197         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11198         "...".
11199         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11200         (sched_get_priority_max): Likewise.
11201         * manual/signal.texi (sigvec): Add space after comma.
11202         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11203         names.
11204         (if_indextoname): Likewise.
11205         (if_freenameindex): Likewise.
11206         (sendto): Use ',' instead of '.' in prototype.
11207         * manual/startup.texi (syscall): Use @dots{} instead of literal
11208         "...".
11209         * manual/stdio.texi (__fpending): Separate initial words of
11210         paragraph from @deftypefun line.
11211         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11212         "...".
11213         (vsyslog): Use @var{} on parameter names.
11214         * manual/terminal.texi (stty): Use @var{} on parameter names.
11215         * manual/users.texi (getutmp): Use @var{} on parameter names.
11216         (getutmpx): Likewise.
11217
11218 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11219
11220         [BZ #6884]
11221         * manual/stdio.texi (fopen): Fix typos in description of
11222         ",ccs=STRING".
11223
11224 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11225
11226         [BZ #4026]
11227         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11228         get clock_id definition.
11229
11230 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11231
11232         [BZ #4822]
11233         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11234         (madvise): Cast every argument to void on its own.
11235
11236 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11237
11238         [BZ #9902]
11239         * manual/startup.texi (Exit Status): Fix typo.
11240
11241 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11242
11243         [BZ #10140]
11244         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11245         * manual/examples/argp-ex2.c: Likewise.
11246         * manual/examples/argp-ex3.c: Likewise.
11247
11248 2012-02-16  Richard Henderson  <rth@redhat.com>
11249
11250         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11251         * sysdeps/s390/s390-32/initfini.c: Remove.
11252         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11253         * sysdeps/s390/s390-64/initfini.c: Remove.
11254
11255 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11256
11257         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11258         compiler output for sysdeps/generic/initfini.c.
11259         * sysdeps/sh/elf/initfini.c: Remove file.
11260
11261 2012-02-16  David S. Miller  <davem@davemloft.net>
11262
11263         [BZ #11494]
11264         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11265
11266         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11267         * sysdeps/sparc/crti.S: New file.
11268         * sysdeps/sparc/crtn.S: New file.
11269         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11270         * sysdeps/sparc/sparc64/Makefile: Likewise.
11271
11272 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11273
11274         [BZ #3335]
11275         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11276
11277 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11278
11279         [BZ #4822]
11280         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11281
11282         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11283         (write, read, close): Likewise.
11284         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11285
11286 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11287
11288         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11289         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11290         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11291         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11292         <bits/signalfd.h>.
11293         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11294         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11295         bits/signalfd.h.
11296
11297 2012-02-14  Marek Polacek  <polacek@redhat.com>
11298
11299         * sysdeps/x86_64/crti.S: New file.
11300         * sysdeps/x86_64/crtn.S: New file.
11301         * sysdeps/x86_64/elf/initfini.c: Remove file.
11302
11303 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11304
11305         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11306         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11307         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11308         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11309         <bits/inotify.h>.
11310         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11311         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11312         bits/inotify.h.
11313
11314 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11315
11316         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11317         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11318         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11319         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11320         <bits/eventfd.h>.
11321         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11322         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11323         bits/eventfd.h.
11324
11325 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11326
11327         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11328         __feraiseexcept instead of feraiseexcept.
11329
11330         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11331         nanosleep invocations.
11332         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11333         strings, and add error checking for a nanosleep invocations.
11334
11335 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11336
11337         Replace FSF snail mail address with URLs, as per GNU coding standards.
11338         Most of the snail mail addresses were wrong anyway, and omitting
11339         them makes the source code easier to maintain.  Almost all of the
11340         changes are to license notices and to locale LC_IDENTIFICATION
11341         addresses, except for this one:
11342         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11343         not its snail mail address.
11344
11345 2012-02-09  Richard Henderson  <rth@twiddle.net>
11346
11347         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11348         of kernel-features.h.
11349
11350         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11351
11352 2012-02-08  Marek Polacek  <polacek@redhat.com>
11353
11354         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11355         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11356         * sysdeps/gnu/_G_config.h: Likewise.
11357         * sysdeps/generic/_G_config.h: Likewise.
11358
11359 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11360
11361         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11362         tests.
11363         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11364
11365         * sysdeps/powerpc/powerpc32/crti.S: New file.
11366         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11367         * sysdeps/powerpc/powerpc64/crti.S: New file.
11368         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11369
11370         * Makeconfig (have-initfini): Don't set.
11371         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11372         * configure.in (nopic_initfini): Don't substitute.
11373         * config.h.in (HAVE_INITFINI): Don't #undef.
11374         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11375         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11376
11377 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11378
11379         Support crti.S and crtn.S provided directly by architectures.
11380         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11381         [crti.S in sysdirs] (omit-deps): Likewise.
11382         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11383         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11384         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11385         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11386         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11387         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11388         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11389         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11390         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11391         compiler output for sysdeps/generic/initfini.c.
11392         * sysdeps/i386/elf/Makefile: Remove file.
11393         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11394
11395 2012-02-07  Marek Polacek  <polacek@redhat.com>
11396
11397         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11398         * sysdeps/gnu/_G_config.h: Likewise.
11399         * sysdeps/mach/hurd/_G_config.h: Likewise.
11400
11401 2012-02-07  Marek Polacek  <polacek@redhat.com>
11402
11403         * math/Makefile (tests): Add tst-CMPLX2.
11404         * math/tst-CMPLX2.c: New file.
11405
11406 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11407
11408         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11409
11410         * math/libm-test.inc (jn_test): Add missing L suffix.
11411
11412 2012-02-06  Marek Polacek  <polacek@redhat.com>
11413
11414         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11415         * sysdeps/i386/fpu/e_powf.S: Likewise.
11416         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11417         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11418         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11419         * sysdeps/i386/fpu/e_pow.S: Likewise.
11420         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11421         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11422         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11423         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11424         * sysdeps/i386/fpu/e_log2.S: Likewise.
11425         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11426         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11427         * sysdeps/i386/fpu/e_powl.S: Likewise.
11428         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11429         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11430         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11431         * sysdeps/i386/fpu/e_logl.S: Likewise.
11432         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11433         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11434         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11435         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11436         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11437         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11438         * sysdeps/i386/fpu/e_log.S: Likewise.
11439         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11440         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11441         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11442         * sysdeps/i386/fpu/e_logf.S: Likewise.
11443         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11444         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11445         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11446         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11447         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11448         * sysdeps/i386/fpu/e_log10.S: Likewise.
11449         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11450         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11451         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11452         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11453         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11454         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11455         * sysdeps/i386/asm-syntax.h: Likewise.
11456         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11457         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11458         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11459         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11460         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11461         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11462         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11463         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11464         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11465         * sysdeps/powerpc/sysdep.h: Likewise.
11466         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11467         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11468
11469 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11470
11471         [BZ #411]
11472         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11473
11474 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11475
11476         * sysdeps/i386/sysdep.h: Include <features.h>.
11477         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11478         version.
11479
11480 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11481
11482         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11483         Define.
11484         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11485         LOAD_PIC_REG_STR.
11486
11487 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11488
11489         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11490         (SETUP_PIC_REG): Use GET_PC_THUNK.
11491         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11492         macro.
11493
11494 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11495
11496         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11497         for non-PIC compilation.
11498         (SETUP_PIC_REG): Add .p2align directive.
11499         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11500         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11501         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11502         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11503         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11504         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11505         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11506         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11507         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11508         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11509         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11510         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11511         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11512         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11513         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11514         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11515         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11516         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11517         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11518         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11519         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11520         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11521         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11522         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11523         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11524         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11525         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11526         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11527         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11528         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11529         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11530         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11531         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11532         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11533         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11534         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11535         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11536         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11537         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11538         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11539         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11540
11541 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11542
11543         * math/tst-CMPLX.c: Include <stdio.h>.
11544
11545 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11546
11547         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11548         float.
11549         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11550         * sysdeps/sparc/bits/mathdef.h: Likewise.
11551
11552 2012-01-31  Marek Polacek  <polacek@redhat.com>
11553
11554         * libio/libio.h: Don't define _PARAMS.
11555         * locale/programs/config.h: Don't define PARAMS.
11556         * stdlib/strtol_l.c: Likewise.
11557         (__strtol_l): Remove PARAMS from the prototype.
11558
11559 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11560
11561         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11562         names.  Just use the correct names.  Remove unnecessary wrapper
11563         functions.
11564         * malloc/arena.c: Likewise.
11565         * malloc/hooks.c: Likewise.
11566
11567         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11568         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11569         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11570
11571 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11572
11573         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11574         into tail calls.
11575         (update_get_addr): New function.
11576         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11577         GET_ADDR_MODULE parameter.
11578
11579 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11580
11581         * crypt/cert.c: Remove __STDC__ conditionals.
11582         * crypt/crypt-entry.c: Likewise.
11583         * crypt/crypt_util.c: Likewise.
11584         * libio/filedoalloc.c: Likewise.
11585         * libio/fileops.c: Likewise.
11586         * libio/genops.c: Likewise.
11587         * libio/iofclose.c: Likewise.
11588         * libio/iofdopen.c: Likewise.
11589         * libio/iofopen.c: Likewise.
11590         * libio/iofopen64.c: Likewise.
11591         * libio/iogetdelim.c: Likewise.
11592         * libio/iopopen.c: Likewise.
11593         * libio/obprintf.c: Likewise.
11594         * libio/oldfileops.c: Likewise.
11595         * libio/oldiofclose.c: Likewise.
11596         * libio/oldiofdopen.c: Likewise.
11597         * libio/oldiofopen.c: Likewise.
11598         * libio/oldiopopen.c: Likewise.
11599         * libio/wfiledoalloc.c: Likewise.
11600         * libio/wgenops.c: Likewise.
11601         * locale/programs/xmalloc.c: Likewise.
11602         * misc/syslog.c: Likewise.
11603         * stdio-common/xbug.c: Likewise.
11604         * string/memchr.c: Likewise.
11605         * string/memcmp.c: Likewise.
11606         * string/memrchr.c: Likewise.
11607         * string/rawmemchr.c: Likewise.
11608         * sysdeps/posix/getcwd.c: Likewise.
11609         * time/strftime_l.c: Likewise.
11610
11611 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11612
11613         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11614         * config.make.in (config-cflags-sse2avx): Define.
11615         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11616         Fix typo.
11617
11618 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11619
11620         * scripts/config.guess: Update from upstream config git repository.
11621         * scripts/config.sub: Likewise.
11622
11623 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11624
11625         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11626         (EM_NUM): Update.
11627         (R_TILEPRO_*, R_TILEGX_*): New macros.
11628
11629         * scripts/firstversions.awk: Fix bug in version range handling.
11630
11631         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11632
11633         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11634
11635         * include/sys/epoll.h: New file.
11636         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11637         libc_hidden_def.
11638
11639 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11640
11641         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11642         Avoid unnecessary __WORDSIZE == 64 test.
11643         (fmaxf): Use VEX format if possible.
11644         (fmax): Likewise.
11645         (fminf): Likewise.
11646         (fmin): Likewise.
11647
11648         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11649         * math/math_private.h: Remove libc_fegetround* and
11650         libc_fesetround*.
11651         * sysdeps/i386/configure.in: Check for -msse2avx.
11652         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11653         also if SSE2AVX is defined.
11654         Remove libc_fegetround* and libc_fesetround*.
11655         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11656         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11657         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11658         of HAS_YMM_USABLE.
11659         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11660         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11661         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11662         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11663         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11664
11665         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11666
11667 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11668
11669         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11670         size is not set.
11671         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11672
11673 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11674
11675         [BZ #13618]
11676         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11677         relocation.
11678         * Makeconfig (libm): Define.
11679         * elf/Makefile: Add rules to build and run tst-relsort1.
11680         * elf/tst-relsort1.c: New file.
11681         * elf/tst-relsort1mod1.c: New file.
11682         * elf/tst-relsort1mod2.c: New file.
11683
11684 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11685
11686         * math/s_ldexp.c: Remove __STDC__ conditionals.
11687         * math/s_ldexpf.c: Likewise.
11688         * math/s_ldexpl.c: Likewise.
11689         * math/s_nextafter.c: Likewise.
11690         * math/s_nexttowardf.c: Likewise.
11691         * math/s_significand.c: Likewise.
11692         * math/s_significandf.c: Likewise.
11693         * math/s_significandl.c: Likewise.
11694         * math/w_jnl.c: Likewise.
11695         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11696         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11697         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11698         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11699         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11700         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11701         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11702         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11703         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11704         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11705         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11706         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11707         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11708         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11709         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11710         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11711         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11712         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11713         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11714         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11715         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11716         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11717         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11718         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11719         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11720         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11721         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11722         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11723         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11724         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11725         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11726         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11727         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11728         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11729         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11730         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11731         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11732         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11733         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11734         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11735         * sysdeps/ieee754/k_standard.c: Likewise.
11736         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11737         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11738         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11739         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11740         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11741         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11742         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11743         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11744         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11745         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11746         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11747         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11748         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11749         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11750         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11751         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11752         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11753         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11754         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11755         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11756         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11757         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11758         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11759         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11760         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11761         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11762         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11763         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11764         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11765         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11766         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11767         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11768         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11769         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11770         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11771         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11772         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11773         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11774         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11775         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11776         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11777         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11778         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11779         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11780         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11781         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11782         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11783         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11784         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11785         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11786         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11787         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11788         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11789         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11790         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11791         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11792         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11793         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11794         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11795         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11796         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11797         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11798         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11799         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11800         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11801         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11802         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11803         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11804         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11805         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11806         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11807         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11808         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11810         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11811         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11812         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11813         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11814         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11815         * sysdeps/ieee754/s_matherr.c: Likewise.
11816         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11817         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11818         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11819         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11820
11821 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11822
11823         * crypt/md5.h: Remove __STDC__ conditionals.
11824         * libio/libioP.h: Likewise.
11825         * locale/programs/config.h: Likewise.
11826         * sysdeps/generic/sysdep.h: Likewise.
11827         * sysdeps/i386/asm-syntax.h: Likewise.
11828         * sysdeps/s390/asm-syntax.h: Likewise.
11829         * sysdeps/unix/sysdep.h: Likewise.
11830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11831         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11832
11833 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11834
11835         * libio/libio.h: Remove __STDC__ conditionals.
11836         * malloc/obstack.h: Likewise.
11837         * math/complex.h: Likewise.
11838         * math/math.h: Likewise.
11839         * sysdeps/generic/_G_config.h: Likewise.
11840         * sysdeps/gnu/_G_config.h: Likewise.
11841         * sysdeps/mach/hurd/_G_config.h: Likewise.
11842         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11843         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11844         * sysdeps/sparc/bits/mathdef.h: Likewise.
11845
11846 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11847
11848         [BZ #13583]
11849         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11850         Clean up HAS_* macros.
11851         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11852         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11853         possible.
11854         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11855         HAS_AVX.
11856         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11857         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11858         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11859         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11860         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11861
11862 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11863
11864         * elf/tst-unique3.cc (gets): Remove declaration.
11865         * elf/tst-unique3lib.cc (gets): Likewise.
11866         * elf/tst-unique3lib2.cc (gets): Likewise.
11867         * elf/tst-unique4.cc (gets): Likewise.
11868
11869 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11870
11871         * include/stdio.h: Add C++ protection.  Add gets declarations and
11872         definitions.
11873         * debug/tst-chk1.c: Don't declare gets here.
11874         * stdio-common/tst-gets.c: Likewise.
11875
11876 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11877
11878         * posix/glob: Remove directory.
11879
11880 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11881
11882         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11883
11884 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11885
11886         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11887         of the non-standard EPFNOSUPPORT.
11888
11889 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11890
11891         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11892         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11893         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11894
11895 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11896
11897         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11898
11899 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11900
11901         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11902         transient errors.
11903         * nscd/grpcache.c (cache_addgr): Likewise.
11904         * nscd/hstcache.c (cache_addhst): Likewise.
11905         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11906         * nscd/pwdcache.c (cache_addpw): Likewise.
11907         * nscd/servicescache.c (cache_addserv): Likewise.
11908
11909 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11910
11911         * malloc/malloc.c: Various cleanups.
11912         * malloc/hooks.c: Likewise.
11913
11914         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11915         * stdlib/bug-fmtmsg1.c: New file.
11916
11917         * stdlib/fmtmsg.c (init): Add missing unlock.
11918         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11919
11920 2012-01-12  Marek Polacek  <polacek@redhat.com>
11921
11922         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11923         and _GNU_SOURCE.
11924
11925 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11926
11927         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11928         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11929         macro to ensure uniqueness of label name.
11930         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11931         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11932
11933 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11934
11935         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11936
11937         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11938         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11939         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11940         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11941
11942 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11943
11944         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11945
11946         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11947         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11948         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11949
11950         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11951
11952         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11953         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11954         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11955         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11956
11957         * math/bits/math-finite.h: Add ldexp support.
11958
11959 2012-01-10  Marek Polacek  <polacek@redhat.com>
11960
11961         * locale/programs/localedef.h (show_archive_content): Add noreturn
11962         attribute.
11963
11964 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11965
11966         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11967
11968 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11969
11970         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11971
11972         * io/Makefile (headers): Add bits/poll2.h.
11973
11974 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11975
11976         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11977         typo #include statement.
11978
11979 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11980
11981         * include/sys/cdefs.h: Define __attribute_alloc_size.
11982         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11983         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11984         * elf/pldd.c: Likewise.
11985         * iconv/iconv_charmap.c: Likewise.
11986         * iconv/iconvconfig.c: Likewise.
11987         * iconv/strtab.c: Likewise.
11988         * locale/programs/locale.c: Likewise.
11989         * locale/programs/localedef.h: Likewise.
11990         * locale/programs/simple-hash.c: Likewise.
11991         * nscd/nscd.h: Likewise.
11992         * nss/makedb.c: Likewise.
11993         * sysdeps/generic/ldconfig.h: Likewise.
11994         * locale/programs/localedef.c: Remove xmalloc prototype.
11995         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11996
11997 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11998
11999         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
12000         appropriate.
12001
12002 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
12003
12004         * math/Makefile (tests): Add tst-CMPLX.
12005         * math/tst-CMPLX.c: New file.
12006
12007         * math/complex.h (CMPLXL): Fix typo.
12008
12009         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12010         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12011         GLIBC_2.16.
12012         * debug/tst-chk1.c: Add poll and ppoll tests.
12013         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12014         * include/sys/poll.h: Add hidden proto for ppoll.
12015         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12016         * sysdeps/mach/hurd/ppoll.c: Likewise.
12017         * io/ppoll.c: Likewise.
12018         * debug/poll_chk.c: New file.
12019         * debug/ppoll_chk.c: New file.
12020         * include/bits/poll2.h: New file.
12021         * io/bits/poll2.h: New file.
12022
12023         [BZ #1350]
12024         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12025
12026         * configure.in: static is always set to yes.  Remove.
12027         * config.make.in: Don't set build-static.
12028         * Makeconfig: Remove use of build-static.
12029         * dlfcn/Makefile: Likewise.
12030         * elf/Makefile: Likewise.
12031         * math/Makefile: Likewise.
12032         * misc/Makefile: Likewise.
12033         * nptl/Makefile: Likewise.
12034         * sysdeps/mach/hurd/Makefile: Likewise.
12035
12036         * configure.in: PWD_P is not used anymore.
12037         * config.make.in: Remove PWD_P entry.
12038
12039         * configure.in: Remove last remnants of RANLIB.
12040         No need to check for signed size_t anymore.
12041         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12042         and IA-64.
12043         Remove __builtin_expect test because we require at least gcc 3.4.
12044         * aclocal.m4: Likewise.
12045
12046         * wcsmbs/mbrtoc16.c: Implement using towc function.
12047         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12048         * wcsmbs/wcsmbsload.c: Likewise.
12049         * iconv/gconv_simple.c: Likewise.
12050         * iconv/gconv_int.h: Likewise.
12051         * iconv/gconv_builtin.h: Likewise.
12052         * iconv/iconv_prog.c: Remove CHAR16 handling.
12053
12054         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12055
12056         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12057
12058         * configure.in: Remove --with-elf and --enable-bounded options.
12059         Dont set base_machine for ia64.  More non-ELF conditions removed.
12060         Remove testing and setting of leading underscore information.
12061         * config.make.in (build-bounded): Set to no.
12062         * config.h.in: Remove NO_UNDERSCORES entry.
12063         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12064         them.
12065         * csu/start.c: Remove !NO_UNDERSCORE code.
12066         * locale/localeinfo.h: Likewise.
12067         * sysdeps/generic/machine-gmon.h: Likewise.
12068         * sysdeps/generic/sysdep.h: Likewise.
12069         * sysdeps/i386/sysdep.h: Likewise.
12070         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12071         * sysdeps/mach/sysdep.h: Likewise.
12072         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12073         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12074         * sysdeps/sh/sysdep.h: Likewise.
12075         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12076         * sysdeps/unix/i386/sysdep.S: Likewise.
12077         * sysdeps/unix/sparc/start.c: Likewise.
12078         * sysdeps/unix/sparc/sysdep.S: Likewise.
12079         * sysdeps/unix/sparc/sysdep.h: Likewise.
12080         * sysdeps/unix/start.c: Likewise.
12081         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12082         * sysdeps/x86_64/sysdep.h: Likewise.
12083
12084 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12085
12086         [BZ #13553]
12087         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12088         for non-gcc.
12089         * argp/argp-fmtstream.h: Use const instead __const.
12090         * argp/argp.h: Likewise.
12091         * assert/assert.h: Likewise.
12092         * bits/fenv.h: Likewise.
12093         * bits/sched.h: Likewise.
12094         * bits/sigset.h: Likewise.
12095         * bits/sigthread.h: Likewise.
12096         * catgets/nl_types.h: Likewise.
12097         * conform/data/pthread.h-data: Likewise.
12098         * crypt/crypt-private.h: Likewise.
12099         * crypt/crypt.h: Likewise.
12100         * crypt/crypt_util.c: Likewise.
12101         * ctype/ctype.h: Likewise.
12102         * debug/execinfo.h: Likewise.
12103         * debug/mbsnrtowcs_chk.c: Likewise.
12104         * debug/mbsrtowcs_chk.c: Likewise.
12105         * debug/wcsnrtombs_chk.c: Likewise.
12106         * debug/wcsrtombs_chk.c: Likewise.
12107         * debug/wcstombs_chk.c: Likewise.
12108         * dirent/dirent.h: Likewise.
12109         * dlfcn/dlfcn.h: Likewise.
12110         * elf/neededtest4.c: Likewise.
12111         * grp/grp.h: Likewise.
12112         * gshadow/gshadow.h: Likewise.
12113         * iconv/gconv.h: Likewise.
12114         * iconv/gconv_int.h: Likewise.
12115         * iconv/gconv_simple.c: Likewise.
12116         * iconv/iconv.h: Likewise.
12117         * iconv/loop.c: Likewise.
12118         * iconv/skeleton.c: Likewise.
12119         * include/aio.h: Likewise.
12120         * include/aliases.h: Likewise.
12121         * include/argz.h: Likewise.
12122         * include/arpa/inet.h: Likewise.
12123         * include/assert.h: Likewise.
12124         * include/dirent.h: Likewise.
12125         * include/dlfcn.h: Likewise.
12126         * include/execinfo.h: Likewise.
12127         * include/fcntl.h: Likewise.
12128         * include/fenv.h: Likewise.
12129         * include/glob.h: Likewise.
12130         * include/grp.h: Likewise.
12131         * include/libintl.h: Likewise.
12132         * include/mntent.h: Likewise.
12133         * include/netdb.h: Likewise.
12134         * include/pwd.h: Likewise.
12135         * include/rpc/netdb.h: Likewise.
12136         * include/sched.h: Likewise.
12137         * include/search.h: Likewise.
12138         * include/shadow.h: Likewise.
12139         * include/signal.h: Likewise.
12140         * include/stdio.h: Likewise.
12141         * include/stdlib.h: Likewise.
12142         * include/string.h: Likewise.
12143         * include/sys/socket.h: Likewise.
12144         * include/sys/stat.h: Likewise.
12145         * include/sys/statfs.h: Likewise.
12146         * include/sys/statvfs.h: Likewise.
12147         * include/sys/syslog.h: Likewise.
12148         * include/sys/time.h: Likewise.
12149         * include/sys/uio.h: Likewise.
12150         * include/time.h: Likewise.
12151         * include/unistd.h: Likewise.
12152         * include/utmp.h: Likewise.
12153         * include/wchar.h: Likewise.
12154         * include/wctype.h: Likewise.
12155         * inet/aliases.h: Likewise.
12156         * inet/arpa/inet.h: Likewise.
12157         * inet/netinet/ether.h: Likewise.
12158         * inet/netinet/in.h: Likewise.
12159         * intl/libintl.h: Likewise.
12160         * io/bits/fcntl2.h: Likewise.
12161         * io/fcntl.h: Likewise.
12162         * io/ftw.h: Likewise.
12163         * io/sys/poll.h: Likewise.
12164         * io/sys/stat.h: Likewise.
12165         * io/sys/statfs.h: Likewise.
12166         * io/sys/statvfs.h: Likewise.
12167         * io/utime.h: Likewise.
12168         * libio/bits/stdio.h: Likewise.
12169         * libio/bits/stdio2.h: Likewise.
12170         * libio/libio.h: Likewise.
12171         * libio/libioP.h: Likewise.
12172         * libio/stdio.h: Likewise.
12173         * locale/lc-ctype.c: Likewise.
12174         * locale/locale.h: Likewise.
12175         * login/utmp.h: Likewise.
12176         * malloc/arena.c: Likewise.
12177         * malloc/malloc.c: Likewise.
12178         * malloc/malloc.h: Likewise.
12179         * malloc/mcheck.c: Likewise.
12180         * malloc/mtrace.c: Likewise.
12181         * math/bits/mathcalls.h: Likewise.
12182         * math/fenv.h: Likewise.
12183         * math/math_private.h: Likewise.
12184         * misc/bits/error.h: Likewise.
12185         * misc/bits/syslog.h: Likewise.
12186         * misc/err.h: Likewise.
12187         * misc/error.h: Likewise.
12188         * misc/fstab.h: Likewise.
12189         * misc/mntent.h: Likewise.
12190         * misc/regexp.h: Likewise.
12191         * misc/search.h: Likewise.
12192         * misc/sgtty.h: Likewise.
12193         * misc/sys/mman.h: Likewise.
12194         * misc/sys/syslog.h: Likewise.
12195         * misc/sys/uio.h: Likewise.
12196         * misc/sys/xattr.h: Likewise.
12197         * misc/ttyent.h: Likewise.
12198         * nis/rpcsvc/ypclnt.h: Likewise.
12199         * nss/nss.h: Likewise.
12200         * posix/bits/unistd.h: Likewise.
12201         * posix/fnmatch.h: Likewise.
12202         * posix/glob.h: Likewise.
12203         * posix/sched.h: Likewise.
12204         * posix/spawn.h: Likewise.
12205         * posix/sys/wait.h: Likewise.
12206         * posix/unistd.h: Likewise.
12207         * posix/wordexp.h: Likewise.
12208         * pwd/pwd.h: Likewise.
12209         * resolv/netdb.h: Likewise.
12210         * resource/sys/resource.h: Likewise.
12211         * rt/aio.h: Likewise.
12212         * rt/bits/mqueue2.h: Likewise.
12213         * rt/mqueue.h: Likewise.
12214         * shadow/shadow.h: Likewise.
12215         * signal/signal.h: Likewise.
12216         * socket/send.c: Likewise.
12217         * socket/sendto.c: Likewise.
12218         * socket/sys/socket.h: Likewise.
12219         * stdio-common/printf.h: Likewise.
12220         * stdlib/bits/stdlib.h: Likewise.
12221         * stdlib/fmtmsg.h: Likewise.
12222         * stdlib/monetary.h: Likewise.
12223         * stdlib/stdlib.h: Likewise.
12224         * stdlib/ucontext.h: Likewise.
12225         * streams/stropts.h: Likewise.
12226         * string/argz.h: Likewise.
12227         * string/bits/string2.h: Likewise.
12228         * string/string.h: Likewise.
12229         * string/strings.h: Likewise.
12230         * sunrpc/rpc/auth.h: Likewise.
12231         * sunrpc/rpc/auth_des.h: Likewise.
12232         * sunrpc/rpc/clnt.h: Likewise.
12233         * sunrpc/rpc/netdb.h: Likewise.
12234         * sunrpc/rpc/pmap_clnt.h: Likewise.
12235         * sunrpc/rpc/xdr.h: Likewise.
12236         * sysdeps/generic/inttypes.h: Likewise.
12237         * sysdeps/generic/net/if.h: Likewise.
12238         * sysdeps/generic/sys/swap.h: Likewise.
12239         * sysdeps/gnu/net/if.h: Likewise.
12240         * sysdeps/gnu/utmpx.h: Likewise.
12241         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12242         * sysdeps/i386/i486/bits/string.h: Likewise.
12243         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12244         * sysdeps/s390/bits/string.h: Likewise.
12245         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12246         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12247         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12248         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12249         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12250         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12251         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12252         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12253         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12254         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12255         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12256         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12257         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12258         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12259         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12260         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12261         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12262         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12263         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12264         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12265         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12266         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12267         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12268         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12269         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12270         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12271         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12272         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12273         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12274         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12275         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12276         * sysvipc/sys/ipc.h: Likewise.
12277         * sysvipc/sys/msg.h: Likewise.
12278         * sysvipc/sys/sem.h: Likewise.
12279         * sysvipc/sys/shm.h: Likewise.
12280         * termios/termios.h: Likewise.
12281         * time/sys/time.h: Likewise.
12282         * time/time.h: Likewise.
12283         * wcsmbs/bits/wchar2.h: Likewise.
12284         * wcsmbs/uchar.h: Likewise.
12285         * wcsmbs/wchar.h: Likewise.
12286         * wctype/wctype.h: Likewise.
12287
12288         [BZ #13551]
12289         * Makeconfig: Remove all but ELF support including AIX support.
12290         * Makerules: Likewise.
12291         * config.h.in: Likewise.
12292         * config.make.in: Likewise.
12293         * configure: Likewise.
12294         * configure.in: Likewise.
12295         * csu/Makefile: Likewise.
12296         * csu/version.c: Likewise.
12297         * debug/Makefile: Likewise.
12298         * dlfcn/Makefile: Likewise.
12299         * elf/Makefile: Likewise.
12300         * extra-lib.mk: Likewise.
12301         * iconv/Makefile: Likewise.
12302         * include/libc-symbols.h: Likewise.
12303         * include/shlib-compat.h: Likewise.
12304         * resolv/Makefile: Likewise.
12305         * resolv/res_libc.c: Likewise.
12306         * rt/Makefile: Likewise.
12307         * sysdeps/i386/asm-syntax.h: Likewise.
12308         * sysdeps/i386/sysdep.h: Likewise.
12309         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12310         * sysdeps/mach/sysdep.h: Likewise.
12311         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12312         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12313         * sysdeps/s390/asm-syntax.h: Likewise.
12314         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12315         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12316         * sysdeps/sh/sysdep.h: Likewise.
12317         * sysdeps/unix/sparc/sysdep.h: Likewise.
12318         * sysdeps/wordsize-32/divdi3.c: Likewise.
12319         * sysdeps/x86_64/sysdep.h: Likewise.
12320
12321         * argp/Versions: Remove _argp_unlock_xxx.
12322
12323         [BZ #13559]
12324         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12325         * abilist/libBrokenLocale.abilist: Likewise.
12326         * abilist/libanl.abilist: Likewise.
12327         * abilist/libc.abilist: Likewise.
12328         * abilist/libcrypt.abilist: Likewise.
12329         * abilist/libdl.abilist: Likewise.
12330         * abilist/libm.abilist: Likewise.
12331         * abilist/libnsl.abilist: Likewise.
12332         * abilist/libpthread.abilist: Likewise.
12333         * abilist/libresolv.abilist: Likewise.
12334         * abilist/librt.abilist: Likewise.
12335         * abilist/libthread_db.abilist: Likewise.
12336         * abilist/libutil.abilist: Likewise.
12337         * abilist/libnss_db.abilist: New file.
12338
12339         * scripts/abilist.awk: Add support for indirect functions.
12340
12341         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12342
12343         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12344
12345         * shlib-versions: Remove entries for ports architectures.
12346
12347         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12348         files in ports.
12349         * elf/stackguard-macros.h: Remove support for IA-64.
12350         * elf/tst-auditmod1.c: Likewise.
12351         * sysdeps/generic/ldsodefs.h: Likewise.
12352
12353         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12354         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12355         configure files.
12356
12357         [BZ #13552]
12358         * configure.in: Remove --enable-omitfp support.
12359         * FAQ.in: Adjust.
12360         * config.make.in: Likewise.
12361         * Makeconfig: Likewise.
12362         * manual/install.texi: Likewise.
12363
12364         In case anyone cares, the IA-64 architecture could move to ports.
12365         * sysdeps/ia64/*: Removed.
12366         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12367         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12368
12369         [BZ #13555]
12370         * configure.in: Remove entries for unsupported architectures.
12371
12372         [BZ #13533]
12373         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12374         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12375         routines.
12376         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12377         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12378         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12379         fall back to using wcrtomb.
12380         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12381         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12382         renaming.
12383         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12384         * wcsmbs/tst-c16c32-1.c: New file.
12385
12386         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12387         local variable.
12388
12389         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12390
12391         * elf/tst-unique3.cc: Add explicit declaration of gets.
12392         * elf/tst-unique3lib.cc: Likewise.
12393         * elf/tst-unique3lib2.cc: Likewise.
12394         * elf/tst-unique4.cc: Likewise.
12395
12396         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12397
12398 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12399
12400         [BZ #13566]
12401         * assert/assert.h (static_assert): Don't define for C++.
12402         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12403         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12404
12405 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12406
12407         * iconv/loop.c (single loop): Fix assertion in storing of
12408         remaining bytes.
12409
12410         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12411
12412 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12413
12414         * posix/getconf.c: Update copyright year.
12415         * nss/getent.c: Likewise.
12416         * nss/makedb.c: Likewise.
12417         * iconv/iconvconfig.c: Likewise.
12418         * iconv/iconv_prog.c: Likewise.
12419         * elf/ldconfig.c: Likewise.
12420         * elf/pldd.c: Likewise.
12421         * elf/sotruss.ksh: Likewise.
12422         * catgets/gencat.c: Likewise.
12423         * csu/version.c: Likewise.
12424         * elf/ldd.bash.in: Likewise.
12425         * elf/sprof.c (print_version): Likewise.
12426         * locale/programs/locale.c: Likewise.
12427         * locale/programs/localedef.c: Likewise.
12428         * login/programs/pt_chown.c: Likewise.
12429         * nscd/nscd.c (print_version): Likewise.
12430         * debug/xtrace.sh: Likewise.
12431         * malloc/memusage.sh: Likewise.
12432         * malloc/mtrace.pl: Likewise.
12433         * debug/catchsegv.sh: Likewise.
12434
12435 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12436
12437         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12438         pure attribute.
12439
12440 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12441
12442         [BZ #13533]
12443         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12444         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12445         transformations.
12446         * iconv/gconv_int.h: Likewise.
12447         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12448         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12449         from libc for GLIBC_2.16.
12450         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12451         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12452         * wcsmbs/uchar.h: Really define mbstate_t.
12453         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12454         * wcsmbs/c16rtomb.c: New file.
12455         * wcsmbs/mbrtoc16.c: New file.
12456         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12457         for C/POSIX locale.
12458         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12459         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12460
12461         * wcsmbs/wchar.h: Add missing __restrict.
12462
12463 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12464
12465         [BZ #13532]
12466         * time/Makefile (routines): Add timespec_get.
12467         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12468         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12469         timespec for ISO C11.
12470         * time/timespec_get.c: New file.
12471         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12472         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12473
12474         [BZ #13531]
12475         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12476         * stdlib/stdlib.h: Declare aligned_alloc.
12477         * Versions.def: Add GLIBC_2.16 for libc.
12478         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12479
12480         [BZ 13527]
12481         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12482         ISO C11.
12483
12484         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12485         code.
12486
12487         [BZ #13528]
12488         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12489
12490         [BZ #13529]
12491         * assert/assert.h (static_assert): Define.
12492
12493         * version.h: Update for 2.16 development version.
12494
12495         [BZ #13526]
12496         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12497         _ISOC11_SOURCE.
12498
12499         * version.h (RELEASE): Bump for 2.15 release.
12500         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12501
12502         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12503         Patch by Marek Polacek <mpolacek@redhat.com>.
12504
12505         * bits/byteswap.h: Protect long long constants with __extension__.
12506         * sysdeps/i386/bits/byteswap.h: Likewise.
12507         * sysdeps/ia64/bits/byteswap.h: Likewise.
12508         * sysdeps/s390/bits/byteswap.h: Likewise.
12509         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12510
12511 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12512
12513         [BZ #13540]
12514         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12515         destination buffer.
12516         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12517
12518 2011-12-23  Marek Polacek  <polacek@redhat.com>
12519
12520         * elf/dl-addr.c (determine_info): Add inline keyword.
12521         * elf/tst-auditmod4b.c (check_avx): Likewise.
12522         * elf/tst-auditmod6b.c (check_avx): Likewise.
12523         * elf/tst-auditmod6c.c (check_avx): Likewise.
12524         * elf/tst-auditmod7b.c (check_avx): Likewise.
12525
12526 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12527
12528         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12529         !__SSE_MATH__.
12530
12531 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12532
12533         [BZ #13540]
12534         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12535         processing for last bytes.
12536
12537 2011-08-06  Bruno Haible  <bruno@clisp.org>
12538
12539         [BZ #13061]
12540         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12541         U+0385, not to U+1FEE.
12542
12543         [BZ #13062]
12544         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12545         entry for U+00A5 U+0301.
12546
12547 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12548
12549         [BZ #13166]
12550         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12551         buffer for the output is too small.
12552
12553         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12554         optimization.
12555
12556         [BZ #13185]
12557         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12558         SSE flags if possible.
12559
12560 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12561
12562         [BZ #13540]
12563         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12564         processing for last bytes.
12565
12566 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12567
12568         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12569         (syscall-list-default-options, syscall-list-default-condition)
12570         (syscall-list-includes): Define.
12571         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12572         list of ABIs and options and #if conditions for each ABI.  Do not
12573         handle common syscalls between ABIs specially.
12574         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12575         Remove.
12576         (syscall-list-variants, syscall-list-32bit-options)
12577         (syscall-list-32bit-condition, syscall-list-64bit-options)
12578         (syscall-list-64bit-condition): Define.
12579         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12580         (syscall-list-variants, syscall-list-32bit-options)
12581         (syscall-list-32bit-condition, syscall-list-64bit-options)
12582         (syscall-list-64bit-condition): Define.
12583         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12584         Remove.
12585         (syscall-list-variants, syscall-list-32bit-options)
12586         (syscall-list-32bit-condition, syscall-list-64bit-options)
12587         (syscall-list-64bit-condition): Define.
12588         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12589         Remove.
12590         (syscall-list-variants, syscall-list-32bit-options)
12591         (syscall-list-32bit-condition, syscall-list-64bit-options)
12592         (syscall-list-64bit-condition): Define.
12593
12594 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12595
12596         * locale/iso-639.def: Add brx entry.
12597
12598         [BZ #13328]
12599         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12600         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12601
12602         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12603         __feraiseexcept_renamed.
12604
12605 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12606
12607         [BZ #13538]
12608         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12609         EPOLLET with unsigned values.
12610         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12611         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12612
12613         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12614         to large cancellation.
12615         * math/s_cacoshf.c: Likewise.
12616         * math/s_cacoshl.c: Likewise.
12617
12618 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12619
12620         [BZ #13305]
12621         [BZ #12786]
12622         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12623         * math/s_cacoshf.c: Likewise.
12624         * math/s_cacoshl.c: Likewise.
12625
12626 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12627
12628         [BZ #13439]
12629         * iconv/gconv.h: Define __GCONV_SWAP.
12630         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12631         * iconvdata/utf-16.c: Likewise.
12632         * iconvdata/utf-32.c: Likewise.
12633
12634 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12635
12636         [BZ #13524]
12637         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12638         numerator after shifting it by one limb.
12639
12640 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12641
12642         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12643         under [__USE_EXTERN_INLINES].
12644
12645 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12646
12647         [BZ #13446]
12648         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12649
12650 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12651
12652         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12653         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12654         optimized code.
12655         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12656         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12657         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12658         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12659         for strncasecmp/strncasecmp_l compilation.
12660         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12661         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12662
12663 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12664
12665         [BZ #13484]
12666         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12667         of __asm__.
12668
12669 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12670
12671         [BZ #13506]
12672         * time/tzfile.c (__tzfile_read): Check values from file header.
12673
12674 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12675
12676         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12677         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12678         * powerpc/powerpc32/dl-start.S: Likewise.
12679         * powerpc/powerpc32/elf/start.S: Likewise.
12680         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12681         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12682         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12683         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12684         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12685         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12686         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12687         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12688         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12689         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12690         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12691         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12692         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12693         * powerpc/powerpc32/memset.S: Likewise.
12694         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12695         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12696         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12697         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12698         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12699         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12700         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12701         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12702         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12703         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12704         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12705         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12706         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12707
12708 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12709
12710         * math/libm-test.inc: Added more nearbyint tests.
12711         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12712         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12713         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12714         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12715
12716 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12717
12718         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12719         FD_CLOEXEC.
12720
12721 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12722
12723         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12724         Add wcscpy-ssse3 wcscpy-c.
12725         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12726         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12727         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12728         * sysdeps/x86_64/wcschr.S: New file.
12729         * sysdeps/x86_64/wcsrchr.S: New file.
12730         * string/test-strcmp.c: Remove checking of wcscmp function for
12731         wrong alignments.
12732         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12733         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12734         wcsrchr-sse2 wcsrchr-c.
12735         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12736         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12737         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12738         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12739         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12740         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12741         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12742         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12743         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12744         * wcsmbc/wcschr.c (WCSCHR): New macro.
12745
12746 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12747
12748         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12749         * wcsmbs/test-wcsrchr.c: New file.
12750         * string/test-strrchr.c: Add wcsrchr support.
12751         (WIDE): New macro.
12752         * wcsmbs/test-wcscpy.c: New file.
12753         * string/test-strcpy.c: Add wcscpy support.
12754         (WIDE): New macro.
12755
12756 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12757
12758         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12759         the inner loop.
12760
12761 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12762
12763         [BZ #13472]
12764         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12765
12766 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12767
12768         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12769         Minor optimizations.
12770
12771         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12772         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12773         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12774
12775 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12776
12777         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12778         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12779         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12780         for gcc to avoid warnings.
12781         * inet/Makefile (tests): Add tst-checks.
12782         * inet/tst-checks.c: New file.
12783
12784         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12785         warning.
12786
12787         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12788         __wmemcmp_sse2.
12789
12790         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12791         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12792
12793         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12794
12795 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12796
12797         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12798         problem.
12799
12800         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12801
12802 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12803
12804         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12805         conditional on GCC version.
12806         (__arch_compare_and_exchange_val_8_acq)
12807         (__arch_compare_and_exchange_val_16_acq)
12808         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12809         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12810         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12811
12812 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12813
12814         * sysdeps/sh/backtrace.c: New file.
12815
12816 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12817
12818         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12819         parenthesis.
12820
12821 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12822
12823         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12824         falling back to utime.
12825
12826 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12827
12828         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12829         expectations for float.
12830
12831 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12832
12833         * locale/weight.h (findidx): Add parameter len.
12834         * locale/weightwc.h (findidx): Likewise.
12835         * posix/fnmatch_loop.c (FCT): Adjust caller.
12836         * posix/regcomp.c (build_equiv_class): Likewise.
12837         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12838         * posix/regexec.c (check_node_accept_bytes): Likewise.
12839         * string/strcoll_l.c (STRCOLL): Likewise.
12840         * string/strxfrm_l.c (STRXFRM): Likewise.
12841
12842 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12843
12844         * Makefile.in: Remove CVSOPT handling.
12845         * configure.in: Remove use of AC_REVISION.
12846         * iconvdata/Makefile (distribute): No need to filter out CVS.
12847         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12848         handling.
12849
12850 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12851
12852         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12853         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12854         [USE_AS_STRNCASECMP_L]: Likewise.
12855         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12856         NO_TLS_DIRECT_SEG_REFS.
12857         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12858         Fix argument offsets for non-PIC.
12859         [USE_AS_STRNCASECMP_L]: Likewise.
12860         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12861         NO_TLS_DIRECT_SEG_REFS.
12862
12863 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12864
12865         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12866         O_CLOEXEC.
12867         * locale/loadlocale.c (_nl_load_locale): Likewise.
12868
12869 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12870
12871         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12872         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12873         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12874         (SYSCALL_GETTIME): Set errno on error.
12875
12876         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12877         count references to noai6ai_cached.
12878
12879 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12880
12881         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12882
12883         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12884         FD_CLOEXEC for /proc/self/maps.
12885
12886         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12887         FD_CLOEXEC for /proc/meminfo.
12888
12889         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12890         gai.conf.
12891
12892         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12893         FD_CLOEXEC for given file.
12894
12895         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12896
12897         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12898         FD_CLOEXEC for /etc/hosts.
12899         (_gethtent): Likewise.
12900
12901         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12902
12903         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12904         cancellation and set FD_CLOEXEC for /etc/netgroup.
12905
12906         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12907         reading /etc/publickey.
12908
12909         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12910         allow cancellation when reading /etc/group.
12911
12912         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12913         cancellation.
12914         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12915
12916         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12917         when using data file.
12918
12919         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12920
12921         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12922         (write_nis_obj): Use "c" and "e" in fopen.
12923
12924         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12925
12926         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12927
12928         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12929
12930         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12931
12932         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12933         locale.alias.
12934
12935         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12936
12937         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12938
12939         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12940
12941         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12942         file parsing and set FD_CLOEXEC.
12943
12944 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12945
12946         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12947
12948 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12949
12950         * malloc/arena.c (arena_get2): Don't call reused_arena when
12951         _int_new_arena failed.
12952
12953 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12954
12955         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12956         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12957         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12958         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12959         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12960         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12961         to compile strcasecmp and strncasecmp.
12962         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12963         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12964
12965         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12966
12967 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12968
12969         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12970         locale-defines.sym to gen-as-const-headers.
12971         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12972         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12973         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12974         to compile strcasecmp and strncasecmp.
12975         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12976         strcasecmp_l and strncasecmp_l.
12977         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12978         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12979         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12980         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12981         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12982         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12983         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12984         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12985         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12986         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12987         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12988
12989 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12990
12991         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12992         result of SYSDEP_GETTIME_CPU to retval.
12993         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12994         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12995
12996         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12997         variable.
12998
12999         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
13000         mantissa words.
13001         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
13002
13003         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13004         from unused variable.
13005
13006         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13007         DWARF definitions.
13008         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13009         for assembling.
13010
13011         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13012         over namespaces.
13013
13014         * sunrpc/rpc_prot.c (rejected): Fix case value.
13015
13016         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13017         unsigned long long int to avoid warnings in shift.
13018
13019         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13020         of use of trans.
13021         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13022         variable tmp.
13023
13024         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13025         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13026         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13027
13028         * nis/nis_table.c (nis_list): Use variable of correct type for
13029         result of __follow_path call.
13030
13031 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13032
13033         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13034         of math functions ceil, trunc, floor, round, and sqrt, when
13035         avaliable on the platform.
13036         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13037         name clash.
13038         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13039         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13040         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13041
13042 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13043
13044         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13045         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13046
13047 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13048
13049         * include/unistd.h: Fix __readlink return type.
13050         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13051
13052 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13053
13054         * stdlib/ucontext.h: Undo last change for makecontext.
13055
13056 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13057
13058         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13059
13060         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13061         * setjmp/setjmp.h: Mark functions as non-leaf.
13062         * setjmp/bits/setjmp2.h: Likewise.
13063         * stdlib/ucontext.h: Likewise.
13064
13065 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13066
13067         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13068         (reused_arena): Don't check arena limit.
13069         (arena_get2): Atomically check arena limit.
13070
13071 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13072
13073         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13074         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13075
13076         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13077         instructions.
13078
13079 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13080
13081         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13082         handler when locking.
13083
13084         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13085         Fix size of allocated buffer.
13086
13087 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13088
13089         [BZ #10103]
13090         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13091         declarations for long double functions.
13092         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13093
13094         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13095
13096 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13097
13098         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13099         installed.
13100
13101         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13102         is disabled.
13103
13104 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13105
13106         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13107
13108 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13109
13110         * include/alloca.h (stackinfo_alloca_round): Define.
13111         (extend_alloca): Use it.
13112         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13113         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13114         here.
13115
13116         * scripts/check-local-headers.sh: Ignore libaudit.h.
13117
13118         * nscd/Makefile (extra-objs): Make recursively expanded.
13119
13120 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13121
13122         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13123         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13124
13125         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13126         * posix/tst-rfc3484-2.c: Likewise.
13127         * posix/tst-rfc3484-3.c: Likewise.
13128
13129         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13130         process_vm_writev.
13131         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13132         process_vm_writev.
13133         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13134         process_vm_writev from libc using GLIBC_2.15 version.
13135
13136         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13137
13138 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13139
13140         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13141         stack usage.
13142
13143 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13144
13145         [BZ #13367]
13146         * nss/getent.c (initgroups_keys): Show error message in case no group
13147         names are given.
13148
13149         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13150         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13151         __bump_nl_timestamp.
13152         * nscd/connections (nscd_init): When host database is served open
13153         netlink socket and request notification about configuration changes.
13154         (main_loop_poll): Track netlink file descriptor and bump timestamp
13155         in case data becomes available.
13156         (main_loop_epoll): Likewise.
13157         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13158         (database_pers_head): Add extra_data fileds.
13159         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13160         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13161         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13162         Adjust caller.
13163         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13164         in6ai data, call __free_in6ai.
13165         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13166         Add -DHAVE_NETLINK.
13167         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13168         interface information.  Reuse previous data if netlink timestamp
13169         is not changed.
13170         (__bump_nl_timestamp): New function.
13171         (__free_in6ai): New function.
13172
13173 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13174
13175         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13176         close_not_cancel_no_status here.
13177         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13178
13179 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13180
13181         [BZ #13276]
13182         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13183         return value.
13184
13185         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13186         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13187         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13188
13189 2011-07-03  Andreas Jaeger  <aj@suse.de>
13190
13191         [BZ #10709]
13192         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13193         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13194         * math/libm-test.inc (sin_test): Add test case.
13195
13196 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13197
13198         [BZ #13337]
13199         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13200         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13201
13202         * elf/chroot_canon.c (chroot_canon): Cleanups.
13203
13204         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13205
13206         [BZ #13335]
13207         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13208         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13209
13210         * string/test-strchr.c: Make usable for strchrnul testing.
13211         * string/test-strchrnul.c: New file.
13212         * string/Makefile (strop-tests): Add strchrnul.
13213
13214         * po/it.po: Update from translation team.
13215         * po/es.po: Likewise.
13216
13217 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13218
13219         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13220         the three constants needed as parameters.  Drop the others.
13221         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13222         __m128i_strloadu_tolower.
13223         Create and initialize variable zero and use it in all the places
13224         where _mm_setzero_si128 was used.
13225
13226         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13227         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13228         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13229         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13230         anymore.
13231         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13232         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13233         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13234         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13235         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13236         __mpranred, __mptan.
13237         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13238         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13239         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13240         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13241         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13242         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13243         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13244         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13245         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13246
13247 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13248
13249         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13250         redefine if SHARED.
13251         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13252
13253         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13254         wide char related routines to wcsmbs subdir.
13255
13256 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13257
13258         [BZ #13344]
13259         * misc/sys/cdefs.h (__THROWNL): Define.
13260         * posix/unistd.h: Use __THREADNL instead of __THREAD
13261         for memory synchronization functions.
13262
13263 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13264
13265         [BZ #13349]
13266         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13267         doesn't exist.
13268         * manual/stdio.texi (Obstack Streams): Node removed.
13269
13270 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13271
13272         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13273         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13274         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13275
13276         * math/math_private.h (math_force_eval): Allow non-addressable
13277         arguments.
13278         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13279
13280 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13281
13282         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13283         file is not needed.
13284
13285         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13286         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13287         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13288         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13289         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13290         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13291         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13292         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13293         Add AVX variants.
13294         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13295         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13296         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13297         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13298         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13299         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13300         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13301         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13302         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13303         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13304         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13305         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13306         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13307         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13308         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13309         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13310         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13311         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13312         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13313
13314         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13315         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13316
13317         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13318         place.  Use VEX encoding when compiling for AVX.
13319
13320 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13321
13322         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13323         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13324
13325         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13326
13327 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13328
13329         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13330         useless if() expression.
13331         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13332         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13333         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13334         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13335         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13336         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13337         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13338         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13339         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13340         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13341         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13342         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13343         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13344         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13345         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13346         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13347         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13348         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13349         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13350
13351         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13352
13353 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13354
13355         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13356         condition.
13357         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13358
13359 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13360
13361         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13362         .text section.  Avoid duplicate constants.
13363         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13364         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13365         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13366         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13367         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13368         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13369         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13370         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13371         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13372         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13373         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13374         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13375         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13376         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13377         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13378         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13379         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13380         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13381         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13382         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13383         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13384         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13385         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13386         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13387         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13388         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13389         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13390         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13391         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13392         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13393         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13394         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13395         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13396         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13397         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13398         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13399         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13400         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13401         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13402         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13403         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13404         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13405         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13406         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13407         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13408
13409 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13410
13411         * sysdeps/x86_64/dla.h: Move to ...
13412         * sysdeps/x86_64/fpu/dla.h: ...here.
13413         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13414         situations.  Use __builtin_fma only for gcc 4.6 and up.
13415
13416         * config.make.in: Add have-mfma4 entry.
13417         * configure.in: Substitute libc_cv_cc_fma4.
13418         * math/Makefile (dbl-only-routines): Add sincostab.
13419         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13420         Use __sincostab not sincos.
13421         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13422         name is a macro.
13423         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13424         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13425         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13426         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13427         using __copysign.
13428         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13429         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13430         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13431         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13432         and __inv.
13433         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13434         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13435         __copysign.
13436         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13437         define aliases when function name is a macro.
13438         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13439         sysdeps/ieee754/dbl-64/sincos.tbl.
13440         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13441         fma4-enabled routines.
13442         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13443         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13444         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13445         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13446         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13447         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13448         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13449         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13450         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13451         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13452         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13453         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13454         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13455         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13456         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13457         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13458         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13459         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13460         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13461         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13462         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13463         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13464         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13465         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13466         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13467         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13468         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13469         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13470         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13471         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13472
13473         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13474         rename.
13475         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13476         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13477         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13478         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13479         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13480         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13481         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13482         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13483
13484 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13485
13486         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13487
13488 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13489
13490         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13491
13492         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13493         prediction.
13494         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13495
13496         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13497         Remove unused variable magic_bits.
13498         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13499
13500         * string/strnlen.c: Define and use STRNLEN macro.
13501         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13502         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13503         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13504         * wcsmbs/wcslen.c: Define and use WCSLEN.
13505         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13506         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13507         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13508         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13509         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13510         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13511         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13512
13513 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13514
13515         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13516         strnlen-sse2-no-bsf.
13517         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13518         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13519         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13520         Add strnlen support.
13521         (USE_AS_STRNLEN): New macro.
13522         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13523         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13524         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13525         * sysdeps/x86_64/wcslen.S: New file.
13526
13527 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13528
13529         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13530         XMM-moves are used for copying on small sizes.
13531
13532 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13533
13534         * wcsmbs/Makefile (strop-tests): Add wcschr.
13535         * wcsmbs/test-wcschr.c: New file.
13536         * string/test-strchr.c: Update.
13537         Add wcschr support.
13538         (WIDE): New macro.
13539
13540 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13541
13542         * wcsmbs/Makefile (strop-tests): Add wcslen.
13543         * wcsmbs/test-wcslen.c: New file.
13544         * string/test-strlen.c: Update.
13545         Add wcslen support.
13546         (WIDE): New macro.
13547
13548 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13549
13550         * po/it.po: Update from translation team.
13551
13552 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13553
13554         * sysdeps/x86_64/wcscmp.S: Update.
13555         Fix wrong comparison semantics.
13556         wcscmp shall use signed comparison not unsigned.
13557         Don't use substraction to avoid overflow bug.
13558         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13559         * wcsmbc/wcscmp.c: Likewise.
13560         * string/test-strcmp.c: Likewise.
13561         Add new tests to check cases with negative values.
13562
13563 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13564
13565         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13566         * sysdeps/x86_64/dla.h: ...here.  New file.
13567         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13568         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13569         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13570         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13571         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13572         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13573         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13574         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13575         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13576
13577 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13578
13579         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13580         __ynl_finite aliases.
13581
13582 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13583
13584         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13585
13586         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13587         define DLA_FMA.
13588         [DLA_FMA] (EMULV): Use DLA_FMA.
13589         [DLA_FMA] (MUL12): Use EMULV.
13590         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13591         that are not needed.
13592         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13593         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13594         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13595         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13596         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13597         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13598         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13599
13600 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13601
13602         * math/s_nan.c: Undef __nan.
13603         * math/s_nanf.c: Undef __nanf.
13604         * math/s_nanl.c: Undef __nanl.
13605         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13606         "math_private.h".
13607
13608 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13609
13610         * math/s_catan.c: Add branch predictions.
13611         * math/s_catanf.c: Likewise.
13612         * math/s_catanh.c: Likewise.
13613         * math/s_catanhf.c: Likewise.
13614         * math/s_catanhl.c: Likewise.
13615         * math/s_catanl.c: Likewise.
13616         * math/s_cexp.c: Likewise.
13617         * math/s_cexpf.c: Likewise.
13618         * math/s_cexpl.c: Likewise.
13619         * math/s_clog.c: Likewise.
13620         * math/s_clog10.c: Likewise.
13621         * math/s_clog10f.c: Likewise.
13622         * math/s_clog10l.c: Likewise.
13623         * math/s_clogf.c: Likewise.
13624         * math/s_clogl.c: Likewise.
13625         * math/s_csqrt.c: Likewise.
13626         * math/s_csqrtf.c: Likewise.
13627         * math/s_csqrtl.c: Likewise.
13628         * math/s_ctanf.c: Likewise.
13629         * math/s_ctanh.c: Likewise.
13630         * math/s_ctanhf.c: Likewise.
13631         * math/s_ctanhl.c: Likewise.
13632         * math/s_ctanl.c: Likewise.
13633
13634         * math/math_private.h: Define __nan, __nanf, __nanl.
13635         * math/s_cacosh.c: Include <math_private.h>.
13636         * math/s_cacoshl.c: Likewise.
13637         * math/s_casinh.c: Likewise.
13638         * math/s_casinhf.c: Likewise.
13639         * math/s_casinhl.c: Likewise.
13640         * math/s_ccos.c: Rely entire on ccosh.
13641         * math/s_ccosf.c: Rely entire on ccoshf.
13642         * math/s_ccosl.c: Rely entirely on ccoshl.
13643         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13644         Remove tests for FE_INVALID.
13645         * math/s_ccoshf.c: Likewise.
13646         * math/s_ccoshl.c: Likewise.
13647         * math/s_csin.c: Likewise.
13648         * math/s_csinf.c: Likewise.
13649         * math/s_csinh.c Likewise.
13650         * math/s_csinhf.c: Likewise.
13651         * math/s_csinhl.c: Likewise.
13652         * math/s_csinl.c: Likewise.
13653         * math/s_ctan.c: Likewise.
13654         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13655         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13656         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13657
13658 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13659
13660         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13661         compilation problems.
13662
13663         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13664         __builtin_expect.
13665
13666 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13667
13668         * sysdeps/i386/configure.in: Test for -mfma4 option.
13669         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13670         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13671         COMMON_CPUID_INDEX_80000001.
13672         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13673         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13674         use it if FMA3 is not supported.
13675         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13676
13677         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13678         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13679
13680 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13681
13682         [BZ #12892]
13683         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13684         it would create a cycle with a link time dependency.
13685
13686 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13687
13688         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13689         instruction.
13690         * string/Makefile (strop-tests): Add rawmemchr.
13691         * string/test-rawmemchr.c: New file.
13692
13693         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13694         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13695         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13696         when compiling str{,n}casecmp and when AVX is available.  Hook up
13697         new optimized code in initializers.
13698
13699 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13700
13701         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13702         __feraiseexcept instead of feraiseexcept.
13703
13704 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13705
13706         * math/math_private.h: Define defaults for libc_fetestexcept and
13707         libc_feupdateenv.
13708         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13709         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13710         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13711         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13712         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13713         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13714         libc_fetestexcept and libc_feupdateenv.
13715
13716         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13717         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13718         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13719         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13720         libc_feholdexcept_setround.
13721
13722         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13723         Add s_nearbyint-c and s_nearbyintf-c.
13724         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13725         nearbyintf inlines.
13726         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13727         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13728         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13729         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13730
13731         * math/math_private.h: Define defaults for libc_fegetround,
13732         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13733         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13734         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13735         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13736         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13737         standard functions.
13738         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13739         Remove comments and hacks for old compiler versions.
13740         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13741         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13742         libc_feholdexceptl.
13743
13744 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13745
13746         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13747         (__feraiseexcept_renamed): Add __NTH.
13748         (feraiseexcept): Add __NTH.  Rename local variables to fix
13749         namespace violations.
13750
13751 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13752
13753         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13754
13755         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13756
13757         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13758         recently added interfaces.
13759         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13760
13761         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13762         about macro parameter expansion.
13763
13764         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13765         __NO_MATH_INLINES is defined.  Cleanups.
13766
13767         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13768         and __floorf is target has SSE4.1.
13769         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13770         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13771         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13772         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13773
13774         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13775         name.
13776         (floorf): Likewise.
13777
13778         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13779
13780 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13781
13782         * misc/sys/cdefs.h: Fix last change.
13783
13784         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13785         database lookup.
13786
13787 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13788
13789         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13790
13791         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13792         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13793         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13794         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13795         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13796         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13797         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13798         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13799         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13800         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13801         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13802         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13803         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13804         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13805         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13806         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13807         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13808         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13809         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13810         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13811         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13812         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13813
13814         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13815         ceil, ceilf, floor, floorf.
13816
13817         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13818         Perform IRELATIVE relocations last.
13819
13820         * elf/do-rel.h: Add another parameter nrelative, replacing the
13821         local variable with the same name.  Change name of the function
13822         to end in Rel or Rela (uppercase).
13823         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13824         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13825         elf_dynamic_do_##reloc function.
13826
13827 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13828
13829         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13830         is sufficient, at least on modern CPUs.
13831
13832         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13833
13834         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13835         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13836
13837         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13838         __expl_finite.
13839         * math/bits/math-finite.h: Add entries for exp.
13840         * math/e_expl.c: Add __*_finite alias.
13841         * sysdeps/i386/fpu/e_exp.S: Likewise.
13842         * sysdeps/i386/fpu/e_expf.S: Likewise.
13843         * sysdeps/i386/fpu/e_expl.c: Likewise.
13844         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13845         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13846         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13847         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13848         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13849         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13850         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13851
13852         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13853         is sufficient, at least on modern CPUs.
13854
13855         * ctype/ctype-info.c (__ctype_init): Define.
13856         * include/ctype.h (__ctype_init): Declare.
13857         (__ctype_b_loc): The variable is always initialized.
13858         (__ctype_toupper_loc): Likewise.
13859         (__ctype_tolower_loc): Likewise.
13860         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13861         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13862
13863 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13864
13865         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13866
13867         * configure.in: Also look in $cxxmachine/include for C++ system
13868         headers.
13869
13870 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13871
13872         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13873         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13874         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13875         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13876         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13877         (USE_AS_WMEMCMP): New macro.
13878         Fixing indents.
13879         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13880         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13881         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13882         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13883         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13884         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13885         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13886         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13887         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13888         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13889         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13890         (USE_AS_WMEMCMP): New macro.
13891         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13892         * sysdeps/string/test-memcmp.c: Update.
13893         Fix simple_wmemcmp.
13894         Add new tests.
13895         * wcsmbs/wmemcmp.c: Update.
13896         (WMEMCMP): New macro.
13897         Fix overflow bug.
13898
13899 2011-10-12  Andreas Jaeger  <aj@suse.de>
13900
13901         [BZ #13268]
13902         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13903
13904 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13905
13906         * libio/iofwide.c (do_length): Avoid warning.
13907
13908         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13909
13910 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13911
13912         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13913
13914         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13915         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13916         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13917         * sysdeps/i386/i686/fpu/e_log.S: New file.
13918         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13919         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13920
13921         * ctype/ctype.h: Add support for inlined isXXX functions when
13922         compiling C++ code.
13923
13924 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13925
13926         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13927
13928         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13929
13930 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13931
13932         [BZ #13291]
13933         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13934
13935 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13936
13937         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13938         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13939         feraiseexcept.
13940
13941         * sysdeps/x86_64/memrchr.S: Check for zero size.
13942
13943         * string/stratcliff.c: Add memrchr tests.
13944
13945 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13946
13947         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13948         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13949         rawmemchr-sse2 rawmemchr-sse2-bsf.
13950         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13951         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13952         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13953         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13954         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13955         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13956         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13957         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13958         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13959         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13960         * string/memrchr.c (MEMRCHR): New macro.
13961
13962 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13963
13964         Add integration with gcc's -ffinite-math-only and optimize wrapper
13965         functions in libm.
13966         * Versions.def: Define GLIBC_2.15 version for libm.
13967         * math/Makefile (headers): Add bits/math-finite.h.
13968         * math/bits/math-finite.h: New file.
13969         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13970         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13971         * math/e_acoshl.c: Add __*_finite alias.
13972         * math/e_acosl.c: Likewise.
13973         * math/e_asinl.c: Likewise.
13974         * math/e_atan2l.c: Likewise.
13975         * math/e_atanhl.c: Likewise.
13976         * math/e_coshl.c: Likewise.
13977         * math/e_exp10.c: Likewise.
13978         * math/e_exp10f.c: Likewise.
13979         * math/e_exp10l.c: Likewise.
13980         * math/e_exp2l.c: Likewise.
13981         * math/e_fmodl.c: Likewise.
13982         * math/e_gammal_r.c: Likewise.
13983         * math/e_hypotl.c: Likewise.
13984         * math/e_j0l.c: Likewise.
13985         * math/e_j1l.c: Likewise.
13986         * math/e_jnl.c: Likewise.
13987         * math/e_lgammal_r.c: Likewise.
13988         * math/e_log10l.c: Likewise.
13989         * math/e_log2l.c: Likewise.
13990         * math/e_logl.c: Likewise.
13991         * math/e_powl.c: Likewise.
13992         * math/e_sinhl.c: Likewise.
13993         * math/e_sqrtl.c: Likewise.
13994         * math/e_scalb.c: Completely rewritten and optimized.
13995         * math/e_scalbf.c: Likewise.
13996         * math/e_scalbl.c: Likewise.
13997         * math/w_acos.c: Likewise.
13998         * math/w_acosf.c: Likewise.
13999         * math/w_acosl.c: Likewise.
14000         * math/w_acosh.c: Likewise.
14001         * math/w_acoshf.c: Likewise.
14002         * math/w_acoshl.c: Likewise.
14003         * math/w_asin.c: Likewise.
14004         * math/w_asinf.c: Likewise.
14005         * math/w_asinl.c: Likewise.
14006         * math/w_atan2.c: Likewise.
14007         * math/w_atan2f.c: Likewise.
14008         * math/w_atan2l.c: Likewise.
14009         * math/w_atanh.c: Likewise.
14010         * math/w_atanhf.c: Likewise.
14011         * math/w_atanhl.c: Likewise.
14012         * math/w_exp10.c: Likewise.
14013         * math/w_exp10f.c: Likewise.
14014         * math/w_exp10l.c: Likewise.
14015         * math/w_fmod.c: Likewise.
14016         * math/w_fmodf.c: Likewise.
14017         * math/w_fmodl.c: Likewise.
14018         * math/w_j0.c: Likewise.
14019         * math/w_j0f.c: Likewise.
14020         * math/w_j0l.c: Likewise.
14021         * math/w_j1.c: Likewise.
14022         * math/w_j1f.c: Likewise.
14023         * math/w_j1l.c: Likewise.
14024         * math/w_jn.c: Likewise.
14025         * math/w_jnf.c: Likewise.
14026         * math/w_log.c: Likewise.
14027         * math/w_logf.c: Likewise.
14028         * math/w_logl.c: Likewise.
14029         * math/w_log10.c: Likewise.
14030         * math/w_log10f.c: Likewise.
14031         * math/w_log10l.c: Likewise.
14032         * math/w_log2.c: Likewise.
14033         * math/w_log2f.c: Likewise.
14034         * math/w_log2l.c: Likewise.
14035         * math/w_pow.c: Likewise.
14036         * math/w_powf.c: Likewise.
14037         * math/w_powl.c: Likewise.
14038         * math/w_remainder.c: Likewise.
14039         * math/w_remainderf.c: Likewise.
14040         * math/w_remainderl.c: Likewise.
14041         * math/w_scalb.c: Likewise.
14042         * math/w_scalbf.c: Likewise.
14043         * math/w_scalbl.c: Likewise.
14044         * math/w_sqrt.c: Likewise.
14045         * math/w_sqrtf.c: Likewise.
14046         * math/w_sqrtl.c: Likewise.
14047         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14048         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14049         used.
14050         * math/math_private.h: Declare __kernel_standard_f.
14051         * math/w_cosh.c: Remove cruft and optimize a bit.
14052         * math/w_coshf.c: Likewise.
14053         * math/w_coshl.c: Likewise.
14054         * math/w_exp2.c: Likewise.
14055         * math/w_exp2f.c: Likewise.
14056         * math/w_exp2l.c: Likewise.
14057         * math/w_hypot.c: Likewise.
14058         * math/w_hypotf.c: Likewise.
14059         * math/w_hypotl.c: Likewise.
14060         * math/w_lgamma.c: Likewise.
14061         * math/w_lgamma_r.c: Likewise.
14062         * math/w_lgammaf.c: Likewise.
14063         * math/w_lgammaf_r.c: Likewise.
14064         * math/w_lgammal.c: Likewise.
14065         * math/w_lgammal_r.c: Likewise.
14066         * math/w_sinh.c: Likewise.
14067         * math/w_sinhf.c: Likewise.
14068         * math/w_sinhl.c: Likewise.
14069         * math/w_tgamma.c: Likewise.
14070         * math/w_tgammaf.c: Likewise.
14071         * math/w_tgammal.c: Likewise.
14072         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14073         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14074         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14075         Minor optimizations.  Pretty printing.  Remove cruft.
14076         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14077         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14078         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14079         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14080         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14081         * sysdeps/i386/fpu/e_asin.S: Likewise.
14082         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14083         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14084         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14085         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14086         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14087         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14088         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14089         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14090         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14091         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14092         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14093         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14094         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14095         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14096         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14097         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14098         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14099         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14100         * sysdeps/i386/fpu/e_log.S: Likewise.
14101         * sysdeps/i386/fpu/e_log10.S: Likewise.
14102         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14103         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14104         * sysdeps/i386/fpu/e_log2.S: Likewise.
14105         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14106         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14107         * sysdeps/i386/fpu/e_logf.S: Likewise.
14108         * sysdeps/i386/fpu/e_logl.S: Likewise.
14109         * sysdeps/i386/fpu/e_pow.S: Likewise.
14110         * sysdeps/i386/fpu/e_powf.S: Likewise.
14111         * sysdeps/i386/fpu/e_powl.S: Likewise.
14112         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14113         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14114         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14115         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14116         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14117         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14118         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14119         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14120         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14121         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14122         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14123         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14124         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14125         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14126         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14127         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14128         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14129         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14130         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14131         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14132         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14133         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14134         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14135         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14136         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14137         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14138         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14139         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14140         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14141         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14142         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14143         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14144         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14145         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14146         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14147         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14148         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14149         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14150         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14151         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14152         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14153         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14154         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14155         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14156         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14157         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14158         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14159         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14160         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14161         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14162         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14163         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14164         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14165         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14166         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14167         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14168         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14169         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14179         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14180         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14181         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14182         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14183         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14184         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14185         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14186         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14187         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14188         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14189         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14190         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14192         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14193         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14194         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14200         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14201         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14202         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14203         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14204         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14205         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14206         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14207         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14208         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14209         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14210         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14211         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14212         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14213         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14214         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14215         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14216         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14217         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14218         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14219         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14220         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14221         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14222         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14223         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14224         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14225         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14226         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14227         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14228         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14229         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14230         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14231         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14232         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14233         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14234         (__isnanf): Likewise.
14235         (__isinf_ns): Likewise.
14236         (__isinf_nsf): Likewise.
14237         (__finite): Likewise.
14238         (__finitef): Likewise.
14239         (__ieee754_sqrt): Define as macro.
14240         (__ieee754_sqrtf): Define as macro.
14241         (__ieee754_sqrtl): Define as macro.
14242         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14243         inlined copy.
14244         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14245         __FINITE_MATH_ONLY__ consistent.
14246         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14247
14248 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14249
14250         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14251         of rawmemchr.
14252
14253         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14254
14255 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14256
14257         * po/ja.po: Update from translation team.
14258
14259 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14260
14261         * locale/programs/locarchive.c (prepare_address_space): New function.
14262         (create_archive, enlarge_archive, open_archive): Use it.
14263
14264         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14265         inside [SHARED], where it is used.
14266
14267         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14268
14269         * nss/getent.c (netgroup_keys): Remove unused variable.
14270         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14271
14272 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14273
14274         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14275         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14276         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14277         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14278         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14279         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14280         * math/Makefile (libm-calls): Add s_isinf_ns.
14281         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14282         * math/multc3.c: Likewise.
14283         * math/s_casin.c: Likewise.
14284         * math/s_casinf.c: Likewise.
14285         * math/s_casinl.c: Likewise.
14286         * math/s_ccos.c: Likewise.
14287         * math/s_ccosf.c: Likewise.
14288         * math/s_ccosl.c: Likewise.
14289         * math/s_ctan.c: Likewise.
14290         * math/s_ctanf.c: Likewise.
14291         * math/s_ctanh.c: Likewise.
14292         * math/s_ctanhf.c: Likewise.
14293         * math/s_ctanhl.c: Likewise.
14294         * math/s_ctanl.c: Likewise.
14295         * math/w_fmod.c: Likewise.
14296         * math/w_fmodf.c: Likewise.
14297         * math/w_fmodl.c: Likewise.
14298         * math/w_remainder.c: Likewise.
14299         * math/w_remainderf.c: Likewise.
14300         * math/w_remainderl.c: Likewise.
14301         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14302         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14303         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14304         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14305         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14306         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14307         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14308         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14309
14310         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14311         of the number.
14312         * stdio-common/printf_fphex.c: Likewise.
14313         * stdio-common/printf_size.c: Likewise.
14314
14315         * math/e_exp10.c: Include math_private.h using <...> not "...".
14316         * math/e_exp10f.c: Likewise.
14317         * math/e_exp10l.c: Likewise.
14318         * math/e_exp2l.c: Likewise.
14319         * math/e_j0l.c: Likewise.
14320         * math/e_j1l.c: Likewise.
14321         * math/e_jnl.c: Likewise.
14322         * math/e_lgammal_r.c: Likewise.
14323         * math/e_rem_pio2l.c: Likewise.
14324         * math/e_scalb.c: Likewise.
14325         * math/e_scalbf.c: Likewise.
14326         * math/e_scalbl.c: Likewise.
14327         * math/k_cosl.c: Likewise.
14328         * math/k_sinl.c: Likewise.
14329         * math/k_tanl.c: Likewise.
14330         * math/s_cacoshf.c: Likewise.
14331         * math/s_catan.c: Likewise.
14332         * math/s_catanf.c: Likewise.
14333         * math/s_catanh.c: Likewise.
14334         * math/s_catanhf.c: Likewise.
14335         * math/s_catanhl.c: Likewise.
14336         * math/s_catanl.c: Likewise.
14337         * math/s_ccosh.c: Likewise.
14338         * math/s_ccoshf.c: Likewise.
14339         * math/s_ccoshl.c: Likewise.
14340         * math/s_cexp.c: Likewise.
14341         * math/s_cexpf.c: Likewise.
14342         * math/s_cexpl.c: Likewise.
14343         * math/s_clog.c: Likewise.
14344         * math/s_clog10.c: Likewise.
14345         * math/s_clog10f.c: Likewise.
14346         * math/s_clog10l.c: Likewise.
14347         * math/s_clogf.c: Likewise.
14348         * math/s_clogl.c: Likewise.
14349         * math/s_csin.c: Likewise.
14350         * math/s_csinf.c: Likewise.
14351         * math/s_csinh.c: Likewise.
14352         * math/s_csinhf.c: Likewise.
14353         * math/s_csinhl.c: Likewise.
14354         * math/s_csinl.c: Likewise.
14355         * math/s_csqrt.c: Likewise.
14356         * math/s_csqrtf.c: Likewise.
14357         * math/s_csqrtl.c: Likewise.
14358         * math/s_ctan.c: Likewise.
14359         * math/s_ctanf.c: Likewise.
14360         * math/s_ctanh.c: Likewise.
14361         * math/s_ctanhf.c: Likewise.
14362         * math/s_ctanhl.c: Likewise.
14363         * math/s_ctanl.c: Likewise.
14364         * math/s_ldexp.c: Likewise.
14365         * math/s_ldexpf.c: Likewise.
14366         * math/s_ldexpl.c: Likewise.
14367         * math/s_significand.c: Likewise.
14368         * math/s_significandf.c: Likewise.
14369         * math/s_significandl.c: Likewise.
14370         * math/w_acos.c: Likewise.
14371         * math/w_acosf.c: Likewise.
14372         * math/w_acosh.c: Likewise.
14373         * math/w_acoshf.c: Likewise.
14374         * math/w_acoshl.c: Likewise.
14375         * math/w_acosl.c: Likewise.
14376         * math/w_asin.c: Likewise.
14377         * math/w_asinf.c: Likewise.
14378         * math/w_asinl.c: Likewise.
14379         * math/w_atan2.c: Likewise.
14380         * math/w_atan2f.c: Likewise.
14381         * math/w_atan2l.c: Likewise.
14382         * math/w_atanh.c: Likewise.
14383         * math/w_atanhf.c: Likewise.
14384         * math/w_atanhl.c: Likewise.
14385         * math/w_cosh.c: Likewise.
14386         * math/w_coshf.c: Likewise.
14387         * math/w_coshl.c: Likewise.
14388         * math/w_dremf.c: Likewise.
14389         * math/w_exp10.c: Likewise.
14390         * math/w_exp10f.c: Likewise.
14391         * math/w_exp10l.c: Likewise.
14392         * math/w_exp2.c: Likewise.
14393         * math/w_exp2f.c: Likewise.
14394         * math/w_fmod.c: Likewise.
14395         * math/w_fmodf.c: Likewise.
14396         * math/w_fmodl.c: Likewise.
14397         * math/w_hypot.c: Likewise.
14398         * math/w_hypotf.c: Likewise.
14399         * math/w_hypotl.c: Likewise.
14400         * math/w_j0.c: Likewise.
14401         * math/w_j0f.c: Likewise.
14402         * math/w_j0l.c: Likewise.
14403         * math/w_j1.c: Likewise.
14404         * math/w_j1f.c: Likewise.
14405         * math/w_j1l.c: Likewise.
14406         * math/w_jn.c: Likewise.
14407         * math/w_jnf.c: Likewise.
14408         * math/w_jnl.c: Likewise.
14409         * math/w_lgamma.c: Likewise.
14410         * math/w_lgamma_r.c: Likewise.
14411         * math/w_lgammaf.c: Likewise.
14412         * math/w_lgammaf_r.c: Likewise.
14413         * math/w_lgammal.c: Likewise.
14414         * math/w_lgammal_r.c: Likewise.
14415         * math/w_log.c: Likewise.
14416         * math/w_log10.c: Likewise.
14417         * math/w_log10f.c: Likewise.
14418         * math/w_log10l.c: Likewise.
14419         * math/w_log2.c: Likewise.
14420         * math/w_log2f.c: Likewise.
14421         * math/w_log2l.c: Likewise.
14422         * math/w_logf.c: Likewise.
14423         * math/w_logl.c: Likewise.
14424         * math/w_pow.c: Likewise.
14425         * math/w_powf.c: Likewise.
14426         * math/w_powl.c: Likewise.
14427         * math/w_remainder.c: Likewise.
14428         * math/w_remainderf.c: Likewise.
14429         * math/w_remainderl.c: Likewise.
14430         * math/w_scalb.c: Likewise.
14431         * math/w_scalbf.c: Likewise.
14432         * math/w_scalbl.c: Likewise.
14433         * math/w_sinh.c: Likewise.
14434         * math/w_sinhf.c: Likewise.
14435         * math/w_sinhl.c: Likewise.
14436         * math/w_sqrt.c: Likewise.
14437         * math/w_sqrtf.c: Likewise.
14438         * math/w_sqrtl.c: Likewise.
14439         * math/w_tgamma.c: Likewise.
14440         * math/w_tgammaf.c: Likewise.
14441         * math/w_tgammal.c: Likewise.
14442
14443         * po/ja.po: Update from translation team.
14444
14445 2011-09-29  Andreas Jaeger  <aj@suse.de>
14446
14447         [BZ #13179]
14448         * sunrpc/netname.c (netname2host): Fix logic.
14449
14450         [BZ #6779]
14451         [BZ #6783]
14452         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14453         correctly.
14454         * math/w_remainder.c (__remainder): Likewise.
14455         * math/w_remainderf.c (__remainderf): Likewise.
14456         * math/libm-test.inc (remainder_test): Add test cases.
14457
14458 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14459
14460         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14461         sdiv_qrnnd.
14462
14463 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14464
14465         * string/test-memcmp.c: Avoid unncessary #defines.
14466         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14467
14468 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14469
14470         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14471         Use new sse2 version for core i3 - i7 as it's faster
14472         than sse42 version.
14473         (bit_Prefer_PMINUB_for_stringop): New.
14474         * sysdeps/x86_64/rawmemchr.S: Update.
14475         Replace with faster SSE2 version.
14476         * sysdeps/x86_64/memrchr.S: New file.
14477         * sysdeps/x86_64/memchr.S: Update.
14478         Replace with faster SSE2 version.
14479
14480 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14481
14482         * elf/dl-load.c (lose): Add cast to avoid warning.
14483
14484 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14485
14486         * po/ca.po: Update from translation team.
14487
14488         * inet/getnetgrent_r.c: Hook up nscd.
14489         * nscd/Makefile (routines): Add nscd_netgroup.
14490         (nscd-modules): Add netgroupcache.
14491         (CFLAGS-netgroupcache.c): Define.
14492         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14493         (cache_search): Add const to second parameter.
14494         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14495         INNETGR.
14496         (dbs): Add netgrdb entry.
14497         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14498         (verify_persistent_db): Handle netgrdb.
14499         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14500         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14501         GETFDNETGR.
14502         (netgroup_response_header): Define.
14503         (innetgroup_response_header): Define.
14504         (datahead): Add netgroup_response_header and innetgroup_response_header
14505         elements.
14506         * nscd/nscd.conf: Add entries for netgroup cache.
14507         * nscd/nscd.h (dbtype): Add netgrdb.
14508         (_PATH_NSCD_NETGROUP_DB): Define.
14509         (netgroup_iov_disabled): Declare.
14510         (xmalloc, xcalloc, xrealloc): Move declarations here.
14511         (cache_search): Adjust prototype.
14512         Add netgroup-related prototypes.
14513         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14514         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14515         (__nscd_innetgr): Declare.
14516         * nscd/selinux.c (perms): Use access_vector_t as element type and
14517         add netgroup-related initializers.
14518         * nscd/netgroupcache.c: New file.
14519         * nscd/nscd_netgroup.c: New file.
14520         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14521         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14522         For four parameters use innetgr.
14523         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14524         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14525         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14526         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14527
14528         * nscd/connections.c (register_traced_file): Don't register file
14529         for disabled databases.
14530
14531 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14532
14533         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14534
14535         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14536         from tree and freeing node.
14537
14538 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14539
14540         * nss/nsswitch.c (__nss_database_lookup): Handle
14541         nss_parse_service_list out of memory case.
14542
14543 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14544
14545         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14546         out of memory case.
14547
14548 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14549
14550         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14551         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14552         pass it down.
14553         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14554         elf_machine_rela, elf_machine_lazy_rel.
14555         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14556         (ELF_DYNAMIC_DO_REL): Likewise.
14557         (ELF_DYNAMIC_DO_RELA): Likewise.
14558         (ELF_DYNAMIC_RELOCATE): Likewise.
14559         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14560         to ELF_DYNAMIC_DO_REL.
14561         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14562         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14563         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14564         elf_machine_rela.
14565         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14566         skip_ifunc, don't call ifunc function if non-zero.
14567         (elf_machine_rela): Likewise.
14568         (elf_machine_lazy_rel): Likewise.
14569         (elf_machine_lazy_rela): Likewise.
14570         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14571         (elf_machine_lazy_rel): Likewise.
14572         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14573         Likewise.
14574         (elf_machine_lazy_rel): Likewise.
14575         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14576         Likewise.
14577         (elf_machine_lazy_rel): Likewise.
14578         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14579         (elf_machine_lazy_rel): Likewise.
14580         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14581         (elf_machine_lazy_rel): Likewise.
14582         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14583         (elf_machine_lazy_rel): Likewise.
14584         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14585         (elf_machine_lazy_rel): Likewise.
14586         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14587         (elf_machine_lazy_rel): Likewise.
14588         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14589         (elf_machine_lazy_rel): Likewise.
14590
14591 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14592
14593         * nss/nss_files/files-init.c (_nss_files_init): Use static
14594         initialization for all the *_traced_file variables.
14595
14596 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14597
14598         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14599
14600 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14601
14602         [BZ #13226]
14603         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14604
14605 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14606
14607         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14608         Reread the line before reparsing it.
14609
14610 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14611
14612         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14613
14614 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14615             Maxim Kuvyrkov  <maxim@codesourcery.com>
14616             Joseph Myers  <joseph@codesourcery.com>
14617
14618         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14619         if needed for __stack_chk_guard.
14620
14621 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14622
14623         * sysdeps/posix/spawni.c (script_execute): Always define it.
14624         It will be optimized away if unused.
14625         (maybe_script_execute): New function.
14626         (__spawni): Call it.
14627
14628         * Makerules: Don't include tls.make.
14629         (config-tls): Always set to thread.
14630         * tls.make.c: File removed.
14631
14632 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14633
14634         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14635         * config.make.in (CPPFLAGS-config): New substituted variable.
14636
14637 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14638
14639         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14640
14641         [BZ #13192]
14642         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14643         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14644
14645 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14646
14647         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14648         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14649         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14650         (CALL_FAIL): Likewise.
14651         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14652         (CALL_FAIL): Macro removed.
14653         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14654
14655 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14656
14657         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14658         for __FINITE_MATH_ONLY__ == 1.
14659
14660 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14661
14662         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14663         __ieee754_sqrt instead of sqrt.
14664         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14665         __ieee754_sqrtf instead of sqrtf.
14666         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14667         __floorf instead of floorf.
14668         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14669         __floorf, __truncf instead of floorf, truncf.
14670
14671 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14672
14673         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14674
14675         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14676         __extern_always_inline.
14677         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14678         32-bit.
14679
14680 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14681
14682         * elf/rtld.c (dl_main): Also relocate in dependency order when
14683         doing symbol dependency testing.
14684
14685 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14686
14687         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14688         Always define `refsym'.
14689
14690 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14691
14692         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14693         (__FD_ELT): Renamed from __FDELT.
14694         * misc/bits/select2.h (__FD_ELT): Likewise.
14695         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14696         __FD_MASK instead of __FDELT, __FDMASK.
14697         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14698         Likewise.
14699         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14700         Likewise.
14701
14702         * elf/Makefile (gen-ldd): Fix pattern.
14703
14704         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14705         (init_tls): Likewise.
14706
14707 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14708
14709         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14710
14711 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14712
14713         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14714         `struct cmsghdr *' instead of `void *'.
14715         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14716         Likewise.
14717
14718 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14719
14720         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14721         if non-absolute.
14722         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14723         ldd_rewrite_script.
14724
14725 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14726
14727         * configure.in: Remove --with-tls option.
14728         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14729         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14730         out in case it is missing.
14731         * sysdeps/ia64/elf/configure.in: Likewise.
14732         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14733         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14734         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14735         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14736         * sysdeps/sh/elf/configure.in: Likewise.
14737         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14738         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14739         * sysdeps/x86_64/elf/configure.in: Likewise.
14740         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14741         * sysdeps/mach/hurd/tls.h: Likewise.
14742
14743         [BZ #13067]
14744         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14745
14746         [BZ #13090]
14747         * configure.in: Fix use of AC_INIT.
14748
14749         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14750
14751 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14752
14753         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14754         __set_errno.
14755         * malloc/hooks.c: Likewise.
14756
14757         [BZ #11929]
14758         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14759         variables statically.
14760         (narenas): Initialize.
14761         (list_lock): Initialize.
14762         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14763         initializtion of main_arena and list_lock.  Small cleanups.
14764         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14765         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14766         Add initializers to main_arena and mp_.
14767         (malloc_state): Remove pagesize member.  Change all users to use
14768         GLRO(dl_pagesize).
14769
14770         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14771         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14772         is always initialized.
14773
14774         * malloc/malloc.c: Removed unused configurations and dead code.
14775         * malloc/arena.c: Likewise.
14776         * malloc/hooks.c: Likewise.
14777         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14778
14779         * include/tls.h: Removed.  USE___THREAD must always be defined.
14780         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14781         * elf/dl-libc.c: Likewise.
14782         * elf/dl-tsd.c: Likewise.
14783         * include/errno.h: Likewise.
14784         * include/netdb.h: Likewise.
14785         * include/resolv.h: Likewise.
14786         * inet/herrno-loc.c: Likewise.
14787         * inet/herrno.c: Likewise.
14788         * malloc/arena.c: Likewise.
14789         * malloc/hooks.c: Likewise.
14790         * malloc/malloc.c: Likewise.
14791         * resolv/res-state.c: Likewise.
14792         * resolv/res_libc.c: Likewise.
14793         * sysdeps/i386/dl-machine.h: Likewise.
14794         * sysdeps/ia64/dl-machine.h: Likewise.
14795         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14796         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14797         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14798         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14799         * sysdeps/sh/dl-machine.h: Likewise.
14800         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14801         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14802         * sysdeps/unix/i386/sysdep.S: Likewise.
14803         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14804         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14805         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14806         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14807         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14808         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14809         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14810         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14811         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14812         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14813         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14814         * sysdeps/x86_64/dl-machine.h: Likewise.
14815         * tls.make.c: Likewise.
14816
14817         * configure.in: Remove --with-__thread option.  Make tests for
14818         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14819         tls_model attribute fail if no support is available.  Remove
14820         USE_IN_LIBIO.
14821         * Makeconfig: Adjust for dropped configure option.  All features are
14822         now mandatory.
14823         * Makerules: Likewise.
14824         * Versions.def: Likewise.
14825         * argp/argp-fmtstream.c: Likewise.
14826         * argp/argp-fmtstream.h: Likewise.
14827         * argp/argp-help.c: Likewise.
14828         * assert/assert.c: Likewise.
14829         * config.h.in: Likewise.
14830         * config.make.in: Likewise.
14831         * configure: Likewise.
14832         * configure.in: Likewise.
14833         * csu/Versions: Likewise.
14834         * csu/init.c: Likewise.
14835         * elf/tst-audit2.c: Likewise.
14836         * elf/tst-tls10.c: Likewise.
14837         * elf/tst-tls10.h: Likewise.
14838         * elf/tst-tls11.c: Likewise.
14839         * elf/tst-tls12.c: Likewise.
14840         * elf/tst-tls14.c: Likewise.
14841         * elf/tst-tlsmod11.c: Likewise.
14842         * elf/tst-tlsmod12.c: Likewise.
14843         * elf/tst-tlsmod13.c: Likewise.
14844         * elf/tst-tlsmod13a.c: Likewise.
14845         * elf/tst-tlsmod14a.c: Likewise.
14846         * elf/tst-tlsmod15b.c: Likewise.
14847         * elf/tst-tlsmod16a.c: Likewise.
14848         * elf/tst-tlsmod16b.c: Likewise.
14849         * elf/tst-tlsmod7.c: Likewise.
14850         * elf/tst-tlsmod8.c: Likewise.
14851         * elf/tst-tlsmod9.c: Likewise.
14852         * gmon/gmon.c: Likewise.
14853         * grp/fgetgrent_r.c: Likewise.
14854         * grp/putgrent.c: Likewise.
14855         * hurd/fopenport.c: Likewise.
14856         * include/libc-symbols.h: Likewise.
14857         * include/tls.h: Likewise.
14858         * intl/gettextP.h: Likewise.
14859         * intl/loadinfo.h: Likewise.
14860         * locale/global-locale.c: Likewise.
14861         * locale/localeinfo.h: Likewise.
14862         * mach/devstream.c: Likewise.
14863         * malloc/arena.c: Likewise.
14864         * malloc/set-freeres.c: Likewise.
14865         * misc/err.c: Likewise.
14866         * misc/getttyent.c: Likewise.
14867         * misc/mntent_r.c: Likewise.
14868         * posix/getopt.c: Likewise.
14869         * posix/wordexp.c: Likewise.
14870         * pwd/fgetpwent_r.c: Likewise.
14871         * resolv/Versions: Likewise.
14872         * resolv/res_hconf.c: Likewise.
14873         * shadow/fgetspent_r.c: Likewise.
14874         * shadow/putspent.c: Likewise.
14875         * stdio-common/printf_fphex.c: Likewise.
14876         * stdio-common/tmpfile.c: Likewise.
14877         * stdlib/abort.c: Likewise.
14878         * stdlib/fmtmsg.c: Likewise.
14879         * sunrpc/auth_unix.c: Likewise.
14880         * sunrpc/clnt_perr.c: Likewise.
14881         * sunrpc/clnt_tcp.c: Likewise.
14882         * sunrpc/clnt_udp.c: Likewise.
14883         * sunrpc/clnt_unix.c: Likewise.
14884         * sunrpc/openchild.c: Likewise.
14885         * sunrpc/svc_simple.c: Likewise.
14886         * sunrpc/svc_tcp.c: Likewise.
14887         * sunrpc/svc_udp.c: Likewise.
14888         * sunrpc/svc_unix.c: Likewise.
14889         * sunrpc/xdr.c: Likewise.
14890         * sunrpc/xdr_array.c: Likewise.
14891         * sunrpc/xdr_rec.c: Likewise.
14892         * sunrpc/xdr_ref.c: Likewise.
14893         * sunrpc/xdr_stdio.c: Likewise.
14894
14895 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14896
14897         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14898
14899 2011-07-03  Andreas Jaeger  <aj@suse.de>
14900
14901         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14902         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14903         regenerate with gen-libm-tests.pl.
14904
14905 2010-05-12  Petr Baudis  <pasky@suse.cz>
14906
14907         [BZ #11589]
14908         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14909         around j0() zero points by switching to j1().
14910         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14911         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14912         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14913         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14914
14915 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14916
14917         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14918         instead of 0.
14919         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14920         instead of 0.                              .
14921         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14922         Patch in part by Pavel Roskin <proski@gnu.org>.
14923
14924         [BZ #13138]
14925         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14926         realloc.
14927         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14928         Free memory block if necessary.
14929
14930         [BZ #12847]
14931         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14932         be NULL.  Don't lock in this case.
14933
14934 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14935
14936         * elf/elf.h (ELFOSABI_GNU): New macro.
14937         (ELFOSABI_LINUX): Define to that.
14938
14939 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14940
14941         * string/strncat.c (strncat): Undef the symbol in case it has been
14942         defined in bits/string.h.
14943
14944 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14945
14946         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14947
14948         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14949         link map.
14950
14951 2011-08-17  Andreas Jaeger  <aj@suse.de>
14952
14953         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14954
14955 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14956             Ian Lance Taylor  <iant@google.com>
14957
14958         * math/libm-test.inc (lround_test): New testcase.
14959         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14960
14961 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14962
14963         * Makefile: Remove support for automatic cvs check-ins.
14964         * Makerules: Likewise.
14965         * config.make.in: Likewise.
14966         * configure.in: Likewise.
14967         * intl/Makefile: Likewise.
14968         * locale/Makefile: Likewise.
14969         * po/Makefile: Likewise.
14970         * posix/Makefile: Likewise.
14971         * sysdeps/gnu/Makefile: Likewise.
14972         * sysdeps/mach/hurd/Makefile: Likewise.
14973         * sysdeps/sparc/sparc32/Makefile: Likewise.
14974
14975         [BZ #13118]
14976         * posix/Makefile (bug-regex32-ENV): Define.
14977         Patch by John Stanley <jpsinthemix@verizon.net>.
14978
14979         * misc/Makefile (headers): Add bits/select2.h.
14980         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14981         * misc/bits/select2.h: New file.
14982         * include/bits/select2.h: New file.
14983         * debug/Makefile (routines): Add fdelt_chk.
14984         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14985         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14986         FD_ISSET.
14987         * debug/fdelt_chk.c: New file.
14988
14989         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14990         * wcsmbs/test-wmemcmp.c: Likewise.
14991         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14992         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14993
14994 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14995
14996         * string/Makefile (strop-tests): Add memcmp.
14997         * string/test-wmemcmp.c: New file.
14998         * string/test-memcmp.c: Add wmemcmp support.
14999
15000 2011-09-08  Roland McGrath  <roland@hack.frob.com>
15001
15002         [BZ #13153]
15003         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15004         2011-07-19 change.
15005
15006         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15007         garbage value in a __mach_port_mod_refs call in the cases of the
15008         task-self and thread-self ports.
15009
15010 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15011
15012         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15013
15014 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15015
15016         * elf/dl-load.c (lose): Check for non-null L.
15017
15018 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15019
15020         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15021
15022         * elf/dl-libc.c (dlerror_run): Pass back error code from
15023         dl_catch_error.
15024
15025         [BZ #13123]
15026         * elf/dl-load.c (lose): Free l_origin if it is valid.
15027
15028         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15029         names.
15030         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15031         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15032         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15033         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15034         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15035         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15036
15037 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15038
15039         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15040         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15041         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15042         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15043         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15044         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15045         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15046         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15047         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15048         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15049
15050 2011-08-15  Alan Modra  <amodra@gmail.com>
15051
15052         [BZ #13092]
15053         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15054         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15055         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15056         ppc_mcount to static-only-routines.
15057         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15058         __mcount_internal.
15059         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15060         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15061
15062 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15063
15064         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15065         for finite and infinity parameters.
15066
15067 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15068
15069         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15070         and add nop instructions for throughput optimization.
15071         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15072
15073 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15074
15075         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15076         aligned copy for power7 with vector-scalar instructions.
15077         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15078
15079 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15080
15081         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15082         AVX check.
15083
15084 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15085
15086         [BZ #13144]
15087         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15088         last change.
15089
15090 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15091
15092         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15093         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15094         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15095         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15096         clock_gettime.
15097
15098 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15099
15100         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15101         Forgot to demangle the pointer.
15102
15103         * sysdeps/i386/sysdep.h: Define atom_text_section.
15104         * sysdeps/x86_64/sysdep.h: Likewise.
15105         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15106         section with atom_text_section.
15107         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15108         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15109         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15110         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15111         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15112
15113         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15114         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15115         already be defined.  Change to take two parameters and don't assign
15116         result to variable.  Adjust all users.
15117         Define INTERNAL_GETTIME if not already defined.
15118         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15119         call.
15120         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15121         HAVE_CLOCK_GETTIME_VSYSCALL.
15122         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15123
15124         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15125         gettimeofday vsyscall, just use time.
15126
15127 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15128
15129         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15130         <errno.h>.
15131
15132 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15133
15134         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15135         syscall on x86-64.
15136         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15137         syscall.
15138         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15139         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15140         syscall if possible.
15141
15142 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15143
15144         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15145         e_ident.  Don't pass to find_mapsXX.
15146         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15147
15148 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15149
15150         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15151         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15152         * sysdeps/x86_64/multiarch/strchr.S: Update.
15153         Check bit_slow_BSF bit.
15154         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15155         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15156         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15157
15158 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15159
15160         [BZ #13134]
15161         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15162         before glibc 2.15.
15163         (tryshell): Define.
15164         (__spawni): Change last parameter to be flag.  Test
15165         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15166         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15167         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15168         * posix/spawni.c: Likewise.
15169         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15170         * posix/spawnp.c: Likewise.  Change normal version to use
15171         SPAWN_XFLAGS_USE_PATH.
15172         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15173         SPAWN_XFLAGS_TRY_SHELL.
15174
15175         [BZ #13150]
15176         * posix/glob.h: Remove gcc 1.x support.
15177
15178         [BZ #13068]
15179         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15180
15181 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15182
15183         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15184         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15185         strrchr-sse2-bsf
15186         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15187         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15188         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15189         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15190         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15191         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15192
15193 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15194
15195         * sysdeps/x86_64/wcscmp.S: New file.
15196
15197         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15198         wcscmp-c wcscmp-sse2
15199         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15200         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15201         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15202         * wcsmbs/wcscmp.c: Allow renaming.
15203
15204 2011-09-05  David S. Miller  <davem@davemloft.net>
15205
15206         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15207         stack slot, rather than the struct return pointer slot.
15208         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15209         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15210         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15211         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15212
15213 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15214
15215         * po/ja.po: Update from translation team.
15216
15217         [BZ #13144]
15218         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15219         kernel in 64-bit binaries.
15220
15221 2011-09-01  David S. Miller  <davem@davemloft.net>
15222
15223         * elf/elf.h (HWCAP_SPARC_*): Move to..
15224         * sysdeps/sparc/sysdep.h: this new file and add new values.
15225         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15226         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15227         _DL_HWCAP_COUNT to 24.
15228         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15229         entries.
15230         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15231         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15232         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15233         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15234         instead of magic constants.
15235         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15236
15237 2011-08-31  David S. Miller  <davem@davemloft.net>
15238
15239         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15240         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15241         Reimplement to do errno handling inline.
15242         (SYSCALL_ERROR_HANDLER): New macro.
15243         (__SYSCALL_STRING): Do not do errno handling in asm.
15244         (__CLONE_SYSCALL_STRING): Delete.
15245         (__INTERNAL_SYSCALL_STRING): Delete.
15246         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15247         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15248         (PSEUDO): Reimplement to do errno handling inline.
15249         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15250         (SYSCALL_ERROR_HANDLER): New macro.
15251         (__SYSCALL_STRING): Do not do errno handling in asm.
15252         (__CLONE_SYSCALL_STRING): Delete.
15253         (__INTERNAL_SYSCALL_STRING): Delete.
15254         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15255         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15256         i386.
15257         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15258         (inline_syscall*): Add 'err' argument.
15259         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15260         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15261         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15262         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15263
15264         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15265         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15266
15267 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15268
15269         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15270
15271 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15272
15273         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15274         directive.
15275
15276 2011-08-24  David S. Miller  <davem@davemloft.net>
15277
15278         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15279
15280 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15281
15282         * elf/Makefile: Add rules to build and run unload8 test.
15283         * elf/unload8.c: New file.
15284         * elf/unload8mod1.c: New file.
15285         * elf/unload8mod1x.c: New file.
15286         * elf/unload8mod2.c: New file.
15287         * elf/unload8mod3.c: New file.
15288
15289         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15290         it wasn't used.
15291
15292 2011-08-23  David S. Miller  <davem@davemloft.net>
15293
15294         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15295         subtract stack bias.
15296         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15297         %sp not %fp in calculations.
15298         (_JMPBUF_UNWINDS_ADJ): Likewise.
15299
15300         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15301         (aio_suspend): Call it to force an exception region around the
15302         AIO_MISC_WAIT() invocation.
15303
15304 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15305
15306         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15307         backslash.
15308
15309 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15310
15311         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15312         protection macro.
15313         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15314         and <dl-machine.h>.
15315         (Elf64_FuncDesc): Remove.
15316
15317 2011-08-22  David S. Miller  <davem@davemloft.net>
15318
15319         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15320         sigaltstack check, add missing cfi directives.
15321         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15322         missing cfi directives, and sigaltstack handling.
15323
15324 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15325
15326         [BZ #11724]
15327         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15328         object is seen twice.
15329         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15330
15331         * elf/Makefile (distribute): Add tst-initorder2.c.
15332         (tests): Add tst-initorder2.
15333         (modules-names): Add tst-initorder2a tst-initorder2b
15334         tst-initorder2c tst-initorder2d.  Add rules to build them.
15335         ($(objpfx)tst-initorder2.out): New rule.
15336         * elf/tst-initorder2.c: New file.
15337         * elf/tst-initorder2.exp: New file.
15338
15339 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15340
15341         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15342
15343         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15344         dependencies back to end of function.
15345
15346         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15347         $(elfobjdir)/ld.so.
15348
15349 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15350
15351         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15352         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15353         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15354         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15355         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15356         of __vdso_gettimeofday.
15357         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15358         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15359         attribute_hidden.
15360         (_libc_vdso_platform_setup): Remove initialization of
15361         __vdso_gettimeofday and __vdso_time.
15362
15363 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15364
15365         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15366         and fgetc_unlocked.
15367         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15368         getc_unlocked.
15369
15370         * elf/dl-open.c (add_to_global): Report additions to the global scope
15371         for LD_DEBUG=scopes.
15372         (dl_open_worker): Also print scope of newly loaded dependencies.
15373         (_dl_show_scope): Indicate if there is no scope.
15374
15375         [BZ #13114]
15376         * stdio-common/Makefile (tests): Add bug24.
15377         * stdio-common/bug24.c: New file.
15378
15379 2011-08-19  Andreas Jaeger  <aj@suse.de>
15380
15381         [BZ #13114]
15382         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15383         non-existant file when using close-on-exec mode.
15384
15385 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15386
15387         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15388         the very first instruction.
15389
15390         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15391         the CFI state in the end.
15392         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15393         inclusion of dl-trampoline.h.
15394         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15395
15396 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15397
15398         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15399         expectations for long double.
15400
15401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15402         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15403
15404 2011-08-14  David S. Miller  <davem@davemloft.net>
15405
15406         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15407         artificual limit depends upon the system page size.
15408
15409 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15410
15411         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15412         * resolv/Makefile: Define CFLAGS-libresolv.
15413
15414 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15415
15416         * nss/makedb.c (compute_tables): Make variables used in nested
15417         function static.
15418
15419 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15420
15421         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15422         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15423         if buffer was too small.
15424
15425         * elf/pldd.c (main): Attach to all threads in the process.
15426         Rewrite /proc handling to use *at functions.
15427
15428 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15429
15430         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15431         specifies first scope to show.
15432         (dl_open_worker): Update callers.  Move printing scope of new
15433         object to before the relocation.
15434         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15435         * sysdeps/generic/ldsodefs.h: Update declaration.
15436
15437         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15438         string for the scope number.
15439
15440 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15441
15442         * nscd/servicescache.c (cache_addserv): Make sure written is always
15443         initialized.
15444
15445 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15446
15447         * sysdeps/i386/i486/bits/atomic.h
15448         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15449         statement expression, so as to suppress "set but not used" warning.
15450         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15451
15452         * string/strncat.c (STRNCAT): Use prototype definition.
15453
15454         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15455         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15456         -Iprograms here.
15457         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15458         (localedef-modules): Add localedef.
15459         (locale-modules): Add locale.
15460
15461         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15462         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15463         to avoid a warning.
15464
15465 2011-08-14  David S. Miller  <davem@davemloft.net>
15466
15467         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15468         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15469
15470 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15471
15472         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15473         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15474         * elf/rtld.c (dl_main): Set l_name of vDSO.
15475         Call _dl_show_scope when DL_DEBUG_SCOPES.
15476         (process_dl_debug): Recognize scopes flag and also set it for all.
15477         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15478         Declare _dl_show_scope.
15479
15480         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15481         (do_dlopen): Pass caller_dlopen to dl_open.
15482         (__libc_dlopen_mode): Initialize caller_dlopen.
15483
15484         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15485         of libc.  Make tolower call locale-independent.  Optimize a bit by
15486         using isdigit instead of isalnum.
15487         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15488
15489 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15490
15491         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15492         was a dependency or dynamically loaded.
15493
15494 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15495
15496         * intl/l10nflist.c: Allow architecture-specific pop function.
15497         * sysdeps/x86_64/l10nflist.c: New file.
15498
15499         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15500         classification.
15501
15502 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15503
15504         * include/dirent.h: Add libc_hidden_proto for scandirat and
15505         scandirat64.  Don't declare __scandirat64.
15506         * dirent/scandirat.c: Add libc_hidden_def.
15507         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15508         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15509
15510 2011-08-10  David S. Miller  <davem@davemloft.net>
15511
15512         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15513         enum.
15514         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15515         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15516         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15517
15518 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15519
15520         * Versions.def [libc]: Add GLIBC_2.15.
15521         * dirent/Makefile (routines): Add scandirat and scandirat64.
15522         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15523         GLIBC_2.15.
15524         * dirent/dirent.h: Declare scandirat and scandirat64.
15525         * dirent/scandirat.c: New file.
15526         * dirent/scandirat64.c: New file.
15527         * sysdeps/wordsize-64/scandirat.c: New file.
15528         * sysdeps/wordsize-64/scandirat64.c: New file.
15529         * dirent/opendir.c: Define opendirat.
15530         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15531         using scandirat.
15532         * dirent/scandir64.c: Adjust for scandir.c change.
15533         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15534         __scandirat64, and __scandir_cancel_handler.
15535         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15536         additional parameter and use openat instead of open (outside of ld.so).
15537         Add new __opendir as wrapper around __opendirat.
15538         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15539         here without requiring old scandirat implementation.
15540
15541 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15542
15543         * dirent/scandir.c (cancel_handler): Renamed to
15544         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15545         defined.  Adjust users.
15546         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15547         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15548
15549 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15550
15551         * string/test-string.h (IMPL): Use __STRING to expand name and then
15552         stringify it.
15553
15554         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15555         of cleanups.
15556
15557 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15558
15559         * string/Makefile: Update.
15560         (strop-tests): Append strncat.
15561         * string/test-wcscmp.c: New file.
15562         New comprehensive test for wcscmp.
15563         * string/test-strcmp.c: Update.
15564         (WIDE): New define.
15565
15566 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15567
15568         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15569         line.
15570
15571 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15572
15573         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15574         encoding to ACE if AI_IDN.
15575
15576 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15577
15578         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15579         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15580
15581 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15582
15583         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15584         Fix overflow bug in strncat.
15585         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15586
15587         * string/test-strncat.c: Update.
15588         Add new tests for checking overflow bugs.
15589
15590 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15591
15592         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15593         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15594         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15595         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15596         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15597         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15598         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15599         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15600         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15601
15602         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15603         (USE_AS_STRCAT): Define.
15604         Add strcat and strncat support.
15605         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15606
15607 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15608
15609         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15610         __n bigger than INT_MAX+1.
15611         (__strncmp_g): Likewise.
15612
15613 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15614
15615         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15616         * libio/stido.h: Likewise.
15617
15618         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15619         (AF_NFC): Define.
15620         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15621         (AF_NFC): Define.
15622
15623         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15624         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15625         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15626         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15627         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15628
15629         [BZ #13021]
15630         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15631         installed.
15632
15633         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15634         typo.
15635         (_dl_x86_64_save_sse): Likewise.
15636
15637 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15638
15639         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15640         OSXSAVE.
15641         (_dl_x86_64_save_sse): Likewise.
15642
15643         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15644
15645         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15646
15647 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15648
15649         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15650         change.
15651         (_dl_x86_64_save_sse): Use correct AVX check.
15652
15653 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15654
15655         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15656         bug in strncpy/strncat.
15657         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15658
15659 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15660
15661         * string/tester.c (test_strcat): Add tests for different alignments
15662         of source and destination.
15663         (test_strncat): Likewise.
15664
15665 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15666
15667         [BZ #12852]
15668         * posix/glob.c (glob): Check passed in values before using them in
15669         expressions to avoid some overflows.
15670         (glob_in_dir): Likewise.
15671
15672         [BZ #13007]
15673         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15674         check for AVX enablement so that we don't crash with old kernels and
15675         new hardware.
15676         * elf/tst-audit4.c: Add same checks here.
15677         * elf/tst-audit6.c: Likewise.
15678
15679         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15680
15681 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15682
15683         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15684
15685 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15686
15687         * po/cs.po: Update from translation team.
15688         * po/bg.po: Likewise.
15689
15690 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15691
15692         * misc/sys/cdefs.h: Add support for const attribute.
15693         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15694         to gnu_dev_{major,minor,makedev} functions.
15695
15696 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15697
15698         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15699
15700 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15701
15702         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15703         strlen results.
15704
15705 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15706
15707         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15708         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15709         register in order to avoid conflicts with the soft frame pointer
15710         being held in r11 when necessary.
15711         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15712         (INTERNAL_VSYSCALL_NCS): Likewise.
15713
15714 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15715
15716         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15717         * elf/dl-fini.c (_dl_fini): Adjust caller.
15718         * elf/dl-close.c (_dl_close_worker): Likewise.
15719         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15720
15721 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15722
15723         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15724         "aux_cache->nlibs < 0".
15725
15726         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15727         in the reload-count case.
15728
15729 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15730
15731         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15732         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15733         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15734         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15735         * sysdeps/x86_64/multiarch/strcat.S: New file.
15736         * sysdeps/x86_64/multiarch/strncat.S: New file.
15737         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15738         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15739         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15740         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15741         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15742         (USE_AS_STRCAT): Define.
15743         Add strcat and strncat support.
15744         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15745         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15746         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15747         * string/strncat.c: Update.
15748         (USE_AS_STRNCAT): Define.
15749         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15750         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15751         and i7.
15752         * sysdeps/x86_64/multiarch/init-arch.h
15753         (bit_Prefer_PMINUB_for_stringop): New.
15754         (index_Prefer_PMINUB_for_stringop): Likewise.
15755         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15756         bit_Prefer_PMINUB_for_stringop.
15757
15758 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15759
15760         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15761         buffer64.
15762         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15763         of casting of buffer.
15764         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15765         buffer32 and buffer64.
15766         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15767         writes instead of casting of buffer.
15768         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15769         buffer32.
15770         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15771         casting of buffer.
15772
15773 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15774
15775         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15776
15777 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15778
15779         * nscd/nscd.c (termination_handler): Don't do anything for a database
15780         if it has not yet been initialized.
15781
15782 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15783
15784         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15785
15786 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15787
15788         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15789
15790 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15791
15792         * po/nl.po: Update from translation team.
15793         * po/sv.po: Likewise.
15794
15795 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15796
15797         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15798         now disallowed by GCC.
15799
15800         * configure.in (use-default-link): Default to yes if a test -shared
15801         link meets our qualifications.
15802         * configure: Regenerated.
15803
15804         * config.make.in (output-format): New variable.
15805         * configure.in: Check for ld --print-output-format support.
15806         * configure: Regenerated.
15807         * Makerules ($(common-objpfx)format.lds)
15808         [$(output-format) != unknown]: Just use $(output-format),
15809         instead of the linker-script munging.
15810
15811 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15812
15813         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15814         of $(common-objpfx)shlib.lds.
15815         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15816
15817         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15818         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15819
15820         * configure.in (-z relro check): Adjust test code to add a large
15821         writable data section after it.
15822         * configure: Regenerated.
15823
15824 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15825
15826         * configure.in (-z relro check): Fix test code to make the variable
15827         truly const.
15828         * configure: Regenerated.
15829
15830 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15831
15832         * nscd/nscd.h (struct traced_file): Define.
15833         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15834         elements.  Add traced_files.
15835         (inotify_fd): Declare.
15836         (register_traced_file): Declare.
15837         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15838         (inotify_fd): Export.
15839         (resolv_conf_descr): Remove.
15840         (nscd_init): Move inotify descriptor creation to main.
15841         Don't register files for notification here.
15842         (register_traced_file): New function.
15843         (invalidate_cache): Don't use reset_res to determine whether to call
15844         res_init, go through the list of registered files.
15845         (main_loop_poll): The inotify descriptors are now stored in the
15846         structures for the traced files.
15847         (main_loop_epoll): Likewise
15848         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15849         to __nss_disable_nscd.
15850         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15851         for a database anymore.  Check the records for all the registered
15852         files instead.
15853         * nss/Makefile (libnss_files-routines): Add files-init.
15854         (libnss_db-routines): Add db-init.
15855         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15856         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15857         * nss/nss_db/db-init.c: New file.
15858         * nss/nss_files/files-init.c: New file.
15859         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15860         __nss_lookup_function.
15861         (__nss_lookup_function): Call nss_load_library.
15862         (nss_load_all_libraries): New function.
15863         (__nss_disable_nscd): Take parameter with callback function for files
15864         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15865         used for the cached services.
15866         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15867         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15868         options for features to all the files in nscd.
15869
15870         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15871
15872 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15873
15874         * csu/elf-init.c (__libc_csu_init): Comment typo.
15875
15876 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15877
15878         * po/pl.po: Update from translation team.
15879         * po/ja.po: Likewise.
15880         * po/ru.po: Likewise.
15881         * po/ko.po: Likewise.
15882         * po/fr.po: Likewise.
15883
15884 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15885
15886         * configure.in (.ctors/.dtors header and trailer check):
15887         Use an empirical test on a built program.
15888         * configure: Regenerated.
15889
15890         * configure.in (-z relro check): Use an empirical test on a built DSO.
15891         Detect, but do not require, on ia64.
15892         * configure: Regenerated.
15893
15894         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15895         Update tests that use readelf to use $READELF instead.
15896         * configure: Regenerated.
15897
15898 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15899
15900         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15901         if the result is not used.
15902
15903 2011-07-05  Andreas Jaeger  <aj@suse.de>
15904
15905         [BZ#9696]
15906         * stdlib/tst-strtod.c: Add testcase.
15907
15908 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15909
15910         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15911         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15912         The latter has a higher limit.  Take additional parameter to pass to
15913         the new function.
15914         (__pathconf): Pass file to __statfs_link_max.
15915         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15916         __statfs_link_max.
15917         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15918         __statfs_link_max.
15919
15920         [BZ #12868]
15921         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15922         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15923         Handle Lustre.
15924         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15925         (__statfs_filesize_max): Likewise.
15926         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15927
15928 2011-07-05  Andreas Jaeger  <aj@suse.de>
15929
15930         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15931
15932 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15933
15934         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15935         `status' variable.
15936         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15937         Likewise.
15938
15939 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15940
15941         * Makefile (strop-tests): Add strncat.
15942         * string/test-strncat.c: New file.
15943
15944 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15945
15946         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15947
15948 2011-06-21  Andreas Jaeger  <aj@suse.de>
15949
15950         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15951         Copy rule from iconvdata/Makefile.
15952
15953 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15954
15955         [BZ #12922]
15956         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15957         but no long options are defined, just return 'W'.
15958
15959 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15960
15961         [BZ #9696]
15962         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15963
15964 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15965
15966         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15967         netgroups to read.
15968         (innetgr): Likewise.
15969
15970 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15971
15972         * config.make.in (install_root): Default to $(DESTDIR).
15973
15974 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15975
15976         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15977
15978 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15979
15980         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15981
15982         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15983         containing directory rather than embedding absolute directory names.
15984
15985         * scripts/check-local-headers.sh: Rewritten using awk.
15986         Match by word, not by line.  Print error messages for matches.
15987         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15988
15989         * Makerules [shlib-lds-flags empty]:
15990         ($(common-objpfx)libc_pic.opts): New target.
15991         ($(common-objpfx)libc_pic.os.clean): New target.
15992         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15993
15994         * config.make.in (OBJCOPY): New variable.
15995         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15996         * configure: Regenerated.
15997
15998         * config.make.in (use-default-link): New variable.
15999         * configure.in (use_default_link): Grok --with-default-link to set it.
16000         * configure: Regenerated.
16001         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
16002         (shlib-lds, shlib-lds-flags): Define to empty.
16003
16004         * Makerules (shlib-lds): New variable.
16005         (shlib-lds-flags): New variable.
16006         (build-shlib, build-moduile, build-module-asneeded): Use it.
16007         ($(common-objpfx)libc.so): Use $(shlib-lds).
16008         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16009         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16010
16011         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16012         DT_FLAGS/DT_FLAGS_1 with zero flags.
16013
16014         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16015         linker script munging.
16016
16017 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16018
16019         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16020         as 128-bit value.
16021         * crypt/sha512.c (sha512_process_block): Perform total addition using
16022         128-bit if possible.
16023         (__sha512_finish_ctx): Likewise.
16024         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16025         as 64-bit value.
16026         * crypt/sha256.c (SWAP64): Define.
16027         (sha256_process_block): Perform total addition using 64-bit if
16028         possible.
16029         (__sha256_finish_ctx): Likewise.
16030
16031 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16032
16033         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16034         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16035         * nscd/hstcache.c (cache_addhst): Likewise.
16036         * nscd/grpcache.c (cache_addgr): Likewise.
16037         * nscd/aicache.c (addhstaiX): Likewise
16038         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16039
16040 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16041
16042         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16043         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16044         * nscd/hstcache.c (cache_addhst): Likewise.
16045         * nscd/grpcache.c (cache_addgr): Likewise.
16046         * nscd/aicache.c (addhstaiX): Likewise
16047
16048 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16049
16050         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16051         domain only when needed.
16052
16053 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16054
16055         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16056         is always restored.
16057
16058 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16059
16060         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16061         are re-adding the entry.
16062         * nscd/servicescache.c (cache_addserv): Likewise.
16063
16064 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16065
16066         * sysdeps/generic/dl-irel.h: fix protection against multiple
16067         inclusions.
16068         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16069
16070 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16071
16072         [BZ #12935]
16073         * malloc/memusage.sh: Fix quoting in message.
16074         * debug/xtrace.sh: Likewise.
16075
16076         * configure.in: Remove support for --experimental-malloc option, make
16077         it the default.
16078         * config.make.in: Likewise.
16079         * malloc/Makefile: Likewise.
16080
16081 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16082
16083         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16084         two-byte characters.
16085
16086 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16087
16088         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16089         AC_CACHE_CHECK invocation.
16090         * configure: Regenerated.
16091
16092         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16093
16094 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16095
16096         [BZ #12350]
16097         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16098         bit from old_res_options.
16099
16100         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16101
16102         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16103         value type for setfct.
16104
16105 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16106
16107         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16108         __gettimeofday instead of gettimeofday.
16109
16110 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16111
16112         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16113
16114 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16115
16116         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16117
16118         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16119         info.
16120
16121 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16122
16123         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16124         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16125         strcpy-sse2-unaligned strncpy-sse2-unaligned
16126         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16127         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16128         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16129         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16130         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16131         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16132         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16133         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16134         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16135         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16136         (STRCPY): Support SSE2 and SSSE3 versions.
16137
16138 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16139
16140         [BZ #12874]
16141         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16142         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16143         kernels which artificially limit size of requests.
16144
16145 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16146
16147         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16148         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16149         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16150         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16151         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16152         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16153         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16154         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16155         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16156         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16157         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16158         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16159         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16160         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16161         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16162         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16163         Enable unaligned load optimization for Intel Core i3, i5 and i7
16164         processors.
16165         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16166         Define.
16167         (index_Fast_Unaligned_Load): Define.
16168         (HAS_FAST_UNALIGNED_LOAD): Define.
16169
16170 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16171
16172         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16173
16174 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16175
16176         [BZ #12907]
16177         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16178         until it is clear that the information is realy needed.
16179         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16180
16181 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16182
16183         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16184
16185 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16186
16187         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16188         /sys/devices/system/cpu/online if it is usable.
16189
16190         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16191         reading the information from the /proc filesystem to once a second.
16192
16193 2011-06-21  Andreas Jaeger  <aj@suse.de>
16194
16195         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16196         NULL after inclusion of kernel headers.
16197
16198 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16199
16200         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16201         calls to internal_setent.
16202
16203         [BZ #12885]
16204         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16205         addresses using gethostbyname4_r ignore IPv4 addresses.
16206
16207         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16208         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16209
16210         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16211
16212 2011-06-20  David S. Miller  <davem@davemloft.net>
16213
16214         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16215         inclusions.
16216         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16217
16218         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16219         (elf_irel): Use it.
16220         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16221         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16222         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16223         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16224         * sysdeps/x86_64/dl-irel.h: Likewise.
16225
16226         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16227         * elf/dl-sym.c: Likewise.
16228
16229 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16230
16231         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16232         need to dereference resplen2.
16233
16234 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16235
16236         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16237
16238 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16239
16240         * Makeconfig: Define vardbdir and inst_vardbdir.
16241         * nss/Makefile: Add rules to install db-Makefile.
16242
16243         * nss/nss_db/db-XXX.c: Cleanup.
16244
16245         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16246         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16247         GLIBC_PRIVATE.
16248         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16249         * nss/makedb.c: Implement -g option to specify that value strings
16250         are generated and should not be added to table iterated over for
16251         get*ent calls.
16252         * nss/nss_db/db-initgroups.c: New file.
16253
16254         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16255         interface.
16256
16257         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16258         (internal_getgrouplist): Adjust to name change.
16259         Update use_initgroups_entry if this is not the first call.
16260         * nss/databases.def: Add initgroups entry.
16261
16262         * nss/makedb.c (compute_tables): Check result of multiple hash table
16263         sizes to minimize maximum chain length.
16264
16265 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16266
16267         * Versions.def: Add entry for libnss_db.
16268         * shlib-versions: Likewise.
16269         * nss/Makefile: Add rules to build libnss_db.
16270         * nss/Versions: Add libnss_db information.  Organize libnss_files
16271         entries better.
16272         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16273         makedb progra.  Some minor improvements to generate smaller files.
16274         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16275         here from...
16276         * nss/makedb.c: ...here.
16277         Improve database format to be smaller and require less memory at
16278         runtime.
16279         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16280         db anymore.
16281         * nss/nss_db/db-netgrp.c: Likewise.
16282         * nss/nss_db/db-open.c: Likewise.
16283         * nss/nss_files/flies-XXX.x: Adjust comments.
16284         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16285         * nss/nss_files/files-grp.c: Likewise.
16286         * nss/nss_files/files-hosts.c: Likewise.
16287         * nss/nss_files/files-network.c: Likewise.
16288         * nss/nss_files/files-proto.c: Likewise.
16289         * nss/nss_files/files-pwd.c: Likewise.
16290         * nss/nss_files/files-rpc.c: Likewise.
16291         * nss/nss_files/files-service.c: Likewise.
16292         * nss/nss_files/files-sgrp.c: Likewise.
16293         * nss/nss_files/files-spwd.c: Likewise.
16294         * nss/nss_db/db-alias.c: Removed.
16295         * nss/nss_db/dummy-db.h: Removed.
16296
16297 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16298
16299         * nss/makedb.c: Rewritten to not use database library.
16300         * nss/Makefile: Update to build new makedb program.
16301
16302 2011-06-14  Andreas Jaeger  <aj@suse.de>
16303
16304         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16305         memset declaration.
16306
16307 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16308
16309         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16310         tmpbuf.
16311
16312 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16313
16314         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16315         * elf/Makefile ($(objpfx)ld.so): Likewise.
16316
16317         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16318         Don't list ld.so twice in dependencies.
16319
16320         * posix/bug-regex31.c: Include <stdlib.h>.
16321
16322         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16323
16324         * nis/nss_compat/compat-spwd.c
16325         (getspent_next_nss_netgr): Remove unused variable.
16326         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16327
16328         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16329         nonmembers" output to use the right array.
16330
16331         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16332
16333         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16334
16335         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16336         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16337         * catgets/gencat.c (read_input_file): Likewise.
16338         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16339
16340         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16341         variable definition inside #if's controlling its use.
16342
16343         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16344
16345         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16346
16347         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16348
16349         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16350         unreachable code.
16351
16352         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16353
16354         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16355         * configure: Regenerated.
16356
16357         * Makerules: Revert last change.
16358         * elf/Makefile: Likewise.
16359
16360 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16361
16362         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16363         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16364         (reloc-link): Likewise.
16365
16366 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16367
16368         * elf/Makefile: Add rules to build pldd.
16369         * elf/pldd.c: New file.
16370         * elf/pldd-xx.c: New file.
16371
16372 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16373
16374         * version.h: Update for 2.15 development version.
16375
16376 2011-06-07  David S. Miller  <davem@davemloft.net>
16377
16378         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16379         ifuncs.
16380         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16381         elf_machine_lazy_rel): Likewise.
16382         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16383         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16384         elf_machine_lazy_rel): Likewise.
16385         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16386         dl_hwcap via passed in argument.
16387         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16388         Likewise.
16389
16390 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16391
16392         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16393
16394 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16395
16396         [BZ #12849]
16397         * manual/fdl-1.1.texi: New file, verbatim from:
16398         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16399         * manual/lgpl-2.1.texi: New file, verbatim from:
16400         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16401         * manual/Makefile (licenses): New variable, list those new file names.
16402         (texis): Use it.
16403         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16404
16405         * manual/fdl.texi: File removed.
16406         * manual/lesser.texi: File removed.
16407         * manual/libc.texinfo (Copying, Documentation License):
16408         Use new @include file names, put @appendix directive before @include.
16409
16410 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16411
16412         [BZ #12841]
16413         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16414         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16415         (mq_open): Add __NTH.
16416
16417 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16418
16419         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16420         Assume Intel Core i3/i5/i7 processor if AVX is available.
16421
16422 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16423
16424         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16425         typo.
16426
16427 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16428
16429         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16430         memory.  Use alloca_account.  Fix memory leak when retrying.
16431
16432 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16433
16434         * version.h (RELEASE): Bump for 2.14 release.
16435         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16436
16437         * config.make.in (RANLIB): Remove entry.
16438
16439 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16440
16441         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16442         (libc.pot): Work around missing support for .ksh extension in xgettext.
16443
16444         [BZ #12684]
16445         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16446         if both request failed.
16447         (send_dg): In case of server errors clear resplen or *resplen2.
16448
16449         [BZ #12454]
16450         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16451         when there are multiple maps.
16452         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16453         (_dl_fini): Remove test here.
16454
16455         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16456
16457 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16458
16459         [BZ #12350]
16460         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16461         bit from old_res_options.
16462         (gaih_inet): Likewise.
16463
16464         [BZ #11099]
16465         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16466         as signed.
16467
16468         * resolv/res_init.c (res_setoptions): Make the code more compact.
16469
16470         [BZ #11558]
16471         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16472         set RES_USEVC.
16473
16474         [BZ #11634]
16475         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16476
16477         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16478
16479         [BZ #11781]
16480         * malloc/malloc.h: Declare malloc hook variables as volatile.
16481
16482         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16483         in last patch.
16484
16485         [BZ #11799]
16486         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16487         raise in the comment.
16488         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16489         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16490         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16491
16492 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16493
16494         [BZ #12811]
16495         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16496         grow the buffers more if it already has to be sufficient.
16497         (build_wcs_upper_buffer): Likewise.
16498         * posix/regexec.c (check_matching): Likewise.
16499         (clean_state_log_if_needed): Likewise.
16500         (extend_buffers): Don't enlarge buffers beyond size of the input
16501         buffer.
16502         Patches mostly by Emil Wojak <emil@wojak.eu>.
16503         * posix/bug-regex32.c: New file.
16504         * posix/Makefile (tests): Add bug-regex32.
16505
16506         * locale/findlocale.c (_nl_find_locale): Return right away if
16507         _nl_explode_name failed.
16508         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16509
16510         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16511
16512         * debug/xtrace.sh: Unify messages.
16513         * malloc/memusage.sh: Likewise.
16514
16515         [BZ #12813]
16516         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16517         time symbol from vDSO.  Substitute with vsyscall if not available.
16518         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16519         __vdso_time.
16520
16521         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16522         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16523         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16524         Add sendmmsg and internal_sendmmsg.
16525         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16526         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16527         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16528
16529         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16530         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16531         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16532
16533 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16534
16535         [BZ #12813]
16536         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16537         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16538         available.
16539         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16540         __vdso_getcpu.
16541
16542         [BZ #12814]
16543         * iconvdata/Makefile (tests): Add bug-iconv9.
16544         * iconvdata/bug-iconv9.c: New file.
16545
16546 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16547
16548         [BZ #12814]
16549         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16550
16551 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16552
16553         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16554         (struct user_regs_struct): Change intcs field back to cs.
16555
16556 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16557
16558         * po/ja.po: Update from translation team.
16559
16560 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16561
16562         [BZ #12795]
16563         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16564         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16565
16566 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16567
16568         * stdlib/longlong.h: Update from GCC.
16569
16570 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16571
16572         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16573         parameter name.
16574         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16575         Add parameter name.
16576         (__sysconf): Pass it down.
16577
16578 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16579
16580         [BZ #12671]
16581         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16582         some situations.
16583         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16584         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16585         add in in __libc_use_alloca calls.  Adjust callers.
16586         (glob): Use malloc in some situations.
16587
16588         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16589         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16590         pltexit.
16591
16592 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16593
16594         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16595         and CLOCK_BOOTTIME_ALARM.
16596
16597         [BZ #12782]
16598         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16599         is returned.
16600
16601         * string/_strerror.c (__strerror_r): Print negative errors as signed
16602         numbers.
16603
16604         [BZ #12777]
16605         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16606         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16607         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16608
16609         * configure.in: Fix typo in redirection and correct removal of test
16610         files in two cases.
16611
16612         [BZ #12788]
16613         * locale/setlocale.c (new_composite_name): Fix test to check for
16614         identical name of all categories.
16615
16616         [BZ #12792]
16617         * libio/filedoalloc.c (local_isatty): New function.
16618         (_IO_file_doallocate): Use local_isatty.
16619         * stdio-common/perror.c (perror): In case a new stream is used
16620         forward the stream error.
16621         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16622         error flag.
16623
16624 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16625
16626         [BZ #11869]
16627         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16628         alloca.
16629         * include/alloca.h (extend_alloca_account): Define.
16630
16631         [BZ #11857]
16632         * posix/regex.h: Fix comments with documentation of user-accessible
16633         fields after compilation and describe correct free'ing of pattern
16634         after re_compile_pattern.
16635         Patch by Reuben Thomas <rrt@sc3d.org>.
16636
16637 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16638
16639         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16640         and -mno-altivec to prevent the compiler from using Altivec and/or
16641         VSX instructions when the corresponding registers are not available.
16642
16643 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16644
16645         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16646
16647 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16648
16649         * libio/freopen.c (freopen): Use __dup2, not dup2.
16650         * libio/freopen64.c (freopen64): Likewise.
16651
16652 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16653
16654         [BZ #12775]
16655         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16656         * math/Makefile (tests): Add test-powl.
16657         (CFLAGS-test-powl.c): Define.
16658         * math/test-powl.c: New file.
16659
16660 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16661
16662         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16663
16664 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16665
16666         [BZ #11837]
16667         * iconvdata/gb18030.c: Update to GB18020-2005.
16668
16669 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16670
16671         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16672         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16673         Patch by Aharon Robbins <arnold@skeeve.com>.
16674
16675         [BZ #11892]
16676         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16677         on the stack.
16678
16679         [BZ #11895]
16680         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16681         through underflows.
16682
16683         [BZ #12766]
16684         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16685         point to strings before performing equality test for error_one_per_line
16686         mode.
16687
16688         [BZ #11697]
16689         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16690
16691         [BZ #11820]
16692         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16693         (struct user_fpregs_struct): Avoid __uint*_t types.
16694
16695         [BZ #6420]
16696         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16697         symbol info.  Use it instead of calling _dl_addr locally.
16698         (lock_and_info): New function.
16699         (tr_freehook): Call lock_and_info and pass symbol info as additional
16700         parameter to tr_where.
16701         (tr_mallochook): Likewise.
16702         (tr_reallochook): Likewise.
16703         (tr_memalignhook): Likewise.
16704
16705         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16706         used and couldn't be at all thread-safe.
16707
16708 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16709
16710         * libio/freopen.c (freopen): Don't close old file descriptor
16711         before the new one is opened.  Instead dup the new file descriptor
16712         to the old one after the new stream is created.
16713         * libio/freopen64.c (freopen64): Likewise.
16714         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16715         * libio/fileops.c (_IO_new_file_close_it): Handle new
16716         _IO_FLAGS2_NOCLOSE flag.
16717         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16718         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16719         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16720         _IO_FLAGS2_NOCLOSE flag.
16721         * include/unistd.h: Add hidden_proto for dup3.
16722         Define __have_dup3.
16723         * io/dup3.c: Define hidden symbol.
16724         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16725
16726         [BZ #7101]
16727         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16728         when an incomplete long option is used.
16729         * posix/tst-getopt_long1.c: New file.
16730         * posix/Makefile (tests): Add tst-getopt_long1.
16731
16732         [BZ #10138]
16733         * scripts/config.guess: Update from autoconf-2.68.
16734         * scripts/config.sub: Likewise.
16735
16736         [BZ #10157]
16737         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16738         tests into ...
16739         (has_cpuclock): ...this.  New function.
16740         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16741         macro here based on has_cpuclock code.
16742
16743         [BZ #10149]
16744         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16745         First byte (not low byte) is now always NUL.
16746         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16747
16748         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16749         Use non-cancelable interfaces.
16750
16751         [BZ #9809]
16752         * locale/iso-639.def: Add entry for Sorani.
16753
16754         [BZ #11901]
16755         * include/stdlib.h: Move include protection to the right place.
16756         Define abort_msg_s.  Declare __abort_msg with it.
16757         * stdlib/abort.c (__abort_msg): Adjust type.
16758         * assert/assert.c (__assert_fail_base): New function.  Majority
16759         of code from __assert_fail.  Allocate memory for __abort_msg with
16760         mmap.
16761         (__assert_fail): Now call __assert_fail_base.
16762         * assert/assert-perr.c: Remove bulk of implementation.  Use
16763         __assert_fail_base.
16764         * include/assert.hL Declare __assert_fail_base.
16765         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16766         mmap.
16767         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16768
16769 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16770
16771         [BZ #11952]
16772         [BZ #12453]
16773         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16774         until all modules are registered in the DTV.
16775         * elf/Makefile: Add rules to build and run tst-tls19.
16776         * elf/tst-tls19.c: New file.
16777         * elf/tst-tls19mod1.c: New file.
16778         * elf/tst-tls19mod2.c: New file.
16779         * elf/tst-tls19mod3.c: New file.
16780         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16781
16782         [BZ #12083]
16783         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16784         correctly.
16785
16786         [BZ #12601]
16787         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16788         two-byte sequence errors.
16789         * iconvdata/Makefile (tests): Add bug-iconv8.
16790         * iconvdata/bug-iconv8.c: New file.
16791
16792         [BZ #12626]
16793         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16794         buf2 definition.
16795
16796         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16797
16798         [BZ #12432]
16799         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16800         (dummy_getcfa): New function.
16801         (init): Get _Unwind_GetCFA address, use dummy if not found.
16802         (backtrace_helper): In recursion check, also check whether CFA changes.
16803         (__backtrace): Completely initialize arg.
16804
16805         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16806         storing incomplete byte sequence in state object.  Avoid testing for
16807         guaranteed too small input if we know there is enough data available.
16808
16809 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16810
16811         * Makeconfig (+link-pie): Indent.
16812         * Rules (binaries-pie): Define if $(have-fpie) and
16813         $(build-shared).
16814         (binaries-shared): Also filter out $(binaries-pie).
16815         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16816         * nscd/Makefile (others-pie): Add nscd.
16817         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16818         ($(objpfx)nscd): Remove command override.
16819         * login/Makefile (others-pie): Add pt_chown.
16820         ($(objpfx)pt_chown): Remove command override.
16821         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16822         remove command overrides.
16823
16824 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16825
16826         * libio/tst_putwc.c: Fix error messages.
16827
16828         [BZ #12724]
16829         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16830         currently writing and seek to current position when not.
16831         * libio/Makefile (tests): Add bug-fclose1.
16832         * libio/bug-fclose1.c: New file.
16833
16834 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16835
16836         [BZ #12511]
16837         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16838         don't set DF_1_NODELETE here.
16839         (do_lookup_x): When entering new entry test for copy relocation
16840         and if necessary set DF_1_NODELETE flag.
16841         * elf/tst-unique4.cc: New file.
16842         * elf/tst-unique4.h: New file.
16843         * elf/tst-unique4lib.cc: New file.
16844         * elf/Makefile: Add rules to build and run tst-unique4.
16845         Patch by Piotr Bury <pbury@goahead.com>.
16846
16847 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16848
16849         [BZ #12052]
16850         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16851
16852         [BZ #12625]
16853         * misc/mntent_r.c (addmntent): Flush the stream after the output
16854
16855         [BZ #12393]
16856         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16857         (is_trusted_path_normalize): Skip initial colon.  Append slash
16858         to empty buffer.  Duplicate is_trusted_path code but allow
16859         constructed patch to be prefix.
16860         (is_dst): Allow $ORIGIN followed by /.
16861         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16862         Correct testing of result of is_trusted_path_normalize
16863         (decompose_rpath): Fix warning.
16864
16865 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16866
16867         [BZ #11257]
16868         * grp/initgroups.c (internal_getgrouplist): When we found the service
16869         list through the initgroups entry in nsswitch.conf do not always
16870         continue on a successful lookup.  Don't always use the
16871         __nss_group_database value if it is set.
16872         * nss/nsswitch.conf (initgroups): Change action for successful db
16873         lookup to continue for compatibility.
16874
16875 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16876
16877         [BZ #11532]
16878         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16879         and CP774 modules.
16880         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16881         and CP774 modules.
16882         * iconvdata/tst-tables.sh: Likewise.
16883         * iconvdata/cp770.c: New file.
16884         * iconvdata/cp771.c: New file.
16885         * iconvdata/cp772.c: New file.
16886         * iconvdata/cp773.c: New file.
16887         * iconvdata/cp774.c: New file.
16888         * iconvdata/testdata/CP770: New file.
16889         * iconvdata/testdata/CP770..UTF8: New file.
16890         * iconvdata/testdata/CP771: New file.
16891         * iconvdata/testdata/CP771..UTF8: New file.
16892         * iconvdata/testdata/CP772: New file.
16893         * iconvdata/testdata/CP772..UTF8: New file.
16894         * iconvdata/testdata/CP773: New file.
16895         * iconvdata/testdata/CP773..UTF8: New file.
16896         * iconvdata/testdata/CP774: New file.
16897         * iconvdata/testdata/CP774..UTF8: New file.
16898
16899         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16900         END CHARMAP line.
16901         * iconvdata/gen-8bit-gap.sh: Likewise.
16902         * iconvdata/gen-8bit.sh: Likewise.
16903
16904         * locale/iso-639.def: Add ary entry.
16905
16906         [BZ #11258]
16907         * locale/C-translit.h.in: Add U20A1 transliteration.
16908
16909         [BZ #12178]
16910         * locale/iso-639.def: Add wae entry.
16911         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16912
16913         [BZ #12545]
16914         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16915         for n.
16916
16917         [BZ #12711]
16918         * locale/C-translit.h.in: Add entry for U20B9.
16919         Patch by pravin.d.s@gmail.com.
16920
16921 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16922
16923         [BZ #12713]
16924         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16925         ENAMETOOLONG use generic getcwd.
16926         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16927         in rtld.  Use *stat64.
16928         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16929         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16930         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16931         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16932         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16933         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16934         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16935         __fstatat64 macros.
16936         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16937         * dirent/rewinddir.c: Add libc_hidden_def.
16938         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16939         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16940
16941         * include/dirent.h (__alloc_dir): Add flags parameter.
16942         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16943         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16944         __alloc_dir.
16945         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16946         from fdopendir if O_CLOEXEC is already set.
16947
16948 2011-03-15  Alan Modra  <amodra@gmail.com>
16949
16950         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16951         l_tls_firstbyte_offset non-zero.  Save padding offset in
16952         l_tls_firstbyte_offset for later use.
16953         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16954         freeing static tls block.
16955
16956 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16957
16958         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16959         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16960         being defined by the kernel headers.
16961
16962 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16963
16964         [BZ #12734]
16965         * resolv/resolv.h: Define RES_NOTLDQUERY.
16966         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16967         no-tld-query and set RES_NOTLDQUERY.
16968         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16969         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16970         modern BIND to search name as TLD unless forbidden.
16971
16972 2011-05-07  Petr Baudis  <pasky@suse.cz>
16973             Ulrich Drepper  <drepper@gmail.com>
16974
16975         [BZ #12393]
16976         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16977         (is_trusted_path): ...to here.
16978         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16979         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16980         using is_trusted_path_normalize() in setuid scripts.
16981
16982 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16983
16984         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16985         __BEGIN/__END_DECLS.
16986
16987 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16988
16989         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16990         NSS_STATUS_NOTFOUND if no record was found.
16991
16992 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16993
16994         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16995         (headers-not-in-tirpc): Remove rpc/netdb.h
16996         * resolv/netdb.h: Revert last change.
16997
16998 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16999
17000         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
17001         circular dependency between libgcc.a and libc.a.
17002
17003 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17004
17005         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17006         * nis/Makefile: Don't install rpcsvc/*.
17007         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17008         instead of <rpc/types.h>.
17009         (MAXHOSTNAMELEN): Define.
17010
17011 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17012
17013         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17014
17015 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17016
17017         [BZ #12714]
17018         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17019         gethostbyname4_r when IPv6 results are possible.
17020
17021 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17022
17023         [BZ #12723]
17024         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17025         _PC_PIPE_BUF handling.
17026
17027 2011-04-30  Bruno Haible  <bruno@clisp.org>
17028
17029         [BZ #12717]
17030         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17031         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17032         to 'int'.
17033         * inet/getnameinfo.c (getnameinfo): Likewise.
17034
17035 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17036
17037         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17038         to groups setting in database lookup.
17039         * nss/nsswitch.conf: Add initgroups entry.
17040
17041 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17042
17043         [BZ #12685]
17044         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17045         mode string.
17046         Patch by Eric Blake <eblake@redhat.com>.
17047
17048 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17049
17050         * sunrpc/Makefile (need-export-routines): Add svc_run.
17051         (routines): Remove svc_run.
17052         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17053         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17054         * sunrpc/svc_run.c (svc_run): Likewise.
17055         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17056
17057 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17058
17059         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17060         problem in reallocation in last patch.
17061
17062 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17063
17064         * sunrpc/Makefile: Move inclusion of Rules.
17065
17066 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17067
17068         * nss/nss_files/files-initgroups.c: New file.
17069         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17070         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17071         _nss_files_initgroups_dyn.
17072
17073 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17074
17075         * elf/elf.h (R_ARM_IRELATIVE): Define.
17076
17077 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17078
17079         * po/ru.po: Update from translation team.
17080
17081 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17082
17083         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17084         dependencies.
17085
17086 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17087
17088         [BZ #12653]
17089         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17090         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17091         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17092         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17093         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17094
17095 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17096
17097         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17098         differing bytes.
17099         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17100         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17101         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17102
17103 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17104
17105         [BZ #12420]
17106         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17107         storing it.
17108         * stdlib/bug-getcontext.c: New file.
17109         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17110
17111 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17112
17113         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17114         instructions into .machine "z9-109".
17115         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17116         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17117
17118 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17119
17120         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17121         between environment variables and auxiliary vector.
17122
17123 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17124
17125         * Makefile: Add rules to build linkobj/libc.so.
17126         * include/libc-symbols.h: Define libc_hidden_nolink.
17127         * include/rpc/auth.h: Mark functions which are to be hidden.
17128         * include/rpc/auth_des.h: Likewise.
17129         * include/rpc/auth_unix.h: Likewise.
17130         * include/rpc/clnt.h: Likewise.
17131         * include/rpc/des_crypt.h: Likewise.
17132         * include/rpc/key_prot.h: Likewise.
17133         * include/rpc/pmap_clnt.h: Likewise.
17134         * include/rpc/pmap_prot.h: Likewise.
17135         * include/rpc/pmap_rmt.h: Likewise.
17136         * include/rpc/rpc_msg.h: Likewise.
17137         * include/rpc/svc.h: Likewise.
17138         * include/rpc/svc_auth.h: Likewise.
17139         * include/rpc/xdr.h: Likewise.
17140         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17141         * nss/Makefile: Likewise.
17142         * sunrpc/Makefile: Don't install headers.  Build library with normal
17143         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17144         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17145         for the compat linking library.  Remove use of INTDEF/INTUSE.
17146         * sunrpc/auth_none.c: Likewise.
17147         * sunrpc/auth_unix.c: Likewise.
17148         * sunrpc/authdes_prot.c: Likewise.
17149         * sunrpc/authuxprot.c: Likewise.
17150         * sunrpc/clnt_gen.c: Likewise.
17151         * sunrpc/clnt_perr.c: Likewise.
17152         * sunrpc/clnt_raw.c: Likewise.
17153         * sunrpc/clnt_simp.c: Likewise.
17154         * sunrpc/clnt_tcp.c: Likewise.
17155         * sunrpc/clnt_udp.c: Likewise.
17156         * sunrpc/clnt_unix.c: Likewise.
17157         * sunrpc/des_crypt.c: Likewise.
17158         * sunrpc/des_soft.c: Likewise.
17159         * sunrpc/get_myaddr.c: Likewise.
17160         * sunrpc/key_call.c: Likewise.
17161         * sunrpc/key_prot.c: Likewise.
17162         * sunrpc/netname.c: Likewise.
17163         * sunrpc/pm_getmaps.c: Likewise.
17164         * sunrpc/pm_getport.c: Likewise.
17165         * sunrpc/pmap_clnt.c: Likewise.
17166         * sunrpc/pmap_prot.c: Likewise.
17167         * sunrpc/pmap_prot2.c: Likewise.
17168         * sunrpc/pmap_rmt.c: Likewise.
17169         * sunrpc/publickey.c: Likewise.
17170         * sunrpc/rpc_cmsg.c: Likewise.
17171         * sunrpc/rpc_common.c: Likewise.
17172         * sunrpc/rpc_dtable.c: Likewise.
17173         * sunrpc/rpc_prot.c: Likewise.
17174         * sunrpc/rpc_thread.c: Likewise.
17175         * sunrpc/rtime.c: Likewise.
17176         * sunrpc/svc.c: Likewise.
17177         * sunrpc/svc_auth.c: Likewise.
17178         * sunrpc/svc_authux.c: Likewise.
17179         * sunrpc/svc_raw.c: Likewise.
17180         * sunrpc/svc_run.c: Likewise.
17181         * sunrpc/svc_simple.c: Likewise.
17182         * sunrpc/svc_tcp.c: Likewise.
17183         * sunrpc/svc_udp.c: Likewise.
17184         * sunrpc/svc_unix.c: Likewise.
17185         * sunrpc/svcauth_des.c: Likewise.
17186         * sunrpc/xcrypt.c: Likewise.
17187         * sunrpc/xdr.c: Likewise.
17188         * sunrpc/xdr_array.c: Likewise.
17189         * sunrpc/xdr_float.c: Likewise.
17190         * sunrpc/xdr_intXX_t.c: Likewise.
17191         * sunrpc/xdr_mem.c: Likewise.
17192         * sunrpc/xdr_rec.c: Likewise.
17193         * sunrpc/xdr_ref.c: Likewise.
17194         * sunrpc/xdr_sizeof.c: Likewise.
17195         * sunrpc/xdr_stdio.c: Likewise.
17196
17197 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17198
17199         [BZ #12650]
17200         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17201         * sysdeps/ia64/dl-tls.h: Likewise.
17202         * sysdeps/powerpc/dl-tls.h: Likewise.
17203         * sysdeps/s390/dl-tls.h: Likewise.
17204         * sysdeps/sh/dl-tls.h: Likewise.
17205         * sysdeps/sparc/dl-tls.h: Likewise.
17206         * sysdeps/x86_64/dl-tls.h: Likewise.
17207         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17208
17209 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17210
17211         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17212         rpath element also skip the following colon.
17213         (expand_dynamic_string_token): Add is_path parameter and pass
17214         down to DL_DST_REQUIRED and _dl_dst_substitute.
17215         (decompose_rpath): Call expand_dynamic_string_token with
17216         non-zero is_path.  Ignore empty rpaths.
17217         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17218         with zero is_path.
17219
17220 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17221
17222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17223         Make cancelable.
17224
17225 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17226
17227         [BZ #12655]
17228         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17229         Patch by Filipe David Manana <fdmanana@apache.org>.
17230
17231 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17232
17233         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17234         Maintain aligned stack.
17235         (CHECK_RSP): Remove unused macro.
17236
17237 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17238
17239         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17240         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17241
17242 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17243
17244         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17245
17246         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17247
17248 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17249
17250         [BZ #12518]
17251         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17252         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17253         * sysdeps/x86_64/memmove.c: New file.
17254         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17255         (memcpy): Renamed to ...
17256         (__new_memcpy): This.
17257         (memcpy): Provide GLIBC_2_14 memcpy.
17258         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17259         (memcpy): Provide GLIBC_2_2_5 memcpy.
17260
17261 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17262
17263         [BZ #12631]
17264         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17265
17266 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17267
17268         * misc/syncfs.c: New file.
17269         * misc/Makefile (routines): Add syncfs.
17270         * posix/unistd.h: Declare syncfs.
17271         * sysdeps/unix/syscalls.list: Add syncfs.
17272
17273 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17274
17275         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17276         open_by_handle_at.
17277         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17278         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17279         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17280         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17281         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17282         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17283         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17284
17285 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17286
17287         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17288         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17289         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17290         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17291         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17292         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17293         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17294
17295         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17296         sync_file_range.c with -fexceptions.
17297         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17298         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17299         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17300         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17301         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17302         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17303         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17304         sync_file_range as cancellation point
17305         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17306         now a wrapper around __call_sync_file_range with cancellation handling.
17307         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17308         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17309         function name to __call_sync_file_range.
17310         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17311         Add call_sync_file_range.
17312
17313 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17314
17315         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17316         bits/timex.h.
17317
17318 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17319
17320         * iconv/iconv.h: Fix typo in comment.
17321         * io/fcntl.h: Likewise.
17322         * libio/stdio.h: Likewise.
17323         * posix/spawn.h: Likewise.
17324         * posix/unistd.h: Likewise.
17325         * stdlib/stdlib.h: Likewise.
17326         * time/time.h: Likewise.
17327         * wcsmbs/wchar.h: Likewise.
17328
17329         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17330         open_by_handle): Add.
17331         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17332         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17333         Augment a few comments.
17334         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17335         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17336         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17337         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17338         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17339         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17340         open_by_handle.
17341
17342         * io/fcntl.h (AT_EMPTY_PATH): Define.
17343
17344 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17345
17346         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17347         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17348         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17349         to...
17350         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17351         * Versions.def: Add GLIBC_2.14.
17352         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17353         Export.
17354
17355 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17356
17357         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17358         round counter.
17359         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17360
17361 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17362
17363         [BZ #12597]
17364         * string/test-strncmp.c (do_page_test): New function.
17365         (check2): Likewise.
17366         (test_main): Call check2.
17367         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17368
17369 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17370
17371         [BZ #12587]
17372         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17373         Handle cache information in CPU leaf 4.
17374         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17375
17376 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17377
17378         [BZ #12583]
17379         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17380         character representation.
17381         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17382
17383 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17384
17385         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17386         END(__isnan) to END(__isnanf) to match function entry point/label
17387         EALIGN(__isnanf,...).
17388
17389 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17390
17391         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17392
17393 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17394
17395         [BZ #12510]
17396         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17397         copy from the symbol referenced in the relocation to initialize the
17398         used variable.
17399         Patch by Piotr Bury <pbury@goahead.com>.
17400         * elf/Makefile: Add rules to build and tst-unique3.
17401         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17402         * elf/tst-unique3.cc: New file.
17403         * elf/tst-unique3.h: New file.
17404         * elf/tst-unique3lib.cc: New file.
17405         * elf/tst-unique3lib2.cc: New file.
17406
17407         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17408
17409 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17410
17411         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17412         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17413         to _start.
17414
17415 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17416
17417         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17418         to-be-loaded object along a path to loader is ld.so.
17419
17420 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17421             Ulrich Drepper  <drepper@gmail.com>
17422
17423         * sysdeps/x86_64/memset.S: After aligning destination, code
17424         branches to different locations depending on the value of
17425         misalignment, when multiarch is enabled. Fix this.
17426
17427 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17428
17429         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17430         Set _x86_64_preferred_memory_instruction for AMD processsors.
17431         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17432         Set bit_Prefer_SSE_for_memop for AMD processors.
17433
17434 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17435
17436         * libio/fmemopen.c (fmemopen): Optimize a bit.
17437
17438 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17439
17440         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17441
17442 2011-03-03  Roland McGrath  <roland@redhat.com>
17443
17444         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17445
17446 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17447
17448         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17449         __bzero_ultra1 instead of __memset_ultra1.
17450
17451 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17452             Ulrich Drepper  <drepper@gmail.com>
17453
17454         [BZ #12509]
17455         * include/link.h (struct link_map): Add l_orig_initfini.
17456         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17457         returning unsuccessfully.
17458         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17459         close of a file loaded at startup, restore the original l_initfini
17460         list.
17461         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17462         list, store the pointer.
17463         * elf/Makefile ($(objpfx)noload-mem): New rule.
17464         (noload-ENV): Define.
17465         (tests): Add $(objpfx)noload-mem.
17466         * elf/noload.c: Include <memcheck.h>.
17467         (main): Call mtrace.  Close all opened handles.
17468
17469 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17470
17471         [BZ #12454]
17472         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17473         dependencies are missing.
17474
17475 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17476
17477         Fix __if_freereq crash: Unlike the generic version which uses free,
17478         Hurd needs munmap.
17479         * sysdeps/mach/hurd/ifreq.h: New file.
17480
17481 2011-01-27  Petr Baudis  <pasky@suse.cz>
17482             Ulrich Drepper  <drepper@gmail.com>
17483
17484         [BZ 12445]#
17485         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17486         to extend_alloca().
17487         * stdio-common/bug23.c: New file.
17488         * stdio-common/Makefile (tests): Add bug23.
17489
17490 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17491             Ulrich Drepper  <drepper@gmail.com>
17492
17493         [BZ #12489]
17494         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17495         before performing relro protection.  At old place add assertion
17496         to make sure nothing changed.
17497
17498 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17499             Glauber de Oliveira Costa  <glommer@gmail.com>
17500
17501         * elf/elf.h: Add new ARM TLS relocs.
17502
17503 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17504
17505         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17506         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17507         cast from r3.
17508         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17509         'tests' variable.
17510         * sysdeps/wordsize-64/tst-writev.c: New file.
17511
17512 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17513
17514         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17515         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17516         insns in _dl_start to prevent a TOC reference before relocs are
17517         resolved.
17518
17519 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17520
17521         [BZ #12469]
17522         * Makeconfig: Remove RANLIB definition.
17523         * Makerules: Don't use RANLIB.
17524         * aclocal.m4: Remove ranlib test.
17525         * configure.in: No need to check for ranlib.
17526         * elf/rtld-Rules: Don't use RANLIB.
17527
17528 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17529
17530         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17531         protection macro.
17532         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17533         inclusion protection macro.
17534
17535         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17536         SIGRTMIN and SIGRTMAX and print information in that case only when
17537         SIGRTMIN is defined.
17538
17539 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17540
17541         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17542         arginfo fn returning -1.
17543
17544         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17545         and thousands string is zero terminated.
17546
17547 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17548
17549         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17550         sysdeps/unix/sysv/linux/bits/socket.h.
17551
17552 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17553
17554         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17555         (__CPU_COUNT): Remove old macros.
17556         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17557         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17558         (__CPU_ALLOC, __CPU_FREE): Add macros.
17559         (__sched_cpualloc, __sched_cpufree): Add declarations.
17560
17561 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17562
17563         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17564         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17565         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17566         (readdhstai): Return value of addhstaiX call.
17567         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17568         (addgrbyX): Return value returned by cache_addgr.
17569         (readdgrbyname): Return value returned by addgrbyX.
17570         (readdgrbygid): Likewise.
17571         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17572         (addpwbyX): Return value returned by cache_addpw.
17573         (readdpwbyname): Return value returned by addhstbyX.
17574         (readdpwbyuid): Likewise.
17575         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17576         (addservbyX): Return value returned by cache_addserv.
17577         (readdservbyname): Return value returned by addservbyX:
17578         (readdservbyport): Likewise.
17579         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17580         (addhstbyX): Return value returned by cache_addhst.
17581         (readdhstbyname): Return value returned by addhstbyX.
17582         (readdhstbyaddr): Likewise.
17583         (readdhstbynamev6): Likewise.
17584         (readdhstbyaddrv6): Likewise.
17585         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17586         (readdinitgroups): Return value returned by addinitgroupsX.
17587         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17588         (prune_cache): Keep track of timeout value of re-added entries.
17589         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17590         * nscd/nscd.h: Adjust prototypes of readd* functions.
17591
17592 2011-02-04  Roland McGrath  <roland@redhat.com>
17593
17594         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17595         (nis_stats): Likewise.
17596         * nis/nis_modify.c (nis_modify): Likewise.
17597         * nis/nis_remove.c (nis_remove): Likewise.
17598         * nis/nis_add.c (nis_add): Likewise.
17599
17600         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17601
17602         * posix/fnmatch_loop.c: Add some consts.
17603
17604         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17605
17606 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17607
17608         [BZ #12460]
17609         * config.make.in (config-cflags-novzeroupper): Define.
17610         * configure.in: Substitute libc_cv_cc_novzeroupper.
17611         * elf/Makefile (AVX-CFLAGS): Define.
17612         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17613         (CFLAGS-tst-auditmod4a.c): Likewise.
17614         (CFLAGS-tst-auditmod4b.c): Likewise.
17615         (CFLAGS-tst-auditmod6b.c): Likewise.
17616         (CFLAGS-tst-auditmod6c.c): Likewise.
17617         (CFLAGS-tst-auditmod7b.c): Likewise.
17618         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17619
17620 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17621
17622         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17623         function to the callback.
17624         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17625
17626 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17627
17628         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17629         of errno.
17630
17631 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17632
17633         [BZ #11724]
17634         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17635         of constructors.
17636         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17637         of destructors.
17638         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17639
17640         [BZ #11724]
17641         * elf/Makefile: Add rules to build and run new test.
17642         * elf/tst-initorder.c: New file.
17643         * elf/tst-initorder.exp: New file.
17644         * elf/tst-initordera1.c: New file.
17645         * elf/tst-initordera2.c: New file.
17646         * elf/tst-initordera3.c: New file.
17647         * elf/tst-initordera4.c: New file.
17648         * elf/tst-initorderb1.c: New file.
17649         * elf/tst-initorderb2.c: New file.
17650         * elf/tst-order-a1.c: New file.
17651         * elf/tst-order-a2.c: New file.
17652         * elf/tst-order-a3.c: New file.
17653         * elf/tst-order-a4.c: New file.
17654         * elf/tst-order-b1.c: New file.
17655         * elf/tst-order-b2.c: New file.
17656         * elf/tst-order-main.c: New file.
17657         New test case by George Gensure <werkt0@gmail.com>.
17658
17659 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17660
17661         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17662         decoding ACE if AI_CANONIDN.
17663
17664 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17665
17666         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17667
17668 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17669
17670         * version.h (RELEASE): Bump for 2.13 release.
17671         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17672
17673         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17674
17675         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17676         MADV_NOHUGEPAGE.
17677         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17678         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17679         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17680         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17681         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17682         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17683
17684         * posix/getconf.c: Update copyright year.
17685         * catgets/gencat.c: Likewise.
17686         * csu/version.c: Likewise.
17687         * debug/catchsegv.sh: Likewise.
17688         * debug/xtrace.sh: Likewise.
17689         * elf/ldconfig.c: Likewise.
17690         * elf/ldd.bash.in: Likewise.
17691         * elf/sprof.c (print_version): Likewise.
17692         * iconv/iconv_prog.c: Likewise.
17693         * iconv/iconvconfig.c: Likewise.
17694         * locale/programs/locale.c: Likewise.
17695         * locale/programs/localedef.c: Likewise.
17696         * malloc/memusage.sh: Likewise.
17697         * malloc/mtrace.pl: Likewise.
17698         * nscd/nscd.c (print_version): Likewise.
17699         * nss/getent.c: Likewise.
17700
17701         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17702         PF_CAIF, and PF_ALG.
17703         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17704
17705 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17706
17707         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17708         (modules-names): Use them.
17709         (ifunc-test-modules, ifunc-pie-tests): Define.
17710         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17711         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17712         (test-extras): Likewise.
17713         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17714         $(compile-command.c).
17715         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17716         (all-built-dso): Define.
17717         (check-textrel.out, check-execstack.out): Depend on it.
17718
17719         * configure.in: Don't override --enable-multi-arch.
17720
17721 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17722
17723         [BZ #6812]
17724         * nscd/hstcache.c (tryagain): Define.
17725         (cache_addhst): Return tryagain not notfound for temporary errors.
17726         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17727         failed.
17728
17729 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17730
17731         [BZ #10563]
17732         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17733         to make the syscall.
17734         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17735
17736         [BZ #12378]
17737         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17738         and fall back to matching as normal character if the string ends before
17739         the matching ']' is found.  This is what POSIX requires.
17740         * posix/testfnm.c: Adjust test result.
17741         * posix/globtest.sh: Adjust test result.  Add new test.
17742         * posix/tst-fnmatch.input: Likewise.
17743         * posix/tst-fnmatch2.c: Add new test.
17744
17745 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17746
17747         * elf/Makefile (check-execstack): Revert last change.  Depend on
17748         check-execstack.h.
17749         (check-execstack.h): New target.
17750         (generated): Add check-execstack.h.
17751         * elf/check-execstack.c: Include "check-execstack.h".
17752         (main): Revert last change.
17753         (handle_file): Return zero if GNU_STACK is absent and
17754         DEFAULT_STACK_PERMS doesn't include PF_X.
17755
17756 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17757
17758         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17759         in child fails because the descriptor is already closed.
17760         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17761         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17762         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17763
17764         [BZ #12397]
17765         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17766         syscall.
17767
17768         [BZ #10484]
17769         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17770         temporary buffer used to handle multi lookups locally.
17771         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17772
17773 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17774
17775         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17776         loader is ld.so.
17777
17778 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17779
17780         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17781         alignment for SSE2.
17782
17783 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17784
17785         [BZ #12394]
17786         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17787         characters.  When rounding increased number of integer digits recompute
17788         number of groups.
17789         * stdio-common/tst-grouping.c: New file.
17790         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17791
17792 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17793
17794         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17795         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17796
17797         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17798         void.
17799         * bits/select.h: Likewise.
17800
17801 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17802
17803         * po/ja.po: Update from translation team.
17804
17805 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17806
17807         [BZ #11155]
17808         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17809         implementation just like for lxstat, fxstatat, et al.
17810
17811 2010-12-27  Jim Meyering  <meyering@redhat.com>
17812
17813         [BZ #12348]
17814         * posix/regexec.c (build_trtable): Return failure indication upon
17815         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17816
17817 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17818
17819         [BZ #12201]
17820         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17821         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17822         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17823         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17824
17825         [BZ #12207]
17826         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17827
17828         [BZ #12204]
17829         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17830         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17831
17832 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17833
17834         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17835         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17836         script has SORT_BY_INIT_PRIORITY.
17837         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17838         NO_CTORS_DTORS_SECTIONS is defined.
17839         * elf/soinit.c: Likewise.
17840         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17841         NO_CTORS_DTORS_SECTIONS is defined.
17842         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17843         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17844         * sysdeps/sh/init-first.c: Likewise.
17845         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17846
17847 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17848
17849         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17850         always use the slow path.
17851
17852 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17853
17854         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17855         similar rule which adds the sysdep directories to the header search in
17856         order to pick up the correct platform stackinfo.h.
17857         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17858         perform test if it is, otherwise return successfully without testing.
17859         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17860         DEFAULT_STACK_PERMS define in stackinfo.h.
17861         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17862         defined in stackinfo.h.
17863         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17864         DEFAULT_STACK_PERMS defined in stackinfo.h.
17865         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17866         * sysdeps/ia64/stackinfo.h: Likewise.
17867         * sysdeps/s390/stackinfo.h: Likewise.
17868         * sysdeps/sh/stackinfo.h: Likewise.
17869         * sysdeps/sparc/stackinfo.h: Likewise.
17870         * sysdeps/x86_64/stackinfo.h: Likewise.
17871         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17872         PF_X for powerpc64.  Retain PF_X for powerpc32.
17873
17874 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17875
17876         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17877         accurately.
17878         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17879         GETDENTS_64BIT_ALIGNED.
17880
17881 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17882
17883         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17884
17885 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17886
17887         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17888         _GNU_SOURCE.
17889
17890         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17891         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17892         Remove __restrict.
17893         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17894         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17895
17896 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17897
17898         [BZ #11655]
17899         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17900         are initialized.
17901
17902 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17903
17904         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17905
17906 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17907
17908         * po/it.po: Update from translation team.
17909
17910 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17911
17912         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17913         unused codes.
17914
17915 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17916
17917         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17918
17919 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17920
17921         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17922         specially.
17923         (gaih_getanswer_slice): Likewise.
17924
17925 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17926
17927         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17928
17929 2010-05-31  Petr Baudis  <pasky@suse.cz>
17930
17931         [BZ #11149]
17932         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17933         silently even in the chroot mode.
17934
17935 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17936
17937         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17938         last patch a bit.  Pretty printing
17939
17940 2010-05-31  Petr Baudis <pasky@suse.cz>
17941
17942         [BZ #10085]
17943         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17944         initialization of skip_initgroups_dyn.
17945
17946 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17947
17948         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17949         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17950
17951 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17952
17953         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17954
17955 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17956
17957         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17958         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17959         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17960         ($(objpfx)tst-fnmatch-mem): New rule.
17961         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17962         * posix/tst-fnmatch.c (main): Call mtrace.
17963
17964 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17965
17966         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17967         Support Intel processor model 6 and model 0x2c.
17968
17969 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17970
17971         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17972           signed comparison.
17973
17974 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17975
17976         [BZ #12205]
17977         * string/test-strncasecmp.c (check_result): New function.
17978         (do_one_test): Use it.
17979         (check1): New function.
17980         (test_main): Use it.
17981         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17982         Support strcasecmp and strncasecmp.
17983
17984 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17985
17986         [BZ #12194]
17987         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17988         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17989
17990 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17991
17992         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17993         IFUNC support.
17994         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17995         memset-x86-64.
17996         * sysdeps/x86_64/multiarch/bzero.S: New file.
17997         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17998         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17999         * sysdeps/x86_64/multiarch/memset.S: New file.
18000         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
18001         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18002         Set bit_Prefer_SSE_for_memop for Intel processors.
18003         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18004         Define.
18005         (index_Prefer_SSE_for_memop): Define.
18006         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18007
18008 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18009
18010         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18011         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18012
18013 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18014
18015         [BZ #12191]
18016         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18017         (__x86_64_raw_data_cache_size_half): Likewise.
18018         (__x86_64_raw_shared_cache_size): Likewise.
18019         (__x86_64_raw_shared_cache_size_half): Likewise.
18020
18021         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18022         (__x86_64_raw_data_cache_size_half): Likewise.
18023         (__x86_64_raw_shared_cache_size): Likewise.
18024         (__x86_64_raw_shared_cache_size_half): Likewise.
18025         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18026         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18027         and __x86_64_raw_shared_cache_size_half.  Round
18028         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18029         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18030         to multiple of 256 bytes.
18031
18032 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18033
18034         [BZ #12167]
18035         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18036         of inacessible symlinks.  Verify result of symlink before returning it.
18037         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18038         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18039
18040 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18041
18042         * math/math.h (isinf): Fix typo in comment.
18043
18044 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18045
18046         * po/da.po: Update from translation team.
18047
18048 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18049
18050         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18051         is added to the list.
18052
18053 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18054             Ulrich Drepper  <drepper@gmail.com>
18055
18056         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18057         the global list here.  Move code to...
18058         (_dl_add_to_namespace_list): ...here.  New function.
18059         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18060         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18061         * elf/dl-load.c (lose): Don't remove the element from the list.
18062         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18063         (_dl_map_object): Likewise.
18064
18065 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18066
18067         [BZ #12159]
18068         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18069         into all bytes of SSE register.
18070         Patch by Richard Li <richardpku@gmail.com>.
18071
18072 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18073
18074         [BZ #12140]
18075         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18076         perturbing.
18077
18078 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18079
18080         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18081         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18082         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18083         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18085         submachine.
18086         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18087
18088 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18089
18090         * include/dlfcn.h (__RTLD_SECURE): Define.
18091         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18092         mode & __RTLD_SECURE instead.
18093         (open_path): Rename preloaded parameter to secure.
18094         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18095         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18096         * elf/dl-deps.c (openaux): Likewise.
18097         * elf/rtld.c (struct map_args): Remove is_preloaded.
18098         (map_doit): Don't use it.
18099         (dl_main): Likewise.
18100         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18101         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18102
18103 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18104
18105         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18106         (sysd-rules-targets): Remove duplicates.
18107         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18108         rtld-%.$o dependency.
18109
18110 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18111
18112         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18113         _dl_map_object do it.
18114
18115 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18116
18117         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18118         fast fma builtins, define the macros in the C99 standard.
18119         (FP_FAST_FMAF): Likewise.
18120         (FP_FAST_FMAL): Likewise.
18121         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18122
18123         * bits/mathdef.h: Update copyright year.
18124         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18125
18126 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18127
18128         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18129         builtins, define the macros in the C99 standard.
18130         (FP_FAST_FMAF): Likewise.
18131         (FP_FAST_FMAL): Likewise.
18132         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18133         multiply/add.
18134         (FP_FAST_FMAF): Likewise.
18135
18136 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18137
18138         [BZ #3268]
18139         * math/libm-test.inc (fma_test): Some new testcases.
18140         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18141         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18142         y and infinite z.  Do multiplication by C already in long double.
18143         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18144         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18145         y and infinite z.  Do bitwise or of inexact bit into u.d.
18146         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18147         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18148         * sysdeps/i386/fpu/s_fma.S: Removed.
18149         * sysdeps/i386/fpu/s_fmal.S: Removed.
18150
18151 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18152
18153         [BZ #3268]
18154         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18155         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18156         computation is not scheduled after fetestexcept.  Fix value
18157         of minimum denormal long double.
18158
18159 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18160
18161         [BZ #3268]
18162         * math/libm-test.inc (fma_test): Add some more tests.
18163         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18164         correctly.
18165
18166 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18167
18168         * scripts/data/localplt-s390-linux-gnu.data: New file.
18169         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18170
18171 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18172
18173         [BZ #3268]
18174         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18175         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18176         instead of dbl-64.
18177         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18178         inlines.
18179         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18180         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18181         if one of x and y is very large and the other is subnormal.
18182         * sysdeps/s390/fpu/s_fmaf.c: New file.
18183         * sysdeps/s390/fpu/s_fma.c: New file.
18184         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18185         * sysdeps/powerpc/fpu/s_fma.S: New file.
18186         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18187         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18188         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18189
18190 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18191
18192         [BZ #3268]
18193         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18194         fma tests.
18195         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18196         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18197         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18198         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18199         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18200         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18201         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18202
18203 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18204
18205         [BZ #12078]
18206         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18207         * posix/bug-regex31.input: Add test case.
18208
18209 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18210
18211         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18212         * posix/bug-regex31.input: New file.
18213
18214         [BZ #12078]
18215         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18216         (parse_sub_exp): Fix last change, use postorder.
18217
18218         * posix/bug-regex31.c: New file.
18219         * posix/Makefile: Add rules to build and run bug-regex31.
18220
18221         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18222
18223         [BZ #12078]
18224         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18225
18226         [BZ #12108]
18227         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18228         to have entries in sys_siglist.
18229
18230         [BZ #12093]
18231         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18232         be NULL.
18233
18234 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18235
18236         [BZ #3268]
18237         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18238         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18239         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18240         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18241         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18242         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18243         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18244         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18245         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18246         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18247         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18248         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18249         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18250         * math/ftestexcept.c (fetestexcept): Likewise.
18251         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18252         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18253         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18254         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18255         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18256         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18257         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18258
18259 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18260
18261         [BZ #12107]
18262         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18263         newline.
18264
18265 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18266
18267         * string/bug-strstr1.c: New file.
18268         * string/Makefile: Add rules to build and run bug-strstr1.
18269
18270 2010-10-05  Eric Blake  <eblake@redhat.com>
18271
18272         [BZ #12092]
18273         * string/str-two-way.h (two_way_long_needle): Always clear memory
18274         when skipping input due to the shift table.
18275
18276 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18277
18278         [BZ #12005]
18279         * malloc/mcheck.c: Handle large requests.
18280
18281         [BZ #12077]
18282         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18283         for strncmp and strncasecmp.
18284         * string/stratcliff.c: Add tests for strcmp and strncmp.
18285         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18286
18287 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18288
18289         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18290         __set_fpscr.
18291
18292 2010-09-30  Andreas Jaeger  <aj@suse.de>
18293
18294         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18295         (CGROUP_SUPER_MAGIC): Define.
18296         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18297         Handle btrfs and cgroup file systems.
18298         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18299         Likewise.
18300
18301 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18302
18303         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18304         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18305
18306 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18307
18308         [BZ #12067]
18309         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18310         trying to locate the ELF header.
18311
18312 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18313
18314         [BZ #11611]
18315         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18316         Mask out sign-bit copies when constructing f_fsid.
18317
18318 2010-09-24  Petr Baudis <pasky@suse.cz>
18319
18320         * debug/stack_chk_fail_local.c: Add missing licence exception.
18321         * debug/warning-nop.c: Likewise.
18322
18323 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18324
18325         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18326         implementing getdents64 using getdents syscall, set d_type if
18327         __ASSUME_GETDENTS32_D_TYPE.
18328
18329 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18330
18331         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18332         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18333
18334 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18335
18336         [BZ #12037]
18337         * posix/unistd.h: Undo change of feature selection for ftruncate from
18338         2010-01-11.
18339
18340 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18341
18342         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18343         detection.
18344
18345 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18346
18347         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18348         fanotify_mark.
18349         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18350
18351 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18352
18353         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18354         variables after CHECK_SP call.
18355         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18356
18357 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18358             Ulrich Drepper  <drepper@redhat.com>
18359
18360         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18361         re-relocationg ld.so.
18362         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18363         _dl_init_paths call.
18364         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18365         here anymore.
18366
18367 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18368
18369         * resolv/res_init.c (__res_vinit): Count the default server we added.
18370
18371 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18372             Ulrich Drepper  <drepper@redhat.com>
18373
18374         [BZ #11968]
18375         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18376         (____longjmp_chk): Use %ebx for saving value across system call.
18377         Add unwind info.
18378
18379 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18380
18381         * manual/Makefile: Don't mix pattern rules with normal rules.
18382
18383 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18384
18385         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18386         operation.
18387         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18388         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18389         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18390         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18391         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18392         Likewise.
18393
18394 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18395
18396         [BZ #11979]
18397         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18398         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18399
18400 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18401
18402         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18403         * sysdeps/x86_64/addmul_1.S: Likewise.
18404         * sysdeps/x86_64/lshift.S: Likewise.
18405         * sysdeps/x86_64/mul_1.S: Likewise.
18406         * sysdeps/x86_64/rshift.S: Likewise.
18407         * sysdeps/x86_64/sub_n.S: Likewise.
18408         * sysdeps/x86_64/submul_1.S: Likewise.
18409
18410 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18411
18412         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18413         Define __sched_param instead of SCHED_* and sched_param when
18414         <bits/sched.h> is included with __need_schedparam defined.
18415         * bits/sched.h [__need_schedparam]
18416         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18417         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18418         (__defined_schedparam): Define to 1.
18419         (__sched_param): New structure, identical to sched_param.
18420         (__need_schedparam): Undefine.
18421
18422 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18423
18424         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18425         (epoll_create1): Declare.
18426
18427         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18428
18429 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18430
18431         [BZ #7066]
18432         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18433         shifting retval into place.
18434
18435 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18436
18437         * nis/rpcsvc/nis.h: Update copyright notice.
18438         * nis/rpcsvc/nis.x: Likewise.
18439         * nis/rpcsvc/nis_callback.h: Likewise.
18440         * nis/rpcsvc/nis_callback.x: Likewise.
18441         * nis/rpcsvc/nis_object.x: Likewise.
18442         * nis/rpcsvc/nis_tags.h: Likewise.
18443         * nis/rpcsvc/yp.h: Likewise.
18444         * nis/rpcsvc/yp.x: Likewise.
18445         * nis/rpcsvc/ypupd.h: Likewise.
18446         * nis/yp_xdr.c: Likewise.
18447         * nis/ypupdate_xdr.c: Likewise.
18448
18449         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18450         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18451         (pmap_getport): Use __libc_rpc_getport.
18452         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18453         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18454         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18455
18456 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18457
18458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18459         fanotify_mark.
18460
18461 2010-08-27  Roland McGrath  <roland@redhat.com>
18462
18463         * sysdeps/i386/i686/multiarch/Makefile
18464         (CFLAGS-varshift.c): New variable.
18465
18466 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18467
18468         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18469         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18470
18471         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18472
18473         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18474
18475 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18476
18477         * sysdeps/x86_64/strlen.S: Unroll the loop.
18478         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18479         strlen-sse2 strlen-sse2-bsf.
18480         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18481         __strlen_no_bsf if bit_Slow_BSF is set.
18482         (__strlen_sse42): Removed.
18483         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18484         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18485
18486 2010-08-25  Roland McGrath  <roland@redhat.com>
18487
18488         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18489         * sysdeps/x86_64/multiarch/varshift.c: New file.
18490         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18491         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18492         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18493         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18494
18495 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18496
18497         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18498         strlen-sse2 strlen-sse2-bsf.
18499         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18500         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18501         (__strlen_sse2): Removed.
18502         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18503         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18504         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18505         bit_Slow_BSF for Atom.
18506         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18507         (index_Slow_BSF): Define.
18508         (HAS_SLOW_BSF): Define.
18509
18510 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18511
18512         [BZ #10851]
18513         * resolv/res_init.c (__res_vinit): When no server address at all
18514         is given default to loopback.
18515
18516 2010-08-24  Roland McGrath  <roland@redhat.com>
18517
18518         * configure.in: Remove config-name.h generation.
18519         * configure: Regenerated.
18520         * config-name.in: File removed.
18521         * scripts/config-uname.sh: New file.
18522         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18523         ($(objdir)config-name.h): New target.
18524
18525         * sunrpc/rpc_parse.h: Avoid nested comment.
18526
18527 2010-08-24  Richard Henderson  <rth@redhat.com>
18528             Ulrich Drepper  <drepper@redhat.com>
18529             H.J. Lu  <hongjiu.lu@intel.com>
18530
18531         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18532         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18533         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18534         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18535         _mm_alignr_epi8 with _mm_loadu_si128.
18536         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18537         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18538         (__m128i_shift_right): Removed.
18539         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18540         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18541         * sysdeps/x86_64/multiarch/varshift.h: New file.
18542         * sysdeps/x86_64/multiarch/varshift.S: New file.
18543
18544 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18545
18546         * configure.in: Move assembler checks to before sysdep dir checking.
18547
18548 2010-08-20  Petr Baudis  <pasky@suse.cz>
18549
18550         * LICENSES: Sync the sunrpc license.
18551
18552 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18553
18554         * sunrpc/auth_des.c: Update copyright notice once again.
18555         * sunrpc/auth_none.c: Likewise.
18556         * sunrpc/auth_unix.c: Likewise.
18557         * sunrpc/authdes_prot.c: Likewise.
18558         * sunrpc/authuxprot.c: Likewise.
18559         * sunrpc/bindrsvprt.c: Likewise.
18560         * sunrpc/clnt_gen.c: Likewise.
18561         * sunrpc/clnt_perr.c: Likewise.
18562         * sunrpc/clnt_raw.c: Likewise.
18563         * sunrpc/clnt_simp.c: Likewise.
18564         * sunrpc/clnt_tcp.c: Likewise.
18565         * sunrpc/clnt_udp.c: Likewise.
18566         * sunrpc/clnt_unix.c: Likewise.
18567         * sunrpc/des_crypt.c: Likewise.
18568         * sunrpc/des_soft.c: Likewise.
18569         * sunrpc/get_myaddr.c: Likewise.
18570         * sunrpc/getrpcport.c: Likewise.
18571         * sunrpc/key_call.c: Likewise.
18572         * sunrpc/key_prot.c: Likewise.
18573         * sunrpc/openchild.c: Likewise.
18574         * sunrpc/pm_getmaps.c: Likewise.
18575         * sunrpc/pm_getport.c: Likewise.
18576         * sunrpc/pmap_clnt.c: Likewise.
18577         * sunrpc/pmap_prot.c: Likewise.
18578         * sunrpc/pmap_prot2.c: Likewise.
18579         * sunrpc/pmap_rmt.c: Likewise.
18580         * sunrpc/rpc/auth.h: Likewise.
18581         * sunrpc/rpc/auth_unix.h: Likewise.
18582         * sunrpc/rpc/clnt.h: Likewise.
18583         * sunrpc/rpc/des_crypt.h: Likewise.
18584         * sunrpc/rpc/key_prot.h: Likewise.
18585         * sunrpc/rpc/netdb.h: Likewise.
18586         * sunrpc/rpc/pmap_clnt.h: Likewise.
18587         * sunrpc/rpc/pmap_prot.h: Likewise.
18588         * sunrpc/rpc/pmap_rmt.h: Likewise.
18589         * sunrpc/rpc/rpc.h: Likewise.
18590         * sunrpc/rpc/rpc_des.h: Likewise.
18591         * sunrpc/rpc/rpc_msg.h: Likewise.
18592         * sunrpc/rpc/svc.h: Likewise.
18593         * sunrpc/rpc/svc_auth.h: Likewise.
18594         * sunrpc/rpc/types.h: Likewise.
18595         * sunrpc/rpc/xdr.h: Likewise.
18596         * sunrpc/rpc_clntout.c: Likewise.
18597         * sunrpc/rpc_cmsg.c: Likewise.
18598         * sunrpc/rpc_common.c: Likewise.
18599         * sunrpc/rpc_cout.c: Likewise.
18600         * sunrpc/rpc_dtable.c: Likewise.
18601         * sunrpc/rpc_hout.c: Likewise.
18602         * sunrpc/rpc_main.c: Likewise.
18603         * sunrpc/rpc_parse.c: Likewise.
18604         * sunrpc/rpc_parse.h: Likewise.
18605         * sunrpc/rpc_prot.c: Likewise.
18606         * sunrpc/rpc_sample.c: Likewise.
18607         * sunrpc/rpc_scan.c: Likewise.
18608         * sunrpc/rpc_scan.h: Likewise.
18609         * sunrpc/rpc_svcout.c: Likewise.
18610         * sunrpc/rpc_tblout.c: Likewise.
18611         * sunrpc/rpc_util.c: Likewise.
18612         * sunrpc/rpc_util.h: Likewise.
18613         * sunrpc/rpcinfo.c: Likewise.
18614         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18615         * sunrpc/rpcsvc/key_prot.x: Likewise.
18616         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18617         * sunrpc/rpcsvc/mount.x: Likewise.
18618         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18619         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18620         * sunrpc/rpcsvc/rex.x: Likewise.
18621         * sunrpc/rpcsvc/rstat.x: Likewise.
18622         * sunrpc/rpcsvc/rusers.x: Likewise.
18623         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18624         * sunrpc/rpcsvc/spray.x: Likewise.
18625         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18626         * sunrpc/rtime.c: Likewise.
18627         * sunrpc/svc.c: Likewise.
18628         * sunrpc/svc_auth.c: Likewise.
18629         * sunrpc/svc_authux.c: Likewise.
18630         * sunrpc/svc_raw.c: Likewise.
18631         * sunrpc/svc_run.c: Likewise.
18632         * sunrpc/svc_simple.c: Likewise.
18633         * sunrpc/svc_tcp.c: Likewise.
18634         * sunrpc/svc_udp.c: Likewise.
18635         * sunrpc/svc_unix.c: Likewise.
18636         * sunrpc/svcauth_des.c: Likewise.
18637         * sunrpc/xcrypt.c: Likewise.
18638         * sunrpc/xdr.c: Likewise.
18639         * sunrpc/xdr_array.c: Likewise.
18640         * sunrpc/xdr_float.c: Likewise.
18641         * sunrpc/xdr_mem.c: Likewise.
18642         * sunrpc/xdr_rec.c: Likewise.
18643         * sunrpc/xdr_ref.c: Likewise.
18644         * sunrpc/xdr_sizeof.c: Likewise.
18645         * sunrpc/xdr_stdio.c: Likewise.
18646
18647         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18648         handling.
18649
18650 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18651
18652         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18653
18654 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18655
18656         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18657         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18658         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18659         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18660         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18661         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18662         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18663         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18664         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18665         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18666         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18667         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18668         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18669         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18670
18671 2010-07-26  Anton Blanchard  <anton@samba.org>
18672
18673         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18674         * malloc/arena.c (heap_trim): Likewise.
18675
18676 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18677
18678         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18679         here.  Not...
18680         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18681         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18682
18683 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18684
18685         * sysdeps/i386/elf/Makefile: New file.
18686
18687 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18688
18689         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18690         from fanotify_init.
18691         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18692         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18693
18694 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18695
18696         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18697         of strncasecmp_l.
18698         * sysdeps/multiarch/strcmp.S: Likewise.
18699
18700 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18701
18702         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18703         strncase_l-nonascii.
18704         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18705         Add strncase_l-ssse3.
18706         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18707         * sysdeps/x86_64/strcmp.S: Likewise.
18708         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18709         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18710         * sysdeps/x86_64/strncase.S: New file.
18711         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18712         * sysdeps/x86_64/strncase_l.S: New file.
18713         * string/Makefile (strop-tests): Add strncasecmp.
18714         * string/test-strncasecmp.c: New file.
18715
18716         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18717         warning.
18718
18719         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18720         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18721
18722 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18723
18724         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18725
18726 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18727
18728         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18729         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18730         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18731
18732 2010-05-01  Alan Modra  <amodra@gmail.com>
18733
18734         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18735         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18736         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18737         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18738         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18739         tidying.  Don't tail-call __sigjmp_save for static lib.
18740         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18741         save location.
18742         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18743         (CALL_MCOUNT): Add eh info, and nop after bl.
18744         (TAIL_CALL_SYSCALL_ERROR): New macro.
18745         (PSEUDO_RET): Use it.
18746         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18747         Correct save location of integer regs and cr.
18748         (_dl_profile_resolve): Correct cr save location.  Delete nops
18749         after bl when SHARED.  Reduce cfi size a little by better
18750         placement of cfi directives.
18751         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18752         make a stack frame.  Instead use parm save area as a temp.
18753         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18754         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18756         Don't make a stack frame for parent, use parm save area.
18757         Increase child stack frame to 112 bytes.  Don't save unused reg,
18758         and adjust reg usage.  Set up cfi on error recovery and
18759         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18761         (__makecontext): Add dummy nop after jump to exit.
18762         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18763         Use correct parm save area and cr save, reduce stack frame.
18764         Correct cfi for possible PSEUDO_RET frame setup.
18765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18766         Branch to local label emitted by PSEUDO_RET rather than
18767         __syscall_error.
18768
18769 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18770
18771         [BZ #11904]
18772         * locale/programs/locale.c (print_assignment): New function.
18773         (show_locale_vars): Use it.
18774
18775 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18776
18777         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18778         field.
18779         (struct statfs64): Likewise.
18780         (_STATFS_F_FLAGS): Define.
18781         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18782         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18783         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18784         (ST_VALID): Define locally.
18785         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18786         __statvfs_getflags, use the provided value.
18787         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18788         __ASSUME_STATFS_F_FLAGS.
18789
18790         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18791
18792         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18793         Add sys/fanotify.h.
18794         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18795         fanotify_mask for GLIBC_2.13.
18796         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18797         fanotify_init and fanotify_mark.
18798         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18799         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18800
18801         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18802         Add prlimit.
18803         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18804         prlimit64 for GLIBC_2.13.
18805         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18806         prlimit64.
18807         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18808         syscall.
18809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18810         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18811         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18812         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18813         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18814         add prlimit alias.
18815         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18816
18817         [BZ #11903]
18818         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18819         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18820
18821         * nss/Makefile: Add rules to build and run tst-nss-test1.
18822         * shlib-versions: Add entry for libnss_test1.
18823         * nss/nss_test1.c: New file.
18824         * nss/tst-nss-test1.c: New file.
18825
18826         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18827         (__nss_configure_lookup): Set appropriate entry in
18828         __nss_configure_lookup to true.
18829         * nss/nsswitch.h: Define enum with indeces of databases in
18830         databases and __nss_database_custom arrays.  Declare
18831         __nss_database_custom.
18832         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18833         to avoid using nscd when custom rules are installed.
18834         * nss/getXXbyYY_r.c: Likewise.
18835         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18836
18837         * nss/nss_files/files-parse.c: Whitespace fixes.
18838
18839 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18840
18841         [BZ #11883]
18842         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18843         * posix/fnmatch_loop.c: Likewise.
18844
18845 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18846
18847         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18848         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18849         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18850         * Versions.def [GLIBC_2.13]: Add.
18851
18852 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18853
18854         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18855         Also fail if tpwd after pwuid call is NULL.
18856
18857 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18858
18859         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18860         when converting to ms.
18861
18862 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18863
18864         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18865         EOPNOTSUPP errors with ENOTTY.
18866         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18867         EOPNOTSUPP errors with ENOTTY.
18868
18869 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18870
18871         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18872         Add strcasecmp_l-ssse3.
18873         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18874         strcasecmp.
18875         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18876         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18877         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18878
18879 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18880
18881         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18882
18883         * string/Makefile (strop-tests): Add strcasecmp.
18884         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18885         strcasecmp_l-nonascii.
18886         (gen-as-const-headers): Add locale-defines.sym.
18887         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18888         * sysdeps/x86_64/strcasecmp.S: New file.
18889         * sysdeps/x86_64/strcasecmp_l.S: New file.
18890         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18891         * sysdeps/x86_64/locale-defines.sym: New file.
18892         * string/test-strcasecmp.c: New file.
18893
18894         * string/test-strcasestr.c: Test both ends of the range of characters.
18895         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18896
18897 2010-07-29  Roland McGrath  <roland@redhat.com>
18898
18899         [BZ #11856]
18900         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18901
18902 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18903
18904         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18905         for ld.so.
18906
18907 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18908
18909         * manual/memory.texi (Malloc Tunable Parameters): Document
18910         M_PERTURB.
18911
18912 2010-07-26  Roland McGrath  <roland@redhat.com>
18913
18914         [BZ #11840]
18915         * configure.in (-fgnu89-inline check): Set and substitute
18916         gnu89_inline, not libc_cv_gnu89_inline.
18917         * configure: Regenerated.
18918         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18919
18920 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18921
18922         * string/test-strnlen.c: New file.
18923         * string/Makefile (strop-tests): Add strnlen.
18924         * string/tester.c (test_strnlen): Add a few more test cases.
18925         * string/tst-strlen.c: Better error reporting.
18926
18927         * sysdeps/x86_64/strnlen.S: New file.
18928
18929 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18930
18931         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18932         lower-latency instructions.
18933
18934 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18935
18936         * string/test-strcasestr.c: New file.
18937         * string/test-strstr.c: New file.
18938         * string/Makefile (strop-tests): Add strstr and strcasestr.
18939         * string/str-two-way.h: Don't undefine MAX.
18940         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18941
18942 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18943
18944         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18945         strcasestr-nonascii.
18946         (CFLAGS-strcasestr-nonascii.c): Define.
18947         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18948         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18949         Remove unused attribute.
18950
18951 2010-07-20  Roland McGrath  <roland@redhat.com>
18952
18953         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18954         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18955         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18956         like LD_HWCAP_MASK can disable hwcaps.
18957
18958 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18959
18960         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18961
18962 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18963
18964         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18965         call in strcasestr.
18966         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18967         __strcasestr_sse42_nonascii.
18968         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18969         strcasestr-nonascii.c.
18970         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18971
18972 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18973
18974         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18975         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18976         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18977         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18978
18979 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18980
18981         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18982         fcntl.
18983
18984 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18985
18986         [BZ #11577]
18987         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18988         dl_signal_cerror.
18989
18990 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18991
18992         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18993         _PC_PIPE_BUF using F_GETPIPE_SZ.
18994
18995 2010-07-05  Roland McGrath  <roland@redhat.com>
18996
18997         * manual/arith.texi (Rounding Functions): Fix rint description
18998         implicit in round description.
18999
19000 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
19001
19002         * elf/Makefile: Fix linking for a few tests to make recent linker
19003         happy.
19004
19005 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19006
19007         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19008         $(common-objpfx)libc_nonshared.a.
19009
19010 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19011
19012         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19013         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19014         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19015         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19016         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19017         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19018         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19019         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19023         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19024         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19025         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19031         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19034         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19035         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19036         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19037         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19038         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19039         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19040         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19041         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19042         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19043         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19044         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19045         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19049         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19050         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19051         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19052         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19056         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19058         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19060
19061 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19062
19063         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19064         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19065         * string/memmove.c (memmove): Renamed to ...
19066         (MEMMOVE): ...this.  Default to memmove.
19067         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19068         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19069         (END_CHK): Define.
19070         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19071         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19072         mempcpy-ssse3-back memmove-ssse3-back.
19073         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19074         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19075         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19076         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19077         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19078         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19079         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19080         * sysdeps/x86_64/multiarch/memmove.c: New file.
19081         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19082         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19083         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19084         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19085         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19086         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19087         Define.
19088         (index_Fast_Copy_Backward): Define.
19089         (HAS_ARCH_FEATURE): Define.
19090         (HAS_FAST_REP_STRING): Define.
19091         (HAS_FAST_COPY_BACKWARD): Define.
19092
19093 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19094
19095         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19096         Restore proper fallback handling.
19097
19098 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19099
19100         [BZ #11701]
19101         * posix/group_member.c (__group_member): Correct checking loop.
19102
19103         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19104         OOM in getpwuid_r correctly.  Return error number when the caller
19105         should return, otherwise -1.
19106         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19107         call returning > 0 value.
19108         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19109
19110 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19111
19112         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19113         libc_nonshared.a from targets in modules-names.
19114
19115 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19116
19117         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19118         requires it.
19119
19120 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19121
19122         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19123         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19124         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19125         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19126
19127 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19128
19129         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19130
19131 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19132
19133         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19134         and F_GETPIPE_SZ.
19135         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19136         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19137         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19138         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19139         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19140         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19141
19142 2010-06-14  Roland McGrath  <roland@redhat.com>
19143
19144         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19145
19146 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19147
19148         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19149         __REDIRECT followed by __THROW.
19150         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19151         * posix/getopt.h (getopt): Likewise.
19152
19153 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19154
19155         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19156         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19157         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19158         in AT_FLAGS.
19159         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19160         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19161
19162 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19163
19164         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19165
19166 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19167
19168         [BZ #11640]
19169         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19170         Properly check family and model.
19171
19172 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19173
19174         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19175
19176 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19177
19178         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19179
19180 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19181
19182         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19183         symbol reference.
19184
19185 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19186
19187         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19188         symbol reference.
19189
19190 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19191
19192         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19193         and internal_recvmmsg.
19194         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19195         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19196         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19197         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19198
19199         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19200         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19201         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19202
19203 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19204
19205         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19206
19207 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19208
19209         POWER7 optimizations.
19210         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19211         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19212
19213 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19214
19215         * version.h: Update for 2.13 development version.
19216
19217 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19218
19219         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19220         exceptions.  Return 0.
19221
19222 2010-05-07  Roland McGrath  <roland@redhat.com>
19223
19224         * elf/ldconfig.c (main): Add a const.
19225
19226 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19227
19228         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19229         (args_options): Add no-idn option.
19230         (ahosts_keys_int): Add idn_flags to ai_flags.
19231         (parse_option): Handle 'i' option to clear idn_flags.
19232
19233         * malloc/malloc.c (_int_free): Possible race in the most recently
19234         added check.  Only act on the data if no current modification
19235         happened.
19236
19237 See ChangeLog.17 for earlier changes.