e87c0a3f2a606646b28f0b8f783a9a89a3cde0a9
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
2
3         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
4         unwind info if defined PIC. Fix special cases description.
5         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
6
7         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
8         DP_HI_MASK entry.
9         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
10
11 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12
13         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
14
15         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
16         is NULL.
17
18         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
19         (LDLIBS-tst-chk4): This.
20         (LDFLAGS-tst-chk5): Renamed to ...
21         (LDLIBS-tst-chk5): This.
22         (LDFLAGS-tst-chk6): Renamed to ...
23         (LDLIBS-tst-chk6): This.
24         (LDFLAGS-tst-lfschk4): Renamed to ...
25         (LDLIBS-tst-lfschk4): This.
26         (LDFLAGS-tst-lfschk5): Renamed to ...
27         (LDLIBS-tst-lfschk5): This.
28         (LDFLAGS-tst-lfschk6): Renamed to ...
29         (LDLIBS-tst-lfschk6): This.
30
31         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
32         on $(common-objpfx)soversions.mk.
33
34 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
35
36         [BZ #10014]
37         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
38         example host name.
39
40 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
41
42         * malloc/arena.c (arena_get_retry): New function that gets
43         another arena for the caller to try its request on.
44         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
45         current arena cannot fulfill the request.
46         (__libc_memalign): Likewise.
47         (__libc_memalign): Likewise.
48         (__libc_pvalloc): Likewise.
49         (__libc_calloc): Likewise.
50
51 2012-09-05  John Tobey  <john.tobey@gmail.com>
52
53         [BZ #13542]
54         * manual/arith.texi (Operations on Complex): Fix description
55         of carg branch cut.
56
57 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
58
59         [BZ #10014]
60         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
61         host name.
62
63         [BZ #10038]
64         * manual/memory.texi (Memory): Make order of menu items match
65         order of sections.
66
67 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
68
69         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
70         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
71         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
72
73 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
74
75         * csu/libc-tls.c (static_dtv): Renamed to ...
76         (_dl_static_dtv): This.  Make it global.
77         (_dl_initial_dtv): Removed.
78         (__libc_setup_tls): Updated.
79         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
80         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
81         DL_INITIAL_DTV.
82
83 2012-09-06  Petr Machata  <pmachata@redhat.com>
84
85         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
86         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
87         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
88         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
89
90 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
91
92         [BZ #14545]
93         * csu/libc-tls.c (_dl_initial_dtv): New variable.
94         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
95         freeing dtv[-1].
96
97 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
98
99         [BZ #14544]
100         * Makeconfig (link-static-before-libc): Replace $(+prector)
101         with $(+prectorT).
102         (link-static-after-libc): Replace $(+postctor) with
103         $(+postctorT).
104         (link-bounded): Replace $(+prector)/$(+postctor) with
105         $(+prectorT)/$(+postctorT).
106         (+prectorT): New macro.
107         (+postctorT): Likewise.
108
109 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
110
111         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
112         (round_str): Handle values above the maximum for IBM long double
113         as inexact.
114         * stdlib/tst-strtod-round.c (tests): Regenerated.
115
116 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
117
118         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
119         assembler flag.
120         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
121         zarch_nohighgprs around the zarch optimized routines.
122         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
123         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
124         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
125         for zarch.
126
127 2012-09-05  David S. Miller  <davem@davemloft.net>
128
129         * sysdeps/sparc/fpu/libm-test-ulps: Update.
130
131         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
132         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
133         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
134         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
135         entries.
136
137 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
138
139         * malloc/arena.c: Fold copyright years.
140         * malloc/mcheck.c, malloc/memusage.c: Likewise.
141
142 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
143
144         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
145
146 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
147
148         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
149
150 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
151
152         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
153         change internal state upon failure.
154
155 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
156
157         * malloc/mcheck.c (mcheck_check_all): Fix typo.
158         * malloc/memusage.c (mmap): Likewise.
159         (mmap64, mremap): Likewise.  Adjust name in comment.
160
161 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
162
163         * libio/fileops.c: Fix typos in comments.
164         * libio/oldfileops.c: Likewise.
165         * libio/wfileops.c: Likewise.
166
167 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
168
169         [BZ #1349]
170         * malloc/Makefile (tests): Add tst-malloc-usable test case.
171         (tst-malloc-usable-ENV): Set environment for test case.
172         * malloc/hooks.c (malloc_check_get_size): New function to get
173         requested size.
174         * malloc/malloc.c (musable): Use malloc_check_get_size.
175         * malloc/tst-malloc-usable.c: New test case.
176
177 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
178
179         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
180
181 2012-09-05  Allan McRae  <allan@archlinux.org>
182
183         [BZ #13966]
184         * configure.in (CXX_SYSINCLUDES): Use compiler output to
185         determine header location.
186         * configure: Regenerated.
187
188 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
189
190         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
191         float format.
192         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
193         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
194         format.
195         (test): Regenerate.
196
197 2012-09-04  David S. Miller  <davem@davemloft.net>
198
199         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
200         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
201         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
202
203 2012-09-04  Florian Weimer  <fweimer@redhat.com>
204
205         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
206         failures.
207
208         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
209
210 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
211
212         [BZ #9914]
213         * libio/iogetdelim.c: Include <limits.h>.
214         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
215         + len + 1 would overflow.
216
217 2012-09-03  Andreas Jaeger  <aj@suse.de>
218
219         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
220         * sysdeps/i386/fpu/libm-test-ulps: Update.
221
222 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
223
224         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
225         Add s_sinf-sse2, s_conf-sse2.
226
227         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
228         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
229         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
230         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
231
232         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
233         for using routine as __sinf_ia32.
234         Use macro for function declaration and weak_alias.
235         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
236         for using routine as __cosf_ia32.
237         Use macro for function declaration and weak_alias.
238
239         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
240         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
241
242         * sysdeps/x86_64/fpu/s_sinf.S: New file.
243         * sysdeps/x86_64/fpu/s_cosf.S: New file.
244         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
245
246         * math/libm-test.inc (cos_test): Add more test cases.
247         (sin_test): Likewise.
248         (sincos_test): Likewise.
249
250 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
251
252         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
253         (IFUNC_RESOLVE): Make pointers to the specialized implementations
254         hidden.
255         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
256
257 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
258
259         [BZ #14538]
260         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
261         first element of the GOT.
262         (elf_machine_load_address): Return the difference between
263         the runtime address of _DYNAMIC and elf_machine_dynamic ().
264
265 2012-09-01  Allan McRae  <allan@archlinux.org>
266
267         [BZ #13412]
268         * configure.in (AWK): Require gawk version 3.0 or later.
269         * configure: Regenerated.
270
271 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
272
273         * sysdeps/unix/sysv/linux/kernel-features.h
274         (__ASSUME_POSIX_CPU_TIMERS): Remove.
275         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
276         [__NR_clock_getres]: Make code unconditional.
277         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
278         (clock_getcpuclockid): Remove code left unreachable by removal of
279         conditionals.
280         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
281         code unconditional.
282         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
283         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
284         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
285         Make code unconditional.
286         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
287         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
288         * sysdeps/unix/sysv/linux/clock_settime.c
289         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
290         conditional code.
291         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
292         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
293
294 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
295
296         [BZ #14476]
297         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
298         scripts/test-installation.pl.
299
300         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
301         and $ld_so_version if it is set.
302
303 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
304
305         [BZ #14516]
306         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
307         failure if reading from procfs failed.
308         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
309
310 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
311
312         * sysdeps/unix/sysv/linux/kernel-features.h
313         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
314         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
315         Remove conditional code.
316         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
317         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
318         Remove conditional code.
319         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
320         * sysdeps/unix/sysv/linux/i386/fxstat.c
321         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
322         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
323         * sysdeps/unix/sysv/linux/i386/fxstatat.c
324         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
325         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
326         * sysdeps/unix/sysv/linux/i386/lxstat.c
327         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
328         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
329         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
330         Remove conditional code.
331         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
332         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
333         Remove conditional code.
334         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
335         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
336         <kernel-features.h>.
337         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
338         Remove.
339         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
340         Remove conditional code.
341         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
342         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
343         Remove conditional.
344
345 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
346
347         [BZ #5400]
348         * NEWS: Add fixed bug number.
349
350 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
351
352         [BZ #14519]
353         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
354         underflowing exponent in case of negative sign.
355         * stdlib/tst-strtod-round-data: Add more tests.
356         * stdlib/tst-strtod-round.c (tests): Regenerated.
357
358         [BZ #3479]
359         * stdlib/strtod_l.c (NDIG): Remove.
360         (HEXNDIG): Likewise.
361         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
362         smallest representable value.
363         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
364         lie within an exact representation of 1/2 ulp of the result.
365         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
366         unconditionally.
367         (TENS_P9_IDX): Define unconditionally.
368         (TENS_P9_SIZE): Likewise.
369         (TENS_P10_IDX): Likewise.
370         (TENS_P10_SIZE): Likewise.
371         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
372         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
373         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
374         entries for 10^2^13 and 10^2^14.
375         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
376         (TENS_P13_IDX): Define.
377         (TENS_P13_SIZE): Likewise.
378         (TENS_P14_IDX): Likewise.
379         (TENS_P14_SIZE): Likewise.
380         (_fpioconst_pow10): Change array size to
381         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
382         unconditional.
383         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
384         1024]: Add entries for 10^2^13 and 10^2^14.
385         [LAST_POW10 > _LAST_POW10]: Remove #error.
386         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
387         (_fpioconst_pow10): Change array size to
388         FPIOCONST_POW10_ARRAY_SIZE.
389         * stdlib/gen-fpioconst.c: New file.
390         * stdlib/gen-tst-strtod-round.c: Likewise.
391         * stdlib/tst-strtod-round-data: Likewise.
392         * stdlib/tst-strtod-round.c: Likewise.
393         * stdlib/Makefile (tests): Add tst-strtod-round.
394
395         [BZ #14459]
396         * stdlib/strtod_l.c: Include <stdint.h>.
397         (NDEBUG): Do not define.
398         (round_and_return): Change EXPONENT parameter to type intmax_t.
399         Rearrange calculations to avoid internal overflow possibilities.
400         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
401         Rearrange calculations to avoid internal overflow possibilities.
402         Assert that number fits inside MPNSIZE limbs.
403         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
404         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
405         calculations and add assertions to avoid internal overflow
406         possibilities.  Add casts to avoid signed/unsigned operations.
407         * stdlib/tst-strtod-overflow.c: New file.
408         * stdlib/Makefile (tests): Add tst-strtod-overflow.
409
410 2012-08-25  Marek Polacek  <polacek@redhat.com>
411
412         * time/time.h: Fix some typos in comments.
413
414 2012-08-23  Roland McGrath  <roland@hack.frob.com>
415
416         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
417         * posix/tst-rfc3484-2.c: Likewise.
418         * posix/tst-rfc3484-3.c: Likewise.
419
420 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
421
422         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
423         (EF_ARM_ABI_FLOAT_HARD): Likewise.
424
425 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
426
427         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
428         #include of fxstatat64.c.
429
430 2012-08-22  Roland McGrath  <roland@hack.frob.com>
431
432         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
433         * shadow/getspent_r.c: Likewise.
434         * shadow/getspnam.c: Likewise.
435         * shadow/getspnam_r.c: Likewise.
436         * gshadow/getsgent.c: Likewise.
437         * gshadow/getsgent_r.c: Likewise.
438         * gshadow/getsgnam.c: Likewise.
439         * gshadow/getsgnam_r.c: Likewise.
440         * inet/getnetbyad.c: Likewise.
441         * inet/getnetbyad_r.c: Likewise.
442         * inet/getnetbynm.c: Likewise.
443         * inet/getnetbynm_r.c: Likewise.
444         * inet/getnetent.c: Likewise.
445         * inet/getnetent_r.c: Likewise.
446         * inet/getproto.c: Likewise.
447         * inet/getproto_r.c: Likewise.
448         * inet/getprtent.c: Likewise.
449         * inet/getprtent_r.c: Likewise.
450         * inet/getprtname.c: Likewise.
451         * inet/getprtname_r.c: Likewise.
452         * inet/getrpcbyname.c: Likewise.
453         * inet/getrpcbyname_r.c: Likewise.
454         * inet/getrpcbynumber.c: Likewise.
455         * inet/getrpcbynumber_r.c: Likewise.
456         * inet/getrpcent.c: Likewise.
457         * inet/getrpcent_r.c: Likewise.
458         * inet/getaliasent.c: Likewise.
459         * inet/getaliasent_r.c: Likewise.
460         * inet/getaliasname.c: Likewise.
461         * inet/getaliasname_r.c: Likewise.
462         * nscd/getgrgid_r.c: Likewise.
463         * nscd/getgrnam_r.c: Likewise.
464         * nscd/gethstbyad_r.c: Likewise.
465         * nscd/gethstbynm3_r.c: Likewise.
466         * nscd/getpwnam_r.c: Likewise.
467         * nscd/getpwuid_r.c: Likewise.
468         * nscd/getsrvbynm_r.c: Likewise.
469         * nscd/getsrvbypt_r.c: Likewise.
470         * nscd/gai.c: Likewise.
471
472         * configure.in (build_nscd): New substituted variable, set
473         by --disable-build-nscd and defaults to $use_nscd.
474         * configure: Regenerated.
475         * config.make.in (build-nscd): New substituted variable.
476         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
477         Change conditional to require [$(build-nscd) = yes] as well.
478         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
479
480         [BZ# 13696]
481         * configure.in (use_nscd): New substituted variable, set by
482         --disable-nscd.  If enabled, define USE_NSCD.
483         * configure: Regenerated.
484         * config.h.in: Add USE_NSCD.
485         * config.make.in (use-nscd): New substituted variable.
486         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
487         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
488         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
489         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
490         (CFLAGS-getgrnam_r.c): Likewise.
491         (CFLAGS-initgroups.c): Likewise.
492         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
493         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
494         Variables removed.
495         * inet/getnetgrent_r.c
496         (nscd_setnetgrent): New function, broken out of ...
497         (setnetgrent): ... here.  Call it.
498         (innetgr): Conditionalize nscd bits on [USE_NSCD].
499         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
500         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
501         * nscd/Makefile (routines, aux): Move definitions after include of
502         Makeconfig.  Conditionalize on [$(use-nscd) != no].
503         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
504         Conditionalize on [USE_NSCD].
505         (is_nscd, nscd_init_cb): Likewise.
506         (nss_load_library): Conditionalize init callback on [USE_NSCD].
507         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
508         * nss/nss_db/db-init.c: Likewise.
509         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
510         [USE_NSCD].
511         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
512         (make_request): Use it.
513         (cache_valid_p): New function.
514         (__check_pf): Use it.
515         * NEWS: Add item for --disable-nscd.
516
517 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
518
519         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
520         to support sed >= 4.2.1-20-ga9bf076.
521         * configure: Regenerated.
522
523 2012-08-22  Roland McGrath  <roland@hack.frob.com>
524
525         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
526         Conditionalize whole body on [IREL].
527
528 2012-08-22  Jeff Law <law@redhat.com>
529
530         [BZ #14505]
531         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
532         if the family is PF_UNSPEC.
533
534 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
535
536         * Makerules (lib-version): Rename from V.
537         (install-lib-nosubdir): Change V to lib-version.
538
539 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
540
541         [BZ #14252]
542         * powerpc32/power6/wcschr.c: New file.
543         * powerpc32/power6/wcscpy.c: New file.
544         * powerpc32/power6/wcsrchr.c: New file.
545         * powerpc64/power6/wcschr.c: New file.
546         * powerpc64/power6/wcscpy.c: New file.
547         * powerpc64/power6/wcsrchr.c: New file.
548
549 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
550
551         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
552         (two_way_short_needle): Use it.
553         * string/strstr.c (AVAILABLE1_USES_J): Define.
554         * string/strcasestr.c: Likewise.
555
556         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
557         array references.
558         * string/strcasestr.c (TOLOWER): Make side-effect safe.
559
560         [BZ #11607]
561         * NEWS: Add an entry.
562         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
563         define their defaults.
564         (two_way_short_needle): Detect end-of-string on-the-fly.
565         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
566         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
567         * string/bug-strcasestr1.c: New test.
568         * string/Makefile: Run it.
569
570 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
571
572         [BZ #11607]
573         * string/str-two-way.h (two_way_short_needle): Optimize matching of
574         the first character.
575
576 2012-08-21  Roland McGrath  <roland@hack.frob.com>
577
578         * csu/elf-init.c (__libc_csu_irel): Function removed.
579         * csu/libc-start.c (apply_irel): New function.
580         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
581
582 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
583
584         * sysdeps/unix/sysv/linux/kernel-features.h
585         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
586         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
587         <kernel-features.h>.
588         [__NR_fadvise64_64]: Make code unconditional.
589         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
590         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
591         !__NR_fadvise64_64)]: Likewise.
592         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
593         !__NR_fadvise64_64))]: Likewise.
594         [__NR_fadvise64]: Make code unconditional.
595         [!__NR_fadvise64]: Remove conditional code.
596         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
597         <kernel-features.h>.
598         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
599         unconditional.
600         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
601         conditional code.
602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
603         not include <kernel-features.h>.
604         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
605         unconditional.
606         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
607         conditional code.
608         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
609         include <kernel-features.h>.
610         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
611         unconditional.
612         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
613         conditional code.
614
615 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
616
617         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
618         slight instruction rearrangements per scrollpipe analysis.
619         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
620
621 2012-08-20  Roland McGrath  <roland@hack.frob.com>
622
623         * manual/syslog.texi (syslog; vsyslog, closelog):
624         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
625         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
626
627         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
628         DSOCAPS to match condition on defining it.
629
630 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
631
632         * sysdeps/unix/sysv/linux/kernel-features.h
633         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
634         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
635         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
636         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
638         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
639         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
640         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
641         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
642         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
643
644         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
645         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
646
647         * sysdeps/unix/sysv/linux/kernel-features.h
648         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
649         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
650         unconditional.
651         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
652         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
653         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
654         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
655         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
656         Make code unconditional.
657         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
658         (__mmap64) [!__NR_mmap2]: Likewise.
659         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
660         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
661         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
662         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
663         [__NR_mmap2]: Make code unconditional.
664         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
665         (__mmap64) [!__NR_mmap2]: Likewise.
666
667 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
668
669         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
670
671 2012-08-18  Andreas Jaeger  <aj@suse.de>
672
673         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
674
675 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
676
677         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
678         * include/unistd.h (__have_sock_cloexec): Likewise.
679         (__have_pipe2): Likewise.
680         (__have_dup3): Likewise.
681
682 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
683
684         [BZ #9685]
685         * include/unistd.h (__have_pipe2): Change define into an extern int.
686         (__have_dup3): Likewise.
687         * socket/have_sock_cloexec.c: Include fcntl.h.
688         (__have_pipe2): New variable.
689         (__have_dup3): Likewise.
690
691 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
692
693         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
694
695 2012-08-17  Marek Polacek  <polacek@redhat.com>
696
697         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
698         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
699
700 2012-08-17  Roland McGrath  <roland@hack.frob.com>
701
702         * configure.in: Add AC_SUBST for sysheaders.
703         * configure: Regenerated.
704         * config.make.in (sysheaders): New substituted variable.
705
706         * sysdeps/unix/mkfifo.c: Moved ...
707         * sysdeps/posix/mkfifo.c: ... here.
708         * sysdeps/unix/mkfifoat.c: Moved ...
709         * sysdeps/posix/mkfifoat.c: ... here.
710
711         * sysdeps/unix/utime.c: Moved ...
712         * sysdeps/posix/utime.c: ... here.
713
714         * sysdeps/unix/time.c: Moved ...
715         * sysdeps/posix/time.c: ... here.
716         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
717         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
718
719         * sysdeps/unix/nice.c: Moved ...
720         * sysdeps/posix/nice.c: ... here.
721
722         * sysdeps/unix/alarm.c: Moved ...
723         * sysdeps/posix/alarm.c: ... here.
724
725         * intl/Makefile ($(codeset_mo)): Depend on the input file.
726
727 2012-08-17  Jeff Law <law@redhat.com>
728
729         * intl/Makefile (codeset_mo): New variable.
730         ($(codeset_mo)): New target.
731         (tst-codeset.out): Depend on that.  Remove explicit rule.
732         (tst-gettext3.out, tst-gettext5.out): Likewise.
733         (LOCPATH-ENV, tst-codeset-ENV): New variables.
734         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
735         * intl/tst-codeset.sh: Remove.
736         * intl/tst-gettext3.sh: Likewise.
737         * intl/tst-gettext5.sh: Likewise.
738
739 2012-08-17  Roland McGrath  <roland@hack.frob.com>
740
741         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
742         * sysdeps/unix/syscalls.list: ... here.
743
744         * sysdeps/posix/getaddrinfo.c
745         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
746         (gaiconf_init, gaiconf_reload): Use them.
747         [!_STATBUF_ST_NSEC]
748         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
749         Define using time_t rather than struct timespec.
750
751         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
752         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
753         Macros removed.
754         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
755         [!NO_THREADS].
756         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
757         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
758         Likewise.
759
760         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
761         __libc_cleanup_push argument.
762
763         * bits/param.h: New file.
764         * misc/sys/param.h: New file.
765         * include/sys/param.h: New file.
766         * misc/Makefile (headers): Add bits/param.h.
767         * sysdeps/generic/sys/param.h: File removed.
768         * sysdeps/unix/sysv/linux/bits/param.h: New file.
769         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
770         * sysdeps/mach/hurd/bits/param.h: New file.
771         * sysdeps/mach/hurd/sys/param.h: New file.
772
773         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
774         last change.
775
776         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
777         [_IO_MTSAFE_IO].
778         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
779         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
780         New macros.
781
782         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
783         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
784         rather than -D_IO_MTSAFE_IO conditionally.
785         * stdio-common/Makefile (CPPFLAGS): Likewise.
786         * wcsmbs/Makefile (CPPFLAGS): Likewise.
787         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
788         Use $(libio-mtsafe).
789         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
790         of -D_IO_MTSAFE_IO.
791         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
792         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
793         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
794         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
795         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
796         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
797         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
798         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
799         (CFLAGS-fread_u_chk.c): Likewise.
800         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
801         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
802         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
803         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
804         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
805         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
806         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
807         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
808         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
809
810         * libio/Makefile: Test [$(libc-reentrant) = yes]
811         instead of [$(filter %REENTRANT, $(defines)) nonempty].
812
813         * Makeconfig
814         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
815         * sysdeps/pthread/configure: File removed.
816         * sysdeps/pthread/Makeconfig: New file.
817         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
818         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
819
820 2012-08-16  Gary Benson  <gbenson@redhat.com>
821
822         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
823         unmapping the first object in a namespace.
824
825 2012-08-16  Roland McGrath  <roland@hack.frob.com>
826
827         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
828         (__internal_setnetgrent): ... this.  Add internal_function to
829         definition.  Add libc_hidden_def.
830         (setnetgrent): Update caller.
831         (internal_endnetgrent): Renamed to ...
832         (__internal_endnetgrent): ... this.  Add internal_function to
833         definition.  Add libc_hidden_def.
834         (endnetgrent): Update caller.
835         (internal_getnetgrent_r): Renamed to ...
836         (__internal_getnetgrent_r): ... this.  Add internal_function to
837         definition.  Add libc_hidden_def.
838         (__getnetgrent_r): Update caller.
839         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
840
841 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
842
843         * stdlib/longlong.h: Update from GCC.
844
845 2012-08-16  Roland McGrath  <roland@hack.frob.com>
846
847         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
848         on _QL, which is set by umul_ppmm but never used.
849         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
850         variables, which are set by GMP macros but never used.
851         * stdio-common/_itowa.c (_itowa): Likewise.
852         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
853         * stdlib/mod_1.c (mpn_mod_1): Likewise.
854
855 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
856
857         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
858         struct La_sh_regs is not constant.
859         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
860         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
861         and struct La_sparc64_regs are not constant.
862
863 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
864
865         * sysdeps/unix/sysv/linux/kernel-features.h
866         (__ASSUME_POSIX_TIMERS): Remove.
867         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
868         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
869         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
870         Make code unconditional.
871         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
872         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
873         Make code unconditional.
874         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
875         * sysdeps/unix/sysv/linux/clock_nanosleep.c
876         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
877         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
878         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
879         Make code unconditional.
880         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
881         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
882         (__libc_missing_posix_timers): Remove.
883
884 2012-08-15  Roland McGrath  <roland@hack.frob.com>
885
886         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
887         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
888
889         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
890
891         * elf/dl-sym.c: Include <stdlib.h>.
892
893         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
894         constants, which avoids warnings in 32-bit builds.
895
896         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
897         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
898
899         * misc/lseek.c: File moved to ...
900         * io/lseek.c: ... here.
901
902         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
903
904         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
905         shifting LEN more than 31 bits at once.
906
907 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
908
909         [BZ #14195]
910         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
911         segmentation fault for a case of two empty input strings.
912         * string/test-strncasecmp.c (check1): Renamed to...
913         (bz12205): ...this.
914         (bz14195): Add new testcase for two empty input strings and N > 0.
915         (test_main): Call new testcase, adapt for renamed function.
916
917 2012-08-15  Andreas Jaeger  <aj@suse.de>
918
919         [BZ #14090]
920         * crypt/md5test2.c: New test, based on test supplied by Serge
921         Belyshev <belyshev@depni.sinp.msu.ru>.
922         * crypt/Makefile (xtests): Add md5test-giant..
923         * crypt/Makefile ($(objpfx)md5test-giant): Add.
924
925 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
926
927         [BZ #14090]
928         * crypt/md5.c (md5_process_block): Don't assume the buffer
929         length is less than 2**32.
930         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
931         length is less than 2**64.
932
933 2012-08-15  Roland McGrath  <roland@hack.frob.com>
934
935         * string/str-two-way.h: Include <sys/param.h>.
936         (MAX): Macro removed.
937
938         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
939         Move #define and #undef of memmove to just before and after
940         including <string.h>.
941
942         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
943         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
944         and after including <string.h>.  Move declarations of
945         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
946         to before #include "string/memmove.c".
947
948         * include/dirent.h: Declare __getdirentries.
949
950         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
951         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
952
953 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
954
955         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
956         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
957         * sysdeps/i386/configure: Regenerated.
958         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
959         STABS_CURRENT_FILE, and STABS_FUN.
960         (END): Remove call to STABS_FUN_END.
961         (STABS_CURRENT_FILE1): Delete.
962         (STABS_CURRENT_FILE): Likewise.
963         (STABS_FUN): Likewise.
964         (STABS_FUN_END): Likewise.
965         (STABS_FUN2): Likewise.
966         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
967         * sysdeps/x86_64/configure: Regenerated.
968
969 2012-08-14  Roland McGrath  <roland@hack.frob.com>
970
971         * elf/dl-open.c: Include <atomic.h>.
972         * elf/dl-lookup.c: Likewise.
973
974 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
975
976         * sysdeps/unix/sysv/linux/kernel-features.h
977         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
978         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
979         unconditionally.
980         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
981         unconditionally.
982         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
983         condition on __ASSUME_CLONE_THREAD_FLAGS.
984
985 2012-08-14  Andreas Jaeger  <aj@suse.de>
986
987         * sysdeps/i386/fpu/libm-test-ulps: Update.
988
989 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
990
991         * include/atomic.h (atomic_exchange_and_add): Split into ...
992         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
993         New atomic macros.
994
995 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
996
997         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
998
999 2012-08-13  Jeff Law <law@redhat.com>
1000
1001         * manual/stdio.texi (snprintf): Clarify handling of the trailing
1002         null byte in the output string.
1003
1004 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
1005
1006         * sysdeps/unix/sysv/linux/kernel-features.h
1007         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
1008         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
1009         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1010         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1011         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1012         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1013         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1014
1015 2012-08-09  Jeff Law <law@redhat.com>
1016
1017         [BZ #13939]
1018         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1019         When avoid_arena is set, don't retry in the that arena.  Pick the
1020         next one, whatever it might be.
1021         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1022         (arena_lock): Pass in new parameter to arena_get2.
1023         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1024         arena_get2.
1025         (__libc_malloc): Unify retrying after main arena failure with
1026         __libc_memalign version.
1027         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1028
1029 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1030
1031         [BZ #14166]
1032         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1033         to __redirect_strstr.
1034         (__strstr_sse42): Use typeof __redirect_strstr.
1035         (__strstr_ia32): Likewise.
1036         (__libc_strstr): New prototype.
1037         (strstr): Renamed to ...
1038         (__libc_strstr): This.
1039         (strstr): New strong alias of __libc_strstr.
1040         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1041         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1042         __redirect_time.
1043         Include <time.h>.
1044         (__libc_time): New prototype.
1045         (time_ifunc): Replace time with __libc_time.
1046         (time): New strong alias and hidden definition of __libc_time.
1047         (__GI_time): Remove strong alias.
1048         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1049         Include <stddef.h>.
1050         (memmove): Redefined to __redirect_memmove.
1051         (__memmove_sse2): Use typeof __redirect_memmove.
1052         (__memmove_ssse3): Likewise.
1053         (__memmove_ssse3_back): Likewise.
1054         (__libc_memmove): New prototype.
1055         (memmove): Renamed to ...
1056         (__libc_memmove): This.
1057         (memmove): New strong alias of __libc_memmove.
1058
1059 2012-08-08  Mark Salter  <msalter@redhat.com>
1060
1061         * elf/elf.h
1062         (R_MN10300_TLS_GD): Define.
1063         (R_MN10300_TLS_LD): Likewise.
1064         (R_MN10300_TLS_LDO): Likewise.
1065         (R_MN10300_TLS_GOTIE): Likewise.
1066         (R_MN10300_TLS_IE): Likewise.
1067         (R_MN10300_TLS_LE): Likewise.
1068         (R_MN10300_TLS_DTPMOD): Likewise.
1069         (R_MN10300_TLS_DTPOFF): Likewise.
1070         (R_MN10300_TLS_TPOFF): Likewise.
1071         (R_MN10300_SYM_DIFF): Likewise.
1072         (R_MN10300_ALIGN): Likewise.
1073         (R_MN10300_NUM): Update.
1074
1075 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1076
1077         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1078         Remove.
1079
1080 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1081
1082         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1083
1084         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1085         sysdeps/unix -> sysdeps/posix move.
1086         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1087
1088 2012-08-07      Allan McRae     <allan@archlinux.org>
1089
1090         [BZ #14303]
1091         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1092         (SUNOS_CPP): Likewise.
1093         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1094         not found.
1095         (open_input): Call CPP using execvp.
1096
1097 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1098
1099         * sysdeps/unix/sysv/linux/kernel-features.h
1100         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1101         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1102         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1103         (__ASSUME_WAITID_SYSCALL): Likewise.
1104         * sysdeps/unix/sysv/linux/dl-execstack.c
1105         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1106         code unconditional.
1107         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1108         conditional code.
1109         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1110         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1111         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1112         code.
1113         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1114         unconditional.
1115         [__ASSUME_WAITID_SYSCALL]: Likewise.
1116         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1117
1118 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1119
1120         * sysdeps/unix/closedir.c: Renamed to ...
1121         * sysdeps/posix/closedir.c: ... here.
1122         * sysdeps/unix/dirfd.c: Renamed to ...
1123         * sysdeps/posix/dirfd.c: ... here.
1124         * sysdeps/unix/dirstream.h: Renamed to ...
1125         * sysdeps/posix/dirstream.h: ... here.
1126         * sysdeps/unix/fdopendir.c: Renamed to ...
1127         * sysdeps/posix/fdopendir.c: ... here.
1128         * sysdeps/unix/opendir.c: Renamed to ...
1129         * sysdeps/posix/opendir.c: ... here.
1130         * sysdeps/unix/readdir.c: Renamed to ...
1131         * sysdeps/posix/readdir.c: ... here.
1132         * sysdeps/unix/readdir_r.c: Renamed to ...
1133         * sysdeps/posix/readdir_r.c: ... here.
1134         * sysdeps/unix/rewinddir.c: Renamed to ...
1135         * sysdeps/posix/rewinddir.c: ... here.
1136         * sysdeps/unix/seekdir.c: Renamed to ...
1137         * sysdeps/posix/seekdir.c: ... here.
1138         * sysdeps/unix/telldir.c: Renamed to ...
1139         * sysdeps/posix/telldir.c: ... here.
1140         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1141         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1142         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1143         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1144
1145         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1146         * bits/fcntl.h: ... here.
1147
1148         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1149         not 0.
1150         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1151         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1152         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1153         (struct flock): Move l_start, l_len to the beginning.
1154         Use __pid_t for l_pid.
1155         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1156         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1157         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1158         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1159         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1160         [__USE_LARGEFILE64] (struct flock64): New type.
1161         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1162
1163         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1164         * bits/dirent.h: ... here.
1165
1166         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1167         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1168
1169 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1172         Change from 2.6.0 to 2.6.16.
1173         * sysdeps/unix/sysv/linux/configure: Regenerated.
1174         * sysdeps/unix/sysv/linux/kernel-features.h
1175         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1176         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1177         version.
1178         (__ASSUME_UTIMES): Likewise.
1179         (__ASSUME_CLONE_STOPPED): Remove.
1180         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1181         architectures, not kernel version.
1182         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1183         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1184         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1185         (__ASSUME_WAITID_SYSCALL): Likewise.
1186         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1187         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1188         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1189         refer to older versions.
1190
1191 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1192
1193         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1194         Define alphasort64 as an alias.
1195         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1196         Define versionsort64 as an alias.
1197         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1198         Define scandir64 as an alias.
1199         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1200         Define scandirat64 as an alias.
1201         * dirent/alphasort64.c (alphasort64):
1202         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1203         * dirent/versionsort64.c: Likewise.
1204         * dirent/scandir64.c: Likewise.
1205         * dirent/scandirat64.c: Likewise.
1206         * sysdeps/wordsize-64/alphasort.c: File removed.
1207         * sysdeps/wordsize-64/alphasort64.c: File removed.
1208         * sysdeps/wordsize-64/scandir.c: File removed.
1209         * sysdeps/wordsize-64/scandir64.c: File removed.
1210         * sysdeps/wordsize-64/scandirat.c: File removed.
1211         * sysdeps/wordsize-64/scandirat64.c: File removed.
1212         * sysdeps/wordsize-64/versionsort.c: File removed.
1213         * sysdeps/wordsize-64/versionsort64.c: File removed.
1214         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1215         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1216         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1217         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1218         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1219         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1220         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1221         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1222
1223         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1224         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1225         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1226         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1227         [defined __arch64__ || defined __sparcv9]
1228         (__INO_T_MATCHES_INO64_T): New macro.
1229         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1230         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1231         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1232         * sysdeps/unix/sysv/linux/bits/dirent.h
1233         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1234         (_DIRENT_MATCHES_DIRENT64): New macro.
1235
1236         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1237         Define lockf64 as an alias.
1238         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1239         Define fseeko64 as an alias.
1240         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1241         Define ftello64 as an alias.
1242         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1243         Define _IO_fgetpos64 and fgetpos64 as aliases.
1244         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1245         Define _IO_fsetpos64 and fsetpos64 as aliases.
1246         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1247         Conditionalize body on this.
1248         * libio/fseeko64.c: Likewise.
1249         * libio/ftello64.c: Likewise.
1250         * libio/iofgetpos64.c: Likewise.
1251         * libio/iofsetpos64.c: Likewise.
1252         * sysdeps/wordsize-64/lockf.c: File removed.
1253         * sysdeps/wordsize-64/lockf64.c: File removed.
1254         * sysdeps/wordsize-64/fseeko.c: File removed.
1255         * sysdeps/wordsize-64/fseeko64.c: File removed.
1256         * sysdeps/wordsize-64/ftello.c: File removed.
1257         * sysdeps/wordsize-64/ftello64.c: File removed.
1258         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1259         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1260         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1261         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1262         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1263         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1264         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1265         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1266         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1267         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1268         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1269         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1270         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1271         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1272
1273         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1274         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1275         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1276         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1277         [defined __arch64__ || defined __sparcv9]
1278         (__OFF_T_MATCHES_OFF64_T): New macro.
1279         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1280         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1281         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1282         (__OFF_T_MATCHES_OFF64_T): New macro.
1283
1284 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1285
1286         * stdlib/secure-getenv.c (__secure_getenv): Replace
1287         GLIBC_2_16 with GLIBC_2_17.
1288
1289 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1290
1291         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1292         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1293
1294 2012-08-03  David S. Miller  <davem@davemloft.net>
1295
1296         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1297
1298 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1299
1300         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1301         Remove.
1302         (__ASSUME_CORRECT_SI_PID): Likewise.
1303         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1304         (__ASSUME_TMPFS_NAME): Likewise.
1305         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1306         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1307         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1308         (HAVE_AUX_SECURE): Make definition unconditional.
1309         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1310         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1311
1312 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1313
1314         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1315         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1316         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1317         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1318         __eloop_threshold instead of SYMLOOP_MAX.
1319
1320         * sysdeps/generic/eloop-threshold.h: New file.
1321         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1322         of MAXSYMLINKS.
1323         * elf/chroot_canon.c (chroot_canon): Likewise.
1324
1325 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1326
1327         [BZ #13717]
1328         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1329         Change to 2.6.0 everywhere.
1330         * sysdeps/unix/sysv/linux/configure: Regenerated.
1331         * sysdeps/unix/sysv/linux/kernel-features.h
1332         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1333         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1334         kernel versions.
1335         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1336         (__ASSUME_FUTEX_REQUEUE): Remove.
1337         (__ASSUME_STATFS64): Define unconditionally.
1338         (__ASSUME_AT_SECURE): Likewise.
1339         (__ASSUME_CORRECT_SI_PID): Likewise.
1340         (__ASSUME_TGKILL): Define without depending on kernel version for
1341         i386.
1342         (__ASSUME_UTIMES): Likewise.
1343         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1344         kernel version.
1345         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1346         (__ASSUME_TMPFS_NAME): Likewise.
1347         * README: Update reference to Linux kernel versions.
1348
1349 2012-08-02  Marek Polacek  <polacek@redhat.com>
1350
1351         [BZ# 14150]
1352         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1353         libc_cv_asm_type_prefix with %.
1354         * configure: Regenerated.
1355         * include/libc-symbols.h: Remove comment about
1356         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1357         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1358         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1359         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1360         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1361         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1362         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1363         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1364         * elf/tst-unique2mod1.c: Likewise.
1365         * elf/tst-unique1mod2.c: Likewise.
1366         * elf/tst-unique1mod1.c: Likewise.
1367         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1368         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1369         Replace ASM_TYPE_DIRECTIVE with .type.
1370         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1371         * sysdeps/i386/sysdep.h: Likewise.
1372         * sysdeps/x86_64/sysdep.h: Likewise.
1373         * sysdeps/sh/sysdep.h: Likewise.
1374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1375         Do not define ASM_TYPE_DIRECTIVE.
1376         * sysdeps/powerpc/sysdep.h: Likewise.
1377         * sysdeps/powerpc/powerpc32/sysdep.h:
1378         Replace ASM_TYPE_DIRECTIVE with .type.
1379         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1380         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1381         * sysdeps/i386/fpu/e_powf.S: Likewise.
1382         * sysdeps/i386/fpu/e_expl.S: Likewise.
1383         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1384         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1385         * sysdeps/i386/fpu/e_pow.S: Likewise.
1386         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1387         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1388         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1389         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1390         * sysdeps/i386/fpu/e_log2.S: Likewise.
1391         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1392         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1393         * sysdeps/i386/fpu/e_powl.S: Likewise.
1394         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1395         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1396         * sysdeps/i386/fpu/e_logl.S: Likewise.
1397         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1398         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1399         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1400         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1401         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1402         * sysdeps/i386/fpu/e_log.S: Likewise.
1403         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1404         * sysdeps/i386/fpu/e_logf.S: Likewise.
1405         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1406         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1407         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1408         * sysdeps/i386/fpu/e_log10.S: Likewise.
1409         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1410         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1411         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1412         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1413         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1414         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1415         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1416         * sysdeps/i386/i686/strtok.S: Likewise.
1417         * sysdeps/i386/i386-mcount.S: Likewise.
1418         * sysdeps/i386/strtok.S: Likewise.
1419         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1420         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1421         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1422         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1423         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1424         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1425         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1426         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1427         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1428         * sysdeps/x86_64/_mcount.S: Likewise.
1429         * sysdeps/x86_64/strtok.S: Likewise.
1430         * sysdeps/sh/_mcount.S: Likewise.
1431
1432 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1433
1434         * libio/iofopen.c: Include <fcntl.h>.
1435         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1436         (_IO_fopen64, fopen64): Define as aliases.
1437         * libio/iofopen64.c: Include <fcntl.h>.
1438         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1439         Conditionalize body on this.
1440         * sysdeps/wordsize-64/iofopen.c: File removed.
1441         * sysdeps/wordsize-64/iofopen64.c: File removed.
1442
1443 2012-08-01  Marek Polacek  <polacek@redhat.com>
1444
1445         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1446         Use dlfcn directly instead of a variable.
1447         (binfmt-subdir): Do not define.
1448         (dlfcn): Likewise.
1449
1450 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1451
1452         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1453         Remove all definitions.
1454         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1455         <kernel-features.h>.
1456         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1457         (miss_F_GETOWN_EX): Remove all definitions.
1458         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1459         macro definition.
1460         [!__ASSUME_FCNTL64]: Remove conditional code.
1461         [__ASSUME_FCNTL64]: Make code unconditional.
1462         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1463         <kernel-features.h>.
1464         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1465         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1466         (lockf64) [__NR_fcntl64]: Make code unconditional.
1467         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1468
1469         * sysdeps/unix/sysv/linux/kernel-features.h
1470         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1471         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1472         Make code unconditional.
1473         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1474         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1476         [__NR_vfork]: Make code unconditional.
1477         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1478         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1480         [__NR_vfork]: Make code unconditional.
1481         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1482         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1483
1484 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1485
1486         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1487         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1488
1489         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1490         Define mkstemp64 as an alias.
1491         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1492         Define mkstemps64 as an alias.
1493         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1494         Define mkostemp64 as an alias.
1495         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1496         Define mkostemps64 as an alias.
1497         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1498         Conditionalize body on this.
1499         * misc/mkostemp64.c: Likewise.
1500         * misc/mkostemps64.c: Likewise.
1501         * misc/mkstemps64.c: Likewise.
1502         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1503         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1504         * sysdeps/wordsize-64/mkostemp.c: File removed.
1505         * sysdeps/wordsize-64/mkstemp.c: File removed.
1506         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1507         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1508         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1509         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1510
1511         [BZ #14138]
1512         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1513         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1514         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1515         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1516
1517         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1518         compat_symbol macros from <shlib-compat.h> rather than the underlying
1519         default_symbol_version and symbol_version macros, so that DEFAULT
1520         lines in shlib-versions are respected.
1521         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1522
1523 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1524
1525         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1526         Declare with warn_unused_result.
1527         (setgid, setregid, setegid, setresgid): Likewise.
1528         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1529         Likewise.
1530         * WUR-REPORT: Remove set*id functions.
1531
1532 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1533
1534         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1535
1536 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1537
1538         * include/sys/socket.h (__libc_accept, __libc_accept4):
1539         Add attribute_hidden.
1540         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1541
1542         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1543         use of PTR_MANGLE.
1544         * inet/getnetgrent_r.c (setup): Likewise.
1545
1546         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1547
1548 2012-07-31  David S. Miller  <davem@davemloft.net>
1549
1550         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1551
1552 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1553
1554         [BZ #13629]
1555         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1556         value between 1.0 and 2.0 and smaller part has absolute value less
1557         than 1.0.
1558         * math/s_clog10.c (__clog10): Likewise.
1559         * math/s_clog10f.c (__clog10f): Likewise.
1560         * math/s_clog10l.c (__clog10l): Likewise.
1561         * math/s_clogf.c (__clogf): Likewise.
1562         * math/s_clogl.c (__clogl): Likewise.
1563         * math/libm-test.inc (clog_test): Add more tests.
1564         (clog10_test): Likewise.
1565         * sysdeps/i386/fpu/libm-test-ulps: Update.
1566         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1567
1568 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1569
1570         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1571         Exit with zero in case no suitable GID is found, and write a
1572         message to standard error.
1573
1574 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1575
1576         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1577         rather than to 1.
1578         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1579         (MAXPATHLEN): Removed.
1580         (NOGROUP, NODEV): New macros.
1581         (setbit, clrbit, isset, isclr): New macros.
1582         (howmany, roundup, powerof2): New macros.
1583         (DEV_BSIZE): New macro.
1584
1585         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1586         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1587
1588         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1589         definition on [!__NO_LONG_DOUBLE_MATH].
1590
1591         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1592         PTR_MANGLE and PTR_DEMANGLE.
1593
1594         * socket/accept4.c (accept4): Rename to __libc_accept4.
1595         Define accept4 as a weak alias.
1596
1597         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1598         on [_DIRENT_HAVE_D_TYPE].
1599         * io/ftw.c (ftw_dir): Likewise.
1600
1601         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1602
1603         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1604
1605         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1606         Use the BSD numbers rather than the arbitrary ones we had.
1607         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1608         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1609         (SIGXCPU, SIGXFSZ): New macros.
1610         (_NSIG): Now 32.
1611
1612         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1613         initializer on [_LIBC_REENTRANT].
1614
1615         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1616         definitions inside [_POSIX_MAPPED_FILES].
1617
1618         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1619
1620         * dirent/opendir.c: Include <fcntl.h>.
1621
1622         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1623         (__libc_getspecific): Likewise.
1624         (__libc_key_create): Likewise.
1625
1626         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1627         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1628         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1629         (tmpfile64): Define as alias.
1630         * sysdeps/wordsize-64/tmpfile.c: File removed.
1631         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1632         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1633         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1634
1635         * stdio-common/vfscanf.c: Include <stdbool.h>.
1636         * nss/makedb.c: Likewise.
1637         * stdio-common/_i18n_number.h: Likewise.
1638         * argp/argp-help.c: Likewise.
1639         * posix/wordexp.c: Likewise.
1640         * sysdeps/posix/spawni.c: Likewise.
1641         * nss/nss_files/files-initgroups.c: Likewise.
1642         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1643         * nss/nss_files/files-initgroups.c: Likewise.
1644         * nss/nss_db/db-netgrp.c: Likewise.
1645         * nss/nss_db/db-initgroups.c: Likewise.
1646         * io/fchmodat.c: Include <sys/stat.h>.
1647
1648         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1649         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1650
1651         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1652         [HAVE_MMAP].
1653
1654         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1655         Add multiple inclusion protection.
1656
1657 2012-07-27  David S. Miller  <davem@davemloft.net>
1658
1659         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1660
1661 2012-07-27  Gary Benson  <gbenson@redhat.com>
1662
1663         [BZ #14298]
1664         * elf/rtld.c: Include <stap-probe.h>.
1665         (dl_main): Added static probes "init_start" and "init_complete".
1666         * elf/dl-load.c: Include <stap-probe.h>.
1667         (lose): Take new parameter "nsid".
1668         Added static probe "map_failed".
1669         (_dl_map_object_from_fd): Pass namespace id to lose.
1670         Added static probe "map_start".
1671         (open_verify): Pass namespace id to lose.
1672         * elf/dl-open.c: Include <stap-probe.h>.
1673         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1674         and "reloc_complete".
1675         * elf/dl-close.c: Include <stap-probe.h>.
1676         (_dl_close_worker): Added static probes "unmap_start" and
1677         "unmap_complete".
1678         * elf/rtld-debugger-interface.txt: New file documenting the above.
1679
1680 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1681
1682         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1683         rather than a string variable.
1684         * sunrpc/rpc_main.c (h_output): Likewise.
1685         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1686
1687 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1688
1689         * inet/check_native.c: New file.
1690
1691 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1692
1693         [BZ #13629]
1694         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1695         if larger part has absolute value 1.0.
1696         * math/s_clog10.c (__clog10): Likewise.
1697         * math/s_clog10f.c (__clog10f): Likewise.
1698         * math/s_clog10l.c (__clog10l): Likewise.
1699         * math/s_clogf.c (__clogf): Likewise.
1700         * math/s_clogl.c (__clogl): Likewise.
1701         * math/libm-test.inc (clog_test): Add more tests.
1702         (clog10_test): Likewise.
1703         * sysdeps/i386/fpu/libm-test-ulps: Update.
1704         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1705
1706         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1707         (pltexit): Likewise.
1708         (La_regs): Likewise.
1709         (La_retval): Likewise.
1710         (int_retval): Likewise.
1711         Update #error for removed macros to refer only to definitions in
1712         tst-audit.h.
1713         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1714         macro.
1715         (pltexit): Likewise.
1716         (La_regs): Likewise.
1717         (La_retval): Likewise.
1718         (int_retval): Likewise.
1719         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1720         macro.
1721         (pltexit): Likewise.
1722         (La_regs): Likewise.
1723         (La_retval): Likewise.
1724         (int_retval): Likewise.
1725         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1726         macro.
1727         (pltexit): Likewise.
1728         (La_regs): Likewise.
1729         (La_retval): Likewise.
1730         (int_retval): Likewise.
1731         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1732         macro.
1733         (pltexit): Likewise.
1734         (La_regs): Likewise.
1735         (La_retval): Likewise.
1736         (int_retval): Likewise.
1737         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1738         macro.
1739         (pltexit): Likewise.
1740         (La_regs): Likewise.
1741         (La_retval): Likewise.
1742         (int_retval): Likewise.
1743         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1744         macro.
1745         (pltexit): Likewise.
1746         (La_regs): Likewise.
1747         (La_retval): Likewise.
1748         (int_retval): Likewise.
1749         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1750         macro definitions in tst-audit.h.
1751         * sysdeps/i386/tst-audit.h: New file.
1752         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1753         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1754         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1755         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1756         * sysdeps/sh/tst-audit.h: Likewise.
1757         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1758         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1759         * sysdeps/x86_64/tst-audit.h: Likewise.
1760
1761 2012-07-26  Andreas Jaeger  <aj@suse.de>
1762
1763         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1764         ptrace.
1765
1766         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1767         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1768         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1769         PTRACE_O_MASK.
1770         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1771         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1772         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1773
1774         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1775         value.
1776
1777         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1778         _sigsys.
1779         (si_call_addr, si_syscall, si_arch): Define new macro.
1780         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1781         _sigsys.
1782         (si_call_addr, si_syscall, si_arch): Define new marcro.
1783         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1784         _sigsys.
1785         (si_call_addr, si_syscall, si_arch): Define new macro.
1786         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1787         _sigsys.
1788         (si_call_addr, si_syscall, si_arch): Define new macro.
1789
1790 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1791
1792         [BZ #13717]
1793         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1794         Change to 2.4.21 where previously 2.4.1.
1795         * sysdeps/unix/sysv/linux/configure: Regenerated.
1796         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1797         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1798         Linux kernel version.
1799         (__ASSUME_STD_AUXV): Remove.
1800         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1801         kernel version.
1802         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1803         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1804         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1805         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1806         (__ASSUME_NETLINK_SUPPORT): Likewise.
1807         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1808         (__no_netlink_support): Remove conditional definition.
1809         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1810         Remove.
1811         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1812         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1813         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1814         (if_nameindex_ioctl): Remove.
1815         (if_nameindex_netlink): Do not handle __no_netlink_support.
1816         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1817         code.
1818         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1819         Remove conditional code.
1820         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1821         code.
1822         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1823         unconditional.
1824         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1825         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1826         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1827         Remove.
1828         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1829         [!__ASSUME_STD_AUXV]: Remove conditional code.
1830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1831         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1832         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1833         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1834         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1835         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1836         code.
1837         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1838         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1839         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1840         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1841         conditional code.
1842         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1843         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1844         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1845         code.
1846         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1847         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1848         conditional code.
1849         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1850         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1851         code unconditional.
1852         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1853         conditional code.
1854         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1855         unconditional.
1856         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1857         conditional code.
1858         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1859         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1860         unconditional.
1861         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1862         conditional code.
1863         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1864         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1865         code unconditional.
1866         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1867         conditional code.
1868         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1869         unconditional.
1870         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1871         conditional code.
1872         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1873         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1874         code unconditional.
1875         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1876         conditional code.
1877         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1878         unconditional.
1879         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1880         conditional code.
1881
1882 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1883
1884         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1885         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1886         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1887         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1888         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1889         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1890         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1891         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1892         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1893         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1894         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1895         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1896         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1897         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1898         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1899         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1900         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1901         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1902         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1903         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1904         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1905         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1906         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1907
1908 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1909
1910         * Versions.def: Add GLIBC_2.17.
1911         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1912         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1913         Introduce __libc_secure_getenv.
1914         * stdlib/Versions (2.17): Add secure_getenv
1915         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1916         * stdlib/secure-getenv.c: Rename __secure_getenv to
1917         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1918         symbol __secure_getenv for GLIBC_2.0.
1919         * stdlib/tst-secure-getenv.c: New.
1920         * stdlib/Makefile (tests): Add testcase.
1921         * manual/startup.texi (Environment Access): Document
1922         secure_getenv.
1923         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1924         __libc_secure_getenv.
1925         * inet/ruserpass.c (ruserpass): Likewise.
1926         * malloc/mtrace.c (mtrace): Likewise.
1927         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1928         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1929         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1930         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1931         HAVE_SECURE_GETENV.
1932         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1933         __secure_getenv to __libc_secure_getenv.
1934         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1935         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1936         Likewise.
1937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1938         Likewise.
1939         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1940         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1941         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1942         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1943         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1944         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1945         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1946
1947 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1948
1949         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1950         (struct La_i86_retval): Likewise.
1951         (struct La_x86_64_regs): Likewise.
1952         (struct La_x86_64_retval): Likewise.
1953         (struct La_x32_regs): Likewise.
1954         (struct La_x32_retval): Likewise.
1955         (struct La_ppc32_regs): Likewise.
1956         (struct La_ppc32_retval): Likewise.
1957         (struct La_ppc64_regs): Likewise.
1958         (struct La_ppc64_retval): Likewise.
1959         (struct La_sh_regs): Likewise.
1960         (struct La_sh_retval): Likewise.
1961         (struct La_s390_32_regs): Likewise.
1962         (struct La_s390_32_retval): Likewise.
1963         (struct La_s390_64_regs): Likewise.
1964         (struct La_s390_64_retval): Likewise.
1965         (struct La_sparc32_regs): Likewise.
1966         (struct La_sparc32_retval): Likewise.
1967         (struct La_sparc64_regs): Likewise.
1968         (struct La_sparc64_retval): Likewise.
1969         (struct audit_ifaces): Remove architecture-specific pltenter and
1970         pltexit members.
1971         * sysdeps/i386/ldsodefs.h: New file.
1972         * sysdeps/powerpc/ldsodefs.h: Likewise.
1973         * sysdeps/s390/ldsodefs.h: Likewise.
1974         * sysdeps/sh/ldsodefs.h: Likewise.
1975         * sysdeps/sparc/ldsodefs.h: Likewise.
1976         * sysdeps/x86_64/ldsodefs.h: Likewise.
1977
1978 2012-07-25  Marek Polacek  <polacek@redhat.com>
1979
1980         [BZ #6808]
1981         * math/libm-test.inc (yn_test): Add another test.
1982         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1983         to ERANGE when the result is +-Inf.
1984         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1985         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1986         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1987         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1988
1989 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1990
1991         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1992         equal to 0.
1993         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1994         clock_t.
1995         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
1996
1997 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
1998
1999         * configure.in <sysdeps resolving>: Correct printing
2000         Implies_before.
2001         * configure: Regenerate.
2002
2003 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
2004
2005         * math/w_ilogb.c: Include <limits.h>.
2006         * math/w_ilogbl.c: Likewise.
2007
2008 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2009
2010         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2011         va_copy.  Document allowing for unavailable va_copy only as
2012         pre-C99 compatibility.
2013         * manual/string.texi (Copying and Concatenation): Use va_copy
2014         instead of __va_copy in concat example.
2015
2016 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2017
2018         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2019         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2020         it if not null.
2021
2022         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2023         with O_NOLINK passed to __file_name_lookup.
2024
2025         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2026         with O_NOLINK passed to __file_name_lookup.
2027
2028         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2029         negative N or less than NGIDS.
2030
2031         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2032         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2033         enough.  Use memcpy instead of strncpy.
2034
2035 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2036
2037         * elf/Makefile (check-data): Remove.
2038         (localplt.data): New vpath directive.
2039         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2040         instead of $(check-data).
2041         * scripts/data/localplt-generic.data: Move to ...
2042         * sysdeps/generic/localplt.data: ... here.
2043         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2044         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2045         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2047         ... here.
2048         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2050         ... here.
2051         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2052         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2053         ... here.
2054         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2055         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2056         ... here.
2057         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2058         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2059         ... here.
2060         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2061         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2062         ... here.
2063
2064 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2065
2066         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2067         PPC32 and PPC64 files.
2068         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2069         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2070
2071 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2072
2073         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2074         __makecontext_ret to ...
2075         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2076         ... here and call exit if uc_link is NULL.  New file.
2077         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2078         __makecontext_ret.S.
2079         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2080         __makecontext_ret to ...
2081         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2082         ... here and call exit if uc_link is NULL.  New file.
2083         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2084         __makecontext_ret.S.
2085
2086 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2087
2088         * elf/elf.h (R_390_IRELATIVE): New definition.
2089         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2090         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2091         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2092         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2093         (elf_machine_lazy_rel): Likewise.
2094         * sysdeps/s390/dl-irel.h: New file.
2095         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2096         * sysdeps/s390/s390-64/memset.S: New asm code.
2097         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2098         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2099         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2100         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2101         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2102         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2103         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2104         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2105         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2106         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2107         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2108         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2109         * sysdeps/s390/s390-32/memset.S: New asm code.
2110         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2111
2112 2012-07-17  Marek Polacek  <polacek@redhat.com>
2113
2114         [BZ #14349]
2115         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2116         * sysdeps/s390/s390-64/configure.in: Likewise.
2117         * sysdeps/sparc/configure.in: Likewise.
2118         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2119         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2120         * sysdeps/i386/configure.in: Likewise.
2121         * sysdeps/x86_64/configure.in: Likewise.
2122         * sysdeps/sh/configure.in: Likewise.
2123         * sysdeps/s390/s390-32/configure: Regenerated.
2124         * sysdeps/s390/s390-64/configure: Likewise.
2125         * sysdeps/x86_64/configure: Likewise.
2126         * sysdeps/sh/configure: Likewise.
2127         * sysdeps/powerpc/powerpc64/configure: Likewise.
2128         * sysdeps/powerpc/powerpc32/configure: Likewise.
2129         * sysdeps/sparc/configure: Likwise.
2130         * sysdeps/i386/configure: Likewise.
2131
2132         * elf/dl-open.c: Comment fixes.
2133
2134 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2135
2136         * Makefile [CXX] (check-data): Remove.
2137         [CXX] (c++-types.data): New vpath directive.
2138         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2139         vpath.  Do not allow for C++ type data being missing.
2140         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2141         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2142         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2143         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2144         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2145         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2146         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2147         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2148         ... here.
2149         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2150         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2151         ... here.
2152         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2153         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2154         ... here.
2155         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2156         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2157         ... here.
2158         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2159         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2160         ... here.
2161         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2162         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2163         ... here.
2164         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2165         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2166         ... here.
2167         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2168         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2169
2170         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2171         definitions to architecture-specific files.
2172         (TLS_IE): Likewise.
2173         (TLS_LD): Likewise.
2174         (TLS_GD): Likewise.
2175         * sysdeps/i386/tls-macros.h: New file.
2176         * sysdeps/powerpc/tls-macros.h: Likewise.
2177         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2178         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2179         * sysdeps/sh/tls-macros.h: Likewise.
2180         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2181         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2182         * sysdeps/x86_64/tls-macros.h: Likewise.
2183
2184 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2185
2186         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2187         zero value for regular exit case.
2188
2189         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2190         (__start_context): Preserve zero value for regular exit case.
2191
2192 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2193             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2194
2195         * manual/setjmp.texi (setcontext): Clarify normal process
2196         termination when uc_link is the null pointer.
2197         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2198         exit call.
2199
2200 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2201
2202         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2203         preprocessor.  Test for each exception mask separately.
2204
2205 2012-07-16  Andreas Jaeger  <aj@suse.de>
2206
2207         * po/ru.po: Update from translation team.
2208
2209 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2210
2211         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2212         equal to 0.
2213         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2214         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2215         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2216         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2217         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2218
2219 2012-07-13  Andreas Jaeger  <aj@suse.de>
2220
2221         * po/fr.po: Update from translation team.
2222
2223 2012-07-12  Marek Polacek  <polacek@redhat.com>
2224
2225         [BZ #14173]
2226         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2227         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2228         loop condition.
2229
2230 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2231
2232         [BZ #13717]
2233         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2234         Change to 2.4.1 where previously 2.4.0.
2235         * sysdeps/unix/sysv/linux/configure: Regenerated.
2236         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2237         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2238         version.
2239         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2240         (__ASSUME_AT_CLKTCK): Remove.
2241         (__ASSUME_AT_PAGESIZE): Likewise.
2242         (__ASSUME_AT_XID): Likewise.
2243         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2244         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2245         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2246         unconditionally.
2247         (HAVE_AUX_PAGESIZE): Likewise.
2248         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2249         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2250         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2251
2252 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2253
2254         [BZ #14307]
2255         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2256         the temporary buffer used to invoke __gethostbyname2_r,
2257         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2258         host_data / struct gaih_addrtuple.
2259         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2260         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2261         header file nss/nsswitch.h.
2262         * nss/nsswitch.h (global scope): Add definition of implementation
2263         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2264         resolv/nss_dns/dns-host.c).
2265
2266 2012-07-11  Andreas Jaeger  <aj@suse.de>
2267
2268         * po/fr.po: Update from translation team.
2269
2270         * po/sv.po: Update from translation team
2271         * po/fr.po: Another update from translation team.
2272
2273 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2274
2275         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2276         for subnormals or multiply small sinh result by itself.
2277         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2278         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2279
2280 2012-07-11  David S. Miller  <davem@davemloft.net>
2281
2282         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2283
2284 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2285
2286         [BZ #14347]
2287         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2288         (INTERNAL_MARK): Shift it here.
2289
2290 2012-07-10  Marek Polacek  <polacek@redhat.com>
2291
2292         [BZ #14151]
2293         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2294         libc_cv_asm_global_directive with .globl.
2295         * configure: Regenerated.
2296         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2297         with .globl.
2298         * sysdeps/i386/configure: Regenerated.
2299         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2300         with .globl.
2301         * sysdeps/x86_64/configure: Regenerated.
2302         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2303         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2304         * elf/tst-unique2mod2.c: Likewise.
2305         * elf/tst-unique2mod1.c: Likewise.
2306         * elf/tst-unique1mod2.c: Likewise.
2307         * elf/tst-unique1mod1.c: Likewise.
2308         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2309         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2310         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2311         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2312         * sysdeps/mach/sysdep.h: Likewise.
2313         * sysdeps/i386/sysdep.h: Likewise.
2314         * sysdeps/i386/i386-mcount.S: Likewise.
2315         * sysdeps/x86_64/_mcount.S: Likewise.
2316         * sysdeps/x86_64/sysdep.h: Likewise.
2317         * sysdeps/sh/_mcount.S: Likewise.
2318         * sysdeps/sh/sysdep.h: Likewise.
2319         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2320         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2321         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2322         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2323         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2324         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2325         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2326         * locale/localeinfo.h: Likewise.
2327         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2328         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2329
2330 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2331
2332         [BZ #14336]
2333         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2334         system".
2335         * manual/message.texi (The Uniforum approach): Likewise.
2336         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2337         (glibc iconv Implementation): Likewise.
2338
2339 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2340
2341         [BZ #14337]
2342         * math/s_clog.c (__clog): Avoid scaling a value down where that
2343         could result in underflow.
2344         * math/s_clog10.c (__clog10): Likewise.
2345         * math/s_clog10f.c (__clog10f): Likewise.
2346         * math/s_clog10l.c (__clog10l): Likewise.
2347         * math/s_clogf.c (__clogf): Likewise.
2348         * math/s_clogl.c (__clogl): Likewise.
2349         * math/libm-test.inc (clog_test): Add more tests.
2350         (clog10_test): Likewise.
2351         * sysdeps/i386/fpu/libm-test-ulps: Update.
2352         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2353
2354 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2355
2356         [BZ #14283]
2357         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2358         by 7 not 8 to examine high bit of fractional part.
2359
2360         [BZ #14042]
2361         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2362         for call to __mcount_internal.
2363         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2364         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2365         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2366
2367 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2368
2369         [BZ #14154]
2370         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2371         approximation for values within 0x1p-13f of an odd multiple of
2372         pi/4.
2373         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2374         exception.  Add more tests.
2375         * sysdeps/i386/fpu/libm-test-ulps: Update.
2376
2377         [BZ #6778]
2378         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2379         inputs and return -1 for them.  Do not check for +Inf in case not
2380         reachable for +Inf.
2381         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2382         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2383         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2384         and return -1 for them.  Do not check for +Inf in case not
2385         reachable for +Inf.
2386         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2387         define.
2388         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2389         and return -1 for them.  Do not check for +Inf in case not
2390         reachable for +Inf.
2391         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2392         spurious underflow.
2393         * sysdeps/i386/fpu/libm-test-ulps: Update.
2394         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2395
2396 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2397
2398         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2399
2400 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2401
2402         [BZ #14157]
2403         [BZ #14331]
2404         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2405         could result in spurious underflow.  Scale down values above
2406         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2407         * math/s_csqrtf.c (__csqrtf): Likewise.
2408         * math/s_csqrtl.c (__csqrtl): Likewise.
2409         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2410         spurious underflow.
2411         * sysdeps/i386/fpu/libm-test-ulps: Update.
2412         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2413
2414 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2415
2416         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2417         xopen-msg.sed.
2418         * catgets/xopen-msg.awk: New file.
2419         * catgets/xopen-msg.sed: Removed.
2420
2421         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2422         po2text.sed.
2423         * intl/po2test.awk: New file.
2424         * intl/po2test.sed: Removed.
2425
2426 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2427
2428         [BZ #14328]
2429         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2430         or multiply small sinh result by itself.
2431         * math/s_ctanf.c (__ctanf): Likewise.
2432         * math/s_ctanh.c (__ctanh): Likewise.
2433         * math/s_ctanhf.c (__ctanhf): Likewise.
2434         * math/s_ctanhl.c (__ctanhl): Likewise.
2435         * math/s_ctanl.c (__ctanl): Likewise.
2436         * math/libm-test.inc (ctan_test_tonearest): New function.
2437         (ctan_test_towardzero): Likewise.
2438         (ctan_test_downward): Likewise.
2439         (ctan_test_upward): Likewise.
2440         (ctanh_test_tonearest): Likewise.
2441         (ctanh_test_towardzero): Likewise.
2442         (ctanh_test_downward): Likewise.
2443         (ctanh_test_upward): Likewise.
2444         (main): Call these new functions.
2445         * sysdeps/i386/fpu/libm-test-ulps: Update.
2446         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2447
2448 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2449
2450         * .gitignore: Delete /ports entry.
2451
2452 2012-07-03  Andreas Jaeger  <aj@suse.de>
2453
2454         * po/bg.po: Update from translation team.
2455         * po/cs.po: Likewise.
2456         * po/de.po: Likewise.
2457         * po/hr.po: Likewise.
2458         * po/nl.pl: Likewise.
2459         * po/pl.po: Likewise.
2460         * po/vi.po: Likewise.
2461
2462 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2463
2464         * Makeconfig [!+link] (+link-before-libc): New variable.
2465         [!+link] (+link-after-libc): Likewise.
2466         [!+link] (+link-tests): Likewise.
2467         [!+link] (+link): Define in terms of $(+link-before-libc) and
2468         $(+link-after-libc).
2469         [!+link-static] (+link-static-before-libc): New variable.
2470         [!+link-static] (+link-static-after-libc): Likewise.
2471         [!+link-static] (+link-static-tests): Likewise.
2472         [!+link-static] (+link-static): Define in terms of
2473         $(+link-static-before-libc) and $(+link-static-after-libc).
2474         [build-shared] (link-libc-before-gnulib): New variable.
2475         [build-shared] (link-libc-tests): Likewise.
2476         [build-shared] (link-libc): Define in terms of
2477         $(link-libc-before-gnulib).
2478         [!build-shared] (link-libc-tests): New variable.
2479         (link-libc-static-tests): New variable.
2480         [!gnulib] (gnulib-arch): New variable.
2481         [!gnulib] (gnulib-tests): Likewise.
2482         [!gnulib] (static-gnulib-arch): Likewise.
2483         [!gnulib] (static-gnulib-tests): Likewise.
2484         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2485         Define with "=" instead of ":=".
2486         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2487         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2488         * Rules (binaries-all-notests): New variable.
2489         (binaries-all-tests): Likewise.
2490         (binaries-static-notests): Likewise.
2491         (binaries-static-tests): Likewise.
2492         (binaries-all): Define using $(binaries-all-notests) and
2493         $(binaries-all-tests).
2494         (binaries-static): Define using $(binaries-static-notests) and
2495         $(binaries-static-tests).
2496         (binaries-shared-tests): New variable.
2497         (binaries-shared-notests): Likewise.
2498         (binaries-shared): Remove variable.
2499         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2500         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2501         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2502         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2503         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2504         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2505         * elf/Makefile (sln-modules): New variable.
2506         (extra-objs): Add $(sln-modules:=.o).
2507         (ldconfig-modules): Add static-stubs.
2508         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2509         * elf/static-stubs.c: New file.
2510
2511         [BZ #14283]
2512         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2513         by 7 not 8 to examine high bit of fractional part.  Use volatile
2514         variables when splitting into final array of floats if
2515         __FLT_EVAL_METHOD__ != 0.
2516         * math/libm-test.inc (cos_test): Add another test.
2517         (sin_test): Likewise.
2518         * sysdeps/i386/fpu/libm-test-ulps: Update.
2519
2520         [BZ #14273]
2521         * math/libm-test.inc (cosh_test): Add more tests.
2522
2523         * version.h (RELEASE): Set to "development".
2524         (VERSION): Set to "2.16.90".
2525
2526 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2527
2528         * NEWS: Update copyright. Remove last-updated date.
2529         Mention math library bug fixes and timezone data changes.
2530         * README: Mention GNU/Hurd, x32, and HPPA support status.
2531
2532 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2533
2534         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2535
2536 2012-06-27  Andreas Jaeger  <aj@suse.de>
2537
2538         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2539
2540 2012-06-25  Andreas Jaeger  <aj@suse.de>
2541
2542         * sysdeps/s390/fpu/libm-test-ulps: Update.
2543
2544 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2545             Thomas Schwinge  <thomas@codesourcery.com>
2546
2547         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2548         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2549         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2550         fanotify_mark.
2551
2552 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2553
2554         * sysdeps/mach/start.c: Remove file.
2555         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2556         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2557         * sysdeps/sh/init-first.c: Likewise.
2558
2559         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2560         registers for frame unwinding purposes, add CFI directives.
2561         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2562         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2563         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2564         Likewise.
2565
2566         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2567         __fortify_fail returning.
2568         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2569
2570         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2571         sysdeps/sh/____longjmp_chk.S.
2572         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2573         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2574         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2575         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2576
2577         * sysdeps/sh/abort-instr.h: New file.
2578         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2579         process in case exit returns.
2580
2581         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2582         initialize the GOT register before use.
2583
2584         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2585         calculation of ARGC > 4.
2586
2587         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2588         meaningful names to some local labels.
2589
2590 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2591             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2592
2593         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2594         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2595         (__arch_compare_and_exchange_val_16_acq): Likewise.
2596         (__arch_compare_and_exchange_val_32_acq): Likewise.
2597         (atomic_exchange_and_add): Fix gUSA sequence.
2598         (atomic_add): Likewise.
2599         (atomic_add_negative): Likewise.
2600         (atomic_add_zero): Likewise.
2601         (atomic_bit_test_set): Likewise.
2602
2603 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2604
2605         [BZ #13579]
2606         * include/link.h (struct link_map): Add l_free_initfini.
2607         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2608         l_initfini.
2609         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2610         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2611         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2612         set.
2613
2614 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2615
2616         * configure.in: Use AC_LANG_SOURCE.
2617         * configure: Regenerate.
2618
2619 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2620
2621         * configure.in (libc_cv_localstatedir): New substituted variable.
2622         * configure: Regenerated.
2623         * config.make.in (localstatedir): New variable, substituted from
2624         libc_cv_localstatedir.
2625         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2626         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2627         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2628         * sysdeps/gnu/configure: Regenerated.
2629
2630 2012-06-21  Jeff Law  <law@redhat.com>
2631
2632         [BZ #14277]
2633         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2634         free.  Simplify list management for _LIBC case.
2635
2636 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2637
2638         [BZ #14273]
2639         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2640         Clear sign bit of 64-bit integer value before comparing against
2641         overflow value.
2642
2643         * sysdeps/mach/configure: Regenerated.
2644
2645 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2646
2647         [BZ #14278]
2648         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2649
2650 2012-06-21  Jeff Law  <law@redhat.com>
2651
2652         [BZ #13882]
2653         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2654         uint16_t for elements in the "seen" array to avoid char overflows.
2655         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2656         * elf/dl-open.c (dl_open_worker): Likewise.
2657
2658 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2659
2660         * scripts/list-sources.sh: Scan PORTS for translations.
2661         * po/libc.pot: Regenerated.
2662
2663 2012-06-21  Andreas Jaeger  <aj@suse.de>
2664
2665         [BZ #12194]
2666         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2667         warning.
2668         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2669         * bits/byteswap-16.h (__bswap_16): Likewise.
2670         * bits/byteswap.h (__bswap_constant_16): Likewise.
2671
2672 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2673
2674         [BZ #14117]
2675         * sysdeps/i386/fpu_control.h: Removed.
2676         * sysdeps/x86_64/fpu_control.h: Moved to ...
2677         * sysdeps/x86/fpu_control.h: Here.
2678
2679         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2680         (_FPU_SETCW): Likewise.
2681
2682 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2683
2684         [BZ #14117]
2685         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2686         * sysdeps/x86/fpu/bits/mathinline.h: This.
2687         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2688
2689         [BZ #14050]
2690         [BZ #14117]
2691         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2692         functions if __x86_64__ is defined.
2693
2694 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2695
2696         * string/endian.h: Add !__ASSEMBLER__ condition for including
2697         conversion interfaces.
2698
2699 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2700
2701         [BZ #14241]
2702         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2703         of ABS(x) in calculating zero to negative powers other than odd
2704         integers.
2705         * math/libm-test.inc (pow_test): Add more tests.
2706
2707 2012-06-15  Andreas Jaeger  <aj@suse.de>
2708
2709         * manual/contrib.texi (Contributors): Update entry of Liubov
2710         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2711         Machado Filho.
2712
2713 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2714
2715         * string/string.h: Add __wur to GNU version of strerror_r.
2716
2717 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2718
2719         [BZ #14229]
2720         * string/Makefile (tests): Add tst-strtok_r.
2721         * string/tst-strtok_r.c: New file.
2722         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2723         RAX_LP/RDX_LP on SAVE_PTR.
2724
2725 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2726
2727         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2728
2729 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2730
2731         * libm_test.inc (csqrt_test): Allow more spurious underflow
2732         exceptions.
2733         (j0_test): Likewise.
2734         (j1_test): Likewise.
2735         (y0_test): Likewise.
2736         (y1_test): Likewise.
2737
2738 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2739
2740         * po/Makefile (libc.pot): Use UTF-8 charset.
2741
2742 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2743
2744         [BZ #14210]
2745         Suppress sign-conversion warning from FD_SET.
2746         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2747         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2748         not unsigned long int.
2749         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2750
2751 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2752
2753         [BZ #14050]
2754         [BZ #14117]
2755         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2756         __extern_always_inline instead of __extern_inline.
2757         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2758         (__signbit): Likewise.
2759         (__signbitl): Support C++ namespace.
2760         (lrintf): New inline function.
2761         (lrint): Likewise.
2762         (llrintf): Likewise.
2763         (llrint): Likewise.
2764         (fmaxf): Likewise.
2765         (fmax): Likewise.
2766         (fminf): Likewise.
2767         (fmin): Likewise.
2768         (rint): Likewise.
2769         (rintf): Likewise.
2770         (ceil): Likewise.
2771         (ceilf): Likewise.
2772         (floor): Likewise.
2773         (floorf): Likewise.
2774         (nearbyint): Likewise.
2775         (nearbyintf): Likewise.
2776
2777 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2778
2779         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2780         non-default versions.
2781
2782 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2783
2784         [BZ #14218]
2785         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2786
2787 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2788
2789         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2790         (FE_UPWARD, FE_DOWNWARD): Don't define.
2791         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2792         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2793
2794         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2795         reading it.
2796         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2797         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2798
2799 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2800
2801         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2802         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2803         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2804         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2805
2806 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2807
2808         [BZ #14117]
2809         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2810         * sysdeps/i386/fpu/Implies: New file.
2811         * sysdeps/x86_64/fpu/Implies: Likewise.
2812         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2813         * sysdeps/x86/fpu/bits/fenv.h: This.
2814
2815         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2816         __SSE_MATH__.
2817
2818 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2819
2820         [BZ #14134]
2821         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2822         character 0xffff that matches the last element of the
2823         conversion table.
2824
2825 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2826
2827         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2828         fmodl commit.
2829
2830 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2831
2832         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2833         values higher than 25.6283.
2834
2835 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2836
2837         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2838         subnormal exponent extraction and add some __builtin_expect.
2839         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2840         Fix for subnormal mantissa calculation.
2841
2842 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2843
2844         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2845         cpu2 is -1 and errno is not ENOSYS.
2846
2847 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2848
2849         [BZ #14117]
2850         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2851         * sysdeps/x86/bits/string.h: This.
2852         * sysdeps/x86_64/bits/string.h: Removed.
2853
2854         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2855         if not compiling for x86-64, but compiling for >= i486.
2856
2857         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2858         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2859
2860         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2861         New macro from Linux kernel 3.4.0.
2862         (FP_XSTATE_MAGIC2): Likewise.
2863         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2864         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2865         (struct _fpx_sw_bytes): New struct.
2866         (struct _xsave_hdr): Likewise.
2867         (struct _ymmh_state): Likewise.
2868         (struct _xstate): Likewise.
2869
2870         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2871         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2872         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2873         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2874         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2875         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2876
2877         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2878         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2879         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2880         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2881         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2882         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2883
2884 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2885
2886         [BZ #13743]
2887         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2888         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2889         (sysdep_headers): Include sys/platform/ppc.h.
2890         * sysdeps/powerpc/test-gettimebase.c: Test for
2891         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2892         * manual/Makefile (appendices): Include platform.texi.
2893         * manual/contrib.texi (Contributors): Update @node pointers.
2894         * manual/maint.texi (Maintenance): Likewise.
2895         (Platform): New node.
2896         * manual/platform.texi: New file.  Document the new features.
2897
2898 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2899             Jakub Jelinek  <jakub@redhat.com>
2900
2901         [BZ #14188]
2902         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2903         where __builtin_expect is unavailable.
2904
2905 2012-06-03  David S. Miller  <davem@davemloft.net>
2906
2907         * stdlib/longlong.h: Updated from GCC.
2908
2909 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2910
2911         [BZ #14042]
2912         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2913         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2914         __mcount_internal.
2915         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2916         (GLIBC_2.16): Likewise.
2917
2918 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2919
2920         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2921
2922 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2923
2924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2925         (default-abi): New variable.
2926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2927         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2928         variable.
2929         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2930         Likewise.
2931         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2932         Likewise.
2933         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2934         Likewise.
2935
2936         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2937         definition.  Document in comment.
2938
2939 2012-06-01  David S. Miller  <davem@davemloft.net>
2940
2941         * stdlib/longlong.h: Updated from GCC.
2942
2943 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2944
2945         [BZ #14117]
2946         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2947         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2948         sys/debugreg.h sys/io.h here.
2949         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2950         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2951         sys/io.h.
2952         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2953         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2954         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2955         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2956         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2957         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2958
2959         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2960         Define only if __x86_64__ is defined.
2961
2962 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2963
2964         [BZ #14048]
2965         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2966         Use int64_t for variable i.
2967         * math/libm-test.inc (fmod_test): Add more tests.
2968
2969         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2970         z computation is not scheduled after fetestexcept.
2971         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2972         Use math_force_eval instead of asm to ensure calculation scheduled
2973         before exception test.
2974         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2975         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2976
2977 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2978
2979         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2980         computation is not scheduled after fetestexcept.
2981
2982 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2983
2984         [BZ #14117]
2985         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2986         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2987
2988 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2989
2990         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2991         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2992
2993 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2994
2995         [BZ #14117]
2996         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2997         <bits/wordsize.h>.
2998         (__WCHAR_MIN): Support __WORDSIZE == 64.
2999         (__WCHAR_MAX): Likewise.
3000
3001         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
3002         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
3003
3004         [BZ #14183]
3005         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
3006         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
3007
3008         [BZ #14117]
3009         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3010         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3011
3012         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3013         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3014
3015         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3016         Defined to 1 if __x86_64__ isn't defined.
3017         (_STAT_VER_LINUX_OLD): New.
3018         (st_atime): Remove duplicate.
3019         (st_mtime): Likewise.
3020         (st_ctime): Likewise.
3021
3022 2012-05-31  David S. Miller  <davem@davemloft.net>
3023
3024         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3025         entries.
3026
3027 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3028
3029         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3030         gen-libm-test.pl.
3031
3032         [BZ #14132]
3033         * elf/dl-reloc.c: Include <_itoa.h>.
3034         (_dl_reloc_bad_type): Remove use of INTUSE.
3035         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3036         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3037         * stdio-common/psiginfo.c (psiginfo): Likewise.
3038         * stdio-common/psignal.c (psignal): Likewise.
3039         * string/strsignal.c (strsignal): Likewise.
3040         * include/signal.h (_sys_siglist): Declare hidden proto.
3041         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3042         INTVARDEF with libc_hidden_data_def.
3043         * stdio-common/itoa-udigits.c: Likewise.
3044         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3045         (_itoa_lower_digits_internal): Remove declaration.
3046         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3047         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3048         (_sys_sigabbrev_internal): Remove aliases.
3049         (_sys_siglist): Define hidden alias.
3050
3051 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3052
3053         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3054         bits/sysctl.h.
3055
3056 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3057
3058         [BZ #14117]
3059         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3060         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3061
3062         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3063         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3064         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3065         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3066         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3067         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3068
3069         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3070         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3071         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3072
3073         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3074         with __addr.
3075         (insw): Likewise.
3076         (insl): Likewise.
3077         (outsb): Likewise.
3078         (outsw): Likewise.
3079         (outsl): Likewise.
3080
3081         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3082         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3083         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3084
3085         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3086         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3087         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3088         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3089         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3090         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3091
3092         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3093         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3094
3095         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3096         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3097
3098         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3099         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3100         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3101
3102         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3103         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3104         to ...
3105         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3106
3107         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3108         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3109         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3110
3111         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3112         for x86-64.
3113         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3114
3115 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3116
3117         * math/math.h (M_El): Use two more decimal places.
3118         (M_LOG2El): Likewise.
3119         (M_LOG10El): Likewise.
3120         (M_LN2l): Likewise.
3121         (M_LN10l): Likewise.
3122         (M_PIl): Likewise.
3123         (M_PI_2l): Likewise.
3124         (M_PI_4l): Likewise.
3125         (M_1_PIl): Likewise.
3126         (M_2_PIl): Likewise.
3127         (M_2_SQRTPIl): Likewise.
3128         (M_SQRT2l): Likewise.
3129         (M_SQRT1_2l): Likewise.
3130
3131 2012-05-31  David S. Miller  <davem@davemloft.net>
3132
3133         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3134         values between float registers.
3135         * sysdeps/sparc/sparc64/memset.S: Likewise.
3136         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3137
3138 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3139
3140         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3141         -D_FORTIFY_SOURCE=1.
3142         (CPPFLAGS-tst-longjmp_chk.c): Define.
3143         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3144         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3145         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3146         CFLAGS-tst-wchar-h.c.
3147
3148 2012-05-31  Marek Polacek  <polacek@redhat.com>
3149
3150         [BZ #14132]
3151         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3152         __endmntent_internal): Remove declaration.
3153         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3154         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3155         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3156
3157 2012-05-30  David S. Miller  <davem@davemloft.net>
3158
3159         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3160         (___Q_simulate_exceptions): Use real FP ops rather than writing
3161         into the %fsr.
3162         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3163         Likewise.
3164
3165 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3166
3167         [BZ #14117]
3168         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3169         * sysdeps/x86/bits/xtitypes.h: This.
3170
3171         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3172         * sysdeps/x86/bits/wordsize.h: This.
3173
3174         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3175         * sysdeps/x86/bits/huge_vall.h: This.
3176
3177         * sysdeps/i386/bits/select.h: Removed.
3178         * sysdeps/x86_64/bits/select.h: Renamed to ...
3179         * sysdeps/x86/bits/select.h: This.
3180
3181         * sysdeps/i386/bits/setjmp.h: Removed.
3182         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3183         * sysdeps/x86/bits/setjmp.h: This.
3184
3185         * sysdeps/i386/bits/mathdef.h: Removed.
3186         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3187         * sysdeps/x86/bits/mathdef.h: This.
3188
3189 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3190
3191         [BZ #14132]
3192         * include/sys/socket.h (__connect_internal)
3193         (__libc_sa_len_internal): Remove declaration.
3194         (__connect, __libc_sa_len): Declare hidden_proto.
3195         (SA_LEN): Remove use of INTUSE.
3196         * socket/connect.c: Add libc_hidden_def.
3197         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3198         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3199         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3200         alias.
3201         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3202         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3203         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3204         of adding _internal alias.
3205
3206 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3207
3208         [BZ #14117]
3209         * sysdeps/i386/bits/link.h: Removed.
3210         * sysdeps/i386/bits/linkmap.h: Likewise.
3211         * sysdeps/x86_64/bits/link.h: Renamed to ...
3212         * sysdeps/x86/bits/link.h: This.
3213         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3214         * sysdeps/x86/bits/linkmap.h: This.
3215
3216         * sysdeps/i386/bits/endian.h: Removed.
3217         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3218         * sysdeps/x86/bits/endian.h: This.
3219
3220         * sysdeps/i386/bits/byteswap.h: Removed.
3221         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3222         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3223         * sysdeps/x86/bits/byteswap.h: This.
3224         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3225         * sysdeps/x86/bits/byteswap-16.h: This.
3226         * sysdeps/i386/Implies: Add x86.
3227         * sysdeps/x86_64/Implies: Likewise.
3228
3229 2012-05-30  David S. Miller  <davem@davemloft.net>
3230
3231         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3232         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3233         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3234         (FP_TRAPPING_EXCEPTIONS): Define.
3235         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3236         (FP_TRAPPING_EXCEPTIONS): Define.
3237         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3238         subnormals only when inexact has been signalled or underflow
3239         exceptions are enabled.
3240         (_FP_PACK_CANONICAL): Likewise.
3241
3242 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3243
3244         [BZ #14183]
3245         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3246         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3247
3248 2012-05-30  Richard Henderson  <rth@twiddle.net>
3249
3250         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3251         with #ifndef NOT_IN_libc.
3252
3253         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3254         marked to avoid plt entry.
3255
3256 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3257
3258         [BZ #14112]
3259         * Makeconfig (default-abi): New macro.
3260         (abi-includes): Likewise.
3261         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3262         $(abi-$(default-abi)-lib-soname) for soname if defined.
3263         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3264         abi-variants.
3265         * Makefile (installed-stubs): Likewise.
3266         * include/stubs-biarch.h: Removed.
3267         * scripts/lib-names.awk: Only handle one library at a time.
3268         * scripts/soversions.awk: Remove WORDSIZE support.
3269         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3270         entries.
3271         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3272         Removed.
3273         (syscall-list-default-condition): Likewise.
3274         (syscall-list-default-condition): Likewise.
3275         (syscall-list-includes): Likewise.
3276         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3277         syscall-list-* with abi-*.  Handle undefined abi-variants.
3278         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3279         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3280         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3281         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3282         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3283         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3284         Removed.
3285         (syscall-list-32-options): Likewise.
3286         (syscall-list-32-condition): Likewise.
3287         (syscall-list-64-options): Likewise.
3288         (syscall-list-64-condition): Likewise.
3289         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3290         macro.
3291         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3292         Renamed to ...
3293         (abi-*): This.
3294         (abi-64-ld-soname): New macro.
3295         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3296         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3297         Renamed to ...
3298         (abi-*): This.
3299         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3300         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3301
3302 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3303
3304         * sysdeps/unix/sysv/linux/kernel-features.h
3305         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3306         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3307         include <kernel-features.h>.
3308         [!__NR_ftruncate64]: Remove conditional code.
3309         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3310         [__NR_ftruncate64]: Make code unconditional.
3311         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3312         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3313         include <kernel-features.h>.
3314         [!__NR_ftruncate64]: Remove conditional code.
3315         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3316         [__NR_ftruncate64]: Make code unconditional.
3317         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3319         include <kernel-features.h>.
3320         [!__NR_ftruncate64]: Remove conditional code.
3321         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3322         [__NR_ftruncate64]: Make code unconditional.
3323         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3324         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3325         include <kernel-features.h>.
3326         [!__NR_ftruncate64]: Remove conditional code.
3327         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3328         [__NR_ftruncate64]: Make code unconditional.
3329         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3330
3331         * configure.in (libc_cv_fpie): Weaken to a compile test using
3332         LIBC_TRY_CC_OPTION.
3333         * configure: Regenerated.
3334
3335 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3336
3337         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3338         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3339         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3340         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3341         Refreshed.
3342         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3344         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3345         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3346         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3347         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3348         Refreshed.
3349
3350 2012-05-27  David S. Miller  <davem@davemloft.net>
3351
3352         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3353         (___Q_zero): New.
3354         (__Q_simulate_exceptions): Return void.  Change to simulate
3355         exceptions by writing into the %fsr.
3356         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3357         (__Qp_handle_exceptions): Likewise.
3358         (numbers): Delete.
3359         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3360         __Qp_handle_exceptions.
3361         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3362         __Qp_handle_exceptions.
3363         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3364         as unused and give dummy FP_RND_NEAREST initializer.
3365         (FP_INHIBIT_RESULTS): Define.
3366         (___Q_simulate_exceptions): Update declaration.
3367         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3368         formatting.
3369         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3370         as unused and give dummy FP_RND_NEAREST initializer.
3371         (__Qp_handle_exceptions): Update declaration.
3372         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3373         formatting.
3374
3375 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3376
3377         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3378         the temporary FPU control word.
3379         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3380         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3381         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3382         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3383         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3384         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3385         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3386         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3387         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3388         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3389         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3390
3391 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3392
3393         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3394         fields.
3395
3396 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3397
3398         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3399         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3400         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3401         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3402         Likewise.
3403         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3404         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3405         Likewise.
3406
3407 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3408
3409         * po/h.po: Update from translation team.
3410
3411 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3412
3413         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3414
3415         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3416         handling of denormals.
3417         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3418         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3419         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3420         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3421         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3422         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3423         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3424         Likewise.
3425
3426 2012-05-26  Marek Polacek  <polacek@redhat.com>
3427
3428         [BZ #14152]
3429         * math/libm-test.inc (fma_test): Don't always expect underflow
3430         exception.
3431
3432 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3433
3434         [BZ #12416]
3435         * elf/tst-execstack.c: Include stackinfo.h.
3436         (do_test): Adjust test case to ensure that pthread_getattr_np
3437         behaviour remains the same after marking stack executable.
3438
3439 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3440
3441         * sysdeps/unix/sysv/linux/kernel-features.h
3442         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3443         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3444         kernel-features.h.
3445         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3446         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3447         * sysdeps/unix/sysv/linux/i386/setrlimit.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
3452 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3453
3454         * configure.in: Define the default includes to being none.
3455         * configure: Regenerated.
3456
3457 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3458
3459         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3460         * sysdeps/x86_64/setjmp.S: Likewise.
3461         * sysdeps/i386/bsd-setjmp.S: Likewise.
3462         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3463         * sysdeps/i386/setjmp.S: Likewise.
3464         * sysdeps/i386/__longjmp.S: Likewise.
3465         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3466         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3467
3468         * include/stap-probe.h: New file.
3469         * configure.in: Handle --enable-systemtap.
3470         * configure: Regenerated.
3471         * config.h.in (USE_STAP_PROBE): New #undef.
3472         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3473         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3474         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3475
3476 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3477
3478         [BZ #13717]
3479         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3480         to 2.4.0 where earlier.
3481         * sysdeps/unix/sysv/linux/configure: Regenerated.
3482         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3483         <kernel-features.h>.
3484         [__ASSUME_32BITUIDS]: Make code unconditional.
3485         [!__ASSUME_32BITUIDS]: Remove conditional code.
3486         * sysdeps/unix/sysv/linux/i386/fchown.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/fchownat.c (fchownat)
3491         [__ASSUME_32BITUIDS]: Make code unconditional.
3492         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3493         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3494         <kernel-features.h>.
3495         [__ASSUME_32BITUIDS]: Make code unconditional.
3496         [!__ASSUME_32BITUIDS]: Remove conditional code.
3497         * sysdeps/unix/sysv/linux/i386/geteuid.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/getgid.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/getgroups.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/getresgid.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/getresuid.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/getuid.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/lchown.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/msgctl.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/semctl.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/setegid.c: Do not include
3534         <kernel-features.h>.
3535         [__NR_setresgid] (__setresgid): Do not declare.
3536         [__ASSUME_32BITUIDS]: Make code unconditional.
3537         [!__ASSUME_32BITUIDS]: Remove conditional code.
3538         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3539         <kernel-features.h>.
3540         [__NR_setresuid] (__setresuid): Do not declare.
3541         [__ASSUME_32BITUIDS]: Make code unconditional.
3542         [!__ASSUME_32BITUIDS]: Remove conditional code.
3543         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3544         <kernel-features.h>.
3545         [__ASSUME_32BITUIDS]: Make code unconditional.
3546         [!__ASSUME_32BITUIDS]: Remove conditional code.
3547         * sysdeps/unix/sysv/linux/i386/setfsuid.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/setgid.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/setgroups.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/setregid.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/setresgid.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/setresuid.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/setreuid.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/setuid.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/shmctl.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/kernel-features.h
3584         (__ASSUME_SETRESUID_SYSCALL): Remove.
3585         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3586         (__ASSUME_32BITUIDS): Likewise.
3587         (__ASSUME_LDT_WORKS): Likewise.
3588         (__ASSUME_O_DIRECTORY): Likewise.
3589         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3590         architecture but not kernel version.
3591         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3592         (__ASSUME_MMAP2_SYSCALL): Likewise.
3593         (__ASSUME_STAT64_SYSCALL): Likewise.
3594         (__ASSUME_IPC64): Likewise.
3595         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3596         <kernel-features.h>.
3597         [__ASSUME_32BITUIDS]: Make code unconditional.
3598         [!__ASSUME_32BITUIDS]: Remove conditional code.
3599         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3600         <kernel-features.h>.
3601         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3602         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3603         132096]: Remove conditional code.
3604         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3605         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3606         <kernel-features.h>.
3607         [__ASSUME_32BITUIDS]: Make code unconditional.
3608         [!__ASSUME_32BITUIDS]: Remove conditional code.
3609         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.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/setegid.c: Do not include
3614         <kernel-features.h>.
3615         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3616         unconditional.
3617         (__setresgid): Do not declare.
3618         [__ASSUME_32BITUIDS]: Make code unconditional.
3619         [!__ASSUME_32BITUIDS]: Remove conditional code.
3620         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3621         <kernel-features.h>.
3622         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3623         unconditional.
3624         (__setresuid): Do not declare.
3625         [__ASSUME_32BITUIDS]: Make code unconditional.
3626         [!__ASSUME_32BITUIDS]: Remove conditional code.
3627         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3628         <kernel-features.h>.
3629         [__ASSUME_32BITUIDS]: Make code unconditional.
3630         [!__ASSUME_32BITUIDS]: Remove conditional code.
3631         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3632         <kernel-features.h>.
3633         [__ASSUME_32BITUIDS]: Make code unconditional.
3634         [!__ASSUME_32BITUIDS]: Remove conditional code.
3635
3636 2012-05-25  Richard Henderson  <rth@twiddle.net>
3637
3638         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3639         dl_hwcap to ifunc resolver.
3640         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3641         elf_ifunc_invoke.
3642         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3643         dl_hwcap to ifunc resolver.
3644         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3645
3646 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3647
3648         [BZ #14153]
3649         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3650         for |x| <= 2**-26, not 2**-57.
3651         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3652         exception.
3653
3654 2012-05-24  Jeff Law  <law@redhat.com>
3655
3656         * stdio-common/Makefile (tests): Add bug25.
3657         * stdio-common/bug25.c: New test.
3658
3659 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3660
3661         [BZ #13576]
3662         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3663         multiple of MALLOC_ALIGNMENT in size.
3664         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3665
3666 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3667
3668         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3669         Require >= 256.
3670         (FILENAME_MAX): Use macro-int-constant.
3671         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3672         (_IOFBF): Use macro-int-constant.
3673         (_IOLBF): Likewise.
3674         (_IONBF): Likewise.
3675         (SEEK_CUR): Likewise.
3676         (SEEK_END): Likewise.
3677         (SEEK_SET): Likewise.
3678         (TMP_MAX): Likewise.
3679         (EOF): Use macro-int-constant.  Require < 0.
3680         (NULL): Use macro-constant.  Require == 0.
3681         (stdin): Require type to be FILE *.
3682         (stdout): Likewise.
3683         (stderr): Likewise.
3684         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3685         macro-int-constant.
3686         (EXIT_SUCCESS): Likewise.
3687         (NULL): Use macro-constant.  Require == 0.
3688         (RAND_MAX): Use macro-int-constant.
3689         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3690         [C99-based standards] (strtof): Require function.
3691         [C99-based standards] (strtold): Likewise.
3692         [C99-based standards] (strtoll): Likewise.
3693         [C99-based standards] (strtoull): Likewise.
3694         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3695         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3696         [ISO || ISO99 || ISO11] (math.h): Likewise.
3697         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3698         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3699         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3700
3701 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3702
3703         [BZ #14132]
3704         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3705         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3706         * intl/dgettext.c (DCGETTEXT): Likewise.
3707         * intl/gettext.c (DCGETTEXT): Likewise.
3708         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3709         * posix/regex_internal.h (gettext): Likewise.
3710         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3711         Remove declaration.
3712         * include/argz.h (__argz_count_internal)
3713         (__argz_stringify_internal): Remove declaration.
3714         (__argz_count, __argz_stringify): Declare hidden proto.
3715         * intl/dcgettext.c: Remove use of INTDEF.
3716         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3717         * string/argz-stringify.c: Likewise.
3718         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3719         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3720         Declare hidden proto.
3721         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3722         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3723         Declare hidden proto.
3724         * include/stdio.h (__asprintf_internal): Don't declare.
3725         (__asprintf): Don't define as macro.  Declare hidden proto.
3726         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3727         (__fsetlocking): Declare hidden proto.
3728         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3729         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3730         hidden proto.
3731         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3732         (_IO_setlinebuf): Remove use of INTUSE.
3733         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3734         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3735         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3736         Remove declaration.
3737         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3738         (_IO_do_flush): Remove use of INTUSE.
3739         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3740         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3741         (_IO_adjust_column, _IO_least_wmarker)
3742         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3743         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3744         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3745         (_IO_default_doallocate, _IO_wdefault_doallocate)
3746         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3747         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3748         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3749         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3750         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3751         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3752         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3753         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3754         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3755         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3756         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3757         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3758         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3759         proto.
3760         (_IO_flush_all_internal, _IO_adjust_column_internal)
3761         (_IO_default_uflow_internal, _IO_default_finish_internal)
3762         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3763         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3764         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3765         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3766         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3767         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3768         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3769         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3770         (_IO_file_close_internal, _IO_file_close_it_internal)
3771         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3772         (_IO_file_init_internal, _IO_file_attach_internal)
3773         (_IO_file_fopen_internal, _IO_file_read_internal)
3774         (_IO_file_sync_internal, _IO_file_seek_internal)
3775         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3776         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3777         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3778         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3779         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3780         (_IO_list_all_internal, _IO_link_in_internal)
3781         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3782         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3783         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3784         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3785         (_IO_do_write_internal, _IO_padn_internal)
3786         (_IO_getline_info_internal, _IO_getline_internal)
3787         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3788         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3789         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3790         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3791         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3792         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3793         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3794         with libc_hidden_ver, remove use of INTUSE.
3795         * libio/genops.c: Likewise.
3796         * libio/freopen.c: Likewise.
3797         * libio/freopen64.c: Likewise.
3798         * libio/iofclose.c: Likewise.
3799         * libio/iofdopen.c: Likewise.
3800         * libio/iofflush.c: Likewise.
3801         * libio/iofflush_u.c: Likewise.
3802         * libio/iofgets.c: Likewise.
3803         * libio/iofgets_u.c: Likewise.
3804         * libio/iofopen.c: Likewise.
3805         * libio/iofopncook.c: Likewise.
3806         * libio/iofread.c: Likewise.
3807         * libio/iofread_u.c: Likewise.
3808         * libio/ioftell.c: Likewise.
3809         * libio/iofwrite.c: Likewise.
3810         * libio/iogetline.c: Likewise.
3811         * libio/iogets.c: Likewise.
3812         * libio/iogetwline.c: Likewise.
3813         * libio/iopadn.c: Likewise.
3814         * libio/iopopen.c: Likewise.
3815         * libio/ioseekoff.c: Likewise.
3816         * libio/ioseekpos.c: Likewise.
3817         * libio/iosetbuffer.c: Likewise.
3818         * libio/iosetvbuf.c: Likewise.
3819         * libio/ioungetc.c: Likewise.
3820         * libio/ioungetwc.c: Likewise.
3821         * libio/iovdprintf.c: Likewise.
3822         * libio/iovsprintf.c: Likewise.
3823         * libio/iovsscanf.c: Likewise.
3824         * libio/memstream.c: Likewise.
3825         * libio/obprintf.c: Likewise.
3826         * libio/oldfileops.c: Likewise.
3827         * libio/oldiofclose.c: Likewise.
3828         * libio/oldiofdopen.c: Likewise.
3829         * libio/oldiofopen.c: Likewise.
3830         * libio/oldiopopen.c: Likewise.
3831         * libio/oldstdfiles.c: Likewise.
3832         * libio/putc.c: Likewise.
3833         * libio/setbuf.c: Likewise.
3834         * libio/setlinebuf.c: Likewise.
3835         * libio/stdfiles.c: Likewise.
3836         * libio/strops.c: Likewise.
3837         * libio/vasprintf.c: Likewise.
3838         * libio/vscanf.c: Likewise.
3839         * libio/vsnprintf.c: Likewise.
3840         * libio/vswprintf.c: Likewise.
3841         * libio/wfiledoalloc.c: Likewise.
3842         * libio/wfileops.c: Likewise.
3843         * libio/wgenops.c: Likewise.
3844         * libio/wmemstream.c: Likewise.
3845         * libio/wstrops.c: Likewise.
3846         * libio/__fpurge.c: Likewise.
3847         * libio/__fsetlocking.c: Likewise.
3848         * assert/assert.c: Likewise.
3849         * debug/fgets_chk.c: Likewise.
3850         * debug/fgets_u_chk.c: Likewise.
3851         * debug/fread_chk.c: Likewise.
3852         * debug/fread_u_chk.c: Likewise.
3853         * debug/gets_chk.c: Likewise.
3854         * debug/obprintf_chk.c: Likewise.
3855         * debug/vasprintf_chk.c: Likewise.
3856         * debug/vdprintf_chk.c: Likewise.
3857         * debug/vsnprintf_chk.c: Likewise.
3858         * debug/vsprintf_chk.c: Likewise.
3859         * malloc/mtrace.c: Likewise.
3860         * misc/error.c: Likewise.
3861         * misc/syslog.c: Likewise.
3862         * stdio-common/asprintf.c: Likewise.
3863         * stdio-common/fxprintf.c: Likewise.
3864         * stdio-common/getw.c: Likewise.
3865         * stdio-common/isoc99_fscanf.c: Likewise.
3866         * stdio-common/isoc99_scanf.c: Likewise.
3867         * stdio-common/isoc99_vfscanf.c: Likewise.
3868         * stdio-common/isoc99_vscanf.c: Likewise.
3869         * stdio-common/isoc99_vsscanf.c: Likewise.
3870         * stdio-common/printf-prs.c: Likewise.
3871         * stdio-common/printf_fp.c: Likewise.
3872         * stdio-common/printf_fphex.c: Likewise.
3873         * stdio-common/printf_size.c: Likewise.
3874         * stdio-common/putw.c: Likewise.
3875         * stdio-common/scanf.c: Likewise.
3876         * stdio-common/sprintf.c: Likewise.
3877         * stdio-common/tmpfile.c: Likewise.
3878         * stdio-common/vfprintf.c: Likewise.
3879         * stdio-common/vfscanf.c: Likewise.
3880         * stdlib/strfmon_l.c: Likewise.
3881         * sunrpc/openchild.c: Likewise.
3882         * sunrpc/xdr_stdio.c: Likewise.
3883         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3884         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3885
3886 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3887
3888         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3889
3890         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3891         in the third column, to generate for the shared library an IFUNC
3892         that uses _dl_vdso_vsym.
3893         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3894         * Makeconfig (object-suffixes-noshared): New variable.
3895
3896         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3897         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3898         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3899         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3900
3901         [BZ #14132]
3902         * include/sys/time.h (__gettimeofday): Remove macro.
3903         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3904         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3905         Remove INTDEF.
3906         (__gettimeofday): Add libc_hidden_def.
3907         (gettimeofday): Add libc_hidden_weak.
3908         * sysdeps/mach/gettimeofday.c: Likewise.
3909         * sysdeps/posix/gettimeofday.c: Likewise.
3910         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3911         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3912         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3913         (__gettimeofday_internal): Remove strong_alias.
3914         (__gettimeofday): Add libc_hidden_def.
3915         (gettimeofday): Add libc_hidden_weak.
3916         * sysdeps/unix/syscalls.list (gettimeofday):
3917         Remove __gettimeofday_internal alias.
3918
3919 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3920             H.J. Lu  <hongjiu.lu@intel.com>
3921
3922         [BZ #12495]
3923         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3924         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3925         (largebin_index_32_big): New.
3926         (largebin_index): Use it for 16-byte alignment.
3927         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3928         correction with front_misalign.
3929
3930 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3931
3932         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3933         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3934         Likewise.
3935         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3936         Likewise.
3937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3938         Likewise.
3939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3940         Likewise.
3941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3942         Likewise.
3943         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3944         Likewise.
3945         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3946         Likewise.
3947         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3948         Likewise.
3949         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3950         Likewise.
3951         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3952         Likewise.
3953         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3954         Likewise.
3955         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3956         Likewise.
3957
3958         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3959         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3960
3961 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3962
3963         [BZ #10846]
3964         [BZ #14036]
3965         * math/libm-test.inc (exp_test): Add test from bug 14036.
3966         (pow_test): Add test from bug 10846.
3967
3968         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3969         and other flags.
3970         (special_function): Do not include flags in test name.
3971         (parse_args): Likewise.
3972         * sysdeps/i386/fpu/libm-test-ulps: Update.
3973         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3974         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3975         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3976         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3977
3978         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3979         exceptions.
3980         * math/libm-test.inc ("Philosophy"): Update comment about
3981         exception testing.
3982         (UNDERFLOW_EXCEPTION): New macro.
3983         (UNDERFLOW_EXCEPTION_OK): Likewise.
3984         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3985         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3986         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3987         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3988         (INVALID_EXCEPTION_OK): Update value.
3989         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3990         (OVERFLOW_EXCEPTION_OK): Likewise.
3991         (IGNORE_ZERO_INF_SIGN): Likewise.
3992         (test_exceptions): Handle underflow exceptions.
3993         (acos_test): Update for underflow exception expectations.
3994         (cexp_test): Likewise.
3995         (clog_test): Likewise.
3996         (clog10_test): Likewise.
3997         (csqrt_test): Likewise.
3998         (ctan_test): Likewise.
3999         (ctanh_test): Likewise.
4000         (exp_test): Likewise.
4001         (exp10_test): Likewise.
4002         (exp2_test): Likewise.
4003         (expm1_test): Likewise.
4004         (fma_test): Likewise.
4005         (j0_test): Likewise.
4006         (jn_test): Likewise.
4007         (nexttoward_test): Likewise.
4008         (pow_test): Likewise.
4009         (scalbn_test): Likewise.
4010         (scalbln_test): Likewise.
4011         (tan_test): Likewise.
4012         (y1_test): Likewise.
4013         * sysdeps/i386/fpu/libm-test-ulps: Update.
4014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4015
4016 2012-05-23  David S. Miller  <davem@davemloft.net>
4017
4018         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4019         (__libc_sigaction): Remove unused local variables.
4020
4021 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4022
4023         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4024
4025 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4026
4027         mktime: avoid signed integer overflow
4028         * time/mktime.c (__mktime_internal): Do not mishandle the case
4029         where diff == INT_MIN.
4030
4031         mktime: simplify computation of average
4032         * time/mktime.c (ranged_convert): Use new time_t_avg function
4033         instead of rolling our own (probably-slower) code.
4034
4035         mktime: do not assume signed right shift propagates sign bit
4036         * time/mktime.c (isdst_differ): New static function.
4037         (__mktime_internal): No need to normalize tm_isdst now.
4038         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4039         tm_isdst values.
4040
4041         mktime: merge another wrapv change from gnulib
4042         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4043         from some compilers.
4044
4045         mktime: remove incorrect attempt at unusual arithmetics
4046         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4047         The code didn't really work on such machines anyway.
4048         (TYPE_MINIMUM): Assume two's complement.
4049         (twos_complement_arithmetic): Verify that long_int and time_t
4050         are two's complement (or unsigned, in the latter case).
4051
4052         mktime: check signed shifts on long_int and time_t, too
4053         * time/mktime.c (SHR): Check that shifts work as desired
4054         on the types long_int and time_t too, as SHR is used on
4055         such types.
4056
4057         mktime: do not assume 'long' is wide enough
4058         * time/mktime.c (verify): Move decl up.
4059         (long_int): New type.
4060         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4061         to remove assumption in the code that 'long' is wide enough to
4062         store year values.  This assumption is not true on x32 and on
4063         some non-glibc platforms.
4064
4065         mktime: merge wrapv change from gnulib
4066         * time/mktime.c (WRAPV): New macro.
4067         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4068         (guess_time_tm, __mktime_internal): Do not assume that signed
4069         integer overflow wraps around; modern compilers generate code
4070         where this assumption is no longer valid.
4071
4072 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4073
4074         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4075         Replace "jmp L(pseudo_end)" with "ret".
4076         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4077         Likewise.
4078
4079 2012-05-23  Andreas Jaeger  <aj@suse.de>
4080
4081         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4082         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4083
4084 2012-05-23  Andreas Jaeger  <aj@suse.de>
4085             Maximilian Attems  <max@stro.at>
4086
4087         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4088         New macros.
4089
4090 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4091
4092         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4093         code so that pseudo_end is just ret and the stack pointer is
4094         correct also for static library in error case.
4095
4096 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4097
4098         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4099         move to syscalls.list.
4100         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4103         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4104
4105         * manual/install.texi (Running make install): Do not mention Linux
4106         kernel version for which pt_chown is not needed.
4107         (Linux): Do not mention problems with nscd with 2.0 kernels.
4108         * INSTALL: Regenerated.
4109
4110 2012-05-23  Andreas Jaeger  <aj@suse.de>
4111
4112         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4113         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4114         macro.
4115         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4116         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4117         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4118         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4119         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4120         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4121         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4122         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4123         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4124         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4125         * sysdeps/unix/sysv/linux/bits/in.h
4126         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4127
4128 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4129
4130         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4131         (PREPARE_VERSION): Just use assert instead, it will be elided
4132         under [NDEBUG] anyway.
4133
4134 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4135
4136         * sysdeps/unix/sysv/linux/Makefile: Include
4137         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4138         (sysdep_routines): Remove sysctl.
4139         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4140         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4141         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4142         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4143         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4144
4145 2012-05-22  Andreas Jaeger  <aj@suse.de>
4146
4147         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4148         that pseudo_end is just ret and the stack pointer is correct also
4149         for static library in error case.
4150
4151 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4152
4153         [BZ #14122]
4154         * nss/nsswitch.c (defconfig_entries): New variable.
4155         (__nss_database_lookup): Don't leak defconfig entries.
4156         (nss_parse_service_list): Don't leak on error paths.
4157         (free_database_entries): New function.
4158         (free_defconfig): New function.
4159         (free_mem): Move common code to free_database_entries.
4160
4161 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4162
4163         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4164         Add arch_prctl.
4165         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4166
4167         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4168         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4169         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4170         New macro.
4171         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4172         (INTERNAL_SYSCALL_TYPES): Likewise.
4173         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4174         (LOAD_REGS_TYPES_[1-6]): Likewise.
4175         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4176         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4177
4178 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4179
4180         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4181         copysignl for GLIBC_2_0.
4182         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4183         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4184         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4185         logbl for GLIBC_2_0.
4186         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4187         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4188
4189 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4190
4191         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4192         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4193
4194         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4195         Use "neg %eax".
4196
4197         * time/mktime.c: Update copyright years.
4198
4199 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4200
4201         mktime: merge comment-quoting-style change from gnulib
4202         * time/mktime.c: Quote 'like this' in comments.
4203         The GNU coding standards suggest that we no longer quote `like this',
4204         as "`" and "'" are typically rendered asymmetrically nowadays.
4205         The typical gnulib style is to quote 'like this' when quoting
4206         code, and "like this" when quoting English.
4207
4208         * time/mktime.c (compile-command): Add "-I.".
4209
4210         mktime: merge mktime-internal.h change from gnulib
4211         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4212
4213         mktime: merge time_r change from gnulib
4214         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4215
4216         mktime: merge DEBUG change from gnulib
4217         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4218         case system <time.h> has a #define.
4219
4220         mktime: merge <sys/types.h> change from gnulib
4221         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4222         since <time.t> is now guaranteed to define time_t.
4223
4224         mktime: merge HAVE_CONFIG_H change from gnulib
4225         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4226
4227 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4228
4229         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4230         Use "neg %eax".
4231
4232         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4233         __rlim_t cast.
4234         (struct rusage): Use anonymous union to pad each field to
4235         __syscall_slong_t.
4236
4237 2012-05-21  David S. Miller  <davem@davemloft.net>
4238
4239         * Makefules (o-iterator): Remove .s cases.
4240         (compile-command.s): Delete.
4241         (COMPILE.s): Delete.
4242         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4243
4244 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4245
4246         * configure.in (libc_cv_predef_stack_protector): Only consider
4247         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4248         * configure: Regenerated.
4249
4250 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4251
4252         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4253         New macro.  Use R*LP on int and pointer.
4254         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4255         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4256         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4257         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4258
4259         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4260         [__WORDSIZE_TIME64_COMPAT32] instead of
4261         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4262         (struct utmp): Likewise.
4263         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4264         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4265         Renamed to ...
4266         (__WORDSIZE_TIME64_COMPAT32): This.
4267         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4268         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4269         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4270         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4271         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4272         (__WORDSIZE_TIME64_COMPAT32): New macro.
4273
4274 2012-05-21  Andreas Jaeger  <aj@suse.de>
4275
4276         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4277         only if [SHARED]. Add prototype for __wcschr_ia32.
4278
4279 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4280
4281         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4282         of %rbp unmolested in the jmp_buf while mangling the low bits.
4283         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4284         unmolested high bits of %rbp while demangling the low bits.
4285         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4286
4287 2012-05-21  Andreas Jaeger  <aj@suse.de>
4288
4289         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4290         * sunrpc/svc_simple.c: Use it for registerrpc.
4291         * sunrpc/xcrypt.c: Use it for passwd2des.
4292
4293         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4294
4295 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4296
4297         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4298         Don't define if [__SYSCALL_WORDSIZE != 32].
4299         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4300         New macro.
4301
4302 2012-05-21  Bruno Haible  <bruno@clisp.org>
4303             Andreas Jaeger  <aj@suse.de>
4304
4305         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4306         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4307         inptr and inend for must_buffer_ch.
4308         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4309         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4310         * stdio-common/Makefile (tests): Remove bug15.
4311         (bug15-ENV): Remove macro.
4312         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4313         anymore.
4314
4315 2012-05-19  Andreas Jaeger  <aj@suse.de>
4316             Roland McGrath  <roland@hack.frob.com>
4317
4318         * manual/contrib.texi: Completely rewritten. It contains now an
4319         alphabetical list of contributors and their contributions.
4320
4321 2012-05-21  Richard Henderson  <rth@twiddle.net>
4322
4323         * misc/getauxval.c (__getauxval): Use unsigned long int.
4324         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4325         (getauxval): Use unsigned long int.
4326
4327 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4328
4329         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4330
4331 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4332
4333         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4334         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4335         __alignof__ (long double).
4336
4337 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4338
4339         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4340
4341 2012-05-20  Richard Henderson  <rth@twiddle.net>
4342
4343         * misc/getauxval.c: New file.
4344         * misc/sys/auxv.h: New file.
4345         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4346         (routines): Add getauxval.
4347         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4348         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4349         * elf/dl-sysdep.c (_dl_auxv): Remove.
4350         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4351         * elf/dl-support.c (_dl_auxv): New variable.
4352         (_dl_aux_init): Initialize it.
4353         * manual/startup.texi (Auxiliary Vector): New node.
4354         * sysdeps/generic/bits/hwcap.h: New file.
4355         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4356         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4357         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4358         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4359         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4360         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4361         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4362         Update.
4363         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4365         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4366         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4367         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4368         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4369         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4370         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4371
4372 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4373
4374         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4375
4376 2012-05-19  David S. Miller  <davem@davemloft.net>
4377
4378         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4379
4380 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4381
4382         [BZ #14123]
4383         * math/s_ccosh.c: Include <float.h>
4384         (__ccosh): Avoid internal overflow calculating sinh and cosh
4385         values before multiplying by sin and cos values.
4386         * math/s_ccoshf.c: Likewise.
4387         * math/s_ccoshl.c: Likewise.
4388         * math/s_csin.c: Likewise.
4389         * math/s_csinf.c: Likewise.
4390         * math/s_csinl.c: Likewise.
4391         * math/s_csinh.c: Likewise.
4392         * math/s_csinhf.c: Likewise.
4393         * math/s_csinhl.c: Likewise.
4394         * math/libm-test.inc (ccos_test): Add more tests.
4395         (ccosh_test): Likewise.
4396         (csin_test): Likewise.
4397         (csinh_test): Likewise.
4398         * sysdeps/i386/fpu/libm-test-ulps: Update.
4399         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4400
4401 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4402
4403         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4404         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4405
4406         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4407
4408 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4409
4410         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4411         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4412         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4413         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4414         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4415         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4416         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4417         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4418         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4419         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4420         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4421         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4422         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4423         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4424         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4425         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4426         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4427         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4428         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4429         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4430         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4431         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4432         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4433         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4434         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4435         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4436         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4437         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4438         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4439         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4440         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4441
4442 2012-05-18  Andreas Jaeger  <aj@suse.de>
4443
4444         * csu/.gitignore: Delete.
4445
4446 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4447
4448         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4449         (timex): Use __syscall_slong_t.
4450
4451 2012-05-18  Andreas Jaeger  <aj@suse.de>
4452             Carlos O'Donell  <carlos_odonell@mentor.com>
4453
4454         * manual/install.texi (Configuring and compiling): Update
4455         description about files modified in the source directory.
4456         * INSTALL: Regenerated.
4457
4458 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4459
4460         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4461         value.  Use "or" to set return value to -1.
4462         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4463         negate return value.
4464
4465 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4466
4467         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4468         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4469         failure if the compiler has Graphite support disabled.
4470         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4471         Likewise.
4472         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4473         CFLAGS-memmove.c): Likewise.
4474         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4475         Likewise.
4476
4477 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4478
4479         * sysdeps/x86_64/x32/_itoa.h: New file.
4480
4481         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4482         getdents system call only if kernel and user dirents have the
4483         same d_ino and d_off.
4484
4485         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4486         LLONG_MAX != LONG_MAX.
4487         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4488         (_fitoa_word): Likewise.
4489
4490         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4491         years.
4492         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4493         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4494         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4495
4496         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4497         include <bits/wordsize.h>.  Check __x86_64__ instead of
4498         __WORDSIZE.
4499         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4500         if __x86_64__ is defined.  Use anonymous union on fpstate.
4501
4502         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4503         anonymous union.
4504
4505 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4506
4507         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4508         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4509         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4510         Refer to _rtld_local_ro instead of _rtld_global_ro.
4511         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4512         Likewise.
4513         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4514         Likewise.
4515         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4516         Likewise.
4517         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4518         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4519         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4520
4521         * sysdeps/powerpc/powerpc32/dl-machine.c
4522         (__elf_machine_runtime_setup) [PROF]: Don't reference
4523         _dl_prof_resolve.
4524
4525 2012-05-18  Andreas Jaeger  <aj@suse.de>
4526
4527         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4528         function only available for GCCs before 3.4 since GCC 3.4
4529         introduced a builtin.
4530         (lrint): Likewise.
4531         (llrintf): Likewise.
4532         (llrint): Likewise.
4533         (fmaxf): Likewise.
4534         (fmax): Likewise.
4535         (fminf): Likewise.
4536         (fmin): Likewise.
4537         (rint): Likewise.
4538         (rintf): Likewise.
4539         (nearbyint): Likewise.
4540         (nearbyintf): Likewise.
4541         (ceil): Likewise.
4542         (ceilf): Likewise.
4543         (floor): Likewise.
4544         (floorf): Likewise.
4545
4546 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4547
4548         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4549         on both fields and cast pointer to __syscall_ulong_t.
4550
4551         * bits/types.h (__fsword_t): New type.
4552         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4553         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4554         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4555         (__FSWORD_T_TYPE): Likewise.
4556         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4557         (__FSWORD_T_TYPE): Likewise.
4558         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4559         (__FSWORD_T_TYPE): Likewise.
4560         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4561         (__FSWORD_T_TYPE): Likewise.
4562         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4563         __SWORD_TYPE with __fsword_t.
4564         (statfs64): Likewise.
4565
4566 2012-05-17  David S. Miller  <davem@davemloft.net>
4567
4568         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4569
4570 2012-05-17  Andreas Jaeger  <aj@suse.de>
4571
4572         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4573         warning.
4574
4575 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4576
4577         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4578
4579 2012-05-17  Andreas Jaeger  <aj@suse.de>
4580
4581         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4582         when it is used.
4583
4584 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4585
4586         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4587
4588 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4589
4590         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4591         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4592
4593 2012-05-17  Andreas Jaeger  <aj@suse.de>
4594             Carlos O'Donell  <carlos_odonell@mentor.com>
4595
4596         [BZ #14059]
4597         * sysdeps/x86_64/multiarch/init-arch.h
4598         (bit_YMM_Usable): Rename to...
4599         (bit_AVX_Usable): ... this.
4600         (bit_FMA4_Usable): New macro.
4601         (bit_XMM_state): New macro.
4602         (bit_YMM_state): New macro.
4603         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4604         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4605         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4606         (CPUID_OSXSAVE): New macro.
4607         (CPUID_AVX): New macro.
4608         (CPUID_FMA4): New macro.
4609         (index_YMM_Usable): Rename to...
4610         (index_AVX_Usable): ... this.
4611         (HAS_AVX): Use HAS_ARCH_FEATURE.
4612         (HAS_FMA4): Likewise.
4613         (HAS_YMM_USABLE): Remove.
4614         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4615         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4616         are present.
4617         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4618         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4619         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4620         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4621         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4622
4623 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4624
4625         * math/libm-test.c: Support platforms without multiple rounding modes.
4626         * math/bug-nextafter.c: Support platforms without FP exceptions.
4627         * math/bug-nexttoward.c: Likewise.
4628         * math/test-fenv.c: Likewise.
4629         * math/test-misc.c: Likewise.
4630         * stdlib/bug-getcontext.c: Likewise.
4631
4632 2012-05-17  Andreas Jaeger  <aj@suse.de>
4633
4634         * manual/examples/search.c (critter_cmp): Change signature to
4635         avoid warnings.
4636         * manual/string.texi (Collation Functions): Likewise.
4637
4638 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4639
4640         * bits/types.h: Fold copyright years.
4641         * bits/typesizes.h: Likewise.
4642         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4643         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4644         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4645         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4646         * time/time.h: Likewise.
4647
4648 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4649
4650         [BZ #208]
4651         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4652         in instead of returning them.  Return void.
4653         (__libc_mallinfo): Accumulate over all arenas.
4654         (__malloc_stats): Adjust for change in int_mallinfo interface.
4655
4656 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4657
4658         [BZ #10375]
4659         * configure.in (NM): Add AC_CHECK_TOOL for it.
4660         (libc_extra_cflags): New substituted variable.
4661         Check for -fstack-protector being used implicitly.
4662         * configure: Regenerated.
4663         * config.make.in (config-extra-cflags): New variable,
4664         gets @libc_extra_cflags@.
4665         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4666
4667         [BZ #10375]
4668         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4669         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4670         * configure: Regenerated.
4671         * config.make.in (CPPUNDEFS): New substituted variable.
4672         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4673         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4674         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4675
4676 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4677
4678         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4679         (mq_attr): Use __syscall_slong_t.
4680
4681 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4682
4683         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4684         Check __x86_64__ instead of __WORDSIZE.
4685         (_STAT_VER_LINUX): Likewise.
4686         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4687         __syscall_ulong_t and __syscall_slong_t.
4688         (stat64): Likewise.
4689
4690 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4691
4692         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4693
4694 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4695
4696         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4697
4698 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4699
4700         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4701         __syscall_ulong_t.
4702
4703         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4704         include <bits/wordsize.h>.  Check __x86_64__ instead of
4705         __WORDSIZE.
4706         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4707         defined.
4708         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4709
4710         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4711         include <bits/wordsize.h>.  Check __x86_64__ instead of
4712         __WORDSIZE.
4713         (user_regs_struct): Use "__extension__ unsigned long long"
4714         instead of "unsigned long" if __x86_64__ is defined.
4715         (user): Likewise.  Pad after pointer field if __ILP32__ is
4716         defined.
4717
4718 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4719
4720         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4721         versions 5 to 9.
4722         * configure: Regenerated.
4723         * manual/install.texi (texinfo): Increase version requirement to
4724         4.5 or later.
4725         * INSTALL: Regenerated.
4726
4727         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4728
4729 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4730
4731         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4732
4733         * sysdeps/x86_64/x32/ffs.c: New file.
4734
4735         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4736         __syscall_ulong_t.
4737         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4738         defined.  Use __syscall_ulong_t.
4739         (shminfo): Use __syscall_ulong_t.
4740         (shm_info): Likewise.
4741
4742         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4743         __syscall_ulong_t.
4744
4745         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4746         <bits/wordsize.h>.
4747         (msgqnum_t): Use __syscall_ulong_t.
4748         (msglen_t): Likewise.
4749         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4750         __syscall_ulong_t.
4751
4752         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4753         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4754
4755         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4756
4757         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4758         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4759
4760         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4761         __syscall_slong_t.
4762
4763         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4764         include <bits/wordsize.h>.  Check __x86_64__ instead of
4765         __WORDSIZE.
4766
4767         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4768         "unsigned long long int" if __x86_64__ is defined.
4769         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4770
4771         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4772         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4773         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4774
4775         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4776         <stdint.h>.
4777         (GET_PC): Cast to uintptr_t first.
4778         (GET_FRAME): Likewise.
4779         (GET_STACK): Likewise.
4780
4781         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4782         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4783         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4784         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4785         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4786         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4787         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4788         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4789         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4790         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4791         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4792         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4793         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4794         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4795         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4796         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4797         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4798         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4799         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4800         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4801         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4802         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4803         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4804         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4805         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4806         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4807         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4808         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4809         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4810
4811 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4812
4813         * Makerules (+depfiles): Also collect depfiles from .oS in
4814         $(extra-objs).
4815         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4816         .oS, $(libnldbl-routines)).
4817
4818         * Makerules (native-compile-mkdep-flags): Define.
4819         * sunrpc/Makefile (extra-objs): Add $(addprefix
4820         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4821         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4822         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4823         calling $(make-target-directory).
4824
4825 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4826
4827         * bits/types.h (__snseconds_t): Removed.
4828         * time/time.h (struct timespec): Replace __snseconds_t with
4829         __syscall_slong_t.
4830         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4831         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4832         Likewise.
4833         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4834         (__SNSECONDS_T_TYPE): Likewise.
4835         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4836         (__SNSECONDS_T_TYPE): Likewise.
4837         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4838         (__SNSECONDS_T_TYPE): Likewise.
4839
4840 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4841
4842         * sysdeps/mach/hurd/bits/typesizes.h
4843         (__SYSCALL_SLONG_TYPE): New macro.
4844         (__SYSCALL_ULONG_TYPE): Likewise.
4845
4846 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4847
4848         * bits/types.h (__syscall_slong_t): New type.
4849         (__syscall_ulong_t): Likewise.
4850
4851         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4852         (__SYSCALL_ULONG_TYPE): Likewise.
4853         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4854         (__SYSCALL_SLONG_TYPE): Likewise.
4855         (__SYSCALL_ULONG_TYPE): Likewise.
4856         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4857         (__SYSCALL_SLONG_TYPE): Likewise.
4858         (__SYSCALL_ULONG_TYPE): Likewise.
4859         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4860         (__SYSCALL_SLONG_TYPE): Likewise.
4861         (__SYSCALL_ULONG_TYPE): Likewise.
4862
4863 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4864
4865         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4866         Add sigaltstack-offsets.sym.
4867         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4868         <sigaltstack-offsets.h>.
4869         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4870         longjmp_msg pointer.
4871         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4872         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4873         signal stack.
4874         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4875
4876 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4877
4878         * elf/stackguard-macros.h: Remove file.
4879         * sysdeps/generic/stackguard-macros.h: New file.
4880         * sysdeps/i386/stackguard-macros.h: Likewise.
4881         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4882         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4883         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4884         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4885         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4886         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4887         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4888         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4889         <elf/stackguard-macros.h>.
4890
4891         [BZ #14109]
4892         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4893         __aligned__ in attribute.
4894         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4895         (gregset_t): Likewise.
4896
4897 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4898
4899         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4900         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4901         * sysdeps/x86_64/x32/Implies-after: New file.
4902
4903 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4904
4905         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4906         and access return value for _dl_profile_fixup.  Use R10_LP to
4907         load frame size.
4908
4909 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4910
4911         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4912
4913 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4914
4915         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4916         * sysdeps/x86_64/x32/sysdep.h: New file.
4917
4918 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4919
4920         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4921         * sysdeps/x86_64/setjmp.S: Likewise.
4922
4923 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4924
4925         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4926         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4927         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4928         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4929         remove unused global constant.
4930
4931 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4932
4933         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4934         include of <not-cancel.h>.
4935
4936 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4937
4938         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4939
4940 2012-05-15  Jeff Law  <law@redhat.com>
4941             Andreas Jaeger  <aj@suse.de>
4942
4943         [BZ #13594]
4944         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4945         out from...
4946         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4947         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4948         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4949         code changing __hst_map_handle.map.
4950
4951 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4952
4953         * configure.in (sysnames): Look for Implies-before and Implies-after
4954         files.
4955         * configure: Regenerated.
4956
4957 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4958
4959         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4960         8-byte data alignment with LP_SIZE alignment.
4961
4962 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4963
4964         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4965         into R10_LP.
4966
4967 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4968
4969         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4970
4971 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4972
4973         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4974         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4975         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4976         Likewise.
4977         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4978
4979 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4980
4981         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4982         (stackinfo_sub_sp): Likewise.
4983
4984 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4985
4986         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4987         RAX_LP.
4988
4989 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4990
4991         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4992         into R*_LP.
4993
4994 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4995
4996         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4997         sizes into R*_LP.
4998
4999 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5000
5001         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
5002
5003 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5004
5005         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
5006         into R11_LP and load __x86_64_shared_cache_size_half into
5007         R8_LP.
5008
5009 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5010
5011         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5012         R8_LP.
5013
5014 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5015
5016         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5017         logb for POWER7.
5018         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5019         logbf for POWER7.
5020         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5021         logbl for POWER7.
5022         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5023         powerpc32/power7/fpu/s_logb.c via #include.
5024         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5025         powerpc32/power7/fpu/s_logbf.c via #include.
5026         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5027         powerpc32/power7/fpu/s_logbl.c via #include.
5028
5029 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5030
5031         * README.libm: Remove file.
5032
5033 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5034
5035         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5036         count for x32.  Use R*_LP and omit operand-size suffix.
5037
5038 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5039
5040         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5041         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5042         * sysdeps/x86_64/x32/shlib-versions: New file.
5043
5044 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5045
5046         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5047         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5048         Use _dl_fatal_printf instead.
5049
5050 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5051
5052         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5053         set if not set by the user.  Do not allow for being unset.
5054         * sysdeps/unix/sysv/linux/configure: Regenerated.
5055
5056 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5057
5058         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5059         the `q' suffix from lea and replace .quad with ASM_ADDR.
5060
5061 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5062
5063         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5064         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5065         instead of $17.
5066         (PTR_DEMANGLE): Likewise.
5067
5068 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5069
5070         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5071         (LP_OP): Likewise.
5072         (ASM_ADDR): Likewise.
5073         (RAX_LP): Likewise.
5074         (RBP_LP): Likewise.
5075         (RBX_LP): Likewise.
5076         (RCX_LP): Likewise.
5077         (RDI_LP): Likewise.
5078         (RSI_LP): Likewise.
5079         (RSP_LP): Likewise.
5080         (R8_LP): Likewise.
5081         (R9_LP): Likewise.
5082         (R10_LP): Likewise.
5083         (R10_LP): Likewise.
5084         (R11_LP): Likewise.
5085         (R12_LP): Likewise.
5086         (R13_LP): Likewise.
5087         (R14_LP): Likewise.
5088         (R15_LP): Likewise.
5089
5090 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5091
5092         * sysdeps/x86_64/x32/dl-machine.h: New file.
5093
5094 2012-05-14  Andreas Jaeger  <aj@suse.de>
5095
5096         * manual/Makefile (subdir): Remove export of subdir.
5097         (all): Remove target.
5098         (.PHONY): Remove all from list.
5099         (mkinstalldirs): Remove.
5100         (.PHONY): Remove installdirs from list.
5101         ($(inst_infodir)/libc.info): Use make-target-directory.
5102         (installdirs): Remove.
5103         (subdir_%): Remove.
5104         (glibc-targets): Remove.
5105         (lib): Remove.
5106         (stubs): Remove.
5107         ($(objpfx)stubs ../po/manual.pot): Remove.
5108         ($(objpfx)stamp%): Remove.
5109         (make-target-directory): Remove.
5110         (subdir_install): Remove.
5111         (routines): Remove.
5112         (aux): Remove.
5113         (sources): Remove.
5114         (objects): Remove.
5115         (headers): Remove.
5116
5117         [BZ #13750]
5118         * manual/.gitignore: Remove, it's not needed anymore.
5119         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5120         all files in it.
5121         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5122         directory.
5123         (texis): Renamed to $(objpfx)texis.
5124         (texis-path): New, contains path to generated files.
5125         (chapters.%): Use texis-path for complete path, add extra argument
5126         libc-texinfo.sh.
5127         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5128         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5129         (summary,texi, stamp-summary): Use complete path of
5130         files. Generate files in build dir.
5131         (dir-add.texi): Build in build dir.
5132         (libm-err.texi,stamp-libm-err): Likewise.
5133         (version.texi, stamp-version): Likewise.
5134         (.%c.texi): Likewise.
5135         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5136         (mostlyclean): Remove target.
5137         (realclean): Remove target.
5138         (generated): Add new variable with contents from mostlyclean and
5139         realclean, remove entries duplicated in common-mostlyclean, add
5140         stamp-libm-err and stamp-version.
5141         (generated-dirs): Add libc directory.
5142         ($(inst_infodir)/libc.info): Install files from build dir.
5143
5144         * manual/install.texi (Configuring and compiling): Adjust since
5145         the info files are not part of the tar ball anymore.
5146
5147 2012-05-14  Andreas Jaeger  <aj@suse.de>
5148
5149         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5150         variable.
5151
5152 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5153
5154         [BZ #13717]
5155         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5156         to 2.2.0 where earlier.
5157         * sysdeps/unix/sysv/linux/configure: Regenerated.
5158         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5159         Remove conditional code.
5160         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5161         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5162         Remove conditional code.
5163         [!__NR_lchown]: Likewise.
5164         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5165         [__NR_lchown]: Likewise.
5166         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5167         comment referencing __ASSUME_LCHOWN_SYSCALL.
5168         * sysdeps/unix/sysv/linux/i386/sigaction.c
5169         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5170         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5171         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5172         Remove conditional code.
5173         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5174         (__protocol_available): Remove #if 0 code.
5175         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5176         conditional code.
5177         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5178         * sysdeps/unix/sysv/linux/kernel-features.h
5179         (__ASSUME_GETCWD_SYSCALL): Don't define.
5180         (__ASSUME_REALTIME_SIGNALS): Likewise.
5181         (__ASSUME_PREAD_SYSCALL): Likewise.
5182         (__ASSUME_PWRITE_SYSCALL): Likewise.
5183         (__ASSUME_POLL_SYSCALL): Likewise.
5184         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5185         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5186         non-SPARC.
5187         (__ASSUME_SIOCGIFNAME): Don't define.
5188         (__ASSUME_MSG_NOSIGNAL): Likewise.
5189         (__ASSUME_SENDFILE): Define unconditionally.
5190         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5191         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5192         conditional code.
5193         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5194         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5195         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5196         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5197         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5198         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5199         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5200         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5201         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5202         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5203         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5204         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5205         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5207         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5208         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5210         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5211         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5212         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5213         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5214         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5216         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5217         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5219         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5220         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5221         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5222         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5223         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5224         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5225         Remove conditional code.
5226         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5227         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5228         Remove conditional code.
5229         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5230         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5231         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5232         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5233         Remove conditional code.
5234         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5235         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5236         Remove conditional code.
5237         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5238         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5239         Remove conditional code.
5240         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5241         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5242         Remove conditional code.
5243         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5244         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5245         Remove conditional code.
5246         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5247         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5248         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5249         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5250         * sysdeps/unix/sysv/linux/sigaction.c
5251         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5252         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5253         * sysdeps/unix/sysv/linux/sigpending.c
5254         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5255         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5256         * sysdeps/unix/sysv/linux/sigprocmask.c
5257         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5258         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5259         * sysdeps/unix/sysv/linux/sigsuspend.c
5260         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5261         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5262         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5263         (__libc_missing_rt_sigs): Remove.
5264         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5265         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5266         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5267         Remove conditional code.
5268         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5269         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5270         return 1.
5271         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5272         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5273         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5274         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5275
5276 2012-05-14  Andreas Jaeger  <aj@suse.de>
5277
5278         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5279         it's not used in glibc.
5280         (__coshm1): Likewise.
5281         (__acosh1p): Likewise.
5282         (__sgn): Likewise.
5283
5284         * manual/string.texi (Copying and Concatenation): Add missing
5285         variable in concat example.
5286         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5287
5288 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5289
5290         [BZ #14103]
5291         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5292         __builtin_clzl with __builtin_clzll.
5293
5294 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5295
5296         [BZ #14104]
5297         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5298         libc_freeres_ptr.
5299
5300 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5301
5302         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5303         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5304         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5305         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5306
5307 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5308
5309         * NEWS: Update ia64 info.
5310
5311 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5312
5313         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5314         used as bcopy.
5315
5316 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5317
5318         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5319         * sysdeps/unix/syscalls.list (dup3): Likewise.
5320         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5321         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5322
5323 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5324
5325         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5326         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5327
5328 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5329
5330         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5331         thread pointer.
5332         (TLS_IE): Use mov/add instead of movq/addq to load thread
5333         pointer.
5334         (TLS_GD_PREFIX): New.
5335         (TLS_GD): Use it.
5336
5337 2012-05-11  David S. Miller  <davem@davemloft.net>
5338
5339         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5340         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5341         (_FPU_SETCW): Likewise.
5342
5343 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5344
5345         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5346         is 32-byte aligned.
5347
5348 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5349
5350         [BZ #11837]
5351         * iconvdata/gb18030.c: Update tables.
5352         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5353         characters specially.
5354         (BODY for TO_LOOP): Add encoding of missing ranges.
5355
5356 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5357
5358         [BZ #13673]
5359         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5360         * sysdeps/mach/hurd/dup3.c: Likewise.
5361         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5362         * sysdeps/powerpc/memmove.c:: Likewise.
5363
5364 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5365
5366         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5367         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5368
5369 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5370
5371         * elf/elf.h (R_X86_64_RELATIVE64): New.
5372         (R_X86_64_NUM): Updated.
5373         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5374         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5375         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5376         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5377         tst-quad1pie tst-quad2pie
5378         (modules-names): Add tst-quadmod1 tst-quadmod2.
5379         ($(objpfx)tst-quad1): New dependency.
5380         ($(objpfx)tst-quad2): Likewise.
5381         ($(objpfx)tst-quad1pie): Likewise.
5382         ($(objpfx)tst-quad2pie): Likewise.
5383         * sysdeps/x86_64/tst-quad1.c: New file.
5384         * sysdeps/x86_64/tst-quad1pie.c: New file.
5385         * sysdeps/x86_64/tst-quad2.c: Likewise.
5386         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5387         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5388         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5389         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5390         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5391
5392 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5393
5394         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5395         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5396         * streams/stropts.h (t_scalar_t): Define type.
5397
5398         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5399         (_PATH_PRESERVE): Set to "/var/lib".
5400         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5401
5402         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5403         instead of int.
5404
5405         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5406         if __dir_mkfile succeeded.
5407
5408         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5409         checking for _hurd_dtablesize.  Unlock it right after having
5410         finished _hurd_dtable allocation.
5411
5412 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5413
5414         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5415         * sysdeps/mach/hurd/configure: Regenerated.
5416         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5417         special-casing to...
5418         * sysdeps/gnu/configure.in: ... this new file.
5419         * sysdeps/unix/sysv/linux/configure: Regenerated.
5420         * sysdeps/gnu/configure: New generated file.
5421
5422         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5423         for Linux: use nsec instead of usec, as well as:
5424         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5425         members of type struct timespec.
5426         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5427         New macros.
5428         (struct stat64): Likewise.
5429         (_STATBUF_ST_NSEC): New macro.
5430         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5431
5432         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5433         __strtoul_internal rather than strtoul.
5434
5435 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5436
5437         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5438         and reject them.
5439
5440 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5441
5442         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5443         which preserves existing values.
5444         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5445
5446 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5447
5448         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5449         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5450         greater than FD_SETSIZE.
5451
5452 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5453
5454         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5455         allocated, call __vm_protect to finish enabling the existing space, and
5456         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5457         allocate the remainder.
5458
5459 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5460
5461         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5462         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5463
5464 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5465
5466         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5467         sysdeps/mach/hurd/readlink.c.
5468
5469         * posix/tst-sysconf.c (posix_options): Only use
5470         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5471         _POSIX_SYNCHRONIZED_IO when they are defined
5472         * sysdeps/mach/hurd/bits/posix_opt.h:
5473         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5474         (_XOPEN_REALTIME): Undefine macro.
5475         (_XOPEN_REALTIME_THREADS): Undefine macro.
5476         (_XOPEN_SHM): Undefine macro.
5477         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5478         macro to -1.
5479         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5480         macro to -1.
5481         (_POSIX_ASYNC_IO): Undefine macro.
5482         (_POSIX_PRIORITIZED_IO): Undefine macro.
5483         (_POSIX_SPIN_LOCKS): Define macro to -1.
5484
5485         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5486         SA_NODEFER, SA_RESETHAND.
5487         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5488         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5489         F_DUPFD_CLOEXEC.
5490
5491 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5492
5493         * elf/Makefile (pldd-modules): Define unconditionally.
5494
5495 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5496
5497         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5498
5499 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5500
5501         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5502         Return ENOENT when name is empty.
5503         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5504
5505 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5506
5507         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5508
5509         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5510
5511 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5512
5513         Fix mlock in all cases except non-readable pages.
5514         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5515         instead of VM_PROT_ALL as parameter to __vm_wire function.
5516
5517         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5518         (__mkdir): When path is `/', just fail with EEXIST.
5519         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5520
5521 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5522
5523         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5524         <sys/uio.h> (for writev).
5525         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5526         and <sys/param.h> (for MIN).
5527
5528 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5529
5530         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5531         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5532         if interrupted.
5533
5534 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5535
5536         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5537         Depend on against $(link-rpcuserlibs).
5538
5539 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5540
5541         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5542         (__libc_stack_end): Do not use attribute_relro.
5543         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5544         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5545         to libthread-provided value.
5546         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5547         attribute_relro.
5548
5549 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5550
5551         [BZ #3748]
5552         * bits/libc-lock.h (__libc_once_get): New macro.
5553         * sysdeps/mach/bits/libc-lock.h: Likewise.
5554         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5555         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5556         instead of using implementation details.
5557
5558         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5559         * libio/freopen.c: Likewise.
5560         * libio/freopen64.c: Likewise.
5561         * misc/syslog.c: Likewise.
5562         * nscd/connections.c: Likewise.
5563         * nscd/netgroupcache.c: Likewise.
5564         * sysdeps/posix/getcwd.c: Likewise.
5565
5566 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5567
5568         * math/w_ilogbf.c: Add #include <limits.h>.
5569
5570 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5571
5572         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5573         path instead of returning without unlocking.
5574
5575         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5576         immediate-write ioctls.
5577         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5578
5579 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5580
5581         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5582         __builtin_frame_address instead of making assumptions about the
5583         location of the return address relative to DATA.  Force early load of
5584         the return address.
5585         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5586         __builtin_frame_address.
5587
5588         dup3 for GNU Hurd.
5589         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5590         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5591         implement dup3 and do some further code clean-ups.
5592         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5593         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5594
5595 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5596
5597         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5598
5599         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5600         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5601         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5602         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5603         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5604         d->port.lock.
5605
5606         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5607         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5608         when handler == SIG_ERR, not when handler != SIG_ERR.
5609
5610 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5611
5612         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5613         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5614         definitions.
5615
5616         accept4 for GNU Hurd.
5617         * include/sys/socket.h (__libc_accept4): New prototype.
5618         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5619         to implement __libc_accept4.
5620         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5621         __libc_accept4.
5622         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5623
5624         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5625         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5626         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5627         signal-defines.sym.
5628
5629 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5630
5631         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5632
5633 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5634
5635         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5636         assertion on O_CLOEXEC flag.
5637         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5638         * hurd/intern-fd.c: Likewise.
5639         * hurd/port2fd.c: Likewise.
5640
5641 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5642
5643         [BZ #3906]
5644         * bits/in.h (IPV6_PKTINFO): Define new macro.
5645         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5646
5647 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5648
5649         [BZ #13954]
5650         [BZ #13955]
5651         [BZ #13956]
5652         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5653         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5654         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5655         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5656         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5657         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5658         * math/libm-test.inc (logb_test) : Additional logb tests.
5659
5660 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5661             Andreas Jaeger  <aj@suse.de>
5662
5663         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5664         * configure: Regenerated.
5665         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5666         * config.make.in (link-obsolete-rpc): New substituted variable.
5667         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5668         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5669         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5670         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5671         so that libc.a contains the symbols.
5672         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5673         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5674         * sunrpc/auth_none.c: Likewise.
5675         * sunrpc/auth_unix.c: Likewise.
5676         * sunrpc/authdes_prot.c: Likewise.
5677         * sunrpc/authuxprot.c: Likewise.
5678         * sunrpc/clnt_gen.c: Likewise.
5679         * sunrpc/clnt_perr.c: Likewise.
5680         * sunrpc/clnt_raw.c: Likewise.
5681         * sunrpc/clnt_simp.c: Likewise.
5682         * sunrpc/clnt_tcp.c: Likewise.
5683         * sunrpc/clnt_udp.c: Likewise.
5684         * sunrpc/clnt_unix.c: Likewise.
5685         * sunrpc/des_crypt.c: Likewise.
5686         * sunrpc/des_soft.c: Likewise.
5687         * sunrpc/get_myaddr.c: Likewise.
5688         * sunrpc/key_call.c: Likewise.
5689         * sunrpc/key_prot.c: Likewise.
5690         * sunrpc/netname.c: Likewise.
5691         * sunrpc/pm_getmaps.c: Likewise.
5692         * sunrpc/pm_getport.c: Likewise.
5693         * sunrpc/pmap_clnt.c: Likewise.
5694         * sunrpc/pmap_prot.c: Likewise.
5695         * sunrpc/pmap_prot2.c: Likewise.
5696         * sunrpc/pmap_rmt.c: Likewise.
5697         * sunrpc/publickey.c: Likewise.
5698         * sunrpc/rpc_cmsg.c: Likewise.
5699         * sunrpc/rpc_common.c: Likewise.
5700         * sunrpc/rpc_dtable.c: Likewise.
5701         * sunrpc/rpc_prot.c: Likewise.
5702         * sunrpc/rpc_thread.c: Likewise.
5703         * sunrpc/rtime.c: Likewise.
5704         * sunrpc/svc.c: Likewise.
5705         * sunrpc/svc_auth.c: Likewise.
5706         * sunrpc/svc_raw.c: Likewise.
5707         * sunrpc/svc_run.c: Likewise.
5708         * sunrpc/svc_tcp.c: Likewise.
5709         * sunrpc/svc_udp.c: Likewise.
5710         * sunrpc/svc_unix.c: Likewise.
5711         * sunrpc/svcauth_des.c: Likewise.
5712         * sunrpc/xcrypt.c: Likewise.
5713         * sunrpc/xdr.c: Likewise.
5714         * sunrpc/xdr_array.c: Likewise.
5715         * sunrpc/xdr_float.c: Likewise.
5716         * sunrpc/xdr_intXX_t.c: Likewise.
5717         * sunrpc/xdr_mem.c: Likewise.
5718         * sunrpc/xdr_rec.c: Likewise.
5719         * sunrpc/xdr_ref.c: Likewise.
5720         * sunrpc/xdr_sizeof.c: Likewise.
5721         * sunrpc/xdr_stdio.c: Likewise.
5722
5723 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5724
5725         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5726         change.  Update copyright years.
5727
5728 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5729
5730         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5731
5732 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5733             Joseph Myers  <joseph@codesourcery.com>
5734             Paul Pluzhnikov  <ppluzhnikov@google.com>
5735
5736         [BZ #14012]
5737         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5738         requiring rpcgen.
5739         [cross-compiling] (extra-libs): Likewise.
5740         [cross-compiling] (extra-libs-others): Likewise.
5741         [cross-compiling] (librpcsvc-routines): Likewise.
5742         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5743         [cross-compiling] (omit-deps): Likewise.
5744         (sunrpc-CPPFLAGS): New variable.
5745         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5746         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5747         (cross-rpcgen-objs): New variable.
5748         (extra-objs): Append $(cross-rpcgen-objs).
5749         ($(cross-rpcgen-objs)): New rule.
5750         ($(objpfx)cross-rpcgen): Likewise.
5751         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5752         comment.
5753         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5754         ($(objpfx)x%.stmp): Likewise.
5755         * sunrpc/proto.h [IS_IN_build] (_): Define.
5756         [IS_IN_build] (_libc_intl_domainname): Likewise.
5757
5758 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5759
5760         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5761         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5762         and R_X86_64_TPOFF64.
5763
5764 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5765
5766         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5767         sysdeps/unix/sysv/syscalls.list.
5768         (stime): Likewise.
5769         (utime): Likewise.
5770         * sysdeps/unix/sysv/syscalls.list: Remove file.
5771
5772 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5773
5774         [BZ #3440]
5775         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5776         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5777         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5778         (__LC_IDENTIFICATION): Make these macros useful in #if
5779         expressions, as required by C99.
5780
5781 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5782
5783         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5784         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5785         after this.
5786
5787 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5788
5789         * stdlib/longlong.h: Updated from GCC.
5790
5791 2012-05-09  Andreas Jaeger  <aj@suse.de>
5792
5793         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5794         default is first entry.
5795         (run_mode): Set type.
5796         (main): Remove informal message about syslog.
5797         (options): Fix typo.
5798
5799         [BZ #14053]
5800         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5801         to asm.
5802         (lrint): Likewise.
5803         (llrintf): Likewise.
5804         (llrint): Likewise.
5805         (rint): Likewise.
5806         (rintf): Likewise.
5807         (nearbyint): Likewise.
5808         (nearbyintf): Likewise.
5809
5810 2012-05-09  Andreas Jaeger  <aj@suse.de>
5811             Pedro Alves  <palves@redhat.com>
5812
5813         * nscd/nscd.c (run_mode): Use enum.
5814         (main): Cleanup coding style issue.
5815
5816 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5817             Andreas Jaeger  <aj@suse.de>
5818
5819         * nscd/nscd.c (go_background): Replaced with...
5820         (run_mode): ... this.
5821         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5822         (options): Add -F --foreground.
5823         (main): Implement it.
5824         (parse_opt): Parse it.
5825
5826 2012-05-09  Andreas Jaeger  <aj@suse.de>
5827
5828         [BZ #14083]
5829         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5830         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5831         -Wconversion warning.
5832         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5833         Likewise.
5834
5835 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5836
5837         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5838         == 0.
5839         (LC_ALL): Use macro-int-constant.
5840         (LC_COLLATE): Likewise.
5841         (LC_CTYPE): Likewise.
5842         (LC_MESSAGES): Likewise.
5843         (LC_MONETARY): Likewise.
5844         (LC_NUMERIC): Likewise.
5845         (LC_TIME): Likewise.
5846         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5847         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5848         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5849         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5850         Specify type.
5851         [C99-based standards] (float_t): Expect type.
5852         [C99-based standards] (double_t): Expect type.
5853         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5854         type.
5855         [C99-based standards] (HUGE_VALL): Likewise.
5856         [C99-based standards] (INFINITY): Likewise.
5857         [C99-based standards] (NAN): Likewise.
5858         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5859         [C99-based standards] (FP_NAN): Likewise.
5860         [C99-based standards] (FP_NORMAL): Likewise.
5861         [C99-based standards] (FP_SUBNORMAL): Likewise.
5862         [C99-based standards] (FP_ZERO): Likewise.
5863         [C99-based standards] (FP_FAST_FMA): Use
5864         optional-macro-int-constant.  Specify type.  Require == 1.
5865         [C99-based standards] (FP_FAST_FMAF): Likewise.
5866         [C99-based standards] (FP_FAST_FMAL): Likewise.
5867         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5868         [C99-based standards] (FP_ILOGBNAN): Likewise.
5869         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5870         Specify type.
5871         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5872         [C99-based standards] (math_errhandling): Specify type.
5873         [ISO99 || ISO11] (signgam): Do not allow.
5874         [non-C99-based standards] (copysignf): Do not allow.
5875         [non-C99-based standards] (exp2f): Likewise.
5876         [non-C99-based standards] (log2f): Likewise.
5877         [non-C99-based standards] (modff): Allow.
5878         [non-C99-based standards] (erff): Do not allow.
5879         [non-C99-based standards] (erfcf): Likewise.
5880         [non-C99-based standards] (gammaf): Likewise.
5881         [non-C99-based standards] (hypotf): Likewise.
5882         [non-C99-based standards] (j0f): Likewise.
5883         [non-C99-based standards] (j1f): Likewise.
5884         [non-C99-based standards] (jnf): Likewise.
5885         [non-C99-based standards] (lgammaf): Likewise.
5886         [non-C99-based standards] (tgammaf): Likewise.
5887         [non-C99-based standards] (y0f): Likewise.
5888         [non-C99-based standards] (y1f): Likewise.
5889         [non-C99-based standards] (ynf): Likewise.
5890         [non-C99-based standards] (isnanf): Likewise.
5891         [non-C99-based standards] (acoshf): Likewise.
5892         [non-C99-based standards] (asinhf): Likewise.
5893         [non-C99-based standards] (atanhf): Likewise.
5894         [non-C99-based standards] (cbrtf): Likewise.
5895         [non-C99-based standards] (expm1f): Likewise.
5896         [non-C99-based standards] (ilogbf): Likewise.
5897         [non-C99-based standards] (log1pf): Likewise.
5898         [non-C99-based standards] (logbf): Likewise.
5899         [non-C99-based standards] (nextafterf): Likewise.
5900         [non-C99-based standards] (remainderf): Likewise.
5901         [non-C99-based standards] (rintf): Likewise.
5902         [non-C99-based standards] (scalbf): Likewise.
5903         [non-C99-based standards] (copysignl): Likewise.
5904         [non-C99-based standards] (exp2l): Likewise.
5905         [non-C99-based standards] (log2l): Likewise.
5906         [non-C99-based standards] (modfl): Allow.
5907         [non-C99-based standards] (erfl): Do not allow.
5908         [non-C99-based standards] (erfcl): Likewise.
5909         [non-C99-based standards] (gammal): Likewise.
5910         [non-C99-based standards] (hypotl): Likewise.
5911         [non-C99-based standards] (j0l): Likewise.
5912         [non-C99-based standards] (j1l): Likewise.
5913         [non-C99-based standards] (jnl): Likewise.
5914         [non-C99-based standards] (lgammal): Likewise.
5915         [non-C99-based standards] (tgammal): Likewise.
5916         [non-C99-based standards] (y0l): Likewise.
5917         [non-C99-based standards] (y1l): Likewise.
5918         [non-C99-based standards] (ynl): Likewise.
5919         [non-C99-based standards] (isnanl): Likewise.
5920         [non-C99-based standards] (acoshl): Likewise.
5921         [non-C99-based standards] (asinhl): Likewise.
5922         [non-C99-based standards] (atanhl): Likewise.
5923         [non-C99-based standards] (cbrtl): Likewise.
5924         [non-C99-based standards] (expm1l): Likewise.
5925         [non-C99-based standards] (ilogbl): Likewise.
5926         [non-C99-based standards] (log1pl): Likewise.
5927         [non-C99-based standards] (logbl): Likewise.
5928         [non-C99-based standards] (nextafterl): Likewise.
5929         [non-C99-based standards] (remainderl): Likewise.
5930         [non-C99-based standards] (rintl): Likewise.
5931         [non-C99-based standards] (scalbl): Likewise.
5932         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5933         [non-C99-based standards] (FP_*): Do not allow.
5934         [C99-based standards] (FP_*): Change to
5935         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5936         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5937         allow.
5938         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5939         (SIG_ERR): Likewise.
5940         [X/Open-based standards] (SIG_HOLD): Likewise.
5941         (SIG_IGN): Likewise.
5942         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5943         positive value.
5944         (SIGFPE): Likewise.
5945         (SIGILL): Likewise.
5946         (SIGINT): Likewise.
5947         (SIGSEGV): Likewise.
5948         (SIGTER): Likewise.
5949         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5950         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5951         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5952         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5953         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5954         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5955         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5956         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5957         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5958         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5959         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5960         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5961         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5962         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5963         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5964         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5965         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5966         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5967         [X/Open-based standards] (SIGTRAP): Likewise.
5968         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5969         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5970         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5971         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5972         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5973         allow.
5974
5975 2012-05-08  Ian Wienand  <ianw@vmware.com>
5976
5977         [BZ #14080]
5978         * time/tzset.c (__tzset_parse_tz): Update default rules for
5979         daylight time changes in the Energy Policy Act of 2005.
5980
5981 2012-05-09  Andreas Jaeger  <aj@suse.de>
5982
5983         [BZ #13983]
5984         * elf/ldconfig.c (parse_conf): Change string to make clear that
5985         ldconfig only issued a warning if ld.so.conf does not exist.
5986
5987 2012-05-08  David S. Miller  <davem@davemloft.net>
5988
5989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5990         movxtod instead of popping the value on the stack.
5991
5992         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5993
5994 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5995
5996         * config.h.in: Add HAVE_ARM_PCS_VFP.
5997
5998 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
5999
6000         [BZ #13979]
6001         * include/features.h: Warn if user requests __FORTIFY_SOURCE
6002         checking but the checks are disabled for any reason.
6003
6004 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
6005
6006         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
6007         and ELF64_R_TYPE with ELFW(R_TYPE).
6008
6009 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6010
6011         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6012         (ulimit): Likewise.
6013
6014         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6015         (settimeofday): Likewise.
6016
6017 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6018
6019         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6020         a struct th_u2 inside the union, and move tu_block/tu_code into
6021         a new th_u3 union of tu_block/tu_code inside of that.  Move
6022         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6023         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6024         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6025         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6026         (th_stuff): Change to th_u1.tu_stuff.
6027         (th_data): Define.
6028         (th_msg): Change to th_u1.th_u2.tu_data.
6029
6030 2012-05-07  David S. Miller  <davem@davemloft.net>
6031
6032         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6033
6034         [BZ #14074]
6035         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6036         (SETUP_PIC_REG): Use it.
6037         (SETUP_PIC_REG_LEAF): Use it.
6038
6039 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6040
6041         [BZ #13885]
6042         [BZ #13923]
6043         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6044         USE_AS_EXPM1L.
6045         (EXPL_FINITE): Likewise.
6046         (FLDLOG): Likewise.
6047         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6048         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6049         e_expl.S.
6050         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6051         USE_AS_EXPM1L.
6052         (EXPL_FINITE): Likewise.
6053         (FLDLOG): Likewise.
6054         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6055         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6056         e_expl.S.
6057         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6058         test of -max_value argument for long double.
6059         * sysdeps/i386/fpu/libm-test-ulps: Update.
6060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6061
6062 2012-05-06  David S. Miller  <davem@davemloft.net>
6063
6064         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6065         quad soft-float symbols whose references which are compiler
6066         generated.
6067         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6068
6069 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6070
6071         [BZ #13884]
6072         [BZ #13914]
6073         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6074         USE_AS_EXP10L.
6075         (EXPL_FINITE): Likewise.
6076         (FLDLOG): Likewise.
6077         (c0): Likewise.
6078         (c1): Likewise.
6079         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6080         Adjust comments for base varying.
6081         (__expl_finite): Change alias to EXPL_FINITE.
6082         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6083         e_expl.S.
6084         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6085         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6086         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6087         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6088         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6089         USE_AS_EXP10L.
6090         (EXPL_FINITE): Likewise.
6091         (FLDLOG): Likewise.
6092         (c0): Likewise.
6093         (c1): Likewise.
6094         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6095         Adjust comments for base varying.
6096         (__expl_finite): Change alias to EXPL_FINITE.
6097         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6098         tests for bugs.
6099         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6100
6101         [BZ #14064]
6102         * math/libm-test.inc (check_float_internal): Correct ulp
6103         calculation for subnormal expected results.
6104
6105 2012-05-06  Andreas Jaeger  <aj@suse.de>
6106
6107         * Makeconfig (+math-flags): New, set to -frounding-math.
6108         (+cflags): Add +math-flags so that all of glibc gets compiled with
6109         it.
6110
6111         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6112
6113 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6114
6115         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6116         Disable one test.
6117
6118         [BZ #13787]
6119         [BZ #13922]
6120         [BZ #14036]
6121         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6122         (__ieee754_expl): Allow for and saturate large arguments.
6123         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6124         (u_threshold): Likewise.
6125         (__exp): Call __ieee754_exp before checking for overflow and
6126         underflow.
6127         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6128         (u_threshold): Likewise.
6129         (__expf): Call __ieee754_expf before checking for overflow and
6130         underflow.
6131         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6132         (u_threshold): Likewise.
6133         (__expl): Call __ieee754_expl before checking for overflow and
6134         underflow.
6135         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6136         (__ieee754_expl): Allow for and saturate large arguments.
6137         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6138         missing overflow exception on overflow.
6139         (expm1_test): Do not allow missing overflow exception on overflow.
6140
6141         * sysdeps/i386/fpu/e_expl.c: Move to ...
6142         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6143         rather than using inline asm.
6144         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6145         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6146         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6147
6148         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6149         (nice): Likewise.
6150         (poll): Likewise.
6151         (signal): Likewise.
6152         (time): Likewise.
6153         (times): Likewise.
6154
6155 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6156
6157         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6158         sysdeps/unix/common/syscalls.list.
6159         (fchmod): Likewise.
6160         (fchown): Likewise.
6161         (ftruncate): Likewise.
6162         (getrusage): Likewise.
6163         (gettimeofday): Likewise.
6164         (setpgid): Likewise.
6165         (setregid): Likewise.
6166         (setreuid): Likewise.
6167         (sigaction): Likewise.
6168         (truncate): Likewise.
6169         (vhangup): Likewise.
6170         * sysdeps/unix/common/syscalls.list: Remove file.
6171         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6172         * sysdeps/unix/sysv/linux/Implies: Likewise.
6173
6174 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6175
6176         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6177         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6178         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6179         Moved to ...
6180         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6181         Here.
6182         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6183         to ...
6184         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6185         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6186         to ...
6187         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6188         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6189         to ...
6190         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6191         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6192         to ...
6193         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6194         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6195         to ...
6196         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6197         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6198         to ...
6199         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6200         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6201         to ...
6202         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6203         Here.
6204         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6205         to ...
6206         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6207         Here.
6208         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6209         to ...
6210         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6211         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6212         Moved to ...
6213         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6214         Here.
6215         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6216         to ...
6217         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6218
6219 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6220
6221         * sysdeps/unix/common/bits/dirent.h: Remove file.
6222         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6223
6224         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6225         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6226         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6227         * sysdeps/unix/bsd/isatty.c: Likewise.
6228         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6229         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6230         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6231
6232 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6233
6234         [BZ #13563]
6235         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6236         long double comparison inaccuracies.
6237         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6238         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6239
6240 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6241
6242         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6243         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6244
6245 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6246
6247         [BZ #14049]
6248         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6249         nonzero digits before rounding a hex value.
6250         * stdlib/tst-strtod.c (tests): Add another test.
6251
6252 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6253
6254         * sysdeps/s390/fpu/libm-test-ulps: Update.
6255
6256 2012-05-03  Andreas Jaeger  <aj@suse.de>
6257
6258         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6259         does not get optimized out.
6260         (malloc_opt_barrier): New.
6261
6262 2012-05-03  Andreas Jaeger  <aj@suse.de>
6263             Roland McGrath  <roland@hack.frob.com>
6264
6265         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6266         intermediate file deletion.
6267         (generated): Add .symlist files.
6268
6269 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6270
6271         [BZ #13775]
6272         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6273         Redirect under this condition.
6274         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6275         [__USE_GNU] (__dprintf_chk): Not under this condition.
6276         [__USE_GNU] (__vdprintf_chk): Likewise.
6277         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6278         under this condition.
6279         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6280         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6281         [__USE_XOPEN2K8] (vdprintf): Likewise.
6282         [__USE_GNU] (__dprintf_chk): Not under this condition.
6283         [__USE_GNU] (__vdprintf_chk): Likewise.
6284         [__USE_GNU] (dprintf): Likewise.
6285         [__USE_GNU] (vdprintf): Likewise.
6286
6287 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6288
6289         * elf/Makefile (common-generated): Set this instead of generated for
6290         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6291         $(all-built-dso)-derived lists.
6292
6293 2012-05-03  Andreas Jaeger  <aj@suse.de>
6294
6295         * sysdeps/i386/fpu/libm-test-ulps: Update.
6296
6297         * FAQ: Removed.
6298         * FAQ.in: Likewise.
6299         * scripts/gen-FAQ.pl: Likewise.
6300         * manual/install.texi (Installation): Point to online location of
6301         FAQ.
6302         * Makefile (files-for-dist): Remove FAQ.
6303         (FAQ): Remove.
6304
6305 2012-05-02  Allan McRae  <allan@archlinux.org>
6306
6307         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6308         (LDFLAGS-reldepmod5.so): Likewise.
6309         (LDFLAGS-reldep6mod1.so): Likewise.
6310         (LDFLAGS-reldep6mod4.so): Likewise.
6311         (LDFLAGS-reldep8mod3.so): Likewise.
6312         (LDFLAGS-unload4mod1.so): Likewise.
6313         (LDFLAGS-unload4mod2.so): Likewise.
6314         (LDFLAGS-tst-initorder): Likewise.
6315         (LDFLAGS-tst-initordera2.so): Likewise.
6316         (LDFLAGS-tst-initordera3.so): Likewise.
6317         (LDFLAGS-tst-initordera4.so): Likewise.
6318         (LDFLAGS-tst-initorderb2.so): Likewise.
6319         (LDFLAGS-noload): Likewise.
6320         (LDFLAGS-next): Likewise.
6321         (LDFLAGS-order2mod1.so): Likewise.
6322         (LDFLAGS-order2mod2.so): Likewise.
6323         (LDFLAGS-tst-initorder2): Likewise.
6324         (LDFLAGS-tst-initorder2a.so): Likewise.
6325         (LDFLAGS-tst-initorder2b.so): Likewise.
6326         (LDFLAGS-tst-initorder2c.so): Likewise.
6327         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6328
6329 2012-05-02  David S. Miller  <davem@davemloft.net>
6330
6331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6332
6333 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6334
6335         [BZ #14055]
6336         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6337
6338 2012-05-02  Andreas Jaeger  <aj@suse.de>
6339
6340         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6341         since we manipulate rounding mode.
6342         (CPPFLAGS-test-idouble.c): Likewise.
6343         (CPPFLAGS-test-ifloat.c): Likewise.
6344         (CFLAGS-test-ldouble.c): Likewise.
6345         (CFLAGS-test-double.c): Likewise.
6346         (CFLAGS-test-float.c): Likewise.
6347         (CFLAGS-test-misc.c): Likewise.
6348         (CFLAGS-test-test-fenv.c): Likewise.
6349
6350 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6351
6352         [BZ #2550]
6353         [BZ #2570]
6354         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6355         comparisons to determine direction to adjust input.
6356
6357 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6358
6359         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6360         output to the target.
6361
6362         * scripts/localplt.awk: New file.
6363         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6364         (check-localplt-CFLAGS): Variable removed.
6365         ($(all-built-dso:=.jmprel)): New static pattern rule.
6366         (generated): Add those targets.
6367         (localplt-built-dso): New variable.
6368         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6369
6370         * elf/check-localplt.c: File removed.
6371
6372         * scripts/check-execstack.awk: New file.
6373         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6374         (check-execstack-CFLAGS): Variable removed.
6375         ($(objpfx)check-execstack.h): Target removed.
6376         ($(objpfx)execstack-default): New target.
6377         (generated): Add that instead of check-execstack.h.
6378         ($(all-built-dso:=.phdr)): New static pattern rule.
6379         (generated): Add those targets.
6380         * elf/check-execstack.c: File removed.
6381
6382         * scripts/check-textrel.awk: New file.
6383         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6384         (check-textrel-CFLAGS): Variable removed.
6385         (all-built-dso): Use := to define.o
6386         ($(all-built-dso:=.dyn)): New static pattern rule.
6387         (generated): Add those targets.
6388         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6389         * config.make.in (READELF): New substituted variable.
6390         * elf/check-textrel.c: File removed.
6391
6392 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6393
6394         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6395         allow.
6396         * conform/data/ctype.h-data [C99-based standards] (isblank):
6397         Expect function.
6398         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6399         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6400         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6401         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6402         Specify type.  Require positive value.
6403         (EILSEQ): Likewise.
6404         (ERANGE): Likewise.
6405         [ISO || POSIX] (EILSEQ): Do not expect.
6406         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6407         Specify type.  Require positive value.
6408         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6409         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6410         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6411         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6412         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6413         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6414         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6415         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6416         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6417         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6418         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6419         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6420         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6421         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6422         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6423         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6424         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6425         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6426         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6427         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6428         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6429         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6430         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6431         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6432         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6433         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6434         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6435         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6436         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6437         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6438         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6439         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6440         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6441         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6442         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6443         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6444         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6445         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6446         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6447         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6448         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6449         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6450         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6451         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6452         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6453         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6454         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6455         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6456         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6457         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6458         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6460         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6462         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6463         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6464         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6469         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6472         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6473         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6474         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6475         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6476         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6477         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6478         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6479         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6480         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6481         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6482         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6483         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6484         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6485         Require >= 2.
6486         (FLT_ROUNDS): Expect as macro, not constant.
6487         (FLT_MANT_DIG): Use macro-int-constant.
6488         (DBL_MANT_DIG): Likewise.
6489         (LDBL_MANT_DIG): Likewise.
6490         (FLT_DIG): Likewise.
6491         (DBL_DIG): Likewise.
6492         (LDBL_DIG): Likewise.
6493         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6494         (DBL_MIN_EXP): Likewise.
6495         (LDBL_MIN_EXP): Likewise.
6496         (FLT_MAX_EXP): Use macro-int-constant.
6497         (DBL_MAX_EXP): Likewise.
6498         (LDBL_MAX_EXP): Likewise.
6499         (FLT_MAX_10_EXP): Likewise.
6500         (DBL_MAX_10_EXP): Likewise.
6501         (LDBL_MAX_10_EXP): Likewise.
6502         (FLT_MAX): Use macro-constant.
6503         (DBL_MAX): Likewise.
6504         (LDBL_MAX): Likewise.
6505         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6506         (DBL_EPSILON): Likewise.
6507         (LDBL_EPSILON): Likewise.
6508         (FLT_MIN): Likewise.
6509         (DBL_MIN): Likewise.
6510         (LDBL_MIN): Likewise.
6511         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6512         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6513         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6514         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6515         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6516         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6517         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6518         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6519         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6520         [ISO11] (FLT_TRUE_MIN): Likewise.
6521         [ISO11] (LDBL_TRUE_MIN): Likewise.
6522         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6523         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6524         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6525         (SCHAR_MAX): Likewise.
6526         (UCHAR_MAX): Likewise.
6527         (CHAR_MIN): Likewise.
6528         (CHAR_MAX): Likewise.
6529         (MB_LEN_MAX): Use macro-int-constant.
6530         (SHRT_MIN): Use macro-int-constant.  Specify type.
6531         (SHRT_MAX): Likewise.
6532         (USHRT_MAX): Likewise.
6533         (INT_MAX): Likewise.
6534         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6535         bound negative.
6536         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6537         bound with "U".
6538         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6539         bound with "L".
6540         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6541         bound negative.  Suffix upper bound with "L".
6542         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6543         bound with "UL".
6544         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6545         Specify type.
6546         [C99-based standards] (LLONG_MAX): Likewise.
6547         [C99-based standards] (ULLONG_MAX): Likewise.
6548         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6549         == 0.
6550         [ISO11] (max_align_t): Require type.
6551         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6552
6553         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6554         from $CFLAGS, without defining away __attribute__ calls.
6555         (checknamespace): Use $CFLAGS_namespace.
6556
6557         * conform/conformtest.pl (@keywords): Only include C99 keywords
6558         for standards based on C99 or C11.
6559
6560         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6561         Disable tests.
6562         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6563         UNIX98]: Likewise.
6564
6565         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6566         usability of symbols in #if.
6567
6568         * conform/conformtest.pl: If macro or constant types start
6569         "promoted:", expect the symbol to be of the following type
6570         promoted by the integer promotions.
6571
6572         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6573         in one place.  Also handle "macro-constant".
6574
6575         * conform/conformtest.pl: Only accept expected macro values with
6576         "==".  Parse all "macro" lines in one place.
6577         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6578
6579         * conform/conformtest.pl: Handle braced types on "constant" lines
6580         instead of handling "typed-constant".
6581         * conform/data/signal.h-data: Use "constant" instead of
6582         "typed-constant".
6583
6584         * conform/conformtest.pl: Handle "optional-" at start of lines in
6585         one place rather than duplicating several cases.  Handle each
6586         format of "macro" line with initial "optional-".
6587
6588         * conform/conformtest.pl: Only accept expected constant or
6589         optional-constant values with "==".  Parse all "constant" lines in
6590         one place.  Parse all "optional-constant" lines in one place.
6591         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6592         * conform/data/fmtmsg.h-data: Likewise.
6593         * conform/data/netinet/in.h-data: Likewise.
6594         * conform/data/tar.h-data: Likewise.
6595         * conform/data/limits.h-data: Use "==" form on "constant" and
6596         "optional-constant" lines.
6597
6598         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6599         Use -std=c99 for XOPEN2K.
6600         (@knownproblems): Remove.
6601         (newtoken): Don't check %isknown.
6602
6603         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6604         Do not expect macro.
6605         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6606         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6607         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6608         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6609         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6610         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6611         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6612         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6613         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6614         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6615         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6616         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6617         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6618         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6619         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6620         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6621         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6622         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6623         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6624         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6625         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6626         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6627         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6628         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6629         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6630         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6631         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6632         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6633         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6634         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6635         [XPG3] (acosh): Likewise.
6636         [XPG3] (asinh): Likewise.
6637         [XPG3] (atanh): Likewise.
6638         [XPG3] (cbrt): Likewise.
6639         [XPG3] (expm1): Likewise.
6640         [XPG3] (ilogb): Likewise.
6641         [XPG3] (log1p): Likewise.
6642         [XPG3] (logb): Likewise.
6643         [XPG3] (nextafter): Likewise.
6644         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6645         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6646         [XPG3] (remainder): Likewise.
6647         [XPG3] (rint): Likewise.
6648         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6649         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6650         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6651         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6652         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6653         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6654         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6655         [UNIX98 || XOPEN2K] (scalb): Expect.
6656         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6657         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6658         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6659         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6660         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6661         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6662         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6663         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6664         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6665         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6666         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6667         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6668         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6669         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6670         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6671         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6672         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6673         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6674         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6675         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6676         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6677         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6678         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6679         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6680         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6681         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6682         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6683         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6684         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6685         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6686         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6687         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6688         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6689         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6690         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6691         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6692         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6693         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6694         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6695         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6696         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6697         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6698         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6699         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6700         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6701         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6702         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6703         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6704         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6705         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6706         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6707         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6708         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6709         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6710         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6711         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6712         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6713         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6714         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6715         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6716         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6717         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6718         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6719         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6720         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6721         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6722         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6723         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6724         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6725         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6726         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6727         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6728         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6729         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6730         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6731         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6732         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6733         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6734         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6735         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6736         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6737         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6738         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6739         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6740         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6741         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6742         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6743         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6744         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6745         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6746         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6747         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6748         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6749         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6750         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6751         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6752         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6753         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6754         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6755         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6756         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6757         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6758         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6759         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6760         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6761         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6762         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6763         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6764         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6765         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6766         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6767         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6768         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6769         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6770         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6771         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6772         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6773         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6774         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6775         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6776         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6777         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6778         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6779         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6780         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6781         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6782         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6783         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6784         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6785         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6786         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6787         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6788         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6789         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6790         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6791         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6792         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6793
6794         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6795         _XOPEN_SOURCE_EXTENDED for XPG4.
6796
6797         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6798
6799         * Makeconfig (localtime): Remove variable.
6800         (inst_localtime-file): Likewise.
6801
6802 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6803
6804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6805         Update.
6806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6807         Update.
6808         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6809         Update.
6810         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6811         Update.
6812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6813         Update.
6814         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6815         Update.
6816         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6817         Update.
6818         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6819         Update.
6820         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6821         Update.
6822
6823 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6824
6825         [BZ #2550]
6826         [BZ #2570]
6827         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6828         comparisons to determine direction to adjust input.
6829         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6830         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6831         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6832         Likewise.
6833         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6834         Likewise.
6835         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6836         Likewise.
6837         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6838         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6839         Likewise.
6840         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6841         Likewise.
6842         * math/libm-test.inc (nexttoward_test): Add more tests.
6843
6844 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6845
6846         [BZ #14040]
6847         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6848         in version GLIBC_2.1, not GLIBC_2.0.
6849         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6850         Likewise.
6851
6852 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6853
6854         [BZ #13942]
6855         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6856         (1 - x) * (1 + x).
6857         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6858         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6859         * math/libm-test.inc (acos_test): Add more tests.
6860         (asin_test): Likewise.
6861         * sysdeps/i386/fpu/libm-test-ulps: Update.
6862         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6863
6864         [BZ #14034]
6865         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6866         of square root.
6867         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6868         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6869         * math/libm-test.inc (acos_test_tonearest): New function.
6870         (acos_test_towardzero): Likewise.
6871         (acos_test_downward): Likewise.
6872         (acos_test_upward): Likewise.
6873         (asin_test_tonearest): Likewise.
6874         (asin_test_towardzero): Likewise.
6875         (asin_test_downward): Likewise.
6876         (asin_test_upward): Likewise.
6877         (main): Call the new functions.
6878         * sysdeps/i386/fpu/libm-test-ulps: Update.
6879         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6880
6881         [BZ #13884]
6882         [BZ #13924]
6883         * math/e_exp10.c: Include <float.h>.
6884         (__ieee754_exp10): Handle underflow here rather than multiplying
6885         large negative argument by M_LN10.
6886         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6887         of __ieee754_expf.
6888         * math/e_exp10l.c: Include <float.h>.
6889         (__ieee754_exp10l): Handle underflow here rather than multiplying
6890         large negative argument by M_LN10l.
6891         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6892         spurious overflow exception on underflow.
6893
6894 2012-04-29  Marek Polacek  <polacek@redhat.com>
6895
6896         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6897         (__fortify_function): New macro.
6898         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6899         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6900         __extern_always_inline.
6901         * libio/bits/stdio2.h: Likewise.
6902         * libio/bits/stdio.h: Likewise.
6903         * string/string.h: Likewise.
6904         * string/bits/string3.h: Likewise.
6905         * include/stdio.h: Likewise.
6906         * stdlib/bits/stdlib.h: Likewise.
6907         * stdlib/stdlib.h: Likewise.
6908         * rt/bits/mqueue2.h: Likewise.
6909         * rt/mqueue.h: Likewise.
6910         * posix/bits/unistd.h: Likewise.
6911         * posix/unistd.h: Likewise.
6912         * io/bits/poll2.h: Likewise.
6913         * io/bits/fcntl2.h: Likewise.
6914         * io/fcntl.h: Likewise.
6915         * io/sys/poll.h: Likewise.
6916         * misc/bits/syslog.h: Likewise.
6917         * misc/bits/syslog-ldbl.h: Likewise.
6918         * misc/sys/syslog.h: Likewise.
6919         * socket/bits/socket2.h: Likewise.
6920         * socket/sys/socket.h: Likewise.
6921         * debug/tst-chk1.c: Likewise.
6922         * wcsmbs/bits/wchar2.h: Likewise.
6923         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6924         * wcsmbs/wchar.h: Likewise.
6925
6926 2012-04-29  Andreas Jaeger  <aj@suse.de>
6927
6928         * Makerules (tests): Remove enable-check-abi protection.
6929         (check-abi-warn): Remove.
6930         (check-abi-%): Remove check-abi-warn usage.
6931
6932         * configure.in: Remove check-abi configure option.
6933         * configure: Regenerated.
6934         * config.make.in (enable-check-abi): Remove.
6935
6936 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6937
6938         [BZ #14033]
6939         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6940         double functions to double *_finite functions.
6941
6942         [BZ #13941]
6943         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6944         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6945         LDBL_MIN_EXP.
6946         * stdio-common/Makefile (tests): Add tst-sprintf3.
6947         * stdio-common/tst-sprintf3.c: New file.
6948
6949         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6950         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6951
6952 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6953
6954         * conform/conformtest.pl: Remove duplicate typed-constant
6955         handling.
6956
6957 2012-04-28  David S. Miller  <davem@davemloft.net>
6958
6959         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6960         (check-abi-%): Remove AWK script prerequisite and explicit
6961         abilist directory.
6962         (check-abi): Rewrite to just diff the symlist with the abilist.
6963         (config-tls, config-abi-config): Delete, no longer used.
6964         (update-abi-%): Remove AWK script and explicit abilist directory.
6965         (update-abi): Rewrite to simply compare and conditionally copy the
6966         symlist and the sysdep abilist file.  Remove update-abi-config
6967         checks.
6968         * abilist/ld.abilist: Remove.
6969         * abilist/libBrokenLocale.abilist: Remove.
6970         * abilist/libanl.abilist: Remove.
6971         * abilist/libcrypt.abilist: Remove.
6972         * abilist/libdl.abilist: Remove.
6973         * abilist/librt.abilist: Remove.
6974         * abilist/libthread_db.abilist: Remove.
6975         * abilist/libutil.abilist: Remove.
6976         * scripts/extract-abilist.awk: Remove.
6977         * scripts/merge-abilist.awk: Remove.
6978         * sysdeps/generic/libcidn.abilist: New file.
6979         * sysdeps/generic/libnss_compat.abilist: New file.
6980         * sysdeps/generic/libnss_db.abilist: New file.
6981         * sysdeps/generic/libnss_dns.abilist: New file.
6982         * sysdeps/generic/libnss_files.abilist: New file.
6983         * sysdeps/generic/libnss_hesiod.abilist: New file.
6984         * sysdeps/generic/libnss_nis.abilist: New file.
6985         * sysdeps/generic/libnss_nisplus.abilist: New file.
6986         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6987         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6988         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6989         file.
6990         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6991         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6992         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6993         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6994         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6995         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6996         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6997         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6998         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6999         file.
7000         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
7001         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
7002         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
7003         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
7004         file.
7005         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
7006         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
7007         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
7008         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
7009         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7010         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7011         file.
7012         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7013         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7014         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7015         file.
7016         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7017         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7018         New file.
7019         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7020         New file.
7021         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7022         New file.
7023         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7024         New file.
7025         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7026         New file.
7027         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7028         New file.
7029         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7030         New file.
7031         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7032         New file.
7033         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7034         New file.
7035         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7036         New file.
7037         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7038         New file.
7039         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7040         New file.
7041         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7042         New file.
7043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7044         file.
7045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7046         New file.
7047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7048         New file.
7049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7050         file.
7051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7052         New file.
7053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7054         New file.
7055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7056         file.
7057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7058         New file.
7059         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7060         New file.
7061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7062         New file.
7063         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7064         New file.
7065         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7066         New file.
7067         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7068         New file.
7069         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7071         file.
7072         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7073         New file.
7074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7075         file.
7076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7077         file.
7078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7079         file.
7080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7081         file.
7082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7083         file.
7084         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7085         New file.
7086         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7087         file.
7088         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7089         file.
7090         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7091         New file.
7092         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7093         file.
7094         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7095         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7096         file.
7097         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7098         New file.
7099         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7100         file.
7101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7102         file.
7103         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7104         file.
7105         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7106         file.
7107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7108         file.
7109         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7110         New file.
7111         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7112         file.
7113         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7114         file.
7115         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7116         New file.
7117         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7118         file.
7119         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7120         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7121         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7122         file.
7123         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7124         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7125         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7126         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7127         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7128         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7129         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7130         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7131         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7132         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7133         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7134         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7135         file.
7136         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7137         New file.
7138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7139         file.
7140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7141         file.
7142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7143         file.
7144         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7145         file.
7146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7147         file.
7148         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7149         New file.
7150         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7151         New file.
7152         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7153         file.
7154         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7155         New file.
7156         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7157         file.
7158         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7159         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7160         file.
7161         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7162         New file.
7163         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7164         file.
7165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7166         file.
7167         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7168         file.
7169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7170         file.
7171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7172         file.
7173         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7174         New file.
7175         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7176         New file.
7177         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7178         file.
7179         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7180         New file.
7181         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7182         file.
7183
7184 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7185
7186         * conform/conformtest.pl: Fix typo in handling typed-constant from
7187         allow-header.
7188
7189 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7190
7191         * README: Cut down references to pre-2.6 Linux kernels and
7192         Linuxthreads.  Update lists of configurations in libc and ports
7193         and sort alphabetically.  Say "or newer" with Linux kernel version
7194         requirements.
7195
7196         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7197
7198 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7199
7200         [BZ #887]
7201         * math/libm-test.inc (logb_test_downward): New test to expose
7202         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7203         rounding mode.
7204
7205 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7206
7207         [BZ #14027]
7208         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7209         to be done.
7210         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7211         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7212
7213 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7214
7215         * sysdeps/unix/i386/brk.S: Remove file.
7216         * sysdeps/unix/i386/dl-brk.S: Likewise.
7217         * sysdeps/unix/i386/pipe.S: Likewise.
7218         * sysdeps/unix/i386/sigreturn.S: Likewise.
7219         * sysdeps/unix/i386/syscall.S: Likewise.
7220         * sysdeps/unix/i386/vfork.S: Likewise.
7221         * sysdeps/unix/i386/wait.S: Likewise.
7222
7223         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7224         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7225
7226         * configure.in (arm*-none*): Do not allow without
7227         --enable-hacker-mode.
7228         (netbsd*): Remove case setting base_os.
7229         (386bsd*): Likewise.
7230         (freebsd*): Likewise.
7231         (bsdi*): Likewise.
7232         (osf*): Likewise.
7233         (sunos*): Likewise.
7234         (ultrix*): Likewise.
7235         (newsos*): Likewise.
7236         (dynix*): Likewise.
7237         (*bsd*): Likewise.
7238         (sysv*): Likewise.
7239         (isc*): Likewise.
7240         (esix*): Likewise.
7241         (sco*): Likewise.
7242         (minix*): Likewise.
7243         (irix4*): Likewise.
7244         (irix6*): Likewise.
7245         (solaris[2-9]*): Likewise.
7246         (none): Likewise.
7247         * configure: Regenerated.
7248
7249 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7250
7251         [BZ #11521]
7252         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7253         overflow or cancellation in calculating denominator.
7254         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7255         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7256         down expression to avoid unexpected rounding in newer GCCs.
7257         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7258
7259 2012-04-26  David S. Miller  <davem@davemloft.net>
7260
7261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7262         long-double compat symbols.
7263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7268         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7269         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7270         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7271         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7272         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7273         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7274         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7276
7277 2012-04-25  David S. Miller  <davem@davemloft.net>
7278
7279         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7280         HWCAP_* values only after the memory barriers have been defined.
7281         (atomic_full_barrier): Define.
7282         (atomic_read_barrier): Define.
7283         (atomic_write_barrier): Define.
7284
7285 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7286
7287         * shlib-versions: Add libgcc_s version information.
7288         * sysdeps/generic/libgcc_s.h: Remove.
7289         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7290         libgcc_s.h.
7291         * sysdeps/gnu/unwind-resume.c: Likewise.
7292         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7293
7294 2012-04-25  David S. Miller  <davem@davemloft.net>
7295
7296         * sysdeps/unix/sparc/brk.S: Delete.
7297         * sysdeps/unix/sparc/dl-brk.S: Delete.
7298         * sysdeps/unix/sparc/pipe.S: Delete.
7299         * sysdeps/unix/sparc/sysdep.S: Delete.
7300         * sysdeps/unix/sparc/sysdep.h: Delete.
7301         * sysdeps/unix/sparc/vfork.S: Delete.
7302         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7303         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7304         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7305         ret_ERRVAL, r0, r1, MOVE): Define.
7306         (JUMPTARGET): Remove.
7307         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7308         sysdeps/unix/sparc/sysdep.h
7309         (ENTRY, END): Remove.
7310         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7311
7312 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7313
7314         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7315         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7316         -DIS_IN_build.
7317
7318         * timezone/README: Update upstream location and email address for
7319         tzcode and tzdata.
7320         * timezone/zdump.c: Update from tzcode 2012b.
7321         * timezone/zic.c: Likewise.
7322
7323         * configure.in (libc_cv_as_needed): Remove test.
7324         * configure: Regenerated.
7325         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7326         conditional definition.
7327         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7328         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7329         * config.make.in (have-as-needed): Remove variable.
7330
7331 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7332             Paul Pluzhnikov  <ppluzhnikov@google.com>
7333
7334         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7335         strings correctly.
7336
7337 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7338
7339         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7340         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7341         * sysdeps/sh/strlen.S: Likewise.
7342
7343 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7344
7345         * sysdeps/unix/fork.S: Remove file.
7346         * sysdeps/unix/i386/fork.S: Likewise.
7347         * sysdeps/unix/sparc/fork.S: Likewise.
7348
7349         * sysdeps/unix/system.c: Remove file.
7350         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7351
7352         * sysdeps/unix/getegid.S: Remove file.
7353         * sysdeps/unix/geteuid.S: Likewise.
7354
7355 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7356
7357         * scripts/check-localplt.awk: New file.
7358         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7359         of diff.
7360         * scripts/data/localplt-generic.data: Add a comment.
7361
7362         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7363         NODE when __dir_mkfile failed.
7364         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7365         Reported by Ludovic Courtès <ludo@gnu.org>.
7366
7367 2012-04-24  Andreas Jaeger  <aj@suse.de>
7368
7369         * Makerules (common-clean): Also remove gen-as-const-headers
7370         files.
7371
7372 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7373
7374         * Makerules (native-compile): Do not change working directory for
7375         build.  Use $(OUTPUT_OPTION) in command.
7376         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7377
7378 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7379
7380         [BZ #13886]
7381         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7382         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7383         * math/libm-test.inc (floor_test): Add more tests.
7384         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7385
7386 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7387
7388         * sysdeps/unix/getdents.c: Remove file.
7389         * sysdeps/unix/sysv/getdents.c: Likewise.
7390         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7391
7392         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7393         sysdeps/unix/mman/syscalls.list.
7394         (mmap): Likewise.
7395         (mprotect): Likewise.
7396         (msync): Likewise.
7397         (munmap): Likewise.
7398         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7399         * sysdeps/unix/mman/syscalls.list: Remove.
7400         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7401
7402         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7403         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7404         * configure: Regenerated.
7405         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7406         $(libgcc_s_suffix).
7407         * config.make.in (libgcc_s_suffix): Remove variable.
7408
7409 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7410
7411         * sysdeps/unix/sysv/gethostname.c: Move to ...
7412         * sysdeps/posix/gethostname.c: ... here.
7413
7414         * sysdeps/unix/execve.S: Remove file.
7415
7416         * sysdeps/unix/_exit.S: Remove file.
7417
7418 2012-04-23  Andreas Jaeger  <aj@suse.de>
7419
7420         [BZ #13739]
7421         * manual/Makefile: Remove make dist support, there's no
7422         need for a stand-alone documentation tar ball.
7423         (TEXI2DVI): Define always, it's not in Makeconfig.
7424         (dist): Removed.
7425         (tar-it): Removed.
7426         (edition): Removed.
7427         (glibc-doc-$(edition).tar): Removed
7428         (%.Z): Removed.
7429         (%.gz): Removed.
7430         (%.uu): Removed.
7431         (ETAGS): Remove, it's in Makeconfig.
7432         (move-if-change): Remove, it's in Makeconfig.
7433
7434 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7435
7436         [BZ #13970]
7437         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7438         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7439         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7440         (strtod_l, strtof_l, strtold_l): Remove __wur.
7441         It is not necessarily an error to ignore strtol's return value.
7442         One can reliably look at the stored endptr to decide whether
7443         the number had valid syntax.
7444
7445 2012-04-21  Andreas Jaeger  <aj@suse.de>
7446
7447         [BZ #13739]
7448         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7449
7450 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7451
7452         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7453         * sysdeps/unix/sysv/Versions: Remove file.
7454
7455 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7456
7457         [BZ #13927]
7458         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7459
7460 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7461
7462         [BZ #7064]
7463         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7464         version from __vm86.
7465
7466 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7467
7468         * sysdeps/unix/common/lxstat.c: Remove file.
7469         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7470
7471         * sysdeps/unix/sysv/Makefile: Remove file.
7472
7473         * sysdeps/unix/sysv/direct.h: Remove file.
7474
7475         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7476         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7477         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7478         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7479         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7480         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7481         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7482
7483         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7484
7485         * sysdeps/unix/xmknod.c: Remove file.
7486         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7487
7488         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7489
7490         * sysdeps/unix/sysv/i386/time.S: Remove file.
7491
7492         * sysdeps/unix/fxstat.c: Remove file.
7493         * sysdeps/unix/xstat.c: Likewise.
7494         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7495
7496         * sysdeps/unix/sysv/sigaction.c: Remove file.
7497
7498         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7499         (sysdep_headers): Remove variable.
7500         [termio.h not in sysdep_headers] (generated): Likewise.
7501         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7502         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7503         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7504         * sysdeps/unix/sysv/tcflow.c: Likewise.
7505         * sysdeps/unix/sysv/tcflush.c: Likewise.
7506         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7507         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7508         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7509         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7510         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7511
7512         * sysdeps/unix/siglist.c: Remove file.
7513
7514         * sysdeps/unix/getppid.S: Remove file.
7515
7516         * sysdeps/unix/mkdir.c: Remove file.
7517         * sysdeps/unix/rmdir.c: Likewise.
7518
7519 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7520
7521         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7522         ERR_MAX value.
7523         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7524         errlist-compat value.
7525
7526 2012-04-18  David S. Miller  <davem@davemloft.net>
7527
7528         * sysdeps/generic/memcopy.h (reg_char): Delete.
7529         * debug/strcat_chk.c: Use char, not reg_char.
7530         * debug/strcpy_chk.c: Likewise.
7531         * debug/strncat_chk.c: Likewise.
7532         * debug/strncpy_chk.c: Likewise.
7533         * string/memchr.c: Likewise.
7534         * string/memrchr.c: Likewise.
7535         * string/rawmemchr.c: Likewise.
7536         * string/strcat.c: Likewise.
7537         * string/strchr.c: Likewise.
7538         * string/strchrnul.c: Likewise.
7539         * string/strcmp.c: Likewise.
7540         * string/strcpy.c: Likewise.
7541         * string/strncat.c: Likewise.
7542         * string/strncmp.c: Likewise.
7543         * string/strncpy.c: Likewise.
7544
7545 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7546
7547         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7548         __builtin_memcopy is called when src and dest ranges are known to not
7549         overlap.
7550
7551 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7552
7553         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7554         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7555         fwd_align_merge macro call.
7556         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7557         bwd_align_merge macro call.
7558         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7559
7560 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7561
7562         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7563         bwd_align_merge macros.
7564         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7565         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7566         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7567
7568 2012-04-18  David S. Miller  <davem@davemloft.net>
7569
7570         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7571
7572 2012-04-18  Andreas Jaeger  <aj@suse.de>
7573
7574         [BZ# 6794]
7575         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7576         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7577         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7578
7579         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7580         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7581         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7582
7583         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7584         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7585         Adjust for changed ldbl-128 files.
7586
7587         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7588         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7589         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7590
7591 2012-04-17  David S. Miller  <davem@davemloft.net>
7592
7593         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7594
7595 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7596
7597         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7598         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7599         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7600         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7601         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7602         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7603
7604 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7605
7606         [BZ #6794]
7607         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7608         * math/libm-test.inc: Add ilogb errno and exception tests.
7609         * math/w_ilogb.c: New file: ilogb wrapper.
7610         * math/w_ilogbf.c: New file: ilogbf wrapper.
7611         * math/w_ilogbl.c: New file: ilogbl wrapper.
7612         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7613         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7614         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7615         exception being thrown with 0.0 as argument.
7616         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7617         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7618         exception being thrown with 0.0 as argument.
7619         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7620         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7621         exception being thrown with 0.0 as argument.
7622         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7623         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7624         exception being thrown with 0.0 as argument.
7625         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7626         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7627         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7628         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7629         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7630         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7631         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7632         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7633         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7634
7635 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7636
7637         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7638         with altivec.
7639
7640 2012-04-16  Marek Polacek  <polacek@redhat.com>
7641
7642         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7643
7644 2012-04-16  Marek Polacek  <polacek@redhat.com>
7645
7646         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7647         operands of fdivp instruction.
7648
7649 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7650
7651         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7652         * elf/tst-auditmod3b.c: Likewise.
7653         * elf/tst-auditmod4b.c: Likewise.
7654         * elf/tst-auditmod5b.c: Likewise.
7655         * elf/tst-auditmod6b.c: Likewise.
7656         * elf/tst-auditmod6c.c: Likewise.
7657         * elf/tst-auditmod7b.c: Likewise.
7658         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7659         * sysdeps/x86_64/preconfigure.in: Likewise.
7660         * sysdeps/x86_64/preconfigure: Regenerated.
7661
7662 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7663
7664         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7665         __ILP32__.
7666
7667 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7668
7669         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7670         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7671
7672 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7673
7674         [BZ #13973]
7675         * locale/iso-639.def: Fix gl language name. Spotted by
7676         Yaron Shahrabani.
7677
7678 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7679
7680         [BZ #2074]
7681         * libio/libio.h (__io_write_fn): Update comment.
7682
7683 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7684
7685         [BZ #2074]
7686         * stdio.texi (Hook Functions): The user provided writer function
7687         is not allowed to return -1.
7688
7689 2012-04-11  David S. Miller  <davem@davemloft.net>
7690
7691         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7692
7693 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7694
7695         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7696         Add a leading slash to rtkaio.
7697
7698 2012-04-11  Jim Meyering  <meyering@redhat.com>
7699
7700         [BZ #11959]
7701         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7702         It is not necessarily an error to ignore fwrite's return
7703         value.  One can reliably use ferror to test for errors after
7704         the fact.
7705
7706 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7707
7708         * bits/types.h (__snseconds_t): New type.
7709         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7710
7711         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7712         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7713         (__SNSECONDS_T_TYPE): Likewise.
7714         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7715         (__SNSECONDS_T_TYPE): Likewise.
7716         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7717         (__SNSECONDS_T_TYPE): Likewise.
7718
7719 2012-04-10  Andreas Jaeger  <aj@suse.de>
7720
7721         [BZ #2636]
7722         * manual/time.texi (Processor Time): Return type of times is
7723         elapsed real time since an arbitrary point in the past.
7724         (CPU Time): Move CLK_TCK from here...
7725         (Processor Time): ...to here.  Correct description.
7726         * manual/conf.texi (Constants for Sysconf): Correct description of
7727         _SC_CLK_TCK.
7728
7729 2012-04-10  David S. Miller  <davem@davemloft.net>
7730
7731         [BZ #13967]
7732         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7733         where the is a gap between DT_REL(A) and DT_JMPREL.
7734
7735 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7736
7737         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7738         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7739         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7740
7741 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7742
7743         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7744         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7745         (dl_main): Handle --inhibit-cache.
7746         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7747         _dl_inhibit_cache.
7748         * elf/dl-load.c (_dl_map_object): Use it.
7749         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7750
7751 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7752
7753         [BZ #13872]
7754         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7755         (__ieee754_powl): Saturate large exponents rather than testing for
7756         overflow of y*log2(x).
7757         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7758         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7759         exceptions.
7760
7761         [BZ #11521]
7762         * math/s_ctan.c: Include <float.h>.
7763         (__ctan): Avoid internal overflow or cancellation in calculating
7764         denominator.
7765         * math/s_ctanf.c: Likewise.
7766         * math/s_ctanl.c: Likewise.
7767         * math/s_ctanh.c: Likewise.
7768         * math/s_ctanhf.c: Likewise.
7769         * math/s_ctanhl.c: Likewise.
7770         * math/libm-test.inc (ctan_test): Add more tests.
7771         (ctanh_test): Likewise.
7772         * sysdeps/i386/fpu/libm-test-ulps: Update.
7773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7774
7775 2012-04-09  Andreas Jaeger  <aj@suse.de>
7776
7777         [BZ #6894]
7778         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7779         is an optional BSD extension.
7780
7781         [BZ #10254]
7782         * manual/stdio.texi (Opening Streams): Document additional fopen
7783         parameters.
7784
7785 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7786
7787         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7788         %eax without telling the compiler.
7789
7790 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7791
7792         [BZ # 13963]
7793         * manual/install.texi: Use sourceware.org.
7794
7795 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7796
7797         [BZ #13873]
7798         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7799         (__ieee754_pow): Generate overflow and underflow using huge*huge
7800         and tiny*tiny rather than just returning constant infinity or zero
7801         for large exponents.
7802         * math/libm-test.inc (pow_test): Require overflow exceptions for
7803         applicable cases of large exponents.
7804
7805         [BZ #706]
7806         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7807         (__ieee754_pow): Use iterative multiplication algorithm only for
7808         integer exponents with absolute value below 1024.  Check for odd
7809         integer exponents when using algorithm for real exponents.
7810         * math/libm-test.inc (pow_test): Add more tests.
7811         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7812
7813 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7814
7815         [BZ #13705]
7816         * math/libm-test.inc (exp_test): Do not allow overflow exception
7817         on underflow test.
7818
7819 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7820
7821         [BZ #13705]
7822         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7823         instead of __kernel_standard_f.
7824
7825 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7826
7827         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7828         * sysdeps/x86_64/memset_chk.S: Likewise.
7829
7830 2012-04-08  Andreas Jaeger  <aj@suse.de>
7831
7832         [BZ #10153]
7833         * manual/startup.texi (Environment Access): Describe return value
7834         for putenv and setenv.
7835
7836         [BZ #6895]
7837         * manual/filesys.texi (Directory Entries): Add description for
7838         DT_LNK.
7839
7840         [BZ #6890]
7841         * manual/filesys.texi (Directory Entries): Clarify that it's file
7842         system not operating system in the description of DT_UNKNOWN.
7843
7844         [BZ #6578]
7845         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7846
7847 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7848
7849         [BZ #6649]
7850         * manual/llio.texi (Opening and Closing Files): Add cross
7851         reference to explain mode argument.
7852
7853 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7854
7855         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7856         * sysdeps/x86_64/memset_chk.S: Likewise.
7857
7858 2012-04-07  David S. Miller  <davem@davemloft.net>
7859
7860         * elf/elf.h (R_SPARC_WDISP10): Define.
7861         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7862         R_SPARC_SIZE32.
7863         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7864         R_SPARC_SIZE64 and R_SPARC_H34.
7865
7866 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7867
7868         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7869         conditions and remove no longer applicable assertion.
7870
7871 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7872
7873         * bits/byteswap.h: Include <features.h>.
7874         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7875         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7876
7877 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7878
7879         * bits/byteswap.h (__bswap_16): Removed.
7880         Include <bits/byteswap-16.h> to get __bswap_16.
7881         * sysdeps/i386/bits/byteswap.h: Likewise.
7882         * sysdeps/s390/bits/byteswap.h: Likewise.
7883         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7884         * bits/byteswap-16.h: New file.
7885         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7886         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7887         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7888         * string/Makefile (headers): Add bits/byteswap-16.h.
7889
7890 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7891
7892         [BZ #13895]
7893         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7894         extra indirection.
7895         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7896         * nss/tst-nss-static.c: New.
7897
7898 2012-04-06  Robert Millan  <rmh@gnu.org>
7899
7900         [BZ #6486]
7901         * manual/llio.texi (File Position Primitive): lseek
7902         refers to WHENCE when it really means OFFSET.
7903
7904 2012-04-06  Andreas Jaeger  <aj@suse.de>
7905
7906         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7907         strncmp declarations.
7908
7909         * abilist/libc.abilist: Add __poll and __ppoll.
7910
7911 2012-04-05  David S. Miller  <davem@davemloft.net>
7912
7913         * scripts/check-local-headers.sh: Accept a host triplet in the
7914         path matched by the exclude regexp.
7915
7916         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7917         definition.
7918         * sysdeps/powerpc/powerpc32/dl-machine.h
7919         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7920         * sysdeps/s390/s390-32/dl-machine.h
7921         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7922         * sysdeps/sparc/sparc32/dl-machine.h
7923         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7924         * sysdeps/sparc/sparc64/dl-machine.h
7925         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7926
7927         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7928         lazy binding.
7929         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7930         undefined symbol errors.
7931
7932         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7933         DT_NEEDED entries.
7934
7935 2012-04-05  Michael Matz  <matz@suse.de>
7936
7937         [BZ #13592]
7938         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7939
7940 2012-04-05  Andreas Jaeger  <aj@suse.de>
7941
7942         [BZ #13908]
7943         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7944         comment.
7945
7946 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7947
7948         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7949         which ROUND is no valid rounding mode.
7950
7951 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7952
7953         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7954         read again.
7955         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7956
7957 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7958
7959         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7960         an exception using FPU order intentionally.
7961
7962 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7963
7964         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7965         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7966         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7967         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7968
7969 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7970
7971         [BZ #12340]
7972         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7973         EINVAL when BUFLEN is too smal.
7974
7975 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7976
7977         [BZ #13553]
7978         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7979         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7980
7981 2012-04-03  Andreas Jaeger  <aj@suse.de>
7982
7983         [BZ #13938]
7984         * manual/setjmp.texi (System V contexts): Fix sentence.
7985
7986         [BZ #13926]
7987         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7988         New macro for this case.
7989         [!__GNUC__] (__bswap_64): New inline function for this case.
7990         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7991         * bits/byteswap.h: Likewise.
7992         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7993         ull, guard with __GLIBC_HAVE_LONG_LONG.
7994
7995         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7996         __GLIBC_HAVE_LONG_LONG.
7997
7998         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7999         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
8000
8001 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
8002
8003         [BZ #13691]
8004         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
8005         inptr and inend, rather than using last_ch.
8006
8007 2012-04-02  David S. Miller  <davem@davemloft.net>
8008
8009         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8010         * stdio-common/printf-parse.h (read_int): Change return type to
8011         'int', return -1 on INT_MAX overflow.
8012         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8013         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8014         overflows INT_MAX.  Check for overflow of in-format-string precision
8015         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8016         SIZE_MAX not INT_MAX for integer overflow test.
8017         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8018         skip the construct in the format string but do not record anything.
8019         * stdio-common/bug22.c: Adjust to test both width/prevision
8020         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8021         explicitly for proper errno values.
8022
8023 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8024
8025         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8026         CHAR_MAX.
8027         * string/test-strcmp.c [! WIDE]: Likewise.
8028         * time/tst-mktime2.c: Likewise for INT_MAX.
8029         * string/test-string.h: #include <sys/param.h> for MIN.
8030
8031         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8032         * sysdeps/i386/init-first.c (init): Likewise.
8033         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8034         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8035         * sysdeps/sh/init-first.c (init): Likewise.
8036
8037 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8038
8039         * po/ru.po: Update from translation team.
8040         * po/vi.po: Likewise.
8041
8042 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8043
8044         * resolv/nss_dns/dns-host.c: Merge copyright years.
8045
8046 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8047
8048         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8049         Optimize memcpy with prefetch if
8050         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8051         src, dst pointers have unequal 16 byte alignments.
8052
8053 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8054
8055         [BZ #13928]
8056         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8057         from a CNAME entry and return the minimum ttl for the query.
8058         (gaih_getanswer_slice): Likewise.
8059
8060 2012-03-30  Jeff Law  <law@redhat.com>
8061
8062         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8063         due to long keys.
8064         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8065         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8066
8067         * resolv/nss_dns/dns-host.c: Update copyright year.
8068
8069 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8070
8071         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8072         requests to save a system call.  Fix check that all bytes are sent.
8073
8074         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8075         comments for sendmmsg.
8076
8077 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8078
8079         [BZ #13691]
8080         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8081         with only 1 character between 0x0041 and 0x01b0.
8082         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8083         * wcsmbs/tst-mbsnrtowcs.c: New file.
8084
8085 2012-03-29  David S. Miller  <davem@davemloft.net>
8086
8087         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8088         small copies by hand.
8089
8090 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8091
8092         [BZ #13761]
8093         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8094         _nss_compat_initgroups_dyn): Fall back to malloc/free
8095         for large group memberships.
8096
8097 2012-03-28  David S. Miller  <davem@davemloft.net>
8098
8099         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8100         that branches into memcpy.
8101         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8102         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8103         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8104         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8105         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8106         bits.
8107         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8108         implementation too.
8109         * sysdeps/sparc/mempcpy.S: New file.
8110
8111         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8112         the IFUNC routine in the libc case.
8113         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8114
8115         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8116         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8117         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8118         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8119         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8120         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8121         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8122         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8123
8124         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8125         loop to 256 bytes instead of 64 bytes and fix test signedness.
8126
8127         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8128         * sysdeps/sparc/sparc32/Makefile: rather than here...
8129         * sysdeps/sparc/sparc64/Makefile: and here.
8130
8131 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8132
8133         * malloc/mallocbug.c: Avoid warnings about unused variables.
8134
8135 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8136
8137         [BZ #13760]
8138         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8139         in the right place. Discard and retry query if response is
8140         larger than input buffer size.
8141
8142 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8143
8144         [BZ #369]
8145         [BZ #2678]
8146         [BZ #3866]
8147         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8148         x for large integer exponent.
8149         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8150         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8151         sign of result as needed afterwards.
8152         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8153         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8154         result for underflowing pow the same as for overflow.
8155         (__kernel_standard_l): Handle powl overflow and underflow here
8156         rather than calling __kernel_standard.
8157         * math/libm-test.inc (pow_test): Add more tests.
8158
8159         [BZ #3868]
8160         [BZ #13879]
8161         [BZ #13910]
8162         [BZ #13911]
8163         [BZ #13912]
8164         [BZ #13913]
8165         [BZ #13915]
8166         [BZ #13916]
8167         [BZ #13917]
8168         [BZ #13918]
8169         [BZ #13919]
8170         [BZ #13920]
8171         [BZ #13921]
8172         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8173         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8174         (__kernel_standard_l): New function.
8175         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8176         __kernel_standard.
8177         * math/w_acosl.c (__acosl): Likewise.
8178         * math/w_asinl.c (__asinl): Likewise.
8179         * math/w_atan2l.c (__atan2l): Likewise.
8180         * math/w_atanhl.c (__atanhl): Likewise.
8181         * math/w_coshl.c (__coshl): Likewise.
8182         * math/w_exp10l.c (__exp10l): Likewise.
8183         * math/w_exp2l.c (__exp2l): Likewise.
8184         * math/w_fmodl.c (__fmodl): Likewise.
8185         * math/w_hypotl.c (__hypotl): Likewise.
8186         * math/w_j0l.c (__j0l, __y0l): Likewise.
8187         * math/w_j1l.c (__j1l, __y1l): Likewise.
8188         * math/w_jnl.c (__jnl, __ynl): Likewise.
8189         * math/w_lgammal.c (__lgammal): Likewise.
8190         * math/w_log10l.c (__log10l): Likewise.
8191         * math/w_log2l.c (__log2l): Likewise.
8192         * math/w_logl.c (__logl): Likewise.
8193         * math/w_powl.c (__powl): Likewise.
8194         * math/w_remainderl.c (__remainderl): Likewise.
8195         * math/w_scalbl.c (sysv_scalbl): Likewise.
8196         * math/w_sinhl.c (__sinhl): Likewise.
8197         * math/w_sqrtl.c (__sqrtl): Likewise.
8198         * math/w_tgammal.c (__tgammal): Likewise.
8199         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8200         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8201         * math/libm-test.inc (acos_test): Add more tests.
8202         (acosh_test): Likewise.
8203         (asin_test): Likewise.
8204         (atanh_test): Likewise.
8205         (exp_test): Likewise.
8206         (exp10_test): Likewise.
8207         (exp2_test): Likewise.
8208         (expm1_test): Likewise.
8209         (lgamma_test): Likewise.
8210         (log_test): Likewise.
8211         (log10_test): Likewise.
8212         (log1p_test): Likewise.
8213         (log2_test): Likewise.
8214         (pow_test): Do not allow some spurious overflow exceptions.
8215         (sqrt_test): Add more tests.
8216         (tgamma_test): Likewise.
8217         (y0_test): Likewise.
8218         (y1_test): Likewise.
8219         (yn_test): Likewise.
8220
8221 2012-03-27  Anton Blanchard  <anton@samba.org>
8222
8223         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8224         MAP_HUGETLB.
8225         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8226         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8227         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8228
8229 2012-03-27  David S. Miller  <davem@davemloft.net>
8230
8231         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8232
8233         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8234         have-as-vis3 check.
8235
8236 2012-03-27  Andreas Jaeger  <aj@suse.de>
8237
8238         * sysdeps/x86_64/elf/configure.in: Moved to ...
8239         * sysdeps/x86_64/configure.in: ... here.
8240         * sysdeps/x86_64/elf/start.S: Moved to ...
8241         * sysdeps/x86_64/start.S: ... here.
8242         * sysdeps/x86_64/elf/configure: Delete.
8243
8244         * sysdeps/x86_64/configure.in: Merge contents from
8245         sysdeps/i386/configure.in (without i686 check).
8246
8247         * sysdeps/i386/elf/Versions: Merge into ...
8248         * sysdeps/i386/Versions: ... this.
8249         * sysdeps/i386/elf/Versions: Delete file.
8250         * sysdeps/i386/elf/start.S: Moved to ...
8251         * sysdeps/i386/start.S: ...here.
8252         * sysdeps/i386/elf/configure.in: Merge into...
8253         * sysdeps/i386/configure.in: ...here.
8254         * sysdeps/i386/elf/configure.in: Delete file.
8255         * sysdeps/i386/elf/configure: Delete file.
8256
8257         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8258         * debug/backtracesyms.c: ... here.
8259         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8260         * debug/backtracesymsfd.c: ... here.
8261         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8262         * sysdeps/generic/ifunc-sel.h: ... here.
8263
8264         * sysdeps/unix/i386/start.c: Delete file.
8265         * sysdeps/unix/sparc/start.c: Delete file.
8266         * sysdeps/unix/start.c: Delete file.
8267
8268         * sysdeps/sh/elf/configure.in: Moved to ...
8269         * sysdeps/sh/configure.in: ... here.
8270         * sysdeps/sh/elf/start.S: Moved to ...
8271         * sysdeps/sh/start.S: ... here.
8272         * sysdeps/sh/elf/configure: Delete file.
8273
8274         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8275         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8276         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8277         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8278         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8279         * sysdeps/powerpc/powerpc64/start.S: here.
8280         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8281         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8282         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8283         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8284         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8285
8286         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8287         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8288         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8289         * sysdeps/powerpc/powerpc32/start.S: ... here.
8290         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8291         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8292         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8293
8294         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8295         * sysdeps/powerpc/ifunc-sel.h: ... here.
8296         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8297         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8298
8299         * sysdeps/sparc/elf/configure.in: Moved to ...
8300         * sysdeps/sparc/configure.in: ... here.
8301         * sysdeps/sparc/elf/configure: Delete file.
8302         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8303         * sysdeps/sparc/sparc32/start.S: ... here.
8304         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8305         * sysdeps/sparc/sparc64/start.S: ... here.
8306         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8307         * sysdeps/sparc/sparc32/Makefile: ... this.
8308         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8309         * sysdeps/sparc/sparc64/Makefile: ... this.
8310
8311         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8312         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8313         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8314         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8315         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8316         * sysdeps/s390/s390-32/setjmp.S: ... here.
8317         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8318         * sysdeps/s390/s390-32/configure.in: ... here.
8319         * sysdeps/s390/s390-32/elf/configure: Delete file.
8320         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8321         * sysdeps/s390/s390-32/start.S: ... here.
8322
8323         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8324         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8325         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8326         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8327         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8328         * sysdeps/s390/s390-64/setjmp.S: ... here.
8329         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8330         * sysdeps/s390/s390-64/configure.in: ... here
8331         * sysdeps/s390/s390-64/elf/configure: Delete file.
8332         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8333         * sysdeps/s390/s390-64/start.S: ... here.
8334         * sysdeps/s390/s390-64/elf/configure: Delete.
8335
8336         * configure.in: Remove support for elf directories in sysdeps.
8337
8338         * configure: Regenerated.
8339         * sysdeps/i386/configure: Regenerated.
8340         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8341         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8342         * sysdeps/s390/s390-32/configure: Regenerated.
8343         * sysdeps/s390/s390-64/configure: Regenerated.
8344         * sysdeps/sh/configure: Regenerated.
8345         * sysdeps/sparc/configure: Regenerated.
8346         * sysdeps/x86_64/configure: Regenerated.
8347
8348 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8349
8350         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8351
8352         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8353         denormal result into account.
8354
8355 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8356
8357         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8358         Reported by Allan McRae <allan@archlinux.org>.
8359
8360 2012-03-23  Jeff Law  <law@redhat.com>
8361
8362         * nss/getnssent.c (__nss_getent): Fix typo.
8363
8364 2012-03-23  David S. Miller  <davem@davemloft.net>
8365
8366         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8367
8368 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8369
8370         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8371         to pad to uint64_t for each field.
8372         (dl_tls_index): Replace unsigned long with uint64_t.
8373
8374 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8375         Paul Pluzhnikov  <ppluzhnikov@google.com>
8376
8377         [BZ #6528]
8378         * grp/Makefile (otherlibs): Don't set it.
8379         * inet/Makefile (otherlibs): Likewise.
8380         * login/Makefile (otherlibs): Likewise.
8381         * nscd/Makefile (otherlibs): Likewise.
8382         * posix/Makefile (otherlibs): Likewise.
8383         * pwd/Makefile (otherlibs): Likewise.
8384         * rt/Makefile (otherlibs): Likewise.
8385         * sunrpc/Makefile (otherlibs): Likewise.
8386         * nss/Makefile (otherlibs): Likewise.
8387         Add libnss_files to routines and static-only-routines.
8388         ($(objpfx)getent): Remove rule.
8389         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8390         static-only-routines.
8391
8392 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8393
8394         [BZ #13892]
8395         * math/s_cexp.c: Include <float.h>.
8396         (__cexp): Handle exp result overflowing not necessarily
8397         overflowing both real and imaginary parts of result.
8398         * math/s_cexpf.c: Likewise.
8399         * math/s_cexpl.c: Likewise.
8400         * math/libm-test.inc (cexp_test): Add more tests.
8401         * sysdeps/i386/fpu/libm-test-ulps: Update.
8402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8403
8404 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8405
8406         * include/link.h (ELFW): New macro.
8407         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8408         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8409
8410 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8411
8412         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8413         with uint64_t.
8414
8415 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8416
8417         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8418         declaration.
8419         (struct La_x32_retval): Likewise.
8420
8421 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8422
8423         * sysdeps/x86_64/preconfigure.in: New file.
8424         * sysdeps/x86_64/preconfigure: New generated file.
8425
8426 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8427
8428         [BZ #13824]
8429         * math/e_exp2l.c: Include <float.h>.
8430         (__ieee754_exp2l): Handle overflow and underflow cases
8431         separately.  Only pass fractional part of argument to
8432         __ieee754_expl.
8433         * math/libm-test.inc (exp2_test): Add more tests.
8434
8435         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8436         negating x to take absolute value.
8437         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8438         Likewise.
8439         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8440         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8441         Likewise.
8442         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8443         computing low part if x was negated.
8444         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8445
8446 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8447
8448         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8449         la_x32_gnu_pltexit.
8450         (pltexit): Cast int_retval to ptrdiff_t.
8451         * elf/tst-auditmod3b.c: Likewise.
8452         * elf/tst-auditmod4b.c: Likewise.
8453         * elf/tst-auditmod5b.c: Likewise.
8454         * elf/tst-auditmod6b.c: Likewise.
8455         * elf/tst-auditmod6c.c: Likewise.
8456         * elf/tst-auditmod7b.c: Likewise.
8457
8458         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8459         and x32_gnu_pltexit.
8460
8461         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8462         __ELF_NATIVE_CLASS.
8463         (La_x32_regs): New macro.
8464         (La_x32_retval): Likewise.
8465         (la_x32_gnu_pltenter): New function prototype.
8466         (la_x32_gnu_pltexit): Likewise.
8467
8468 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8469
8470         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8471         exponent.
8472
8473         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8474
8475         * configure.in (libc_cv_cc_nofma): Check for option to disable
8476         generation of FMA instructions.
8477         * configure: Regenerate.
8478         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8479         * sysdeps/ieee754/dbl-64/Makefile: New file.
8480         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8481         Remove brandred-fma4.
8482         (CFLAGS-brandred-fma4.c): Remove.
8483         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8484         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8485         define.
8486         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8487         define.
8488
8489 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8490
8491         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8492         LLONG_MAX != LONG_MAX.
8493         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8494         (_fitoa_word): Likewise.
8495         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8496         LLONG_MAX != LONG_MAX.
8497         * stdio-common/_itowa.h: Include <_itoa.h>.
8498         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8499         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8500         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8501         only if not defined.
8502         (_ITOA_WORD_TYPE): Likewise.
8503         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8504         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8505
8506 2012-03-21  David S. Miller  <davem@davemloft.net>
8507
8508         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8509
8510 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8511
8512         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8513         of x86_64 when setting libc_cv_slibdir, libdir and
8514         libc_cv_localedir.
8515         * sysdeps/unix/sysv/linux/configure: Regenerated.
8516
8517 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8518
8519         * manual/lang.texi (Old Varargs): Remove section.
8520         (How Variadic): Update menu.
8521         (va_start): Do not mention varargs.h.
8522
8523 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8524             Joseph Myers  <joseph@codesourcery.com>
8525
8526         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8527         link test.
8528         * configure: Regenerated.
8529
8530 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8531
8532         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8533         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8534         conformtest.pl
8535
8536 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8537
8538         * NOTES: Remove.
8539         * Makefile (files-for-dist): Remove NOTES.
8540         (NOTES): Remove rule.
8541         * README: Don't refer to NOTES.
8542         * manual/creature.texi: Don't include macros.texi.
8543         * manual/intro.texi (creature.texi): Remove comment referring to
8544         NOTES.
8545
8546         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8547         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8548         * configure: Regenerated.
8549         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8550         LIBC_TRY_CC_OPTION.
8551         (libc_cv_as_i686): Likewise.
8552         (libc_cv_cc_avx): Likewise.
8553         (libc_cv_cc_sse2avx): Likewise.
8554         (libc_cv_cc_fma4): Likewise.
8555         (libc_cv_cc_novzeroupper): Likewise.
8556         * sysdeps/i386/configure: Regenerated.
8557
8558         [BZ #13883]
8559         * sysdeps/i386/fpu/s_cexp.S: Remove.
8560         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8561         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8562         * math/libm-test.inc (cexp_test): Add more tests.
8563         * sysdeps/i386/fpu/libm-test-ulps: Update.
8564         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8565
8566 2012-03-21  Allan McRae  <allan@archlinux.org>
8567
8568         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8569
8570 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8571
8572         [BZ #13871]
8573         * math/w_exp2.c: Do not include <float.h>.
8574         (o_threshold, u_threshold): Remove.
8575         (__exp2): Calculate result before checking finiteness and calling
8576         __kernel_standard.
8577         * math/w_exp2f.c: Likewise.
8578         * math/w_exp2l.c: Likewise.
8579         * math/libm-test.inc (exp2_test): Require overflow exception for
8580         1e6 input.
8581
8582         [BZ #3866]
8583         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8584         range of signed 64-bit integers before using fistpll.  Remove
8585         checks for whether integers fit in mantissa bits.
8586         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8587         the range of signed 32-bit integers before using fistpl.  Remove
8588         checks for whether integers fit in mantissa bits.
8589         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8590         (__ieee754_powl): Test for y outside the range of signed 64-bit
8591         integers before using fistpll.  Reduce 64-bit values to 63-bit
8592         ones as needed.
8593         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8594         divide-by-zero is raised for zero to large negative powers.
8595         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8596         (__ieee754_powl): Test for y outside the range of signed 64-bit
8597         integers before using fistpll.  Reduce 64-bit values to 63-bit
8598         ones as needed.
8599         * math/libm-test.inc (pow_test): Add more tests.
8600
8601 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8602
8603         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8604         <stdio-common/_itoa.h>.
8605         * debug/segfault.c: Likewise.
8606         * elf/dl-cache.c: Likewise.
8607         * elf/dl-minimal.c: Likewise.
8608         * elf/dl-misc.c: Likewise.
8609         * elf/dl-sysdep.c: Likewise.
8610         * elf/dl-version.c: Likewise.
8611         * elf/rtld.c: Likewise.
8612         * hurd/hurdsock.c: Likewise.
8613         * hurd/lookup-retry.c: Likewise.
8614         * malloc/malloc.c: Likewise.
8615         * malloc/mtrace.c: Likewise.
8616         * nscd/nscd_getgr_r.c: Likewise.
8617         * nscd/nscd_getpw_r.c: Likewise.
8618         * nscd/nscd_getserv_r.c: Likewise.
8619         * posix/getopt_init.c: Likewise.
8620         * posix/wordexp.c: Likewise.
8621         * stdio-common/_itoa.c: Likewise.
8622         * stdio-common/printf_fphex.c: Likewise.
8623         * stdio-common/vfprintf.c: Likewise.
8624         * string/_strerror.c: Likewise.
8625         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8626         * sysdeps/i386/i686/hp-timing.h: Likewise.
8627         * sysdeps/mach/_strerror.c: Likewise.
8628         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8629         * sysdeps/mach/hurd/sethostid.c: Likewise.
8630         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8631         * sysdeps/mach/xpg-strerror.c: Likewise.
8632         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8633         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8634         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8635         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8636         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8637         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8638         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8639         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8640         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8641         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8642         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8643         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8644         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8645         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8646         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8647         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8648         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8649         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8650         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8651         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8652         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8653
8654         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8655
8656         * stdio-common/_itoa.h: Moved to ...
8657         * sysdeps/generic/_itoa.h: Here.
8658
8659         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8660
8661         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8662         instead of "_itoa.h" and "_itowa.h".
8663         * stdio-common/vfprintf.: Likewise.
8664
8665 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8666
8667         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8668         <bits/wordsize.h>.
8669         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8670         (__signbit): Likwise.
8671         (llrintf): Likwise.
8672         (llrint): Likwise.
8673
8674 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8675
8676         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8677         __WORDSIZE != 64.
8678
8679 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8680
8681         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8682         OVERFLOW_EXCEPTION_OK.
8683         * math/libm-test.inc ("Philosophy"): Update comment about
8684         exception testing.
8685         (OVERFLOW_EXCEPTION): Define.
8686         (OVERFLOW_EXCEPTION_OK): Likewise.
8687         (INVALID_EXCEPTION_OK): Renumber.
8688         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8689         (IGNORE_ZERO_INF_SIGN): Likewise.
8690         (test_exceptions): Handle FE_OVERFLOW.
8691         (exp10_test): Expect overflow exceptions.
8692         (exp2_test): Likewise.
8693         (expm1_test): Likewise.
8694         (nextafter_test): Likewise.
8695         (pow_test): Likewise.
8696         (scalbn_test): Likewise.
8697         (scalbln_test): Likewise.
8698
8699 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8700
8701         * sysdeps/x86_64/bits/atomic.h
8702         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8703         64bit integer.
8704         (atomic_exchange_acq): Likewise.
8705         (__arch_exchange_and_add_body): Likewise.
8706         (__arch_add_body): Likewise.
8707         (atomic_add_negative): Likewise.
8708         (atomic_add_zero): Likewise.
8709
8710 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8711
8712         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8713         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8714
8715 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8716
8717         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8718         Check __x86_64__ instead of __WORDSIZE.
8719
8720 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8721
8722         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8723
8724 2012-03-19  David S. Miller  <davem@davemloft.net>
8725
8726         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8727
8728         * sysdeps/sparc/fpu/fenv_private.h: New file.
8729         * sysdeps/sparc/fpu/math_private.h: Use it.
8730         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8731         Remove.
8732         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8733         (libc_feholdexcept_setroundl): Remove.
8734         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8735         Remove.
8736         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8737         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8738
8739 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8740
8741         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8742         int64_t instead of long int.
8743         (INSERT_WORDS64): Likwise.
8744
8745 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8746
8747         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8748         _Unwind_GetCFA return to _Unwind_Ptr first.
8749
8750 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8751
8752         [BZ #13629]
8753         * math/s_clog.c: Include <float.h>.
8754         (__clog): Scale large or subnormal inputs.
8755         * math/s_clogf.c: Likewise.
8756         * math/s_clogl.c: Likewise.
8757         * math/s_clog10.c: Include <float.h>.
8758         (M_LOG10_2): Define.
8759         (__clog10): Scale large or subnormal inputs.
8760         * math/s_clog10f.c: Likewise.
8761         * math/s_clog10l.c: Likewise.
8762         * math/libm-test.inc (clog_test): Add more tests.
8763         (clog10_test): Likewise.
8764         * sysdeps/i386/fpu/libm-test-ulps: Update.
8765         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8766
8767         [BZ #11451]
8768         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8769         x and y.
8770         * math/libm-test.inc (atan2_test): Add another test.
8771
8772         * Makerules (common-objdir-compile): Remove.
8773         * sysdeps/unix/Makefile (config-generated): Do not add
8774         $(unix-generated) to variable.
8775         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8776         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8777         Remove rule.
8778         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8779         Likewise.
8780         [generic bits/local_lim.h] (before-compile): Do not append to
8781         variable.
8782         [generic bits/local_lim.h] (common-generated): Likewise.
8783         [generic sys/param.h] (before-compile): Do not append to variable.
8784         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8785         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8786         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8787         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8788         include.
8789         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8790         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8791         [generic sys/param.h] ($(addprefix
8792         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8793         [generic sys/param.h] (common-generated): Do not append to
8794         variable.
8795         [generic sys/param.h] (sysdep_headers): Likewise.
8796         [generic bits/errno.h] (before-compile): Do not append to
8797         variable.
8798         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8799         rule.
8800         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8801         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8802         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8803         [generic bits/errno.h] (common-generated): Do not append to
8804         variable.
8805         [generic bits/ioctls.h] (before-compile): Do not append to
8806         variable.
8807         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8808         rule.
8809         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8810         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8811         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8812         rule.
8813         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8814         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8815         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8816         [generic bits/ioctls.h] (common-generated): Do not append to
8817         variable.
8818         [generic sys/syscall.h] (syscall.h): Remove variable.
8819         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8820         rule.
8821         [generic sys/syscall.h] (before-compile): Do not append to
8822         variable.
8823         [generic sys/syscall.h] (common-generated): Likewise.
8824         * sysdeps/unix/errnos-tmpl.c: Remove file.
8825         * sysdeps/unix/errnos.awk: Likewise.
8826         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8827         * sysdeps/unix/ioctls.awk: Likewise.
8828         * sysdeps/unix/mk-local_lim.c: Likewise.
8829         * sysdeps/unix/snarf-ioctls: Likewise.
8830
8831 2012-03-19  Richard Henderson  <rth@twiddle.net>
8832
8833         * sysdeps/i386/fpu/fenv_private.h: New file.
8834         * sysdeps/i386/fpu/math_private.h: Use it.
8835         (math_opt_barrier, math_force_eval): Remove.
8836         (libc_feholdexcept_setround_53bit): Remove.
8837         (libc_feupdateenv_53bit): Remove.
8838         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8839         (math_opt_barrier, math_force_eval): Remove.
8840         (libc_feholdexcept): Remove.
8841         (libc_feholdexcept_setround): Remove.
8842         (libc_fetestexcept, libc_fesetenv): Remove.
8843         (libc_feupdateenv_test): Remove.
8844         (libc_feupdateenv, libc_feholdsetround): Remove.
8845         (libc_feresetround): Remove.
8846
8847         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8848         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8849
8850         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8851         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8852         (libc_feupdateenv_testl): New.
8853         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8854         (libc_feupdateenv_testf): New.
8855         (libc_feupdateenv): Use libc_feupdateenv_test.
8856         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8857         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8858
8859         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8860         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8861         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8862         (libc_feresetround_noex): New.
8863         (libc_feresetround_noexf): New.
8864         (libc_feresetround_noexl): New.
8865         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8866         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8867         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8868         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8869         SET_RESTORE_ROUND.
8870         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8871         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8872         (__cos): Likewise.
8873         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8874         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8875         SET_RESTORE_ROUND_NOEX.
8876         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8877         SET_RESTORE_ROUND_NOEXF.
8878         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8879         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8880         (libc_feholdsetroundf): New.
8881         (libc_feresetround, libc_feresetroundf): New.
8882
8883         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8884         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8885         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8886
8887         * sysdeps/generic/math_private.h: Include <fenv.h>.
8888         (default_libc_feholdexcept): New.
8889         (default_libc_feholdexcept_setround): New.
8890         (default_libc_fesetenv, default_libc_feupdateenv): New.
8891         (libc_feholdexcept): Only define if undefined.
8892         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8893         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8894         (libc_feholdexcept_setroundl): Likewise.
8895         (libc_feholdexcept_setround_53bit): Likewise.
8896         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8897         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8898         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8899         (libc_feupdateenv_53bit): Likewise.
8900         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8901         (libc_feholdexcept): Convert from macro to inline function.
8902         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8903         (libc_fesetenv, libc_feupdateenv): Likewise.
8904
8905         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8906         not previously defined.
8907         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8908         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8909         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8910         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8911         * sysdeps/ieee754/flt-32/math_private.h: New file.
8912         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8913         math_private.h below SET_FLOAT_WORD.
8914         (__isnan, __isinf_ns, __finite): Remove.
8915         (__isnanf, __isinf_nsf, __finitef): Remove.
8916
8917 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8918
8919         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8920
8921 2012-03-17  David S. Miller  <davem@davemloft.net>
8922
8923         [BZ #6471]
8924         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8925         for 2.16.
8926
8927 2012-03-16  David S. Miller  <davem@davemloft.net>
8928
8929         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8930         warnings.
8931
8932         [BZ #6471]
8933         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8934         properly.
8935         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8936         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8937         sysdep_routines when subdir is sysvipc.
8938         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8939         __getshmlba helper.
8940
8941         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8942
8943 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8944
8945         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8946         [__LP64__].
8947
8948 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8949
8950         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8951         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8952         (__lround): Renamed to ...
8953         (__llround): This.  Replace long int with long long int.
8954         Define lround functions as aliases of llround functions.
8955         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8956
8957 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8958
8959         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8960         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8961         adresses to uintptr_t.  Replace "long int" and "unsigned long
8962         int" with "greg_t" on va_arg.
8963
8964 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8965
8966         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8967         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8968
8969         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8970         Move e_machine check before EI_CLASS check.  Handle x32
8971         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8972         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8973         SKIP_EM_IA_64 and include
8974         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8975
8976         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8977         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8978         (add_system_dir): New macro.
8979
8980         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8981         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8982
8983 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8984
8985         [BZ #2551]
8986         [BZ #2552]
8987         [BZ #2553]
8988         [BZ #2554]
8989         [BZ #2562]
8990         [BZ #2563]
8991         [BZ #2565]
8992         [BZ #2566]
8993         [BZ #2576]
8994         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8995         (y0): Likewise.
8996         * math/w_j0f.c (j0f): Likewise.
8997         (y0f): Likewise.
8998         * math/w_j0l.c (__j0l): Likewise.
8999         (__y0l): Likewise.
9000         * math/w_j1.c (j1): Likewise.
9001         (y1): Likewise.
9002         * math/w_j1f.c (j1f): Likewise.
9003         (y1f): Likewise.
9004         * math/w_j1l.c (__j1l): Likewise.
9005         (__y1l): Likewise.
9006         * math/w_jn.c (jn): Likewise.
9007         (yn): Likewise.
9008         * math/w_jnf.c (jnf): Likewise.
9009         (ynf): Likewise.
9010         * math/w_jnl.c (__jnl): Likewise.
9011         (__ynl): Likewise.
9012         * math/libm-test.inc (j0_test): Add more tests.
9013         (j1_test): Likewise.
9014         (jn_test): Likewise.  Add trailing semicolon to existing test.
9015         (y0_test): Likewise.
9016         (y1_test): Likewise.
9017         * sysdeps/i386/fpu/libm-test-ulps: Update.
9018         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9019
9020         [BZ #13851]
9021         [BZ #13854]
9022         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9023         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9024         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9025         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9026         (__tanl): Set errno for infinite argument.
9027         * sysdeps/i386/fpu/mptan.c: Remove.
9028         * sysdeps/i386/fpu/s_tan.S: Likewise.
9029         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9030         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9031         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9032         * math/libm-test.inc (tan_test): Add more tests and enable more
9033         tests for double and long double.
9034         * sysdeps/i386/fpu/libm-test-ulps: Update.
9035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9036
9037 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9038
9039         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9040         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9041
9042 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9043
9044         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9045         * configure.in: Use it for both main tree and add-ons.
9046         * configure: Regenerated.
9047
9048 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9049
9050         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9051
9052 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9053
9054         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9055         in comment.
9056
9057         [BZ #13851]
9058         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9059         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9060         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9061         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9062         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9063         infinite argument.
9064         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9065         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9066         != 0 for prec == 2.
9067         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9068         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9069         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9070         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9071         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9072         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9073         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9074         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9075         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9076         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9077         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9078         * math/libm-test.inc (cos_test): Add more tests and enable more
9079         tests for long double.
9080         (sin_test): Likewise.
9081         (sincos_test): Likewise.
9082         * sysdeps/i386/fpu/libm-test-ulps: Update.
9083         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9084
9085 2012-03-16  David S. Miller  <davem@davemloft.net>
9086
9087         * sysdeps/sparc/fpu/math_private.h: New file.
9088
9089 2012-03-15  David S. Miller  <davem@davemloft.net>
9090
9091         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9092         file.
9093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9094         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9095         file.
9096         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9097         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9098         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9099         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9100         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9101         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9102         sysdep routines.
9103         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9104
9105         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9106         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9107
9108         * sysdeps/sparc/sparc-ifunc.h: New file.
9109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9110         sparc-ifunc.h
9111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9113         Likewise.
9114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9115         Likewise.
9116         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9118         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9120         Likewise.
9121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9123         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9124         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9125         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9126         Likewise.
9127         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9128         Likewise.
9129         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9130         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9131         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9132         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9133         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9134         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9135         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9136         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9137         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9138         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9139         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9140         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9141         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9142         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9143         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9144         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9145         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9146         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9147         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9148         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9149         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9150         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9151         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9152         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9153
9154 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9155
9156         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9157         scaling.
9158         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9159
9160 2012-03-15  Andreas Jaeger  <aj@suse.de>
9161
9162         [BZ #13852]
9163         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9164         ieee754/flt-32 implementation for sin, cos and sincos.
9165         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9166         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9167         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9168         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9169         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9170         ieee754/flt-32 implementation for tan.
9171
9172         * math/libm-test.inc (cos_test): Enable some large input tests for
9173         float as well
9174         (sin_test): Likewise.
9175         (sincos_test): Likewise.
9176         (tan_test): Add tests for large input.
9177
9178         * sysdeps/i386/fpu/libm-test-ulps: Update.
9179
9180 2012-03-15  Andreas Jaeger  <aj@suse.de>
9181
9182         [BZ #13658]
9183         * math/libm-test.inc (cos_test): Add more test cases.
9184         (sin_test): Likewise.
9185         (sincos_test): Likewise.
9186
9187 2012-03-15  Andreas Jaeger  <aj@suse.de>
9188
9189         [BZ #13837]
9190         * math/libm-test.inc (cos_test): Add a test case for large input
9191         value.
9192         (sin_test): Likewise.
9193         (sincos_test): Likewise.
9194
9195 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9196         Joseph Myers  <joseph@codesourcery.com>
9197
9198         [BZ #13658]
9199         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9200         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9201         * sysdeps/i386/fpu/branred.c: Likewise.
9202         * sysdeps/i386/fpu/dosincos.c: Likewise.
9203         * sysdeps/i386/fpu/mpa.c: Likewise.
9204         * sysdeps/i386/fpu/s_cos.S: Likewise.
9205         * sysdeps/i386/fpu/s_sin.S: Likewise.
9206         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9207         * sysdeps/i386/fpu/sincos32.c: Likewise.
9208
9209         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9210         Define.
9211         (libc_feupdateenv_53bit): Define.
9212         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9213         Define.
9214         (libc_feupdateenv_53bit): Define.
9215
9216         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9217         53 bit (without extend i386 double precision).
9218
9219         * math/libm-test.inc (sincos_test): Add tests for large input.
9220         (sin): Likewise.
9221         (cos): Likewise.
9222
9223         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9224
9225 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9226
9227         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9228
9229 2012-03-15  David S. Miller  <davem@davemloft.net>
9230
9231         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9232         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9233         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9234         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9235         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9236         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9237         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9238         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9239         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9240         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9241         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9242         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9243         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9244         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9245         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9247         file.
9248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9250         file.
9251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9253         file.
9254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9256         file.
9257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9258         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9259         fmin/fmax sysdep routines.
9260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9261
9262 2012-03-14  David S. Miller  <davem@davemloft.net>
9263
9264         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9265         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9266         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9267         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9268         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9269         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9270         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9271         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9272         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9273         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9274         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9275         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9276         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9277         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9278         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9279         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9280         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9281         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9282         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9283         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9284         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9285         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9286         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9287         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9288         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9289         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9290         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9291         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9292         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9293         routines.
9294         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9295         file.
9296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9297         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9298         file.
9299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9300         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9301         file.
9302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9304         file.
9305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9306         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9307         file.
9308         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9310         file.
9311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9312         file.
9313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9314         file.
9315         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9316         file.
9317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9318         New file.
9319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9320         file.
9321         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9322         file.
9323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9324         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9325         file.
9326         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9327         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9328         file.
9329         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9330         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9331         file.
9332         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9333         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9334         VIS3 routines.
9335
9336         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9337         New file.
9338
9339         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9340
9341         * sysdeps/sparc/configure.in: New file.
9342         * sysdeps/sparc/configure: Generate.
9343         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9344         * configure: Regenerate.
9345         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9346         * config.make.in (have-as-vis3): New.
9347         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9348         available use -Av9d instead of -Av9a.
9349         * sysdeps/sparc/sparc64/Makefile: Likewise.
9350         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9351         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9352         New file.
9353         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9354         file.
9355         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9356         New file.
9357         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9358         file.
9359         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9360         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9361         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9362         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9363         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9364
9365         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9366         fzeros/fnegs to load 0x80000000 into a float register instead of
9367         using the stack.
9368         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9369
9370 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9371
9372         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9373         bits/syscall.h.
9374         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9375         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9376         ($(inst_includedir)/bits/syscall.h): Remove rule.
9377         ($(objpfx)bits/syscall.d): Include instead of
9378         $(objpfx)syscall-list.d.
9379         (generated): Change syscall-list.h and syscall-list.d to
9380         bits/syscall.h and bits/syscall.d.
9381
9382 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9383
9384         [BZ #13846]
9385         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9386
9387 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9388
9389         [BZ #13841]
9390         * math/s_csqrt.c: Include <float.h>.
9391         (__csqrt): Scale large or subnormal inputs.
9392         * math/s_csqrtf.c: Likewise.
9393         * math/s_csqrtl.c: Likewise.
9394         * math/libm-test.inc (csqrt_test): Add more tests.
9395         * sysdeps/i386/fpu/libm-test-ulps: Update.
9396         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9397
9398         [BZ #13840]
9399         * math/libm-test.inc (hypot_test): Add more tests.
9400
9401 2012-03-13  David S. Miller  <davem@davemloft.net>
9402
9403         [BZ #13840]
9404         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9405         double-precision for the calculation instead of scaling.
9406
9407 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9408
9409         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9410         manipulate bits before adding and subtracting TWO52[sx].
9411         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9412         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9413         Likewise.
9414         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9415
9416 2012-03-13  David S. Miller  <davem@davemloft.net>
9417
9418         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9419         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9420         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9421         rtld-global-offsets.h
9422         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9423
9424         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9425         large parameters.
9426
9427         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9428
9429         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9430         'err' in the ifdef scope in which it is actually used.
9431
9432         * nss/nss_db/db-init.c: Include string.h
9433
9434 2012-03-12  David S. Miller  <davem@davemloft.net>
9435
9436         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9437         masking out of the most significant byte of random value used.
9438         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9439         Fix coding style in previous change.
9440
9441         * sysdeps/unix/sysv/linux/kernel-features.h
9442         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9443         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9444         expression.
9445         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9446         later.
9447
9448 2012-03-11  David S. Miller  <davem@davemloft.net>
9449
9450         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9451         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9452         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9453         for 'resultvar' otherwise things get truncated on 64-bit.
9454
9455         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9456         Fix masking out of the most significant byte of random value used.
9457
9458         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9459
9460 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9461
9462         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9463
9464 2012-03-09  David S. Miller  <davem@davemloft.net>
9465
9466         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9467         variables with appropriate CPP guards.
9468         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9469         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9470         on resulting framesize and the management of the outregs buffer for pltexit.
9471         Preserve floating point return values across _dl_call_pltexit call.
9472         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9473         framesize and the management of the outregs buffer for pltexit.
9474         Preserve floating point return values across _dl_call_pltexit
9475         call.
9476         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9477         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9478         (print_exit): Fix format string for return register value.
9479
9480 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9481
9482         * sunrpc/Makefile (others): Add rpcgen.
9483         ($(objpfx)rpcgen): Remove special build rule and dependency on
9484         libc.
9485         * sunrpc/rpcgen.c: New file.
9486
9487 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9488
9489         [BZ #13673]
9490         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9491         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9492         * sysdeps/i386/crti.S: Likewise.
9493         * sysdeps/i386/crtn.S: Likewise.
9494         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9495         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9496         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9497         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9498         * sysdeps/sh/crti.S: Likewise.
9499         * sysdeps/sh/crtn.S: Likewise.
9500         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9501
9502         [BZ #13673]
9503         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9504         with URL.
9505         * locale/programs/locfile-kw.gperf: Likewise.
9506         * locale/programs/charmap-kw.h: Regenerated.
9507         * locale/programs/locfile-kw.h: Likewise.
9508
9509         [BZ #13673]
9510         * intl/plural.y: Replace FSF snail mail address with URL.
9511         * intl/plural.c: Regenerated.
9512
9513 2012-03-09  Richard Henderson  <rth@twiddle.net>
9514
9515         * include/math_private.h: Remove file.
9516         * math/math_private.h: Move file ...
9517         * sysdeps/generic/math_private.h: ... here.
9518
9519         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9520         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9521         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9522
9523         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9524         and <math_private.h>.
9525         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9526         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9527         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9528         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9529         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9530         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9531         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9532         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9533         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9534         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9535         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9536         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9537         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9538         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9539         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9540         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9541         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9542         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9543         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9544         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9545         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9546         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9547         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9548         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9549         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9550         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9551         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9552         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9553         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9554         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9555         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9556         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9557         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9558         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9559         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9560         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9561         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9562         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9563         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9564         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9565         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9566         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9567         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9568         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9569         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9570         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9571         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9572         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9573         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9574         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9575         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9576         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9577         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9578         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9579         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9580         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9581         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9582         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9583         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9584         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9585         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9586         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9587         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9588         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9589         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9590         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9591         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9592         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9593         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9594         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9595         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9596         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9597         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9598         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9599         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9600         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9601         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9602         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9603         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9604         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9605         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9606         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9607         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9608         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9609         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9610         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9611         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9612         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9613         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9614         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9615         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9616         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9617         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9618         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9619         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9620         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9621         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9622         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9623         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9624         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9625         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9626         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9627         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9628         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9629         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9630         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9631         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9632         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9633         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9634         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9635         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9636         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9637         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9638         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9639         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9640         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9641         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9642         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9643         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9644         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9645         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9646         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9647         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9648         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9649         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9650         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9651         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9652         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9653         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9654         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9655         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9656         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9657         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9658         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9659         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9660         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9661         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9662         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9663         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9664         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9665         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9666         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9667         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9668         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9669         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9670         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9671         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9672         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9673         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9674         * sysdeps/ieee754/k_standard.c: Likewise.
9675         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9676         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9677         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9678         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9679         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9680         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9681         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9682         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9683         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9684         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9685         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9686         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9687         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9688         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9689         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9690         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9691         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9692         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9693         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9694         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9695         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9696         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9697         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9698         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9699         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9700         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9701         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9702         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9703         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9704         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9705         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9706         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9707         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9708         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9709         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9710         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9711         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9712         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9713         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9714         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9715         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9716         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9717         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9718         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9719         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9720         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9721         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9722         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9723         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9724         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9725         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9726         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9727         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9728         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9729         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9730         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9731         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9732         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9733         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9734         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9735         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9736         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9737         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9738         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9739         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9740         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9741         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9742         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9743         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9744         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9745         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9746         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9747         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9748         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9749         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9750         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9751         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9752         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9753         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9754         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9755         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9756         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9757         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9758         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9759         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9760         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9761         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9762         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9763         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9764         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9765         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9766         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9767         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9768         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9769         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9770         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9771         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9772         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9773         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9774         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9775         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9776         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9777         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9778         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9779         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9780         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9781         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9782         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9783         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9784         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9785         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9786         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9787         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9788         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9789         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9790         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9791         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9792         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9793         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9794         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9795         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9796         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9797         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9798         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9799         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9800         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9801         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9802         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9803         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9804         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9805         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9806         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9807         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9808         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9809         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9810         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9811         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9812         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9813         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9814         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9815         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9816         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9817         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9818         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9820         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9821         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9822         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9823         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9824         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9825         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9826         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9827         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9828         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9829         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9830         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9831         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9832         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9833         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9834         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9835         * sysdeps/ieee754/s_lib_version.c: Likewise.
9836         * sysdeps/ieee754/s_matherr.c: Likewise.
9837         * sysdeps/ieee754/s_signgam.c: Likewise.
9838         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9839         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9840         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9841         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9842         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9843         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9844         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9845         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9846         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9847         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9848         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9849         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9850         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9851         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9852         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9853         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9854         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9855         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9856         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9857         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9858         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9859
9860 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9861
9862         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9863         * sunrpc/rpc_main.c: Likewise.
9864         * sunrpc/rpc_svcout.c: Likewise.
9865
9866 2012-03-09  David S. Miller  <davem@davemloft.net>
9867
9868         * include/math_private.h: New file.
9869
9870 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9871
9872         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9873         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9874         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9875         from <bits/socket_type.h>.
9876         (enum __socket_type): Don't define here.
9877         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9878         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9879         bits/socket_type.h.
9880
9881         [BZ #13566]
9882         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9883         checking __USE_GNU.
9884
9885         * Makerules ($(inst_includedir)/%.h): New rule.
9886         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9887         (install-others): Remove variable setting.
9888         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9889
9890 2012-03-08  Richard Henderson  <rth@twiddle.net>
9891
9892         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9893         from macro to inline function; merge with the
9894         !__LIBC_INTERNAL_MATH_INLINES version.
9895         (__ieee754_sqrtf): Likewise.
9896
9897         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9898         to inline function.
9899         (__rintf, __floor, __floorf): Likewise.
9900
9901         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9902         macro to inline function.
9903         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9904
9905         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9906         not <math/math_private.h>.
9907
9908 2012-03-08  David S. Miller  <davem@davemloft.net>
9909
9910         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9911         copyright year.
9912         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9913
9914 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9915
9916         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9917         normalization.
9918         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9919         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9920
9921 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9922
9923         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9924         be defined individually, they must be defined as a block.  Define
9925         S for printing a string instead of hidint the different by using a
9926         macro for adding the 'l'.
9927         * stdio-common/tst-fphex-wide.c: Adjust.
9928
9929 2012-03-07  Marek Polacek  <polacek@redhat.com>
9930
9931         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9932
9933 2012-03-08  Marek Polacek  <polacek@redhat.com>
9934
9935         [BZ #13806]
9936         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9937         * stdio-common/tst-fphex.c: Define a few macros to make the
9938         test reusable.  Use them.
9939         * stdio-common/tst-fphex-wide.c: New file.
9940
9941 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9942
9943         [BZ #6911]
9944         * manual/macros.texi (gnusystems): New macro.
9945         (nongnusystems): Likewise.
9946         (gnulinuxhurdsystems): Likewise.
9947         (gnuhurdsystems): Likewise..
9948         (gnulinuxsystems): Likewise.
9949         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9950         variants of the GNU system, not "GNU system".
9951         * manual/conf.texi: Likewise.
9952         * manual/errno.texi: Likewise.  Update example of errno macro
9953         expansion.
9954         * manual/filesys.texi: Likewise.
9955         (getumask): Document as specific to GNU/Hurd.
9956         * manual/install.texi: Likewise.  Reword some references to
9957         GNU/Linux.
9958         * manual/intro.texi: Likewise.
9959         * manual/io.texi: Likewise.
9960         (File Name Portability): Detail which constraints are inapplicable
9961         to all GNU systems and which are only inapplicable to GNU/Hurd.
9962         * manual/job.texi: Likewise.
9963         * manual/llio.texi: Likewise.
9964         (O_NOCTTY): Document as present on GNU/Linux.
9965         * manual/maint.texi: Likewise.
9966         * manual/memory.texi: Likewise.
9967         * manual/pattern.texi: Likewise.
9968         * manual/pipe.texi: Likewise.
9969         * manual/process.texi: Likewise.
9970         * manual/resource.texi: Likewise.
9971         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9972         child on GNU/Hurd.
9973         * manual/setjmp.texi: Likewise.
9974         * manual/signal.texi: Likewise.
9975         * manual/startup.texi: Likewise.
9976         * manual/stdio.texi: Likewise.
9977         * manual/terminal.texi: Likewise.
9978         (ONLCR): Document as POSIX.
9979         (OXTABS): Document availability on GNU/Linux as XTABS.
9980         (ONOEOT): Document availability separately from other bits.
9981         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9982         * manual/time.texi: Likewise.
9983         * manual/users.texi: Likewise.
9984         * INSTALL: Regenerated.
9985         * sysdeps/gnu/errlist.c: Regenerated.
9986
9987         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9988         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9989         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9990         puts.
9991         * configure: Regenerated.
9992
9993 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9994
9995         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9996         default includes instead of AC_HEADER_CHECK.
9997         * sysdeps/i386/configure: Regenerated.
9998
9999         [BZ #10716]
10000         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
10001         * math/s_cacoshf.c (__cacoshf): Likewise.
10002         * math/s_cacoshl.c (__cacoshl): Likewise.
10003         * math/s_casinh.c (__casinh): Set signs of result from argument.
10004         * math/s_casinhf.c (__casinhf): Likewise.
10005         * math/s_casinhl.c (__casinhl): Likewise.
10006         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
10007         (casinh_test): Add more tests.
10008         * sysdeps/i386/fpu/libm-test-ulps: Update.
10009         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10010
10011 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10012
10013         * po/zh_TW.po: Update from translation team.
10014
10015         * login/Makefile (distribute): Remove variable.
10016         * catgets/Makefile: Likewise.
10017         * mach/Makefile: Likewise.
10018         * malloc/Makefile: Likewise.
10019         * misc/Makefile: Likewise.
10020         * iconv/Makefile: Likewise.
10021         * nscd/Makefile: Likewise.
10022         * hurd/Makefile: Likewise.
10023         * manual/Makefile: Likewise.
10024         * locale/Makefile: Likewise.
10025         * intl/Makefile: Likewise.
10026         * conform/Makefile: Likewise.
10027         * nss/Makefile: Likewise.
10028         * time/Makefile: Likewise.
10029         * soft-fp/Makefile: Likewise.
10030         * dirent/Makefile: Likewise.
10031         * gmon/Makefile: Likewise.
10032         * po/Makefile: Likewise.
10033         * rt/Makefile: Likewise.
10034         * socket/Makefile: Likewise.
10035         * math/Makefile: Likewise.
10036         * signal/Makefile: Likewise.
10037         * debug/Makefile: Likewise.
10038         * elf/Makefile: Likewise.
10039         * timezone/Makefile: Likewise.
10040         * stdlib/Makefile: Likewise.
10041         * iconvdata/Makefile: Likewise.
10042         * sunrpc/Makefile: Likewise.
10043         * io/Makefile: Likewise.
10044         * argp/Makefile: Likewise.
10045         * inet/Makefile: Likewise.
10046         * hesiod/Makefile: Likewise.
10047         * grp/Makefile: Likewise.
10048         * csu/Makefile: Likewise.
10049         * wctype/Makefile: Likewise.
10050         * crypt/Makefile: Likewise.
10051         * libio/Makefile: Likewise.
10052         * string/Makefile: Likewise.
10053         * nis/Makefile: Likewise.
10054         * resolv/Makefile: Likewise.
10055         * stdio-common/Makefile: Likewise.
10056         * wcsmbs/Makefile: Likewise.
10057         * dlfcn/Makefile: Likewise.
10058         * posix/Makefile: Likewise.
10059
10060         [BZ #6959]
10061         * timezone/Makefile: Don't install timezone files, just the programs
10062         and scripts.
10063
10064 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10065
10066         * nss/databases.def: Add missing gshadow entry.
10067
10068         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10069
10070 2012-03-06  Marek Polacek  <polacek@redhat.com>
10071
10072         [BZ #13726]
10073         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10074         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10075         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10076         * stdio-common/tst-long-dbl-fphex.c: New file.
10077
10078 2012-03-06  David S. Miller  <davem@davemloft.net>
10079
10080         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10081         (set_obp_int): New function.
10082         (get_obp_int): New function.
10083         (__get_clockfreq_via_dev_openprom): Likewise.
10084         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10085         Avoid unused variable warnings on 'val' and use builtin_expect.
10086         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10087         __builtin_expect.
10088         (INLINE_CLONE_SYSCALL): Likewise.
10089
10090 2012-03-05  David S. Miller  <davem@davemloft.net>
10091
10092         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10093
10094 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10095
10096         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10097
10098         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10099         only for |x| >= 40.
10100         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10101
10102 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10103
10104         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10105         Replace gettimeofday with __vdso_gettimeofday.
10106
10107         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10108         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10109         __vdso_clock_gettime and __vdso_getcpu.
10110
10111         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10112         time with __vdso_time.
10113
10114 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10115
10116         * manual/lang.texi (size_t): Note types to which size_t may be
10117         equivalent with the GNU C Library, but do not describe when
10118         differences between them are significant.
10119
10120 2012-03-05  Andreas Jaeger  <aj@suse.de>
10121
10122         * sysdeps/i386/fpu/libm-test-ulps: Update.
10123
10124 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10125
10126         [BZ #3976]
10127         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10128         (__ieee754_pow): Save and restore rounding mode and use
10129         round-to-nearest for main computations.
10130         * math/libm-test.inc (pow_test_tonearest): New function.
10131         (pow_test_towardzero): Likewise.
10132         (pow_test_downward): Likewise.
10133         (pow_test_upward): Likewise.
10134         (main): Call the new functions.
10135         * sysdeps/i386/fpu/libm-test-ulps: Update.
10136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10137
10138         [BZ #3976]
10139         * math/libm-test.inc (cosh_test_tonearest): New function.
10140         (cosh_test_towardzero): Likewise.
10141         (cosh_test_downward): Likewise.
10142         (cosh_test_upward): Likewise.
10143         (sinh_test_tonearest): Likewise.
10144         (sinh_test_towardzero): Likewise.
10145         (sinh_test_downward): Likewise.
10146         (sinh_test_upward): Likewise.
10147         (main): Call the new functions.
10148         * sysdeps/i386/fpu/libm-test-ulps: Update.
10149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10150
10151 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10152
10153         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10154         default stack guard is set in last bytes.
10155         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10156
10157 2012-03-05  Kees Cook  <keescook@chromium.org>
10158
10159         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10160
10161         [BZ #13656]
10162         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10163         possibly allocate from heap instead of stack.
10164         * stdio-common/bug-vfprintf-nargs.c: New file.
10165         * stdio-common/Makefile (tests): Add nargs overflow test.
10166
10167 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10168
10169         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10170
10171 2012-03-03  Marek Polacek  <polacek@redhat.com>
10172
10173         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10174         * math/math_private.h: Likewise.
10175         * stdlib/tst-strtod.c: Likewise.
10176         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10177         * sysdeps/x86_64/bits/atomic.h: Likewise.
10178
10179 2012-03-02  David S. Miller  <davem@davemloft.net>
10180
10181         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10182         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10184         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10185         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10186         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10187         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10188         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10189
10190 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10191
10192         [BZ #13792]
10193         * manual/examples/README: New file, says the example source files
10194         can be used under GPL>=2.
10195         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10196         line containing just "*/".
10197         * manual/examples/add.c: Add copyright header (GPL>=2).
10198         * manual/examples/argp-ex1.c: Likewise.
10199         * manual/examples/argp-ex2.c: Likewise.
10200         * manual/examples/argp-ex3.c: Likewise.
10201         * manual/examples/argp-ex4.c: Likewise.
10202         * manual/examples/atexit.c: Likewise.
10203         * manual/examples/db.c: Likewise.
10204         * manual/examples/dir.c: Likewise.
10205         * manual/examples/dir2.c: Likewise.
10206         * manual/examples/execinfo.c: Likewise.
10207         * manual/examples/filecli.c: Likewise.
10208         * manual/examples/filesrv.c: Likewise.
10209         * manual/examples/fmtmsgexpl.c: Likewise.
10210         * manual/examples/genpass.c: Likewise.
10211         * manual/examples/inetcli.c: Likewise.
10212         * manual/examples/inetsrv.c: Likewise.
10213         * manual/examples/isockad.c: Likewise.
10214         * manual/examples/longopt.c: Likewise.
10215         * manual/examples/memopen.c: Likewise.
10216         * manual/examples/memstrm.c: Likewise.
10217         * manual/examples/mkfsock.c: Likewise.
10218         * manual/examples/mkisock.c: Likewise.
10219         * manual/examples/mygetpass.c: Likewise.
10220         * manual/examples/pipe.c: Likewise.
10221         * manual/examples/popen.c: Likewise.
10222         * manual/examples/rprintf.c: Likewise.
10223         * manual/examples/search.c: Likewise.
10224         * manual/examples/select.c: Likewise.
10225         * manual/examples/setjmp.c: Likewise.
10226         * manual/examples/sigh1.c: Likewise.
10227         * manual/examples/sigusr.c: Likewise.
10228         * manual/examples/stpcpy.c: Likewise.
10229         * manual/examples/strdupa.c: Likewise.
10230         * manual/examples/strftim.c: Likewise.
10231         * manual/examples/strncat.c: Likewise.
10232         * manual/examples/subopt.c: Likewise.
10233         * manual/examples/swapcontext.c: Likewise.
10234         * manual/examples/termios.c: Likewise.
10235         * manual/examples/testopt.c: Likewise.
10236         * manual/examples/testpass.c: Likewise.
10237         * manual/examples/timeval_subtract.c: Likewise.
10238
10239         [BZ #13792]
10240         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10241         function to ...
10242         * manual/timeval_subtract.c.texi: ... here, new file.
10243
10244 2012-03-02  David S. Miller  <davem@davemloft.net>
10245
10246         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10247
10248 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10249
10250         [BZ #3976]
10251         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10252         (__sin): Save and restore rounding mode and use round-to-nearest
10253         for all computations.
10254         (__cos): Save and restore rounding mode and use round-to-nearest
10255         for all computations.
10256         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10257         <fenv.h>.
10258         (tan): Save and restore rounding mode and use round-to-nearest for
10259         all computations.
10260         * math/libm-test.inc (cos_test_tonearest): New function.
10261         (cos_test_towardzero): Likewise.
10262         (cos_test_downward): Likewise.
10263         (cos_test_upward): Likewise.
10264         (sin_test_tonearest): Likewise.
10265         (sin_test_towardzero): Likewise.
10266         (sin_test_downward): Likewise.
10267         (sin_test_upward): Likewise.
10268         (tan_test_tonearest): Likewise.
10269         (tan_test_towardzero): Likewise.
10270         (tan_test_downward): Likewise.
10271         (tan_test_upward): Likewise.
10272         (main): Call the new functions.
10273         * sysdeps/i386/fpu/libm-test-ulps: Update.
10274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10275
10276         [BZ #10135]
10277         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10278         small n, then large n, before computing and testing k+n.
10279         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10280         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10281         Likewise.
10282         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10283         Likewise.
10284         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10285         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10286         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10287         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10288         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10289         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10290         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10291         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10292         * math/libm-test.inc (scalbn_test): Add more tests.
10293         (scalbln_test): Likewise.
10294
10295         * manual/filesys.texi (mode_t): Describe constraints on size and
10296         signedness, not exact equivalence to a particular type.
10297         (ino_t): Likewise.
10298         (ino64_t): Likewise.
10299         (dev_t): Likewise.
10300         (nlink_t): Likewise.
10301         (blkcnt_t): Likewise.
10302         (blkcnt64_t): Likewise.
10303         * manual/llio.texi (off_t): Likewise.
10304
10305         [BZ #3976]
10306         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10307         (__ieee754_exp): Save and restore rounding mode and use
10308         round-to-nearest for all computations.
10309         * math/libm-test.inc (exp_test_tonearest): New function.
10310         (exp_test_towardzero): Likewise.
10311         (exp_test_downward): Likewise.
10312         (exp_test_upward): Likewise.
10313         (main): Call the new functions.
10314         * sysdeps/i386/fpu/libm-test-ulps: Update.
10315         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10316
10317 2012-03-01  Chris Demetriou  <cgd@google.com>
10318
10319         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10320         have predictable order.
10321
10322 2012-03-01  David S. Miller  <davem@davemloft.net>
10323
10324         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10325
10326         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10327         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10328         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10329         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10330
10331         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10332         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10333         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10334         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10335         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10336         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10337         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10338         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10339         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10340
10341         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10342
10343         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10344         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10345         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10346
10347         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10348         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10349         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10350         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10351         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10352         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10353         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10354         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10355         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10356         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10357         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10358         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10359         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10360         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10361         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10362         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10363         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10364         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10365         * sysdeps/sparc/elf/configure: Regenerated.
10366
10367 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10368
10369         * configure.in (AS, LD): Require binutils 2.20 or later.
10370         * configure: Regenerated.
10371         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10372         as required minimum version.
10373         * INSTALL: Regenerated.
10374
10375         [BZ #2541]
10376         [BZ #4108]
10377         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10378         before squaring exponent.
10379         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10380         bottom long double and 27 bits of top long double before squaring
10381         exponent.
10382         * math/libm-test.inc (erfc_test): Add more tests.
10383         * sysdeps/i386/fpu/libm-test-ulps: Update.
10384         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10385         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10386
10387 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10388
10389         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10390         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10391         containing bit-fields.
10392         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10393         * soft-fp/single.h (_FP_UNION_S): Likewise.
10394         * soft-fp/double.h (_FP_UNION_D): Likewise.
10395
10396 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10397
10398         [BZ #13786]
10399         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10400         not include ../strcmp.S.
10401         [USE_AS_STRNCASECMP_L]: Likewise.
10402         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10403         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10404         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10405         (__strncasecmp_l_ia32): Define as alias to
10406         __strncasecmp_l_nonascii.
10407
10408         [BZ #5794]
10409         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10410         * sysdeps/i386/fpu/libm-test-ulps: Update.
10411         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10412
10413         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10414         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10415
10416 2012-02-29  Jeff Law  <law@redhat.com>
10417
10418         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10419         out of bounds read.
10420
10421 2012-02-29  Marek Polacek  <polacek@redhat.com>
10422
10423         [BZ #13706]
10424         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10425         * elf/Makefile: Add rules to run tst-unused-dep.out.
10426
10427 2012-02-28  David S. Miller  <davem@davemloft.net>
10428
10429         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10430         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10431         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10432         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10433         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10434         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10435
10436 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10437
10438         * math/libm-test.inc (llround_test): Move one test from
10439         lround_test.  Use TEST_f_L in moved test.
10440         (lround_test): Move misplaced test to llround_test.  Add testcase
10441         from bug 2561.
10442
10443 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10444
10445         * sysdeps/x86_64/fpu/e_expf.S: New file.
10446         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10447
10448 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10449
10450         [BZ #13637]
10451         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10452         of remain_len that may cause incomplete multi-byte character and
10453         false match.
10454         * posix/bug-regex33.c: New file.
10455         * posix/Makefile (tests): Add bug-regex33.
10456
10457 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10458
10459         * manual/macros.texi: New file.
10460         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10461         * manual/libc.texinfo: Include macros.texi.
10462         * manual/creatute.texi: Likewise.
10463         * manual/install.texi: Likewise.
10464         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10465         @glibcadj{} in references to the GNU C Library.
10466         * manual/charset.texi: Likewise.
10467         * manual/conf.texi: Likewise.
10468         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10469         when not using those macros.
10470         * manual/creature.texi: Likewise.
10471         * manual/crypt.texi: Likewise.
10472         * manual/errno.texi: Likewise.
10473         * manual/filesys.texi: Likewise.
10474         * manual/header.texi: Likewise.
10475         * manual/install.texi: Likewise.
10476         * manual/intro.texi: Likewise.
10477         * manual/io.texi: Likewise.
10478         * manual/job.texi: Likewise.
10479         * manual/lang.texi: Likewise.
10480         * manual/libc.texiinfo: Likewise.
10481         * manual/llio.texi: Likewise.
10482         * manual/locale.texi: Likewise.
10483         * manual/maint.texi: Likewise.
10484         * manual/math.texi: Likewise.
10485         * manual/memory.texi: Likewise.
10486         * manual/message.texi: Likewise.
10487         * manual/nss.texi: Likewise.
10488         * manual/pattern.texi: Likewise.
10489         * manual/process.texi: Likewise.
10490         * manual/resource.texi: Likewise.
10491         * manual/search.texi: Likewise.
10492         * manual/setjmp.texi: Likewise.
10493         * manual/signal.texi: Likewise.
10494         * manual/socket.texi: Likewise.
10495         * manual/startup.texi: Likewise.
10496         * manual/stdio.texi: Likewise.
10497         * manual/string.texi: Likewise.
10498         * manual/sysinfo.texi: Likewise.
10499         * manual/syslog.texi: Likewise.
10500         * manual/terminal.texi: Likewise.
10501         * manual/time.texi: Likewise.
10502         * manual/users.texi: Likewise.
10503         * INSTALL: Regenerated.
10504         * NOTES: Regenerated.
10505         * sysdeps/gnu/errlist.c: Regenerated.
10506
10507 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10508
10509         * include/dirent.h: Include <dirstream.h> before
10510         <dirent/dirent.h>.
10511
10512 2012-02-28  David S. Miller  <davem@davemloft.net>
10513
10514         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10515         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10516         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10517         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10518
10519 2012-02-27  David S. Miller  <davem@davemloft.net>
10520
10521         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10522         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10523         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10524         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10525
10526         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10527         frame pointer instead of stack pointer relative arg slot.
10528         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10529         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10530         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10531
10532 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10533
10534         [BZ #3992]
10535         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10536
10537 2012-02-27  David S. Miller  <davem@davemloft.net>
10538
10539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10540         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10541         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10543         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10544         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10545         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10546         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10547
10548 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10549
10550         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10551         later.  Allow versions 5-9.
10552         * configure: Regenerated.
10553         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10554         required minimum version and 4.6 as recommended version.  Do not
10555         mention bugs in GCC 2.7 and 2.8.
10556         * INSTALL: Regenerated.
10557
10558 2012-02-27  David S. Miller  <davem@davemloft.net>
10559
10560         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10561         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10562         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10563         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10564         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10565         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10566         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10567         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10568
10569         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10570         manipulate bits before adding and subtracting TWO112[sx].
10571         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10572
10573 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10574
10575         [BZ #13775]
10576         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10577         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10578         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10579         being in POSIX, because they are in 1003.1-2008.
10580
10581         * rt/tst-aio.c: Include <fcntl.h>.
10582         * rt/tst-aio7.c: Likewise.
10583         * rt/tst-aio64.c: Likewise.
10584
10585         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10586
10587 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10588
10589         * manual/install.texi (--with-headers): Describe headers as
10590         interface headers, not private headers.
10591         (Specific advice for GNU/Linux systems): Describe use of headers
10592         from "make headers_install", not private headers from older
10593         kernels.
10594         * INSTALL: Regenerated.
10595         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10596         Change to 2.6.19.
10597         * sysdeps/unix/sysv/linux/configure: Regenerated.
10598
10599         * manual/llio.texi (fclean): Remove documentation.
10600
10601         * manual/Makefile (libc-texi-generated): New variable.  Include
10602         version.texi.
10603         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10604         $(libc-texi-generated), not duplicated list of files.
10605         (version.texi, stamp-version): New rules.
10606         (realclean): Remove $(libc-texi-generated), not individual files
10607         from that list.  Do not remove dir-add.texinfo.
10608         * manual/libc.texinfo: Comment out uses of edition numbers and
10609         references to printed manual.  Remove last-updated dates.
10610         (EDITION): Comment out.
10611         (ISBN): Likewise.
10612         (VERSION, UPDATED): Remove.
10613         (version.texi): Include.
10614
10615 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10616
10617         * sysdeps/posix/spawni.c: Include <signal.h>.
10618         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10619         * sysdeps/pthread/aio_fsync.c: Likewise.
10620
10621 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10622
10623         * conform/Makefile (tests): Run only when not cross-compiling and
10624         when fast-check is not defined.
10625
10626         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10627         * conform/data/limits.h-data: Fixes for POSIX2008.
10628         * conform/run-conformtest.sh: Run all tests.
10629         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10630         headers.
10631         * include/bits/dlfcn.h: Likewise.
10632         * include/langinfo.h: Likewise.
10633         * include/monetary.h: Likewise.
10634         * include/sys/poll.h: Likewise.
10635
10636         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10637         for __USE_GNU.
10638         * posix/spawn.h: Define __need_sigset_t.
10639         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10640         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10641         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10642         to get sigevent_t only.
10643         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10644         only for __USE_GNU.
10645         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10646         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10647         process_vm_writev only for __USE_GNU.
10648         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10649
10650         * conform/Makefile: For now ignore errors from run-conformtest.
10651         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10652         POSIX to avoid namespace pollution.  Don't prepend headers.
10653         * conform/data/aio.h-data: Fixes for POSIX testing.
10654         * conform/data/fcntl.h-data: Likewise.
10655         * conform/data/glob.h-data: Likewise.
10656         * conform/data/grp.h-data: Likewise.
10657         * conform/data/pthread.h-data: Likewise.
10658         * conform/data/pwd.h-data: Likewise.
10659         * conform/data/signal.h-data: Likewise.
10660         * conform/data/spawn.h-data: Likewise.
10661         * conform/data/stdio.h-data: Likewise.
10662         * conform/data/stdlib.h-data: Likewise.
10663         * conform/data/stropts.h-data: Likewise.
10664         * conform/data/sys/mman.h-data: Likewise.
10665         * conform/data/sys/stat.h-data: Likewise.
10666         * conform/data/sys/types.h-data: Likewise.
10667         * conform/data/sys/wait.h-data: Likewise.
10668         * conform/data/time.h-data: Likewise.
10669         * conform/data/unistd.h-data: Likewise.
10670         * conform/data/utime.h-data: Likewise.
10671
10672         * io/sys/stat.h: fchmod was always in POSIX.
10673         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10674         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10675         * rt/aio.h: Define __need_timespec before including <time.h>.
10676         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10677         struct.  Add forward declaration of pthread_attr_t and use it in
10678         sigevent.
10679         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10680         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10681         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10682         always remove CLK_TCK definition.
10683
10684 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10685
10686         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10687
10688 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10689
10690         * conform/run-conformtest.sh: New file.
10691         * conform/Makefile: Run run-conformtest for tests.
10692         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10693         support.
10694
10695         * conform/data/uchar.h-data: New file.
10696         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10697         * conform/data/arpa/inet.h-data: Likewise.
10698         * conform/data/assert.h-data: Likewise.
10699         * conform/data/complex.h-data: Likewise.
10700         * conform/data/cpio.h-data: Likewise.
10701         * conform/data/ctype.h-data: Likewise.
10702         * conform/data/dirent.h-data: Likewise.
10703         * conform/data/dlfcn.h-data: Likewise.
10704         * conform/data/errno.h-data: Likewise.
10705         * conform/data/fcntl.h-data: Likewise.
10706         * conform/data/float.h-data: Likewise.
10707         * conform/data/fmtmsg.h-data: Likewise.
10708         * conform/data/fnmatch.h-data: Likewise.
10709         * conform/data/ftw.h-data: Likewise.
10710         * conform/data/glob.h-data: Likewise.
10711         * conform/data/grp.h-data: Likewise.
10712         * conform/data/iconv.h-data: Likewise.
10713         * conform/data/inttypes.h-data: Likewise.
10714         * conform/data/langinfo.h-data: Likewise.
10715         * conform/data/libgen.h-data: Likewise.
10716         * conform/data/limits.h-data: Likewise.
10717         * conform/data/locale.h-data: Likewise.
10718         * conform/data/math.h-data: Likewise.
10719         * conform/data/monetary.h-data: Likewise.
10720         * conform/data/mqueue.h-data: Likewise.
10721         * conform/data/ndbm.h-data: Likewise.
10722         * conform/data/net/if.h-data: Likewise.
10723         * conform/data/netdb.h-data: Likewise.
10724         * conform/data/netinet/in.h-data: Likewise.
10725         * conform/data/nl_types.h-data: Likewise.
10726         * conform/data/poll.h-data: Likewise.
10727         * conform/data/pthread.h-data: Likewise.
10728         * conform/data/pwd.h-data: Likewise.
10729         * conform/data/regex.h-data: Likewise.
10730         * conform/data/sched.h-data: Likewise.
10731         * conform/data/search.h-data: Likewise.
10732         * conform/data/semaphore.h-data: Likewise.
10733         * conform/data/setjmp.h-data: Likewise.
10734         * conform/data/signal.h-data: Likewise.
10735         * conform/data/spawn.h-data: Likewise.
10736         * conform/data/stdarg.h-data: Likewise.
10737         * conform/data/stdio.h-data: Likewise.
10738         * conform/data/stdlib.h-data: Likewise.
10739         * conform/data/string.h-data: Likewise.
10740         * conform/data/strings.h-data: Likewise.
10741         * conform/data/stropts.h-data: Likewise.
10742         * conform/data/sys/ipc.h-data: Likewise.
10743         * conform/data/sys/mman.h-data: Likewise.
10744         * conform/data/sys/msg.h-data: Likewise.
10745         * conform/data/sys/resource.h-data: Likewise.
10746         * conform/data/sys/select.h-data: Likewise.
10747         * conform/data/sys/sem.h-data: Likewise.
10748         * conform/data/sys/shm.h-data: Likewise.
10749         * conform/data/sys/socket.h-data: Likewise.
10750         * conform/data/sys/stat.h-data: Likewise.
10751         * conform/data/sys/statvfs.h-data: Likewise.
10752         * conform/data/sys/time.h-data: Likewise.
10753         * conform/data/sys/timeb.h-data: Likewise.
10754         * conform/data/sys/times.h-data: Likewise.
10755         * conform/data/sys/types.h-data: Likewise.
10756         * conform/data/sys/uio.h-data: Likewise.
10757         * conform/data/sys/un.h-data: Likewise.
10758         * conform/data/sys/utsname.h-data: Likewise.
10759         * conform/data/sys/wait.h-data: Likewise.
10760         * conform/data/syslog.h-data: Likewise.
10761         * conform/data/tar.h-data: Likewise.
10762         * conform/data/termios.h-data: Likewise.
10763         * conform/data/utime.h-data: Likewise.
10764         * conform/data/utmpx.h-data: Likewise.
10765         * conform/data/varargs.h-data: Likewise.
10766         * conform/data/wchar.h-data: Likewise.
10767         * conform/data/wctype.h-data: Likewise.
10768         * conform/data/wordexp.h-data: Likewise.
10769
10770         * include/stropts.h: New file.
10771         * include/uchar.h: New file.
10772         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10773         * include/assert.h: Likewise.
10774         * include/ctype.h: Likewise.
10775         * include/dirent.h: Likewise.
10776         * include/dlfcn.h: Likewise.
10777         * include/fcntl.h: Likewise.
10778         * include/fnmatch.h: Likewise.
10779         * include/glob.h: Likewise.
10780         * include/grp.h: Likewise.
10781         * include/libio.h: Likewise.
10782         * include/locale.h: Likewise.
10783         * include/math.h: Likewise.
10784         * include/net/if.h: Likewise.
10785         * include/netdb.h: Likewise.
10786         * include/netinet/in.h: Likewise.
10787         * include/pthread.h: Likewise.
10788         * include/pwd.h: Likewise.
10789         * include/regex.h: Likewise.
10790         * include/sched.h: Likewise.
10791         * include/search.h: Likewise.
10792         * include/setjmp.h: Likewise.
10793         * include/signal.h: Likewise.
10794         * include/stdio.h: Likewise.
10795         * include/stdlib.h: Likewise.
10796         * include/string.h: Likewise.
10797         * include/sys/cdefs.h: Likewise.
10798         * include/sys/mman.h: Likewise.
10799         * include/sys/msg.h: Likewise.
10800         * include/sys/resource.h: Likewise.
10801         * include/sys/select.h: Likewise.
10802         * include/sys/socket.h: Likewise.
10803         * include/sys/stat.h: Likewise.
10804         * include/sys/statvfs.h: Likewise.
10805         * include/sys/time.h: Likewise.
10806         * include/sys/times.h: Likewise.
10807         * include/sys/uio.h: Likewise.
10808         * include/sys/utsname.h: Likewise.
10809         * include/sys/wait.h: Likewise.
10810         * include/termios.h: Likewise.
10811         * include/time.h: Likewise.
10812         * include/ulimit.h: Likewise.
10813         * include/unistd.h: Likewise.
10814         * include/utime.h: Likewise.
10815         * include/wchar.h: Likewise.
10816         * include/wctype.h: Likewise.
10817         * include/wordexp.h: Likewise.
10818
10819         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10820
10821         * time/time.h: TIME_UTC must be a macro.
10822         Make timespec_get available for ISO C11 only as well.
10823
10824 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10825
10826         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10827         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10828
10829 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10830
10831         * configure.in: Use -o not -a in test for unsupported multi-arch.
10832
10833 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10834
10835         * manual/texinfo.tex: Update to version 2012-01-19.16.
10836
10837 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10838
10839         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10840
10841 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10842
10843         [BZ #13738]
10844         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10845         * manual/fdl-1.3.texi: New file.
10846         * manual/fdl-1.1.texi: File removed.
10847
10848         [BZ #13738]
10849         * manual/libc.texinfo (FDL_VERSION): New @set.
10850         Use it for mention of FDL in cover text.
10851         (Documentation License): Use it in @include file name.
10852
10853 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10854             Roland McGrath  <roland@hack.frob.com>
10855
10856         [BZ #5461]
10857         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10858         not LONG_LONG_MAX and LONG_LONG_MIN.
10859         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10860         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10861         name.
10862         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10863
10864 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10865
10866         [BZ #2547]
10867         [BZ #11365]
10868         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10869         manipulate bits before adding and subtracting TWO23[sx].
10870         * math/libm-test.inc (nearbyint_test): Add more tests.
10871
10872 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10873
10874         [BZ #2548]
10875         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10876         bits before adding and subtracting TWO23[sx].
10877         * math/libm-test.inc (rint_test): Add more tests.
10878         (rint_test_tonearest): Likewise.
10879         (rint_test_towardzero): Likewise.
10880         (rint_test_downward): Likewise.
10881         (rint_test_upward: Likewise.
10882
10883 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10884
10885         [BZ #10110]
10886         * include/stdc-predef.h: New file.  Extracted from features.h.
10887         * include/features.h: Include stdc-predef.h.
10888         * Makefile (headers): Add stdc-predef.h.
10889         * CONFORMANCE (Compiler limitations): Update.
10890
10891 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10892
10893         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10894
10895 2012-02-21  David S. Miller  <davem@davemloft.net>
10896
10897         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10898         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10899
10900 2012-02-20  David S. Miller  <davem@davemloft.net>
10901
10902         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10903         using a normal save/restore sequence, rather than allocating a
10904         dummy stack frame just to store a frame pointer and restore.
10905         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10906
10907 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10908
10909         * manual/install.texi: Fix stray word in line-wrapped comment.
10910
10911 2012-02-20  David S. Miller  <davem@davemloft.net>
10912
10913         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10914         both binutils and gcc support GOTDATA.
10915
10916         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10917         "rd %pc" in the PIC register setup sequences.
10918
10919         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10920         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10921         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10922         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10923         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10924         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10925         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10926         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10927         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10928         (SYSCALL_ERROR_HANDLER): Likewise.
10929         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10930         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10931         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10932         (SYSCALL_ERROR_HANDLER): Likewise.
10933
10934         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10935         (HAVE_GCC_GOTDATA): New.
10936         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10937         relocation support in both binutils and gcc.
10938         * sysdeps/sparc/elf/configure: Regenerate.
10939
10940         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10941         * sysdeps/sparc/sparc32/elf/configure: Delete.
10942         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10943         * sysdeps/sparc/sparc64/elf/configure: Delete.
10944         * sysdeps/sparc/elf/configure.in: New file.
10945         * sysdeps/sparc/elf/configure: Generate.
10946
10947         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10948         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10949         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10950         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10951         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10952
10953 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10954
10955         * manual/install.texi: Do not mention specific glibc version
10956         numbers.
10957         * manual/libc.texinfo (VERSION, UPDATED): Update.
10958         (@copying): Use @copyright{} and range of years.
10959
10960 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10961
10962         [BZ #13695]
10963         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10964         [crti.S not in sysdirs] (generated): Do not append.
10965         [crti.S not in sysdirs] (omit-deps): Likewise.
10966         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10967         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10968         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10969         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10970         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10971         Likewise.
10972         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10973         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10974         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10975         * csu/defs.awk: Remove file.
10976         * sysdeps/generic/initfini.c: Likewise.
10977         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10978         variable.
10979         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10980         Likewise.
10981
10982 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10983
10984         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10985         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10986         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10987         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10988         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10989         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10990         <bits/epoll.h>.
10991         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10992         (__EPOLL_PACKED): Define to empty if not defined by
10993         <bits/epoll.h>.
10994         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10995         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10996         bits/epoll.h.
10997
10998 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10999
11000         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
11001         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
11002         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
11003         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
11004         <bits/timerfd.h>.
11005         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
11006         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11007         bits/timerfd.h.
11008
11009 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11010
11011         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11012         in C locale.
11013         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11014         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11015         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11016         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11017
11018 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11019
11020         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11021         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11022
11023 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11024
11025         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11026         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11027         defined.
11028         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11029         Likewise.
11030         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11031         entry for 2.16.
11032
11033 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11034
11035         * math/w_acos.c: Use non-signaling floating-point comparisons.
11036         * math/w_acosf.c: Likewise.
11037         * math/w_acosh.c: Likewise.
11038         * math/w_acoshf.c: Likewise.
11039         * math/w_acoshl.c: Likewise.
11040         * math/w_acosl.c: Likewise.
11041         * math/w_asin.c: Likewise.
11042         * math/w_asinf.c: Likewise.
11043         * math/w_asinl.c: Likewise.
11044         * math/w_atanh.c: Likewise.
11045         * math/w_atanhf.c: Likewise.
11046         * math/w_atanhl.c: Likewise.
11047         * math/w_exp2.c: Likewise.
11048         * math/w_exp2f.c: Likewise.
11049         * math/w_exp2l.c: Likewise.
11050         * math/w_j0.c: Likewise.
11051         * math/w_j0f.c: Likewise.
11052         * math/w_j0l.c: Likewise.
11053         * math/w_j1.c: Likewise.
11054         * math/w_j1f.c: Likewise.
11055         * math/w_j1l.c: Likewise.
11056         * math/w_jn.c: Likewise.
11057         * math/w_jnf.c: Likewise.
11058         * math/w_log.c: Likewise.
11059         * math/w_log10.c: Likewise.
11060         * math/w_log10f.c: Likewise.
11061         * math/w_log10l.c: Likewise.
11062         * math/w_log2.c: Likewise.
11063         * math/w_log2f.c: Likewise.
11064         * math/w_log2l.c: Likewise.
11065         * math/w_logf.c: Likewise.
11066         * math/w_logl.c: Likewise.
11067         * math/w_sqrt.c: Likewise.
11068         * math/w_sqrtf.c: Likewise.
11069         * math/w_sqrtl.c: Likewise.
11070         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11071         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11072         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11073         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11074         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11075
11076 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11077
11078         [BZ #9739]
11079         * manual/string.texi (strnlen): Use correct parameter name in
11080         equivalent expression.
11081
11082 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11083
11084         [BZ #11174]
11085         * manual/users.texi (seteuid): Consistently use neweuid for
11086         argument name.
11087
11088 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11089
11090         [BZ #13704]
11091         * manual/nss.texi (Services in the NSS configuration): Correct
11092         list of services in example configuration file.
11093
11094 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11095
11096         [BZ #11322]
11097         * manual/arith.texi: Remove statements about negative zero
11098         behaving identically to zero.
11099
11100 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11101
11102         [BZ #5993]
11103         * manual/install.texi: Do not document upgrading from libc5.
11104
11105 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11106
11107         [BZ #4596]
11108         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11109
11110 2012-02-18  David S. Miller  <davem@davemloft.net>
11111
11112         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11113         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11114         %o7 across the call.
11115         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11116         instead.
11117         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11118         SETUP_PIC_REG_LEAF.
11119         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11120         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11121         * sysdeps/sparc/crtn.S: Likewise.
11122
11123 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11124
11125         * aout/Makefile: Remove.
11126
11127 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11128
11129         [BZ #13058]
11130         * manual/examples/argp-ex1.c (main): Format definition in GNU
11131         style.
11132         * manual/examples/argp-ex2.c (main): Likewise.
11133         * manual/examples/argp-ex3.c (main): Likewise.
11134         * manual/examples/argp-ex4.c (main): Likewise.
11135         * manual/examples/longopt.c (main): Use new-style prototype
11136         definition.
11137         * manual/examples/strncat.c (main): Specify return type and use
11138         (void) for arguments.
11139         * manual/examples/subopt.c (main): Use char **argv argument.
11140
11141 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11142
11143         [BZ #5077]
11144         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11145         rounding modes.
11146
11147 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11148
11149         [BZ #6907]
11150         * manual/string.texi (strchr): Change when strchrnul is
11151         recommended.
11152
11153 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11154
11155         [BZ #174]
11156         * manual/locale.texi (setlocale): Document LOCPATH.
11157
11158 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11159
11160         [BZ #10210]
11161         * manual/process.texi (execle): Move @dots{} before last argument.
11162
11163 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11164
11165         [BZ #12047]
11166         * manual/charset.texi (Generic Charset Conversion): Fix typo
11167         (LC_TYPE -> LC_CTYPE).
11168
11169 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11170
11171         [BZ #5805]
11172         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11173         (scalbnf): Likewise.
11174         (scalbnl): Likewise.
11175         (scalbln): Likewise.
11176         (scalblnf): Likewise.
11177         (scalblnl): Likewise.
11178         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11179         (vwarnx): Likewise.
11180         (verr): Likewise.
11181         (verrx): Likewise.
11182         * manual/filesys.texi (telldir): Use braces around return type.
11183         * manual/llio.texi (mmap): Add space after comma.
11184         (mmap64): Likewise.
11185         * manual/math.texi (jn): Use @var{} on parameter names.
11186         (jnf): Likewise.
11187         (jnl): Likewise.
11188         (yn): Likewise.
11189         (ynf): Likewise.
11190         (ynl): Likewise.
11191         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11192         line.
11193         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11194         "...".
11195         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11196         (sched_get_priority_max): Likewise.
11197         * manual/signal.texi (sigvec): Add space after comma.
11198         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11199         names.
11200         (if_indextoname): Likewise.
11201         (if_freenameindex): Likewise.
11202         (sendto): Use ',' instead of '.' in prototype.
11203         * manual/startup.texi (syscall): Use @dots{} instead of literal
11204         "...".
11205         * manual/stdio.texi (__fpending): Separate initial words of
11206         paragraph from @deftypefun line.
11207         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11208         "...".
11209         (vsyslog): Use @var{} on parameter names.
11210         * manual/terminal.texi (stty): Use @var{} on parameter names.
11211         * manual/users.texi (getutmp): Use @var{} on parameter names.
11212         (getutmpx): Likewise.
11213
11214 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11215
11216         [BZ #6884]
11217         * manual/stdio.texi (fopen): Fix typos in description of
11218         ",ccs=STRING".
11219
11220 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11221
11222         [BZ #4026]
11223         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11224         get clock_id definition.
11225
11226 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11227
11228         [BZ #4822]
11229         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11230         (madvise): Cast every argument to void on its own.
11231
11232 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11233
11234         [BZ #9902]
11235         * manual/startup.texi (Exit Status): Fix typo.
11236
11237 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11238
11239         [BZ #10140]
11240         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11241         * manual/examples/argp-ex2.c: Likewise.
11242         * manual/examples/argp-ex3.c: Likewise.
11243
11244 2012-02-16  Richard Henderson  <rth@redhat.com>
11245
11246         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11247         * sysdeps/s390/s390-32/initfini.c: Remove.
11248         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11249         * sysdeps/s390/s390-64/initfini.c: Remove.
11250
11251 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11252
11253         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11254         compiler output for sysdeps/generic/initfini.c.
11255         * sysdeps/sh/elf/initfini.c: Remove file.
11256
11257 2012-02-16  David S. Miller  <davem@davemloft.net>
11258
11259         [BZ #11494]
11260         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11261
11262         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11263         * sysdeps/sparc/crti.S: New file.
11264         * sysdeps/sparc/crtn.S: New file.
11265         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11266         * sysdeps/sparc/sparc64/Makefile: Likewise.
11267
11268 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11269
11270         [BZ #3335]
11271         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11272
11273 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11274
11275         [BZ #4822]
11276         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11277
11278         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11279         (write, read, close): Likewise.
11280         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11281
11282 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11283
11284         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11285         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11286         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11287         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11288         <bits/signalfd.h>.
11289         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11290         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11291         bits/signalfd.h.
11292
11293 2012-02-14  Marek Polacek  <polacek@redhat.com>
11294
11295         * sysdeps/x86_64/crti.S: New file.
11296         * sysdeps/x86_64/crtn.S: New file.
11297         * sysdeps/x86_64/elf/initfini.c: Remove file.
11298
11299 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11300
11301         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11302         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11303         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11304         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11305         <bits/inotify.h>.
11306         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11307         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11308         bits/inotify.h.
11309
11310 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11311
11312         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11313         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11314         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11315         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11316         <bits/eventfd.h>.
11317         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11318         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11319         bits/eventfd.h.
11320
11321 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11322
11323         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11324         __feraiseexcept instead of feraiseexcept.
11325
11326         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11327         nanosleep invocations.
11328         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11329         strings, and add error checking for a nanosleep invocations.
11330
11331 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11332
11333         Replace FSF snail mail address with URLs, as per GNU coding standards.
11334         Most of the snail mail addresses were wrong anyway, and omitting
11335         them makes the source code easier to maintain.  Almost all of the
11336         changes are to license notices and to locale LC_IDENTIFICATION
11337         addresses, except for this one:
11338         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11339         not its snail mail address.
11340
11341 2012-02-09  Richard Henderson  <rth@twiddle.net>
11342
11343         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11344         of kernel-features.h.
11345
11346         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11347
11348 2012-02-08  Marek Polacek  <polacek@redhat.com>
11349
11350         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11351         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11352         * sysdeps/gnu/_G_config.h: Likewise.
11353         * sysdeps/generic/_G_config.h: Likewise.
11354
11355 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11356
11357         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11358         tests.
11359         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11360
11361         * sysdeps/powerpc/powerpc32/crti.S: New file.
11362         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11363         * sysdeps/powerpc/powerpc64/crti.S: New file.
11364         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11365
11366         * Makeconfig (have-initfini): Don't set.
11367         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11368         * configure.in (nopic_initfini): Don't substitute.
11369         * config.h.in (HAVE_INITFINI): Don't #undef.
11370         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11371         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11372
11373 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11374
11375         Support crti.S and crtn.S provided directly by architectures.
11376         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11377         [crti.S in sysdirs] (omit-deps): Likewise.
11378         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11379         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11380         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11381         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11382         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11383         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11384         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11385         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11386         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11387         compiler output for sysdeps/generic/initfini.c.
11388         * sysdeps/i386/elf/Makefile: Remove file.
11389         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11390
11391 2012-02-07  Marek Polacek  <polacek@redhat.com>
11392
11393         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11394         * sysdeps/gnu/_G_config.h: Likewise.
11395         * sysdeps/mach/hurd/_G_config.h: Likewise.
11396
11397 2012-02-07  Marek Polacek  <polacek@redhat.com>
11398
11399         * math/Makefile (tests): Add tst-CMPLX2.
11400         * math/tst-CMPLX2.c: New file.
11401
11402 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11403
11404         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11405
11406         * math/libm-test.inc (jn_test): Add missing L suffix.
11407
11408 2012-02-06  Marek Polacek  <polacek@redhat.com>
11409
11410         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11411         * sysdeps/i386/fpu/e_powf.S: Likewise.
11412         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11413         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11414         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11415         * sysdeps/i386/fpu/e_pow.S: Likewise.
11416         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11417         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11418         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11419         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11420         * sysdeps/i386/fpu/e_log2.S: Likewise.
11421         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11422         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11423         * sysdeps/i386/fpu/e_powl.S: Likewise.
11424         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11425         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11426         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11427         * sysdeps/i386/fpu/e_logl.S: Likewise.
11428         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11429         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11430         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11431         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11432         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11433         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11434         * sysdeps/i386/fpu/e_log.S: Likewise.
11435         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11436         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11437         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11438         * sysdeps/i386/fpu/e_logf.S: Likewise.
11439         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11440         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11441         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11442         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11443         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11444         * sysdeps/i386/fpu/e_log10.S: Likewise.
11445         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11446         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11447         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11448         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11449         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11450         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11451         * sysdeps/i386/asm-syntax.h: Likewise.
11452         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11453         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11454         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11455         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11456         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11457         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11458         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11459         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11460         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11461         * sysdeps/powerpc/sysdep.h: Likewise.
11462         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11463         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11464
11465 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11466
11467         [BZ #411]
11468         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11469
11470 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11471
11472         * sysdeps/i386/sysdep.h: Include <features.h>.
11473         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11474         version.
11475
11476 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11477
11478         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11479         Define.
11480         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11481         LOAD_PIC_REG_STR.
11482
11483 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11484
11485         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11486         (SETUP_PIC_REG): Use GET_PC_THUNK.
11487         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11488         macro.
11489
11490 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11491
11492         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11493         for non-PIC compilation.
11494         (SETUP_PIC_REG): Add .p2align directive.
11495         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11496         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11497         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11498         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11499         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11500         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11501         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11502         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11503         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11504         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11505         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11506         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11507         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11508         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11509         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11510         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11511         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11512         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11513         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11514         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11515         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11516         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11517         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11518         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11519         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11520         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11521         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11522         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11523         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11524         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11525         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11526         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11527         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11528         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11529         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11530         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11531         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11532         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11533         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11534         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11535         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11536
11537 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11538
11539         * math/tst-CMPLX.c: Include <stdio.h>.
11540
11541 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11542
11543         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11544         float.
11545         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11546         * sysdeps/sparc/bits/mathdef.h: Likewise.
11547
11548 2012-01-31  Marek Polacek  <polacek@redhat.com>
11549
11550         * libio/libio.h: Don't define _PARAMS.
11551         * locale/programs/config.h: Don't define PARAMS.
11552         * stdlib/strtol_l.c: Likewise.
11553         (__strtol_l): Remove PARAMS from the prototype.
11554
11555 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11556
11557         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11558         names.  Just use the correct names.  Remove unnecessary wrapper
11559         functions.
11560         * malloc/arena.c: Likewise.
11561         * malloc/hooks.c: Likewise.
11562
11563         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11564         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11565         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11566
11567 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11568
11569         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11570         into tail calls.
11571         (update_get_addr): New function.
11572         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11573         GET_ADDR_MODULE parameter.
11574
11575 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11576
11577         * crypt/cert.c: Remove __STDC__ conditionals.
11578         * crypt/crypt-entry.c: Likewise.
11579         * crypt/crypt_util.c: Likewise.
11580         * libio/filedoalloc.c: Likewise.
11581         * libio/fileops.c: Likewise.
11582         * libio/genops.c: Likewise.
11583         * libio/iofclose.c: Likewise.
11584         * libio/iofdopen.c: Likewise.
11585         * libio/iofopen.c: Likewise.
11586         * libio/iofopen64.c: Likewise.
11587         * libio/iogetdelim.c: Likewise.
11588         * libio/iopopen.c: Likewise.
11589         * libio/obprintf.c: Likewise.
11590         * libio/oldfileops.c: Likewise.
11591         * libio/oldiofclose.c: Likewise.
11592         * libio/oldiofdopen.c: Likewise.
11593         * libio/oldiofopen.c: Likewise.
11594         * libio/oldiopopen.c: Likewise.
11595         * libio/wfiledoalloc.c: Likewise.
11596         * libio/wgenops.c: Likewise.
11597         * locale/programs/xmalloc.c: Likewise.
11598         * misc/syslog.c: Likewise.
11599         * stdio-common/xbug.c: Likewise.
11600         * string/memchr.c: Likewise.
11601         * string/memcmp.c: Likewise.
11602         * string/memrchr.c: Likewise.
11603         * string/rawmemchr.c: Likewise.
11604         * sysdeps/posix/getcwd.c: Likewise.
11605         * time/strftime_l.c: Likewise.
11606
11607 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11608
11609         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11610         * config.make.in (config-cflags-sse2avx): Define.
11611         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11612         Fix typo.
11613
11614 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11615
11616         * scripts/config.guess: Update from upstream config git repository.
11617         * scripts/config.sub: Likewise.
11618
11619 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11620
11621         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11622         (EM_NUM): Update.
11623         (R_TILEPRO_*, R_TILEGX_*): New macros.
11624
11625         * scripts/firstversions.awk: Fix bug in version range handling.
11626
11627         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11628
11629         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11630
11631         * include/sys/epoll.h: New file.
11632         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11633         libc_hidden_def.
11634
11635 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11636
11637         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11638         Avoid unnecessary __WORDSIZE == 64 test.
11639         (fmaxf): Use VEX format if possible.
11640         (fmax): Likewise.
11641         (fminf): Likewise.
11642         (fmin): Likewise.
11643
11644         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11645         * math/math_private.h: Remove libc_fegetround* and
11646         libc_fesetround*.
11647         * sysdeps/i386/configure.in: Check for -msse2avx.
11648         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11649         also if SSE2AVX is defined.
11650         Remove libc_fegetround* and libc_fesetround*.
11651         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11652         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11653         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11654         of HAS_YMM_USABLE.
11655         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11656         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11657         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11658         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11659         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11660
11661         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11662
11663 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11664
11665         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11666         size is not set.
11667         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11668
11669 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11670
11671         [BZ #13618]
11672         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11673         relocation.
11674         * Makeconfig (libm): Define.
11675         * elf/Makefile: Add rules to build and run tst-relsort1.
11676         * elf/tst-relsort1.c: New file.
11677         * elf/tst-relsort1mod1.c: New file.
11678         * elf/tst-relsort1mod2.c: New file.
11679
11680 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11681
11682         * math/s_ldexp.c: Remove __STDC__ conditionals.
11683         * math/s_ldexpf.c: Likewise.
11684         * math/s_ldexpl.c: Likewise.
11685         * math/s_nextafter.c: Likewise.
11686         * math/s_nexttowardf.c: Likewise.
11687         * math/s_significand.c: Likewise.
11688         * math/s_significandf.c: Likewise.
11689         * math/s_significandl.c: Likewise.
11690         * math/w_jnl.c: Likewise.
11691         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11692         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11693         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11694         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11695         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11696         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11697         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11698         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11699         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11700         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11701         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11702         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11703         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11704         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11705         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11706         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11707         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11708         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11709         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11710         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11711         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11712         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11713         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11714         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11715         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11716         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11717         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11718         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11719         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11720         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11721         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11722         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11723         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11724         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11725         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11726         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11727         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11728         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11729         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11730         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11731         * sysdeps/ieee754/k_standard.c: Likewise.
11732         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11733         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11734         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11735         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11736         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11737         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11738         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11739         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11740         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11741         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11742         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11743         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11744         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11745         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11746         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11747         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11748         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11749         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11750         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11751         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11752         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11753         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11754         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11755         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11756         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11757         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11758         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11759         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11760         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11761         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11762         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11763         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11764         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11765         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11766         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11767         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11768         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11769         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11770         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11771         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11772         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11773         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11774         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11775         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11776         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11777         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11778         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11779         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11780         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11781         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11782         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11783         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11784         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11785         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11786         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11787         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11788         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11789         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11790         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11791         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11792         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11793         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11794         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11795         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11796         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11797         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11798         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11799         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11800         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11801         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11802         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11803         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11804         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11805         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11806         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11807         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11808         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11809         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11810         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11811         * sysdeps/ieee754/s_matherr.c: Likewise.
11812         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11813         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11814         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11815         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11816
11817 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11818
11819         * crypt/md5.h: Remove __STDC__ conditionals.
11820         * libio/libioP.h: Likewise.
11821         * locale/programs/config.h: Likewise.
11822         * sysdeps/generic/sysdep.h: Likewise.
11823         * sysdeps/i386/asm-syntax.h: Likewise.
11824         * sysdeps/s390/asm-syntax.h: Likewise.
11825         * sysdeps/unix/sysdep.h: Likewise.
11826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11827         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11828
11829 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11830
11831         * libio/libio.h: Remove __STDC__ conditionals.
11832         * malloc/obstack.h: Likewise.
11833         * math/complex.h: Likewise.
11834         * math/math.h: Likewise.
11835         * sysdeps/generic/_G_config.h: Likewise.
11836         * sysdeps/gnu/_G_config.h: Likewise.
11837         * sysdeps/mach/hurd/_G_config.h: Likewise.
11838         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11839         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11840         * sysdeps/sparc/bits/mathdef.h: Likewise.
11841
11842 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11843
11844         [BZ #13583]
11845         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11846         Clean up HAS_* macros.
11847         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11848         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11849         possible.
11850         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11851         HAS_AVX.
11852         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11853         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11854         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11855         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11856         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11857
11858 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11859
11860         * elf/tst-unique3.cc (gets): Remove declaration.
11861         * elf/tst-unique3lib.cc (gets): Likewise.
11862         * elf/tst-unique3lib2.cc (gets): Likewise.
11863         * elf/tst-unique4.cc (gets): Likewise.
11864
11865 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11866
11867         * include/stdio.h: Add C++ protection.  Add gets declarations and
11868         definitions.
11869         * debug/tst-chk1.c: Don't declare gets here.
11870         * stdio-common/tst-gets.c: Likewise.
11871
11872 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11873
11874         * posix/glob: Remove directory.
11875
11876 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11877
11878         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11879
11880 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11881
11882         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11883         of the non-standard EPFNOSUPPORT.
11884
11885 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11886
11887         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11888         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11889         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11890
11891 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11892
11893         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11894
11895 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11896
11897         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11898         transient errors.
11899         * nscd/grpcache.c (cache_addgr): Likewise.
11900         * nscd/hstcache.c (cache_addhst): Likewise.
11901         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11902         * nscd/pwdcache.c (cache_addpw): Likewise.
11903         * nscd/servicescache.c (cache_addserv): Likewise.
11904
11905 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11906
11907         * malloc/malloc.c: Various cleanups.
11908         * malloc/hooks.c: Likewise.
11909
11910         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11911         * stdlib/bug-fmtmsg1.c: New file.
11912
11913         * stdlib/fmtmsg.c (init): Add missing unlock.
11914         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11915
11916 2012-01-12  Marek Polacek  <polacek@redhat.com>
11917
11918         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11919         and _GNU_SOURCE.
11920
11921 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11922
11923         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11924         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11925         macro to ensure uniqueness of label name.
11926         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11927         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11928
11929 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11930
11931         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11932
11933         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11934         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11935         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11936         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11937
11938 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11939
11940         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11941
11942         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11943         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11944         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11945
11946         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11947
11948         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11949         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11950         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11951         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11952
11953         * math/bits/math-finite.h: Add ldexp support.
11954
11955 2012-01-10  Marek Polacek  <polacek@redhat.com>
11956
11957         * locale/programs/localedef.h (show_archive_content): Add noreturn
11958         attribute.
11959
11960 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11961
11962         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11963
11964 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11965
11966         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11967
11968         * io/Makefile (headers): Add bits/poll2.h.
11969
11970 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11971
11972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11973         typo #include statement.
11974
11975 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11976
11977         * include/sys/cdefs.h: Define __attribute_alloc_size.
11978         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11979         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11980         * elf/pldd.c: Likewise.
11981         * iconv/iconv_charmap.c: Likewise.
11982         * iconv/iconvconfig.c: Likewise.
11983         * iconv/strtab.c: Likewise.
11984         * locale/programs/locale.c: Likewise.
11985         * locale/programs/localedef.h: Likewise.
11986         * locale/programs/simple-hash.c: Likewise.
11987         * nscd/nscd.h: Likewise.
11988         * nss/makedb.c: Likewise.
11989         * sysdeps/generic/ldconfig.h: Likewise.
11990         * locale/programs/localedef.c: Remove xmalloc prototype.
11991         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11992
11993 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11994
11995         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11996         appropriate.
11997
11998 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11999
12000         * math/Makefile (tests): Add tst-CMPLX.
12001         * math/tst-CMPLX.c: New file.
12002
12003         * math/complex.h (CMPLXL): Fix typo.
12004
12005         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
12006         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
12007         GLIBC_2.16.
12008         * debug/tst-chk1.c: Add poll and ppoll tests.
12009         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12010         * include/sys/poll.h: Add hidden proto for ppoll.
12011         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12012         * sysdeps/mach/hurd/ppoll.c: Likewise.
12013         * io/ppoll.c: Likewise.
12014         * debug/poll_chk.c: New file.
12015         * debug/ppoll_chk.c: New file.
12016         * include/bits/poll2.h: New file.
12017         * io/bits/poll2.h: New file.
12018
12019         [BZ #1350]
12020         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12021
12022         * configure.in: static is always set to yes.  Remove.
12023         * config.make.in: Don't set build-static.
12024         * Makeconfig: Remove use of build-static.
12025         * dlfcn/Makefile: Likewise.
12026         * elf/Makefile: Likewise.
12027         * math/Makefile: Likewise.
12028         * misc/Makefile: Likewise.
12029         * nptl/Makefile: Likewise.
12030         * sysdeps/mach/hurd/Makefile: Likewise.
12031
12032         * configure.in: PWD_P is not used anymore.
12033         * config.make.in: Remove PWD_P entry.
12034
12035         * configure.in: Remove last remnants of RANLIB.
12036         No need to check for signed size_t anymore.
12037         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12038         and IA-64.
12039         Remove __builtin_expect test because we require at least gcc 3.4.
12040         * aclocal.m4: Likewise.
12041
12042         * wcsmbs/mbrtoc16.c: Implement using towc function.
12043         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12044         * wcsmbs/wcsmbsload.c: Likewise.
12045         * iconv/gconv_simple.c: Likewise.
12046         * iconv/gconv_int.h: Likewise.
12047         * iconv/gconv_builtin.h: Likewise.
12048         * iconv/iconv_prog.c: Remove CHAR16 handling.
12049
12050         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12051
12052         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12053
12054         * configure.in: Remove --with-elf and --enable-bounded options.
12055         Dont set base_machine for ia64.  More non-ELF conditions removed.
12056         Remove testing and setting of leading underscore information.
12057         * config.make.in (build-bounded): Set to no.
12058         * config.h.in: Remove NO_UNDERSCORES entry.
12059         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12060         them.
12061         * csu/start.c: Remove !NO_UNDERSCORE code.
12062         * locale/localeinfo.h: Likewise.
12063         * sysdeps/generic/machine-gmon.h: Likewise.
12064         * sysdeps/generic/sysdep.h: Likewise.
12065         * sysdeps/i386/sysdep.h: Likewise.
12066         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12067         * sysdeps/mach/sysdep.h: Likewise.
12068         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12069         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12070         * sysdeps/sh/sysdep.h: Likewise.
12071         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12072         * sysdeps/unix/i386/sysdep.S: Likewise.
12073         * sysdeps/unix/sparc/start.c: Likewise.
12074         * sysdeps/unix/sparc/sysdep.S: Likewise.
12075         * sysdeps/unix/sparc/sysdep.h: Likewise.
12076         * sysdeps/unix/start.c: Likewise.
12077         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12078         * sysdeps/x86_64/sysdep.h: Likewise.
12079
12080 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12081
12082         [BZ #13553]
12083         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12084         for non-gcc.
12085         * argp/argp-fmtstream.h: Use const instead __const.
12086         * argp/argp.h: Likewise.
12087         * assert/assert.h: Likewise.
12088         * bits/fenv.h: Likewise.
12089         * bits/sched.h: Likewise.
12090         * bits/sigset.h: Likewise.
12091         * bits/sigthread.h: Likewise.
12092         * catgets/nl_types.h: Likewise.
12093         * conform/data/pthread.h-data: Likewise.
12094         * crypt/crypt-private.h: Likewise.
12095         * crypt/crypt.h: Likewise.
12096         * crypt/crypt_util.c: Likewise.
12097         * ctype/ctype.h: Likewise.
12098         * debug/execinfo.h: Likewise.
12099         * debug/mbsnrtowcs_chk.c: Likewise.
12100         * debug/mbsrtowcs_chk.c: Likewise.
12101         * debug/wcsnrtombs_chk.c: Likewise.
12102         * debug/wcsrtombs_chk.c: Likewise.
12103         * debug/wcstombs_chk.c: Likewise.
12104         * dirent/dirent.h: Likewise.
12105         * dlfcn/dlfcn.h: Likewise.
12106         * elf/neededtest4.c: Likewise.
12107         * grp/grp.h: Likewise.
12108         * gshadow/gshadow.h: Likewise.
12109         * iconv/gconv.h: Likewise.
12110         * iconv/gconv_int.h: Likewise.
12111         * iconv/gconv_simple.c: Likewise.
12112         * iconv/iconv.h: Likewise.
12113         * iconv/loop.c: Likewise.
12114         * iconv/skeleton.c: Likewise.
12115         * include/aio.h: Likewise.
12116         * include/aliases.h: Likewise.
12117         * include/argz.h: Likewise.
12118         * include/arpa/inet.h: Likewise.
12119         * include/assert.h: Likewise.
12120         * include/dirent.h: Likewise.
12121         * include/dlfcn.h: Likewise.
12122         * include/execinfo.h: Likewise.
12123         * include/fcntl.h: Likewise.
12124         * include/fenv.h: Likewise.
12125         * include/glob.h: Likewise.
12126         * include/grp.h: Likewise.
12127         * include/libintl.h: Likewise.
12128         * include/mntent.h: Likewise.
12129         * include/netdb.h: Likewise.
12130         * include/pwd.h: Likewise.
12131         * include/rpc/netdb.h: Likewise.
12132         * include/sched.h: Likewise.
12133         * include/search.h: Likewise.
12134         * include/shadow.h: Likewise.
12135         * include/signal.h: Likewise.
12136         * include/stdio.h: Likewise.
12137         * include/stdlib.h: Likewise.
12138         * include/string.h: Likewise.
12139         * include/sys/socket.h: Likewise.
12140         * include/sys/stat.h: Likewise.
12141         * include/sys/statfs.h: Likewise.
12142         * include/sys/statvfs.h: Likewise.
12143         * include/sys/syslog.h: Likewise.
12144         * include/sys/time.h: Likewise.
12145         * include/sys/uio.h: Likewise.
12146         * include/time.h: Likewise.
12147         * include/unistd.h: Likewise.
12148         * include/utmp.h: Likewise.
12149         * include/wchar.h: Likewise.
12150         * include/wctype.h: Likewise.
12151         * inet/aliases.h: Likewise.
12152         * inet/arpa/inet.h: Likewise.
12153         * inet/netinet/ether.h: Likewise.
12154         * inet/netinet/in.h: Likewise.
12155         * intl/libintl.h: Likewise.
12156         * io/bits/fcntl2.h: Likewise.
12157         * io/fcntl.h: Likewise.
12158         * io/ftw.h: Likewise.
12159         * io/sys/poll.h: Likewise.
12160         * io/sys/stat.h: Likewise.
12161         * io/sys/statfs.h: Likewise.
12162         * io/sys/statvfs.h: Likewise.
12163         * io/utime.h: Likewise.
12164         * libio/bits/stdio.h: Likewise.
12165         * libio/bits/stdio2.h: Likewise.
12166         * libio/libio.h: Likewise.
12167         * libio/libioP.h: Likewise.
12168         * libio/stdio.h: Likewise.
12169         * locale/lc-ctype.c: Likewise.
12170         * locale/locale.h: Likewise.
12171         * login/utmp.h: Likewise.
12172         * malloc/arena.c: Likewise.
12173         * malloc/malloc.c: Likewise.
12174         * malloc/malloc.h: Likewise.
12175         * malloc/mcheck.c: Likewise.
12176         * malloc/mtrace.c: Likewise.
12177         * math/bits/mathcalls.h: Likewise.
12178         * math/fenv.h: Likewise.
12179         * math/math_private.h: Likewise.
12180         * misc/bits/error.h: Likewise.
12181         * misc/bits/syslog.h: Likewise.
12182         * misc/err.h: Likewise.
12183         * misc/error.h: Likewise.
12184         * misc/fstab.h: Likewise.
12185         * misc/mntent.h: Likewise.
12186         * misc/regexp.h: Likewise.
12187         * misc/search.h: Likewise.
12188         * misc/sgtty.h: Likewise.
12189         * misc/sys/mman.h: Likewise.
12190         * misc/sys/syslog.h: Likewise.
12191         * misc/sys/uio.h: Likewise.
12192         * misc/sys/xattr.h: Likewise.
12193         * misc/ttyent.h: Likewise.
12194         * nis/rpcsvc/ypclnt.h: Likewise.
12195         * nss/nss.h: Likewise.
12196         * posix/bits/unistd.h: Likewise.
12197         * posix/fnmatch.h: Likewise.
12198         * posix/glob.h: Likewise.
12199         * posix/sched.h: Likewise.
12200         * posix/spawn.h: Likewise.
12201         * posix/sys/wait.h: Likewise.
12202         * posix/unistd.h: Likewise.
12203         * posix/wordexp.h: Likewise.
12204         * pwd/pwd.h: Likewise.
12205         * resolv/netdb.h: Likewise.
12206         * resource/sys/resource.h: Likewise.
12207         * rt/aio.h: Likewise.
12208         * rt/bits/mqueue2.h: Likewise.
12209         * rt/mqueue.h: Likewise.
12210         * shadow/shadow.h: Likewise.
12211         * signal/signal.h: Likewise.
12212         * socket/send.c: Likewise.
12213         * socket/sendto.c: Likewise.
12214         * socket/sys/socket.h: Likewise.
12215         * stdio-common/printf.h: Likewise.
12216         * stdlib/bits/stdlib.h: Likewise.
12217         * stdlib/fmtmsg.h: Likewise.
12218         * stdlib/monetary.h: Likewise.
12219         * stdlib/stdlib.h: Likewise.
12220         * stdlib/ucontext.h: Likewise.
12221         * streams/stropts.h: Likewise.
12222         * string/argz.h: Likewise.
12223         * string/bits/string2.h: Likewise.
12224         * string/string.h: Likewise.
12225         * string/strings.h: Likewise.
12226         * sunrpc/rpc/auth.h: Likewise.
12227         * sunrpc/rpc/auth_des.h: Likewise.
12228         * sunrpc/rpc/clnt.h: Likewise.
12229         * sunrpc/rpc/netdb.h: Likewise.
12230         * sunrpc/rpc/pmap_clnt.h: Likewise.
12231         * sunrpc/rpc/xdr.h: Likewise.
12232         * sysdeps/generic/inttypes.h: Likewise.
12233         * sysdeps/generic/net/if.h: Likewise.
12234         * sysdeps/generic/sys/swap.h: Likewise.
12235         * sysdeps/gnu/net/if.h: Likewise.
12236         * sysdeps/gnu/utmpx.h: Likewise.
12237         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12238         * sysdeps/i386/i486/bits/string.h: Likewise.
12239         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12240         * sysdeps/s390/bits/string.h: Likewise.
12241         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12242         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12243         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12244         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12245         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12246         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12247         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12248         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12249         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12250         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12251         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12252         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12253         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12254         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12255         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12256         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12257         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12258         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12259         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12260         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12261         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12262         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12263         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12264         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12265         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12266         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12267         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12268         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12269         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12270         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12271         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12272         * sysvipc/sys/ipc.h: Likewise.
12273         * sysvipc/sys/msg.h: Likewise.
12274         * sysvipc/sys/sem.h: Likewise.
12275         * sysvipc/sys/shm.h: Likewise.
12276         * termios/termios.h: Likewise.
12277         * time/sys/time.h: Likewise.
12278         * time/time.h: Likewise.
12279         * wcsmbs/bits/wchar2.h: Likewise.
12280         * wcsmbs/uchar.h: Likewise.
12281         * wcsmbs/wchar.h: Likewise.
12282         * wctype/wctype.h: Likewise.
12283
12284         [BZ #13551]
12285         * Makeconfig: Remove all but ELF support including AIX support.
12286         * Makerules: Likewise.
12287         * config.h.in: Likewise.
12288         * config.make.in: Likewise.
12289         * configure: Likewise.
12290         * configure.in: Likewise.
12291         * csu/Makefile: Likewise.
12292         * csu/version.c: Likewise.
12293         * debug/Makefile: Likewise.
12294         * dlfcn/Makefile: Likewise.
12295         * elf/Makefile: Likewise.
12296         * extra-lib.mk: Likewise.
12297         * iconv/Makefile: Likewise.
12298         * include/libc-symbols.h: Likewise.
12299         * include/shlib-compat.h: Likewise.
12300         * resolv/Makefile: Likewise.
12301         * resolv/res_libc.c: Likewise.
12302         * rt/Makefile: Likewise.
12303         * sysdeps/i386/asm-syntax.h: Likewise.
12304         * sysdeps/i386/sysdep.h: Likewise.
12305         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12306         * sysdeps/mach/sysdep.h: Likewise.
12307         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12308         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12309         * sysdeps/s390/asm-syntax.h: Likewise.
12310         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12311         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12312         * sysdeps/sh/sysdep.h: Likewise.
12313         * sysdeps/unix/sparc/sysdep.h: Likewise.
12314         * sysdeps/wordsize-32/divdi3.c: Likewise.
12315         * sysdeps/x86_64/sysdep.h: Likewise.
12316
12317         * argp/Versions: Remove _argp_unlock_xxx.
12318
12319         [BZ #13559]
12320         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12321         * abilist/libBrokenLocale.abilist: Likewise.
12322         * abilist/libanl.abilist: Likewise.
12323         * abilist/libc.abilist: Likewise.
12324         * abilist/libcrypt.abilist: Likewise.
12325         * abilist/libdl.abilist: Likewise.
12326         * abilist/libm.abilist: Likewise.
12327         * abilist/libnsl.abilist: Likewise.
12328         * abilist/libpthread.abilist: Likewise.
12329         * abilist/libresolv.abilist: Likewise.
12330         * abilist/librt.abilist: Likewise.
12331         * abilist/libthread_db.abilist: Likewise.
12332         * abilist/libutil.abilist: Likewise.
12333         * abilist/libnss_db.abilist: New file.
12334
12335         * scripts/abilist.awk: Add support for indirect functions.
12336
12337         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12338
12339         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12340
12341         * shlib-versions: Remove entries for ports architectures.
12342
12343         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12344         files in ports.
12345         * elf/stackguard-macros.h: Remove support for IA-64.
12346         * elf/tst-auditmod1.c: Likewise.
12347         * sysdeps/generic/ldsodefs.h: Likewise.
12348
12349         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12350         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12351         configure files.
12352
12353         [BZ #13552]
12354         * configure.in: Remove --enable-omitfp support.
12355         * FAQ.in: Adjust.
12356         * config.make.in: Likewise.
12357         * Makeconfig: Likewise.
12358         * manual/install.texi: Likewise.
12359
12360         In case anyone cares, the IA-64 architecture could move to ports.
12361         * sysdeps/ia64/*: Removed.
12362         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12363         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12364
12365         [BZ #13555]
12366         * configure.in: Remove entries for unsupported architectures.
12367
12368         [BZ #13533]
12369         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12370         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12371         routines.
12372         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12373         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12374         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12375         fall back to using wcrtomb.
12376         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12377         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12378         renaming.
12379         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12380         * wcsmbs/tst-c16c32-1.c: New file.
12381
12382         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12383         local variable.
12384
12385         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12386
12387         * elf/tst-unique3.cc: Add explicit declaration of gets.
12388         * elf/tst-unique3lib.cc: Likewise.
12389         * elf/tst-unique3lib2.cc: Likewise.
12390         * elf/tst-unique4.cc: Likewise.
12391
12392         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12393
12394 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12395
12396         [BZ #13566]
12397         * assert/assert.h (static_assert): Don't define for C++.
12398         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12399         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12400
12401 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12402
12403         * iconv/loop.c (single loop): Fix assertion in storing of
12404         remaining bytes.
12405
12406         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12407
12408 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12409
12410         * posix/getconf.c: Update copyright year.
12411         * nss/getent.c: Likewise.
12412         * nss/makedb.c: Likewise.
12413         * iconv/iconvconfig.c: Likewise.
12414         * iconv/iconv_prog.c: Likewise.
12415         * elf/ldconfig.c: Likewise.
12416         * elf/pldd.c: Likewise.
12417         * elf/sotruss.ksh: Likewise.
12418         * catgets/gencat.c: Likewise.
12419         * csu/version.c: Likewise.
12420         * elf/ldd.bash.in: Likewise.
12421         * elf/sprof.c (print_version): Likewise.
12422         * locale/programs/locale.c: Likewise.
12423         * locale/programs/localedef.c: Likewise.
12424         * login/programs/pt_chown.c: Likewise.
12425         * nscd/nscd.c (print_version): Likewise.
12426         * debug/xtrace.sh: Likewise.
12427         * malloc/memusage.sh: Likewise.
12428         * malloc/mtrace.pl: Likewise.
12429         * debug/catchsegv.sh: Likewise.
12430
12431 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12432
12433         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12434         pure attribute.
12435
12436 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12437
12438         [BZ #13533]
12439         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12440         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12441         transformations.
12442         * iconv/gconv_int.h: Likewise.
12443         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12444         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12445         from libc for GLIBC_2.16.
12446         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12447         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12448         * wcsmbs/uchar.h: Really define mbstate_t.
12449         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12450         * wcsmbs/c16rtomb.c: New file.
12451         * wcsmbs/mbrtoc16.c: New file.
12452         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12453         for C/POSIX locale.
12454         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12455         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12456
12457         * wcsmbs/wchar.h: Add missing __restrict.
12458
12459 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12460
12461         [BZ #13532]
12462         * time/Makefile (routines): Add timespec_get.
12463         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12464         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12465         timespec for ISO C11.
12466         * time/timespec_get.c: New file.
12467         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12468         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12469
12470         [BZ #13531]
12471         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12472         * stdlib/stdlib.h: Declare aligned_alloc.
12473         * Versions.def: Add GLIBC_2.16 for libc.
12474         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12475
12476         [BZ 13527]
12477         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12478         ISO C11.
12479
12480         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12481         code.
12482
12483         [BZ #13528]
12484         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12485
12486         [BZ #13529]
12487         * assert/assert.h (static_assert): Define.
12488
12489         * version.h: Update for 2.16 development version.
12490
12491         [BZ #13526]
12492         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12493         _ISOC11_SOURCE.
12494
12495         * version.h (RELEASE): Bump for 2.15 release.
12496         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12497
12498         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12499         Patch by Marek Polacek <mpolacek@redhat.com>.
12500
12501         * bits/byteswap.h: Protect long long constants with __extension__.
12502         * sysdeps/i386/bits/byteswap.h: Likewise.
12503         * sysdeps/ia64/bits/byteswap.h: Likewise.
12504         * sysdeps/s390/bits/byteswap.h: Likewise.
12505         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12506
12507 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12508
12509         [BZ #13540]
12510         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12511         destination buffer.
12512         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12513
12514 2011-12-23  Marek Polacek  <polacek@redhat.com>
12515
12516         * elf/dl-addr.c (determine_info): Add inline keyword.
12517         * elf/tst-auditmod4b.c (check_avx): Likewise.
12518         * elf/tst-auditmod6b.c (check_avx): Likewise.
12519         * elf/tst-auditmod6c.c (check_avx): Likewise.
12520         * elf/tst-auditmod7b.c (check_avx): Likewise.
12521
12522 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12523
12524         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12525         !__SSE_MATH__.
12526
12527 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12528
12529         [BZ #13540]
12530         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12531         processing for last bytes.
12532
12533 2011-08-06  Bruno Haible  <bruno@clisp.org>
12534
12535         [BZ #13061]
12536         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12537         U+0385, not to U+1FEE.
12538
12539         [BZ #13062]
12540         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12541         entry for U+00A5 U+0301.
12542
12543 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12544
12545         [BZ #13166]
12546         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12547         buffer for the output is too small.
12548
12549         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12550         optimization.
12551
12552         [BZ #13185]
12553         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12554         SSE flags if possible.
12555
12556 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12557
12558         [BZ #13540]
12559         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12560         processing for last bytes.
12561
12562 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12563
12564         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12565         (syscall-list-default-options, syscall-list-default-condition)
12566         (syscall-list-includes): Define.
12567         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12568         list of ABIs and options and #if conditions for each ABI.  Do not
12569         handle common syscalls between ABIs specially.
12570         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12571         Remove.
12572         (syscall-list-variants, syscall-list-32bit-options)
12573         (syscall-list-32bit-condition, syscall-list-64bit-options)
12574         (syscall-list-64bit-condition): Define.
12575         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): 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/sparc/Makefile (64bit-predefine):
12580         Remove.
12581         (syscall-list-variants, syscall-list-32bit-options)
12582         (syscall-list-32bit-condition, syscall-list-64bit-options)
12583         (syscall-list-64bit-condition): Define.
12584         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12585         Remove.
12586         (syscall-list-variants, syscall-list-32bit-options)
12587         (syscall-list-32bit-condition, syscall-list-64bit-options)
12588         (syscall-list-64bit-condition): Define.
12589
12590 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12591
12592         * locale/iso-639.def: Add brx entry.
12593
12594         [BZ #13328]
12595         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12596         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12597
12598         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12599         __feraiseexcept_renamed.
12600
12601 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12602
12603         [BZ #13538]
12604         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12605         EPOLLET with unsigned values.
12606         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12607         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12608
12609         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12610         to large cancellation.
12611         * math/s_cacoshf.c: Likewise.
12612         * math/s_cacoshl.c: Likewise.
12613
12614 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12615
12616         [BZ #13305]
12617         [BZ #12786]
12618         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12619         * math/s_cacoshf.c: Likewise.
12620         * math/s_cacoshl.c: Likewise.
12621
12622 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12623
12624         [BZ #13439]
12625         * iconv/gconv.h: Define __GCONV_SWAP.
12626         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12627         * iconvdata/utf-16.c: Likewise.
12628         * iconvdata/utf-32.c: Likewise.
12629
12630 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12631
12632         [BZ #13524]
12633         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12634         numerator after shifting it by one limb.
12635
12636 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12637
12638         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12639         under [__USE_EXTERN_INLINES].
12640
12641 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12642
12643         [BZ #13446]
12644         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12645
12646 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12647
12648         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12649         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12650         optimized code.
12651         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12652         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12653         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12654         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12655         for strncasecmp/strncasecmp_l compilation.
12656         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12657         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12658
12659 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12660
12661         [BZ #13484]
12662         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12663         of __asm__.
12664
12665 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12666
12667         [BZ #13506]
12668         * time/tzfile.c (__tzfile_read): Check values from file header.
12669
12670 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12671
12672         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12673         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12674         * powerpc/powerpc32/dl-start.S: Likewise.
12675         * powerpc/powerpc32/elf/start.S: Likewise.
12676         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12677         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12678         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12679         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12680         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12681         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12682         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12683         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12684         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12685         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12686         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12687         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12688         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12689         * powerpc/powerpc32/memset.S: Likewise.
12690         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12691         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12692         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12693         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12694         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12695         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12696         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12697         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12698         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12699         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12700         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12701         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12702         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12703
12704 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12705
12706         * math/libm-test.inc: Added more nearbyint tests.
12707         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12708         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12709         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12710         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12711
12712 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12713
12714         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12715         FD_CLOEXEC.
12716
12717 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12718
12719         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12720         Add wcscpy-ssse3 wcscpy-c.
12721         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12722         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12723         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12724         * sysdeps/x86_64/wcschr.S: New file.
12725         * sysdeps/x86_64/wcsrchr.S: New file.
12726         * string/test-strcmp.c: Remove checking of wcscmp function for
12727         wrong alignments.
12728         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12729         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12730         wcsrchr-sse2 wcsrchr-c.
12731         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12732         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12733         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12734         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12735         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12736         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12737         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12738         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12739         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12740         * wcsmbc/wcschr.c (WCSCHR): New macro.
12741
12742 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12743
12744         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12745         * wcsmbs/test-wcsrchr.c: New file.
12746         * string/test-strrchr.c: Add wcsrchr support.
12747         (WIDE): New macro.
12748         * wcsmbs/test-wcscpy.c: New file.
12749         * string/test-strcpy.c: Add wcscpy support.
12750         (WIDE): New macro.
12751
12752 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12753
12754         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12755         the inner loop.
12756
12757 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12758
12759         [BZ #13472]
12760         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12761
12762 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12763
12764         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12765         Minor optimizations.
12766
12767         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12768         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12769         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12770
12771 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12772
12773         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12774         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12775         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12776         for gcc to avoid warnings.
12777         * inet/Makefile (tests): Add tst-checks.
12778         * inet/tst-checks.c: New file.
12779
12780         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12781         warning.
12782
12783         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12784         __wmemcmp_sse2.
12785
12786         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12787         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12788
12789         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12790
12791 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12792
12793         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12794         problem.
12795
12796         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12797
12798 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12799
12800         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12801         conditional on GCC version.
12802         (__arch_compare_and_exchange_val_8_acq)
12803         (__arch_compare_and_exchange_val_16_acq)
12804         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12805         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12806         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12807
12808 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12809
12810         * sysdeps/sh/backtrace.c: New file.
12811
12812 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12813
12814         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12815         parenthesis.
12816
12817 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12818
12819         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12820         falling back to utime.
12821
12822 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12823
12824         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12825         expectations for float.
12826
12827 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12828
12829         * locale/weight.h (findidx): Add parameter len.
12830         * locale/weightwc.h (findidx): Likewise.
12831         * posix/fnmatch_loop.c (FCT): Adjust caller.
12832         * posix/regcomp.c (build_equiv_class): Likewise.
12833         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12834         * posix/regexec.c (check_node_accept_bytes): Likewise.
12835         * string/strcoll_l.c (STRCOLL): Likewise.
12836         * string/strxfrm_l.c (STRXFRM): Likewise.
12837
12838 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12839
12840         * Makefile.in: Remove CVSOPT handling.
12841         * configure.in: Remove use of AC_REVISION.
12842         * iconvdata/Makefile (distribute): No need to filter out CVS.
12843         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12844         handling.
12845
12846 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12847
12848         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12849         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12850         [USE_AS_STRNCASECMP_L]: Likewise.
12851         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12852         NO_TLS_DIRECT_SEG_REFS.
12853         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12854         Fix argument offsets for non-PIC.
12855         [USE_AS_STRNCASECMP_L]: Likewise.
12856         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12857         NO_TLS_DIRECT_SEG_REFS.
12858
12859 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12860
12861         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12862         O_CLOEXEC.
12863         * locale/loadlocale.c (_nl_load_locale): Likewise.
12864
12865 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12866
12867         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12868         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12869         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12870         (SYSCALL_GETTIME): Set errno on error.
12871
12872         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12873         count references to noai6ai_cached.
12874
12875 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12876
12877         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12878
12879         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12880         FD_CLOEXEC for /proc/self/maps.
12881
12882         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12883         FD_CLOEXEC for /proc/meminfo.
12884
12885         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12886         gai.conf.
12887
12888         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12889         FD_CLOEXEC for given file.
12890
12891         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12892
12893         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12894         FD_CLOEXEC for /etc/hosts.
12895         (_gethtent): Likewise.
12896
12897         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12898
12899         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12900         cancellation and set FD_CLOEXEC for /etc/netgroup.
12901
12902         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12903         reading /etc/publickey.
12904
12905         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12906         allow cancellation when reading /etc/group.
12907
12908         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12909         cancellation.
12910         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12911
12912         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12913         when using data file.
12914
12915         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12916
12917         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12918         (write_nis_obj): Use "c" and "e" in fopen.
12919
12920         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12921
12922         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12923
12924         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12925
12926         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12927
12928         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12929         locale.alias.
12930
12931         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12932
12933         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12934
12935         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12936
12937         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12938         file parsing and set FD_CLOEXEC.
12939
12940 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12941
12942         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12943
12944 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12945
12946         * malloc/arena.c (arena_get2): Don't call reused_arena when
12947         _int_new_arena failed.
12948
12949 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12950
12951         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12952         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12953         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12954         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12955         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12956         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12957         to compile strcasecmp and strncasecmp.
12958         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12959         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12960
12961         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12962
12963 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12964
12965         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12966         locale-defines.sym to gen-as-const-headers.
12967         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12968         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12969         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12970         to compile strcasecmp and strncasecmp.
12971         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12972         strcasecmp_l and strncasecmp_l.
12973         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12974         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12975         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12976         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12977         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12978         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12979         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12980         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12981         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12982         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12983         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12984
12985 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12986
12987         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12988         result of SYSDEP_GETTIME_CPU to retval.
12989         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12990         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12991
12992         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12993         variable.
12994
12995         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12996         mantissa words.
12997         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12998
12999         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
13000         from unused variable.
13001
13002         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
13003         DWARF definitions.
13004         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
13005         for assembling.
13006
13007         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
13008         over namespaces.
13009
13010         * sunrpc/rpc_prot.c (rejected): Fix case value.
13011
13012         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13013         unsigned long long int to avoid warnings in shift.
13014
13015         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13016         of use of trans.
13017         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13018         variable tmp.
13019
13020         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13021         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13022         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13023
13024         * nis/nis_table.c (nis_list): Use variable of correct type for
13025         result of __follow_path call.
13026
13027 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13028
13029         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13030         of math functions ceil, trunc, floor, round, and sqrt, when
13031         avaliable on the platform.
13032         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13033         name clash.
13034         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13035         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13036         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13037
13038 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13039
13040         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13041         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13042
13043 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13044
13045         * include/unistd.h: Fix __readlink return type.
13046         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13047
13048 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13049
13050         * stdlib/ucontext.h: Undo last change for makecontext.
13051
13052 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13053
13054         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13055
13056         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13057         * setjmp/setjmp.h: Mark functions as non-leaf.
13058         * setjmp/bits/setjmp2.h: Likewise.
13059         * stdlib/ucontext.h: Likewise.
13060
13061 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13062
13063         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13064         (reused_arena): Don't check arena limit.
13065         (arena_get2): Atomically check arena limit.
13066
13067 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13068
13069         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13070         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13071
13072         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13073         instructions.
13074
13075 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13076
13077         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13078         handler when locking.
13079
13080         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13081         Fix size of allocated buffer.
13082
13083 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13084
13085         [BZ #10103]
13086         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13087         declarations for long double functions.
13088         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13089
13090         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13091
13092 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13093
13094         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13095         installed.
13096
13097         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13098         is disabled.
13099
13100 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13101
13102         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13103
13104 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13105
13106         * include/alloca.h (stackinfo_alloca_round): Define.
13107         (extend_alloca): Use it.
13108         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13109         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13110         here.
13111
13112         * scripts/check-local-headers.sh: Ignore libaudit.h.
13113
13114         * nscd/Makefile (extra-objs): Make recursively expanded.
13115
13116 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13117
13118         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13119         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13120
13121         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13122         * posix/tst-rfc3484-2.c: Likewise.
13123         * posix/tst-rfc3484-3.c: Likewise.
13124
13125         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13126         process_vm_writev.
13127         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13128         process_vm_writev.
13129         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13130         process_vm_writev from libc using GLIBC_2.15 version.
13131
13132         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13133
13134 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13135
13136         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13137         stack usage.
13138
13139 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13140
13141         [BZ #13367]
13142         * nss/getent.c (initgroups_keys): Show error message in case no group
13143         names are given.
13144
13145         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13146         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13147         __bump_nl_timestamp.
13148         * nscd/connections (nscd_init): When host database is served open
13149         netlink socket and request notification about configuration changes.
13150         (main_loop_poll): Track netlink file descriptor and bump timestamp
13151         in case data becomes available.
13152         (main_loop_epoll): Likewise.
13153         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13154         (database_pers_head): Add extra_data fileds.
13155         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13156         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13157         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13158         Adjust caller.
13159         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13160         in6ai data, call __free_in6ai.
13161         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13162         Add -DHAVE_NETLINK.
13163         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13164         interface information.  Reuse previous data if netlink timestamp
13165         is not changed.
13166         (__bump_nl_timestamp): New function.
13167         (__free_in6ai): New function.
13168
13169 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13170
13171         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13172         close_not_cancel_no_status here.
13173         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13174
13175 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13176
13177         [BZ #13276]
13178         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13179         return value.
13180
13181         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13182         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13183         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13184
13185 2011-07-03  Andreas Jaeger  <aj@suse.de>
13186
13187         [BZ #10709]
13188         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13189         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13190         * math/libm-test.inc (sin_test): Add test case.
13191
13192 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13193
13194         [BZ #13337]
13195         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13196         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13197
13198         * elf/chroot_canon.c (chroot_canon): Cleanups.
13199
13200         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13201
13202         [BZ #13335]
13203         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13204         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13205
13206         * string/test-strchr.c: Make usable for strchrnul testing.
13207         * string/test-strchrnul.c: New file.
13208         * string/Makefile (strop-tests): Add strchrnul.
13209
13210         * po/it.po: Update from translation team.
13211         * po/es.po: Likewise.
13212
13213 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13214
13215         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13216         the three constants needed as parameters.  Drop the others.
13217         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13218         __m128i_strloadu_tolower.
13219         Create and initialize variable zero and use it in all the places
13220         where _mm_setzero_si128 was used.
13221
13222         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13223         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13224         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13225         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13226         anymore.
13227         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13228         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13229         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13230         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13231         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13232         __mpranred, __mptan.
13233         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13234         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13235         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13236         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13237         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13238         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13239         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13240         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13241         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13242
13243 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13244
13245         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13246         redefine if SHARED.
13247         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13248
13249         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13250         wide char related routines to wcsmbs subdir.
13251
13252 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13253
13254         [BZ #13344]
13255         * misc/sys/cdefs.h (__THROWNL): Define.
13256         * posix/unistd.h: Use __THREADNL instead of __THREAD
13257         for memory synchronization functions.
13258
13259 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13260
13261         [BZ #13349]
13262         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13263         doesn't exist.
13264         * manual/stdio.texi (Obstack Streams): Node removed.
13265
13266 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13267
13268         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13269         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13270         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13271
13272         * math/math_private.h (math_force_eval): Allow non-addressable
13273         arguments.
13274         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13275
13276 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13277
13278         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13279         file is not needed.
13280
13281         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13282         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13283         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13284         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13285         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13286         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13287         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13288         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13289         Add AVX variants.
13290         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13291         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13292         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13293         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13294         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13295         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13296         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13297         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13298         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13299         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13300         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13301         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13302         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13303         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13304         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13305         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13306         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13307         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13308         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13309
13310         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13311         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13312
13313         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13314         place.  Use VEX encoding when compiling for AVX.
13315
13316 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13317
13318         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13319         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13320
13321         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13322
13323 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13324
13325         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13326         useless if() expression.
13327         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13328         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13329         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13330         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13331         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13332         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13333         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13334         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13335         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13336         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13337         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13338         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13339         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13340         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13341         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13342         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13343         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13344         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13345         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13346
13347         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13348
13349 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13350
13351         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13352         condition.
13353         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13354
13355 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13356
13357         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13358         .text section.  Avoid duplicate constants.
13359         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13360         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13361         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13362         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13363         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13364         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13365         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13366         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13367         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13368         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13369         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13370         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13371         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13372         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13373         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13374         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13375         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13376         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13377         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13378         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13379         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13380         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13381         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13382         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13383         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13384         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13385         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13386         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13387         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13388         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13389         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13390         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13391         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13392         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13393         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13394         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13395         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13396         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13397         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13398         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13399         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13400         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13401         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13402         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13403         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13404
13405 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13406
13407         * sysdeps/x86_64/dla.h: Move to ...
13408         * sysdeps/x86_64/fpu/dla.h: ...here.
13409         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13410         situations.  Use __builtin_fma only for gcc 4.6 and up.
13411
13412         * config.make.in: Add have-mfma4 entry.
13413         * configure.in: Substitute libc_cv_cc_fma4.
13414         * math/Makefile (dbl-only-routines): Add sincostab.
13415         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13416         Use __sincostab not sincos.
13417         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13418         name is a macro.
13419         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13420         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13421         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13422         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13423         using __copysign.
13424         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13425         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13426         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13427         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13428         and __inv.
13429         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13430         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13431         __copysign.
13432         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13433         define aliases when function name is a macro.
13434         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13435         sysdeps/ieee754/dbl-64/sincos.tbl.
13436         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13437         fma4-enabled routines.
13438         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13439         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13440         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13441         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13442         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13443         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13444         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13445         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13446         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13447         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13448         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13449         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13450         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13451         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13452         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13453         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13454         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13455         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13456         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13457         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13458         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13459         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13460         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13461         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13462         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13463         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13464         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13465         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13466         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13467         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13468
13469         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13470         rename.
13471         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13472         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13473         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13474         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13475         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13476         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13477         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13478         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13479
13480 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13481
13482         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13483
13484 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13485
13486         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13487
13488         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13489         prediction.
13490         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13491
13492         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13493         Remove unused variable magic_bits.
13494         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13495
13496         * string/strnlen.c: Define and use STRNLEN macro.
13497         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13498         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13499         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13500         * wcsmbs/wcslen.c: Define and use WCSLEN.
13501         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13502         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13503         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13504         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13505         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13506         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13507         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13508
13509 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13510
13511         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13512         strnlen-sse2-no-bsf.
13513         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13514         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13515         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13516         Add strnlen support.
13517         (USE_AS_STRNLEN): New macro.
13518         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13519         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13520         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13521         * sysdeps/x86_64/wcslen.S: New file.
13522
13523 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13524
13525         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13526         XMM-moves are used for copying on small sizes.
13527
13528 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13529
13530         * wcsmbs/Makefile (strop-tests): Add wcschr.
13531         * wcsmbs/test-wcschr.c: New file.
13532         * string/test-strchr.c: Update.
13533         Add wcschr support.
13534         (WIDE): New macro.
13535
13536 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13537
13538         * wcsmbs/Makefile (strop-tests): Add wcslen.
13539         * wcsmbs/test-wcslen.c: New file.
13540         * string/test-strlen.c: Update.
13541         Add wcslen support.
13542         (WIDE): New macro.
13543
13544 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13545
13546         * po/it.po: Update from translation team.
13547
13548 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13549
13550         * sysdeps/x86_64/wcscmp.S: Update.
13551         Fix wrong comparison semantics.
13552         wcscmp shall use signed comparison not unsigned.
13553         Don't use substraction to avoid overflow bug.
13554         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13555         * wcsmbc/wcscmp.c: Likewise.
13556         * string/test-strcmp.c: Likewise.
13557         Add new tests to check cases with negative values.
13558
13559 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13560
13561         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13562         * sysdeps/x86_64/dla.h: ...here.  New file.
13563         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13564         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13565         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13566         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13567         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13568         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13569         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13570         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13571         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13572
13573 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13574
13575         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13576         __ynl_finite aliases.
13577
13578 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13579
13580         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13581
13582         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13583         define DLA_FMA.
13584         [DLA_FMA] (EMULV): Use DLA_FMA.
13585         [DLA_FMA] (MUL12): Use EMULV.
13586         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13587         that are not needed.
13588         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13589         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13590         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13591         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13592         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13593         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13594         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13595
13596 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13597
13598         * math/s_nan.c: Undef __nan.
13599         * math/s_nanf.c: Undef __nanf.
13600         * math/s_nanl.c: Undef __nanl.
13601         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13602         "math_private.h".
13603
13604 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13605
13606         * math/s_catan.c: Add branch predictions.
13607         * math/s_catanf.c: Likewise.
13608         * math/s_catanh.c: Likewise.
13609         * math/s_catanhf.c: Likewise.
13610         * math/s_catanhl.c: Likewise.
13611         * math/s_catanl.c: Likewise.
13612         * math/s_cexp.c: Likewise.
13613         * math/s_cexpf.c: Likewise.
13614         * math/s_cexpl.c: Likewise.
13615         * math/s_clog.c: Likewise.
13616         * math/s_clog10.c: Likewise.
13617         * math/s_clog10f.c: Likewise.
13618         * math/s_clog10l.c: Likewise.
13619         * math/s_clogf.c: Likewise.
13620         * math/s_clogl.c: Likewise.
13621         * math/s_csqrt.c: Likewise.
13622         * math/s_csqrtf.c: Likewise.
13623         * math/s_csqrtl.c: Likewise.
13624         * math/s_ctanf.c: Likewise.
13625         * math/s_ctanh.c: Likewise.
13626         * math/s_ctanhf.c: Likewise.
13627         * math/s_ctanhl.c: Likewise.
13628         * math/s_ctanl.c: Likewise.
13629
13630         * math/math_private.h: Define __nan, __nanf, __nanl.
13631         * math/s_cacosh.c: Include <math_private.h>.
13632         * math/s_cacoshl.c: Likewise.
13633         * math/s_casinh.c: Likewise.
13634         * math/s_casinhf.c: Likewise.
13635         * math/s_casinhl.c: Likewise.
13636         * math/s_ccos.c: Rely entire on ccosh.
13637         * math/s_ccosf.c: Rely entire on ccoshf.
13638         * math/s_ccosl.c: Rely entirely on ccoshl.
13639         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13640         Remove tests for FE_INVALID.
13641         * math/s_ccoshf.c: Likewise.
13642         * math/s_ccoshl.c: Likewise.
13643         * math/s_csin.c: Likewise.
13644         * math/s_csinf.c: Likewise.
13645         * math/s_csinh.c Likewise.
13646         * math/s_csinhf.c: Likewise.
13647         * math/s_csinhl.c: Likewise.
13648         * math/s_csinl.c: Likewise.
13649         * math/s_ctan.c: Likewise.
13650         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13651         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13652         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13653
13654 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13655
13656         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13657         compilation problems.
13658
13659         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13660         __builtin_expect.
13661
13662 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13663
13664         * sysdeps/i386/configure.in: Test for -mfma4 option.
13665         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13666         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13667         COMMON_CPUID_INDEX_80000001.
13668         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13669         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13670         use it if FMA3 is not supported.
13671         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13672
13673         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13674         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13675
13676 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13677
13678         [BZ #12892]
13679         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13680         it would create a cycle with a link time dependency.
13681
13682 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13683
13684         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13685         instruction.
13686         * string/Makefile (strop-tests): Add rawmemchr.
13687         * string/test-rawmemchr.c: New file.
13688
13689         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13690         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13691         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13692         when compiling str{,n}casecmp and when AVX is available.  Hook up
13693         new optimized code in initializers.
13694
13695 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13696
13697         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13698         __feraiseexcept instead of feraiseexcept.
13699
13700 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13701
13702         * math/math_private.h: Define defaults for libc_fetestexcept and
13703         libc_feupdateenv.
13704         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13705         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13706         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13707         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13708         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13709         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13710         libc_fetestexcept and libc_feupdateenv.
13711
13712         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13713         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13714         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13715         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13716         libc_feholdexcept_setround.
13717
13718         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13719         Add s_nearbyint-c and s_nearbyintf-c.
13720         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13721         nearbyintf inlines.
13722         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13723         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13724         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13725         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13726
13727         * math/math_private.h: Define defaults for libc_fegetround,
13728         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13729         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13730         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13731         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13732         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13733         standard functions.
13734         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13735         Remove comments and hacks for old compiler versions.
13736         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13737         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13738         libc_feholdexceptl.
13739
13740 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13741
13742         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13743         (__feraiseexcept_renamed): Add __NTH.
13744         (feraiseexcept): Add __NTH.  Rename local variables to fix
13745         namespace violations.
13746
13747 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13748
13749         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13750
13751         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13752
13753         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13754         recently added interfaces.
13755         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13756
13757         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13758         about macro parameter expansion.
13759
13760         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13761         __NO_MATH_INLINES is defined.  Cleanups.
13762
13763         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13764         and __floorf is target has SSE4.1.
13765         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13766         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13767         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13768         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13769
13770         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13771         name.
13772         (floorf): Likewise.
13773
13774         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13775
13776 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13777
13778         * misc/sys/cdefs.h: Fix last change.
13779
13780         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13781         database lookup.
13782
13783 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13784
13785         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13786
13787         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13788         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13789         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13790         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13791         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13792         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13793         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13794         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13795         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13796         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13797         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13798         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13799         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13800         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13801         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13802         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13803         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13804         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13805         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13806         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13807         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13808         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13809
13810         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13811         ceil, ceilf, floor, floorf.
13812
13813         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13814         Perform IRELATIVE relocations last.
13815
13816         * elf/do-rel.h: Add another parameter nrelative, replacing the
13817         local variable with the same name.  Change name of the function
13818         to end in Rel or Rela (uppercase).
13819         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13820         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13821         elf_dynamic_do_##reloc function.
13822
13823 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13824
13825         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13826         is sufficient, at least on modern CPUs.
13827
13828         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13829
13830         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13831         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13832
13833         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13834         __expl_finite.
13835         * math/bits/math-finite.h: Add entries for exp.
13836         * math/e_expl.c: Add __*_finite alias.
13837         * sysdeps/i386/fpu/e_exp.S: Likewise.
13838         * sysdeps/i386/fpu/e_expf.S: Likewise.
13839         * sysdeps/i386/fpu/e_expl.c: Likewise.
13840         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13841         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13842         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13843         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13844         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13845         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13846         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13847
13848         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13849         is sufficient, at least on modern CPUs.
13850
13851         * ctype/ctype-info.c (__ctype_init): Define.
13852         * include/ctype.h (__ctype_init): Declare.
13853         (__ctype_b_loc): The variable is always initialized.
13854         (__ctype_toupper_loc): Likewise.
13855         (__ctype_tolower_loc): Likewise.
13856         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13857         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13858
13859 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13860
13861         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13862
13863         * configure.in: Also look in $cxxmachine/include for C++ system
13864         headers.
13865
13866 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13867
13868         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13869         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13870         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13871         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13872         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13873         (USE_AS_WMEMCMP): New macro.
13874         Fixing indents.
13875         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13876         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13877         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13878         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13879         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13880         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13881         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13882         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13883         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13884         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13885         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13886         (USE_AS_WMEMCMP): New macro.
13887         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13888         * sysdeps/string/test-memcmp.c: Update.
13889         Fix simple_wmemcmp.
13890         Add new tests.
13891         * wcsmbs/wmemcmp.c: Update.
13892         (WMEMCMP): New macro.
13893         Fix overflow bug.
13894
13895 2011-10-12  Andreas Jaeger  <aj@suse.de>
13896
13897         [BZ #13268]
13898         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13899
13900 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13901
13902         * libio/iofwide.c (do_length): Avoid warning.
13903
13904         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13905
13906 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13907
13908         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13909
13910         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13911         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13912         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13913         * sysdeps/i386/i686/fpu/e_log.S: New file.
13914         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13915         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13916
13917         * ctype/ctype.h: Add support for inlined isXXX functions when
13918         compiling C++ code.
13919
13920 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13921
13922         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13923
13924         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13925
13926 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13927
13928         [BZ #13291]
13929         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13930
13931 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13932
13933         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13934         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13935         feraiseexcept.
13936
13937         * sysdeps/x86_64/memrchr.S: Check for zero size.
13938
13939         * string/stratcliff.c: Add memrchr tests.
13940
13941 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13942
13943         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13944         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13945         rawmemchr-sse2 rawmemchr-sse2-bsf.
13946         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13947         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13948         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13949         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13950         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13951         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13952         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13953         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13954         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13955         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13956         * string/memrchr.c (MEMRCHR): New macro.
13957
13958 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13959
13960         Add integration with gcc's -ffinite-math-only and optimize wrapper
13961         functions in libm.
13962         * Versions.def: Define GLIBC_2.15 version for libm.
13963         * math/Makefile (headers): Add bits/math-finite.h.
13964         * math/bits/math-finite.h: New file.
13965         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13966         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13967         * math/e_acoshl.c: Add __*_finite alias.
13968         * math/e_acosl.c: Likewise.
13969         * math/e_asinl.c: Likewise.
13970         * math/e_atan2l.c: Likewise.
13971         * math/e_atanhl.c: Likewise.
13972         * math/e_coshl.c: Likewise.
13973         * math/e_exp10.c: Likewise.
13974         * math/e_exp10f.c: Likewise.
13975         * math/e_exp10l.c: Likewise.
13976         * math/e_exp2l.c: Likewise.
13977         * math/e_fmodl.c: Likewise.
13978         * math/e_gammal_r.c: Likewise.
13979         * math/e_hypotl.c: Likewise.
13980         * math/e_j0l.c: Likewise.
13981         * math/e_j1l.c: Likewise.
13982         * math/e_jnl.c: Likewise.
13983         * math/e_lgammal_r.c: Likewise.
13984         * math/e_log10l.c: Likewise.
13985         * math/e_log2l.c: Likewise.
13986         * math/e_logl.c: Likewise.
13987         * math/e_powl.c: Likewise.
13988         * math/e_sinhl.c: Likewise.
13989         * math/e_sqrtl.c: Likewise.
13990         * math/e_scalb.c: Completely rewritten and optimized.
13991         * math/e_scalbf.c: Likewise.
13992         * math/e_scalbl.c: Likewise.
13993         * math/w_acos.c: Likewise.
13994         * math/w_acosf.c: Likewise.
13995         * math/w_acosl.c: Likewise.
13996         * math/w_acosh.c: Likewise.
13997         * math/w_acoshf.c: Likewise.
13998         * math/w_acoshl.c: Likewise.
13999         * math/w_asin.c: Likewise.
14000         * math/w_asinf.c: Likewise.
14001         * math/w_asinl.c: Likewise.
14002         * math/w_atan2.c: Likewise.
14003         * math/w_atan2f.c: Likewise.
14004         * math/w_atan2l.c: Likewise.
14005         * math/w_atanh.c: Likewise.
14006         * math/w_atanhf.c: Likewise.
14007         * math/w_atanhl.c: Likewise.
14008         * math/w_exp10.c: Likewise.
14009         * math/w_exp10f.c: Likewise.
14010         * math/w_exp10l.c: Likewise.
14011         * math/w_fmod.c: Likewise.
14012         * math/w_fmodf.c: Likewise.
14013         * math/w_fmodl.c: Likewise.
14014         * math/w_j0.c: Likewise.
14015         * math/w_j0f.c: Likewise.
14016         * math/w_j0l.c: Likewise.
14017         * math/w_j1.c: Likewise.
14018         * math/w_j1f.c: Likewise.
14019         * math/w_j1l.c: Likewise.
14020         * math/w_jn.c: Likewise.
14021         * math/w_jnf.c: Likewise.
14022         * math/w_log.c: Likewise.
14023         * math/w_logf.c: Likewise.
14024         * math/w_logl.c: Likewise.
14025         * math/w_log10.c: Likewise.
14026         * math/w_log10f.c: Likewise.
14027         * math/w_log10l.c: Likewise.
14028         * math/w_log2.c: Likewise.
14029         * math/w_log2f.c: Likewise.
14030         * math/w_log2l.c: Likewise.
14031         * math/w_pow.c: Likewise.
14032         * math/w_powf.c: Likewise.
14033         * math/w_powl.c: Likewise.
14034         * math/w_remainder.c: Likewise.
14035         * math/w_remainderf.c: Likewise.
14036         * math/w_remainderl.c: Likewise.
14037         * math/w_scalb.c: Likewise.
14038         * math/w_scalbf.c: Likewise.
14039         * math/w_scalbl.c: Likewise.
14040         * math/w_sqrt.c: Likewise.
14041         * math/w_sqrtf.c: Likewise.
14042         * math/w_sqrtl.c: Likewise.
14043         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14044         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14045         used.
14046         * math/math_private.h: Declare __kernel_standard_f.
14047         * math/w_cosh.c: Remove cruft and optimize a bit.
14048         * math/w_coshf.c: Likewise.
14049         * math/w_coshl.c: Likewise.
14050         * math/w_exp2.c: Likewise.
14051         * math/w_exp2f.c: Likewise.
14052         * math/w_exp2l.c: Likewise.
14053         * math/w_hypot.c: Likewise.
14054         * math/w_hypotf.c: Likewise.
14055         * math/w_hypotl.c: Likewise.
14056         * math/w_lgamma.c: Likewise.
14057         * math/w_lgamma_r.c: Likewise.
14058         * math/w_lgammaf.c: Likewise.
14059         * math/w_lgammaf_r.c: Likewise.
14060         * math/w_lgammal.c: Likewise.
14061         * math/w_lgammal_r.c: Likewise.
14062         * math/w_sinh.c: Likewise.
14063         * math/w_sinhf.c: Likewise.
14064         * math/w_sinhl.c: Likewise.
14065         * math/w_tgamma.c: Likewise.
14066         * math/w_tgammaf.c: Likewise.
14067         * math/w_tgammal.c: Likewise.
14068         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14069         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14070         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14071         Minor optimizations.  Pretty printing.  Remove cruft.
14072         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14073         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14074         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14075         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14076         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14077         * sysdeps/i386/fpu/e_asin.S: Likewise.
14078         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14079         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14080         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14081         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14082         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14083         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14084         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14085         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14086         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14087         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14088         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14089         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14090         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14091         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14092         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14093         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14094         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14095         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14096         * sysdeps/i386/fpu/e_log.S: Likewise.
14097         * sysdeps/i386/fpu/e_log10.S: Likewise.
14098         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14099         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14100         * sysdeps/i386/fpu/e_log2.S: Likewise.
14101         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14102         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14103         * sysdeps/i386/fpu/e_logf.S: Likewise.
14104         * sysdeps/i386/fpu/e_logl.S: Likewise.
14105         * sysdeps/i386/fpu/e_pow.S: Likewise.
14106         * sysdeps/i386/fpu/e_powf.S: Likewise.
14107         * sysdeps/i386/fpu/e_powl.S: Likewise.
14108         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14109         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14110         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14111         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14112         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14113         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14114         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14115         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14116         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14117         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14118         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14119         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14120         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14121         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14122         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14123         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14124         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14125         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14126         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14127         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14128         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14129         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14130         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14131         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14132         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14133         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14134         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14135         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14136         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14137         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14138         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14139         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14140         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14141         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14142         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14143         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14144         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14145         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14146         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14147         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14148         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14149         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14150         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14151         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14152         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14153         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14154         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14155         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14156         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14157         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14158         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14159         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14160         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14161         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14162         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14163         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14164         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14165         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14166         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14167         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14168         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14169         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14179         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14180         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14181         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14182         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14183         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14184         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14185         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14186         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14187         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14188         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14189         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14190         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14192         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14193         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14194         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14195         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14197         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14198         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14199         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14200         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14201         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14202         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14203         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14204         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14205         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14206         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14207         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14208         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14209         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14210         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14211         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14212         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14213         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14214         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14215         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14216         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14217         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14218         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14219         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14220         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14221         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14222         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14223         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14224         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14225         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14226         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14227         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14228         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14229         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14230         (__isnanf): Likewise.
14231         (__isinf_ns): Likewise.
14232         (__isinf_nsf): Likewise.
14233         (__finite): Likewise.
14234         (__finitef): Likewise.
14235         (__ieee754_sqrt): Define as macro.
14236         (__ieee754_sqrtf): Define as macro.
14237         (__ieee754_sqrtl): Define as macro.
14238         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14239         inlined copy.
14240         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14241         __FINITE_MATH_ONLY__ consistent.
14242         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14243
14244 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14245
14246         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14247         of rawmemchr.
14248
14249         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14250
14251 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14252
14253         * po/ja.po: Update from translation team.
14254
14255 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14256
14257         * locale/programs/locarchive.c (prepare_address_space): New function.
14258         (create_archive, enlarge_archive, open_archive): Use it.
14259
14260         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14261         inside [SHARED], where it is used.
14262
14263         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14264
14265         * nss/getent.c (netgroup_keys): Remove unused variable.
14266         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14267
14268 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14269
14270         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14271         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14272         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14273         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14274         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14275         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14276         * math/Makefile (libm-calls): Add s_isinf_ns.
14277         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14278         * math/multc3.c: Likewise.
14279         * math/s_casin.c: Likewise.
14280         * math/s_casinf.c: Likewise.
14281         * math/s_casinl.c: Likewise.
14282         * math/s_ccos.c: Likewise.
14283         * math/s_ccosf.c: Likewise.
14284         * math/s_ccosl.c: Likewise.
14285         * math/s_ctan.c: Likewise.
14286         * math/s_ctanf.c: Likewise.
14287         * math/s_ctanh.c: Likewise.
14288         * math/s_ctanhf.c: Likewise.
14289         * math/s_ctanhl.c: Likewise.
14290         * math/s_ctanl.c: Likewise.
14291         * math/w_fmod.c: Likewise.
14292         * math/w_fmodf.c: Likewise.
14293         * math/w_fmodl.c: Likewise.
14294         * math/w_remainder.c: Likewise.
14295         * math/w_remainderf.c: Likewise.
14296         * math/w_remainderl.c: Likewise.
14297         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14298         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14299         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14300         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14301         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14302         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14303         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14304         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14305
14306         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14307         of the number.
14308         * stdio-common/printf_fphex.c: Likewise.
14309         * stdio-common/printf_size.c: Likewise.
14310
14311         * math/e_exp10.c: Include math_private.h using <...> not "...".
14312         * math/e_exp10f.c: Likewise.
14313         * math/e_exp10l.c: Likewise.
14314         * math/e_exp2l.c: Likewise.
14315         * math/e_j0l.c: Likewise.
14316         * math/e_j1l.c: Likewise.
14317         * math/e_jnl.c: Likewise.
14318         * math/e_lgammal_r.c: Likewise.
14319         * math/e_rem_pio2l.c: Likewise.
14320         * math/e_scalb.c: Likewise.
14321         * math/e_scalbf.c: Likewise.
14322         * math/e_scalbl.c: Likewise.
14323         * math/k_cosl.c: Likewise.
14324         * math/k_sinl.c: Likewise.
14325         * math/k_tanl.c: Likewise.
14326         * math/s_cacoshf.c: Likewise.
14327         * math/s_catan.c: Likewise.
14328         * math/s_catanf.c: Likewise.
14329         * math/s_catanh.c: Likewise.
14330         * math/s_catanhf.c: Likewise.
14331         * math/s_catanhl.c: Likewise.
14332         * math/s_catanl.c: Likewise.
14333         * math/s_ccosh.c: Likewise.
14334         * math/s_ccoshf.c: Likewise.
14335         * math/s_ccoshl.c: Likewise.
14336         * math/s_cexp.c: Likewise.
14337         * math/s_cexpf.c: Likewise.
14338         * math/s_cexpl.c: Likewise.
14339         * math/s_clog.c: Likewise.
14340         * math/s_clog10.c: Likewise.
14341         * math/s_clog10f.c: Likewise.
14342         * math/s_clog10l.c: Likewise.
14343         * math/s_clogf.c: Likewise.
14344         * math/s_clogl.c: Likewise.
14345         * math/s_csin.c: Likewise.
14346         * math/s_csinf.c: Likewise.
14347         * math/s_csinh.c: Likewise.
14348         * math/s_csinhf.c: Likewise.
14349         * math/s_csinhl.c: Likewise.
14350         * math/s_csinl.c: Likewise.
14351         * math/s_csqrt.c: Likewise.
14352         * math/s_csqrtf.c: Likewise.
14353         * math/s_csqrtl.c: Likewise.
14354         * math/s_ctan.c: Likewise.
14355         * math/s_ctanf.c: Likewise.
14356         * math/s_ctanh.c: Likewise.
14357         * math/s_ctanhf.c: Likewise.
14358         * math/s_ctanhl.c: Likewise.
14359         * math/s_ctanl.c: Likewise.
14360         * math/s_ldexp.c: Likewise.
14361         * math/s_ldexpf.c: Likewise.
14362         * math/s_ldexpl.c: Likewise.
14363         * math/s_significand.c: Likewise.
14364         * math/s_significandf.c: Likewise.
14365         * math/s_significandl.c: Likewise.
14366         * math/w_acos.c: Likewise.
14367         * math/w_acosf.c: Likewise.
14368         * math/w_acosh.c: Likewise.
14369         * math/w_acoshf.c: Likewise.
14370         * math/w_acoshl.c: Likewise.
14371         * math/w_acosl.c: Likewise.
14372         * math/w_asin.c: Likewise.
14373         * math/w_asinf.c: Likewise.
14374         * math/w_asinl.c: Likewise.
14375         * math/w_atan2.c: Likewise.
14376         * math/w_atan2f.c: Likewise.
14377         * math/w_atan2l.c: Likewise.
14378         * math/w_atanh.c: Likewise.
14379         * math/w_atanhf.c: Likewise.
14380         * math/w_atanhl.c: Likewise.
14381         * math/w_cosh.c: Likewise.
14382         * math/w_coshf.c: Likewise.
14383         * math/w_coshl.c: Likewise.
14384         * math/w_dremf.c: Likewise.
14385         * math/w_exp10.c: Likewise.
14386         * math/w_exp10f.c: Likewise.
14387         * math/w_exp10l.c: Likewise.
14388         * math/w_exp2.c: Likewise.
14389         * math/w_exp2f.c: Likewise.
14390         * math/w_fmod.c: Likewise.
14391         * math/w_fmodf.c: Likewise.
14392         * math/w_fmodl.c: Likewise.
14393         * math/w_hypot.c: Likewise.
14394         * math/w_hypotf.c: Likewise.
14395         * math/w_hypotl.c: Likewise.
14396         * math/w_j0.c: Likewise.
14397         * math/w_j0f.c: Likewise.
14398         * math/w_j0l.c: Likewise.
14399         * math/w_j1.c: Likewise.
14400         * math/w_j1f.c: Likewise.
14401         * math/w_j1l.c: Likewise.
14402         * math/w_jn.c: Likewise.
14403         * math/w_jnf.c: Likewise.
14404         * math/w_jnl.c: Likewise.
14405         * math/w_lgamma.c: Likewise.
14406         * math/w_lgamma_r.c: Likewise.
14407         * math/w_lgammaf.c: Likewise.
14408         * math/w_lgammaf_r.c: Likewise.
14409         * math/w_lgammal.c: Likewise.
14410         * math/w_lgammal_r.c: Likewise.
14411         * math/w_log.c: Likewise.
14412         * math/w_log10.c: Likewise.
14413         * math/w_log10f.c: Likewise.
14414         * math/w_log10l.c: Likewise.
14415         * math/w_log2.c: Likewise.
14416         * math/w_log2f.c: Likewise.
14417         * math/w_log2l.c: Likewise.
14418         * math/w_logf.c: Likewise.
14419         * math/w_logl.c: Likewise.
14420         * math/w_pow.c: Likewise.
14421         * math/w_powf.c: Likewise.
14422         * math/w_powl.c: Likewise.
14423         * math/w_remainder.c: Likewise.
14424         * math/w_remainderf.c: Likewise.
14425         * math/w_remainderl.c: Likewise.
14426         * math/w_scalb.c: Likewise.
14427         * math/w_scalbf.c: Likewise.
14428         * math/w_scalbl.c: Likewise.
14429         * math/w_sinh.c: Likewise.
14430         * math/w_sinhf.c: Likewise.
14431         * math/w_sinhl.c: Likewise.
14432         * math/w_sqrt.c: Likewise.
14433         * math/w_sqrtf.c: Likewise.
14434         * math/w_sqrtl.c: Likewise.
14435         * math/w_tgamma.c: Likewise.
14436         * math/w_tgammaf.c: Likewise.
14437         * math/w_tgammal.c: Likewise.
14438
14439         * po/ja.po: Update from translation team.
14440
14441 2011-09-29  Andreas Jaeger  <aj@suse.de>
14442
14443         [BZ #13179]
14444         * sunrpc/netname.c (netname2host): Fix logic.
14445
14446         [BZ #6779]
14447         [BZ #6783]
14448         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14449         correctly.
14450         * math/w_remainder.c (__remainder): Likewise.
14451         * math/w_remainderf.c (__remainderf): Likewise.
14452         * math/libm-test.inc (remainder_test): Add test cases.
14453
14454 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14455
14456         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14457         sdiv_qrnnd.
14458
14459 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14460
14461         * string/test-memcmp.c: Avoid unncessary #defines.
14462         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14463
14464 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14465
14466         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14467         Use new sse2 version for core i3 - i7 as it's faster
14468         than sse42 version.
14469         (bit_Prefer_PMINUB_for_stringop): New.
14470         * sysdeps/x86_64/rawmemchr.S: Update.
14471         Replace with faster SSE2 version.
14472         * sysdeps/x86_64/memrchr.S: New file.
14473         * sysdeps/x86_64/memchr.S: Update.
14474         Replace with faster SSE2 version.
14475
14476 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14477
14478         * elf/dl-load.c (lose): Add cast to avoid warning.
14479
14480 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14481
14482         * po/ca.po: Update from translation team.
14483
14484         * inet/getnetgrent_r.c: Hook up nscd.
14485         * nscd/Makefile (routines): Add nscd_netgroup.
14486         (nscd-modules): Add netgroupcache.
14487         (CFLAGS-netgroupcache.c): Define.
14488         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14489         (cache_search): Add const to second parameter.
14490         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14491         INNETGR.
14492         (dbs): Add netgrdb entry.
14493         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14494         (verify_persistent_db): Handle netgrdb.
14495         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14496         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14497         GETFDNETGR.
14498         (netgroup_response_header): Define.
14499         (innetgroup_response_header): Define.
14500         (datahead): Add netgroup_response_header and innetgroup_response_header
14501         elements.
14502         * nscd/nscd.conf: Add entries for netgroup cache.
14503         * nscd/nscd.h (dbtype): Add netgrdb.
14504         (_PATH_NSCD_NETGROUP_DB): Define.
14505         (netgroup_iov_disabled): Declare.
14506         (xmalloc, xcalloc, xrealloc): Move declarations here.
14507         (cache_search): Adjust prototype.
14508         Add netgroup-related prototypes.
14509         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14510         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14511         (__nscd_innetgr): Declare.
14512         * nscd/selinux.c (perms): Use access_vector_t as element type and
14513         add netgroup-related initializers.
14514         * nscd/netgroupcache.c: New file.
14515         * nscd/nscd_netgroup.c: New file.
14516         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14517         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14518         For four parameters use innetgr.
14519         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14520         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14521         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14522         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14523
14524         * nscd/connections.c (register_traced_file): Don't register file
14525         for disabled databases.
14526
14527 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14528
14529         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14530
14531         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14532         from tree and freeing node.
14533
14534 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14535
14536         * nss/nsswitch.c (__nss_database_lookup): Handle
14537         nss_parse_service_list out of memory case.
14538
14539 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14540
14541         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14542         out of memory case.
14543
14544 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14545
14546         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14547         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14548         pass it down.
14549         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14550         elf_machine_rela, elf_machine_lazy_rel.
14551         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14552         (ELF_DYNAMIC_DO_REL): Likewise.
14553         (ELF_DYNAMIC_DO_RELA): Likewise.
14554         (ELF_DYNAMIC_RELOCATE): Likewise.
14555         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14556         to ELF_DYNAMIC_DO_REL.
14557         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14558         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14559         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14560         elf_machine_rela.
14561         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14562         skip_ifunc, don't call ifunc function if non-zero.
14563         (elf_machine_rela): Likewise.
14564         (elf_machine_lazy_rel): Likewise.
14565         (elf_machine_lazy_rela): Likewise.
14566         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14567         (elf_machine_lazy_rel): Likewise.
14568         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14569         Likewise.
14570         (elf_machine_lazy_rel): Likewise.
14571         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14572         Likewise.
14573         (elf_machine_lazy_rel): Likewise.
14574         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14575         (elf_machine_lazy_rel): Likewise.
14576         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14577         (elf_machine_lazy_rel): Likewise.
14578         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14579         (elf_machine_lazy_rel): Likewise.
14580         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14581         (elf_machine_lazy_rel): Likewise.
14582         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14583         (elf_machine_lazy_rel): Likewise.
14584         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14585         (elf_machine_lazy_rel): Likewise.
14586
14587 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14588
14589         * nss/nss_files/files-init.c (_nss_files_init): Use static
14590         initialization for all the *_traced_file variables.
14591
14592 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14593
14594         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14595
14596 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14597
14598         [BZ #13226]
14599         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14600
14601 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14602
14603         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14604         Reread the line before reparsing it.
14605
14606 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14607
14608         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14609
14610 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14611             Maxim Kuvyrkov  <maxim@codesourcery.com>
14612             Joseph Myers  <joseph@codesourcery.com>
14613
14614         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14615         if needed for __stack_chk_guard.
14616
14617 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14618
14619         * sysdeps/posix/spawni.c (script_execute): Always define it.
14620         It will be optimized away if unused.
14621         (maybe_script_execute): New function.
14622         (__spawni): Call it.
14623
14624         * Makerules: Don't include tls.make.
14625         (config-tls): Always set to thread.
14626         * tls.make.c: File removed.
14627
14628 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14629
14630         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14631         * config.make.in (CPPFLAGS-config): New substituted variable.
14632
14633 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14634
14635         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14636
14637         [BZ #13192]
14638         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14639         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14640
14641 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14642
14643         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14644         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14645         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14646         (CALL_FAIL): Likewise.
14647         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14648         (CALL_FAIL): Macro removed.
14649         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14650
14651 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14652
14653         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14654         for __FINITE_MATH_ONLY__ == 1.
14655
14656 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14657
14658         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14659         __ieee754_sqrt instead of sqrt.
14660         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14661         __ieee754_sqrtf instead of sqrtf.
14662         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14663         __floorf instead of floorf.
14664         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14665         __floorf, __truncf instead of floorf, truncf.
14666
14667 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14668
14669         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14670
14671         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14672         __extern_always_inline.
14673         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14674         32-bit.
14675
14676 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14677
14678         * elf/rtld.c (dl_main): Also relocate in dependency order when
14679         doing symbol dependency testing.
14680
14681 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14682
14683         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14684         Always define `refsym'.
14685
14686 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14687
14688         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14689         (__FD_ELT): Renamed from __FDELT.
14690         * misc/bits/select2.h (__FD_ELT): Likewise.
14691         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14692         __FD_MASK instead of __FDELT, __FDMASK.
14693         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14694         Likewise.
14695         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14696         Likewise.
14697
14698         * elf/Makefile (gen-ldd): Fix pattern.
14699
14700         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14701         (init_tls): Likewise.
14702
14703 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14704
14705         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14706
14707 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14708
14709         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14710         `struct cmsghdr *' instead of `void *'.
14711         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14712         Likewise.
14713
14714 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14715
14716         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14717         if non-absolute.
14718         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14719         ldd_rewrite_script.
14720
14721 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14722
14723         * configure.in: Remove --with-tls option.
14724         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14725         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14726         out in case it is missing.
14727         * sysdeps/ia64/elf/configure.in: Likewise.
14728         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14729         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14730         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14731         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14732         * sysdeps/sh/elf/configure.in: Likewise.
14733         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14734         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14735         * sysdeps/x86_64/elf/configure.in: Likewise.
14736         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14737         * sysdeps/mach/hurd/tls.h: Likewise.
14738
14739         [BZ #13067]
14740         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14741
14742         [BZ #13090]
14743         * configure.in: Fix use of AC_INIT.
14744
14745         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14746
14747 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14748
14749         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14750         __set_errno.
14751         * malloc/hooks.c: Likewise.
14752
14753         [BZ #11929]
14754         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14755         variables statically.
14756         (narenas): Initialize.
14757         (list_lock): Initialize.
14758         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14759         initializtion of main_arena and list_lock.  Small cleanups.
14760         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14761         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14762         Add initializers to main_arena and mp_.
14763         (malloc_state): Remove pagesize member.  Change all users to use
14764         GLRO(dl_pagesize).
14765
14766         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14767         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14768         is always initialized.
14769
14770         * malloc/malloc.c: Removed unused configurations and dead code.
14771         * malloc/arena.c: Likewise.
14772         * malloc/hooks.c: Likewise.
14773         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14774
14775         * include/tls.h: Removed.  USE___THREAD must always be defined.
14776         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14777         * elf/dl-libc.c: Likewise.
14778         * elf/dl-tsd.c: Likewise.
14779         * include/errno.h: Likewise.
14780         * include/netdb.h: Likewise.
14781         * include/resolv.h: Likewise.
14782         * inet/herrno-loc.c: Likewise.
14783         * inet/herrno.c: Likewise.
14784         * malloc/arena.c: Likewise.
14785         * malloc/hooks.c: Likewise.
14786         * malloc/malloc.c: Likewise.
14787         * resolv/res-state.c: Likewise.
14788         * resolv/res_libc.c: Likewise.
14789         * sysdeps/i386/dl-machine.h: Likewise.
14790         * sysdeps/ia64/dl-machine.h: Likewise.
14791         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14792         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14793         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14794         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14795         * sysdeps/sh/dl-machine.h: Likewise.
14796         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14797         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14798         * sysdeps/unix/i386/sysdep.S: Likewise.
14799         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14800         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14801         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14802         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14803         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14804         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14805         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14806         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14807         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14808         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14809         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14810         * sysdeps/x86_64/dl-machine.h: Likewise.
14811         * tls.make.c: Likewise.
14812
14813         * configure.in: Remove --with-__thread option.  Make tests for
14814         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14815         tls_model attribute fail if no support is available.  Remove
14816         USE_IN_LIBIO.
14817         * Makeconfig: Adjust for dropped configure option.  All features are
14818         now mandatory.
14819         * Makerules: Likewise.
14820         * Versions.def: Likewise.
14821         * argp/argp-fmtstream.c: Likewise.
14822         * argp/argp-fmtstream.h: Likewise.
14823         * argp/argp-help.c: Likewise.
14824         * assert/assert.c: Likewise.
14825         * config.h.in: Likewise.
14826         * config.make.in: Likewise.
14827         * configure: Likewise.
14828         * configure.in: Likewise.
14829         * csu/Versions: Likewise.
14830         * csu/init.c: Likewise.
14831         * elf/tst-audit2.c: Likewise.
14832         * elf/tst-tls10.c: Likewise.
14833         * elf/tst-tls10.h: Likewise.
14834         * elf/tst-tls11.c: Likewise.
14835         * elf/tst-tls12.c: Likewise.
14836         * elf/tst-tls14.c: Likewise.
14837         * elf/tst-tlsmod11.c: Likewise.
14838         * elf/tst-tlsmod12.c: Likewise.
14839         * elf/tst-tlsmod13.c: Likewise.
14840         * elf/tst-tlsmod13a.c: Likewise.
14841         * elf/tst-tlsmod14a.c: Likewise.
14842         * elf/tst-tlsmod15b.c: Likewise.
14843         * elf/tst-tlsmod16a.c: Likewise.
14844         * elf/tst-tlsmod16b.c: Likewise.
14845         * elf/tst-tlsmod7.c: Likewise.
14846         * elf/tst-tlsmod8.c: Likewise.
14847         * elf/tst-tlsmod9.c: Likewise.
14848         * gmon/gmon.c: Likewise.
14849         * grp/fgetgrent_r.c: Likewise.
14850         * grp/putgrent.c: Likewise.
14851         * hurd/fopenport.c: Likewise.
14852         * include/libc-symbols.h: Likewise.
14853         * include/tls.h: Likewise.
14854         * intl/gettextP.h: Likewise.
14855         * intl/loadinfo.h: Likewise.
14856         * locale/global-locale.c: Likewise.
14857         * locale/localeinfo.h: Likewise.
14858         * mach/devstream.c: Likewise.
14859         * malloc/arena.c: Likewise.
14860         * malloc/set-freeres.c: Likewise.
14861         * misc/err.c: Likewise.
14862         * misc/getttyent.c: Likewise.
14863         * misc/mntent_r.c: Likewise.
14864         * posix/getopt.c: Likewise.
14865         * posix/wordexp.c: Likewise.
14866         * pwd/fgetpwent_r.c: Likewise.
14867         * resolv/Versions: Likewise.
14868         * resolv/res_hconf.c: Likewise.
14869         * shadow/fgetspent_r.c: Likewise.
14870         * shadow/putspent.c: Likewise.
14871         * stdio-common/printf_fphex.c: Likewise.
14872         * stdio-common/tmpfile.c: Likewise.
14873         * stdlib/abort.c: Likewise.
14874         * stdlib/fmtmsg.c: Likewise.
14875         * sunrpc/auth_unix.c: Likewise.
14876         * sunrpc/clnt_perr.c: Likewise.
14877         * sunrpc/clnt_tcp.c: Likewise.
14878         * sunrpc/clnt_udp.c: Likewise.
14879         * sunrpc/clnt_unix.c: Likewise.
14880         * sunrpc/openchild.c: Likewise.
14881         * sunrpc/svc_simple.c: Likewise.
14882         * sunrpc/svc_tcp.c: Likewise.
14883         * sunrpc/svc_udp.c: Likewise.
14884         * sunrpc/svc_unix.c: Likewise.
14885         * sunrpc/xdr.c: Likewise.
14886         * sunrpc/xdr_array.c: Likewise.
14887         * sunrpc/xdr_rec.c: Likewise.
14888         * sunrpc/xdr_ref.c: Likewise.
14889         * sunrpc/xdr_stdio.c: Likewise.
14890
14891 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14892
14893         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14894
14895 2011-07-03  Andreas Jaeger  <aj@suse.de>
14896
14897         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14898         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14899         regenerate with gen-libm-tests.pl.
14900
14901 2010-05-12  Petr Baudis  <pasky@suse.cz>
14902
14903         [BZ #11589]
14904         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14905         around j0() zero points by switching to j1().
14906         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14907         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14908         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14909         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14910
14911 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14912
14913         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14914         instead of 0.
14915         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14916         instead of 0.                              .
14917         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14918         Patch in part by Pavel Roskin <proski@gnu.org>.
14919
14920         [BZ #13138]
14921         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14922         realloc.
14923         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14924         Free memory block if necessary.
14925
14926         [BZ #12847]
14927         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14928         be NULL.  Don't lock in this case.
14929
14930 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14931
14932         * elf/elf.h (ELFOSABI_GNU): New macro.
14933         (ELFOSABI_LINUX): Define to that.
14934
14935 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14936
14937         * string/strncat.c (strncat): Undef the symbol in case it has been
14938         defined in bits/string.h.
14939
14940 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14941
14942         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14943
14944         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14945         link map.
14946
14947 2011-08-17  Andreas Jaeger  <aj@suse.de>
14948
14949         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14950
14951 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14952             Ian Lance Taylor  <iant@google.com>
14953
14954         * math/libm-test.inc (lround_test): New testcase.
14955         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14956
14957 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14958
14959         * Makefile: Remove support for automatic cvs check-ins.
14960         * Makerules: Likewise.
14961         * config.make.in: Likewise.
14962         * configure.in: Likewise.
14963         * intl/Makefile: Likewise.
14964         * locale/Makefile: Likewise.
14965         * po/Makefile: Likewise.
14966         * posix/Makefile: Likewise.
14967         * sysdeps/gnu/Makefile: Likewise.
14968         * sysdeps/mach/hurd/Makefile: Likewise.
14969         * sysdeps/sparc/sparc32/Makefile: Likewise.
14970
14971         [BZ #13118]
14972         * posix/Makefile (bug-regex32-ENV): Define.
14973         Patch by John Stanley <jpsinthemix@verizon.net>.
14974
14975         * misc/Makefile (headers): Add bits/select2.h.
14976         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14977         * misc/bits/select2.h: New file.
14978         * include/bits/select2.h: New file.
14979         * debug/Makefile (routines): Add fdelt_chk.
14980         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14981         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14982         FD_ISSET.
14983         * debug/fdelt_chk.c: New file.
14984
14985         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14986         * wcsmbs/test-wmemcmp.c: Likewise.
14987         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14988         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14989
14990 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14991
14992         * string/Makefile (strop-tests): Add memcmp.
14993         * string/test-wmemcmp.c: New file.
14994         * string/test-memcmp.c: Add wmemcmp support.
14995
14996 2011-09-08  Roland McGrath  <roland@hack.frob.com>
14997
14998         [BZ #13153]
14999         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
15000         2011-07-19 change.
15001
15002         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
15003         garbage value in a __mach_port_mod_refs call in the cases of the
15004         task-self and thread-self ports.
15005
15006 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15007
15008         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
15009
15010 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15011
15012         * elf/dl-load.c (lose): Check for non-null L.
15013
15014 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15015
15016         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15017
15018         * elf/dl-libc.c (dlerror_run): Pass back error code from
15019         dl_catch_error.
15020
15021         [BZ #13123]
15022         * elf/dl-load.c (lose): Free l_origin if it is valid.
15023
15024         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15025         names.
15026         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15027         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15028         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15029         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15030         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15031         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15032
15033 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15034
15035         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15036         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15037         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15038         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15039         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15040         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15041         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15042         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15043         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15044         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15045
15046 2011-08-15  Alan Modra  <amodra@gmail.com>
15047
15048         [BZ #13092]
15049         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15050         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15051         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15052         ppc_mcount to static-only-routines.
15053         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15054         __mcount_internal.
15055         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15056         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15057
15058 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15059
15060         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15061         for finite and infinity parameters.
15062
15063 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15064
15065         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15066         and add nop instructions for throughput optimization.
15067         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15068
15069 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15070
15071         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15072         aligned copy for power7 with vector-scalar instructions.
15073         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15074
15075 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15076
15077         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15078         AVX check.
15079
15080 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15081
15082         [BZ #13144]
15083         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15084         last change.
15085
15086 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15087
15088         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15089         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15090         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15091         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15092         clock_gettime.
15093
15094 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15095
15096         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15097         Forgot to demangle the pointer.
15098
15099         * sysdeps/i386/sysdep.h: Define atom_text_section.
15100         * sysdeps/x86_64/sysdep.h: Likewise.
15101         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15102         section with atom_text_section.
15103         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15104         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15105         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15106         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15107         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15108
15109         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15110         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15111         already be defined.  Change to take two parameters and don't assign
15112         result to variable.  Adjust all users.
15113         Define INTERNAL_GETTIME if not already defined.
15114         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15115         call.
15116         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15117         HAVE_CLOCK_GETTIME_VSYSCALL.
15118         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15119
15120         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15121         gettimeofday vsyscall, just use time.
15122
15123 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15124
15125         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15126         <errno.h>.
15127
15128 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15129
15130         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15131         syscall on x86-64.
15132         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15133         syscall.
15134         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15135         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15136         syscall if possible.
15137
15138 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15139
15140         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15141         e_ident.  Don't pass to find_mapsXX.
15142         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15143
15144 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15145
15146         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15147         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15148         * sysdeps/x86_64/multiarch/strchr.S: Update.
15149         Check bit_slow_BSF bit.
15150         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15151         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15152         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15153
15154 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15155
15156         [BZ #13134]
15157         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15158         before glibc 2.15.
15159         (tryshell): Define.
15160         (__spawni): Change last parameter to be flag.  Test
15161         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15162         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15163         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15164         * posix/spawni.c: Likewise.
15165         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15166         * posix/spawnp.c: Likewise.  Change normal version to use
15167         SPAWN_XFLAGS_USE_PATH.
15168         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15169         SPAWN_XFLAGS_TRY_SHELL.
15170
15171         [BZ #13150]
15172         * posix/glob.h: Remove gcc 1.x support.
15173
15174         [BZ #13068]
15175         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15176
15177 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15178
15179         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15180         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15181         strrchr-sse2-bsf
15182         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15183         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15184         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15185         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15186         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15187         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15188
15189 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15190
15191         * sysdeps/x86_64/wcscmp.S: New file.
15192
15193         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15194         wcscmp-c wcscmp-sse2
15195         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15196         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15197         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15198         * wcsmbs/wcscmp.c: Allow renaming.
15199
15200 2011-09-05  David S. Miller  <davem@davemloft.net>
15201
15202         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15203         stack slot, rather than the struct return pointer slot.
15204         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15205         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15207         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15208
15209 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15210
15211         * po/ja.po: Update from translation team.
15212
15213         [BZ #13144]
15214         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15215         kernel in 64-bit binaries.
15216
15217 2011-09-01  David S. Miller  <davem@davemloft.net>
15218
15219         * elf/elf.h (HWCAP_SPARC_*): Move to..
15220         * sysdeps/sparc/sysdep.h: this new file and add new values.
15221         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15222         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15223         _DL_HWCAP_COUNT to 24.
15224         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15225         entries.
15226         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15227         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15228         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15229         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15230         instead of magic constants.
15231         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15232
15233 2011-08-31  David S. Miller  <davem@davemloft.net>
15234
15235         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15236         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15237         Reimplement to do errno handling inline.
15238         (SYSCALL_ERROR_HANDLER): New macro.
15239         (__SYSCALL_STRING): Do not do errno handling in asm.
15240         (__CLONE_SYSCALL_STRING): Delete.
15241         (__INTERNAL_SYSCALL_STRING): Delete.
15242         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15243         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15244         (PSEUDO): Reimplement to do errno handling inline.
15245         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15246         (SYSCALL_ERROR_HANDLER): New macro.
15247         (__SYSCALL_STRING): Do not do errno handling in asm.
15248         (__CLONE_SYSCALL_STRING): Delete.
15249         (__INTERNAL_SYSCALL_STRING): Delete.
15250         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15251         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15252         i386.
15253         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15254         (inline_syscall*): Add 'err' argument.
15255         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15256         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15257         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15258         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15259
15260         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15261         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15262
15263 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15264
15265         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15266
15267 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15268
15269         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15270         directive.
15271
15272 2011-08-24  David S. Miller  <davem@davemloft.net>
15273
15274         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15275
15276 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15277
15278         * elf/Makefile: Add rules to build and run unload8 test.
15279         * elf/unload8.c: New file.
15280         * elf/unload8mod1.c: New file.
15281         * elf/unload8mod1x.c: New file.
15282         * elf/unload8mod2.c: New file.
15283         * elf/unload8mod3.c: New file.
15284
15285         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15286         it wasn't used.
15287
15288 2011-08-23  David S. Miller  <davem@davemloft.net>
15289
15290         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15291         subtract stack bias.
15292         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15293         %sp not %fp in calculations.
15294         (_JMPBUF_UNWINDS_ADJ): Likewise.
15295
15296         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15297         (aio_suspend): Call it to force an exception region around the
15298         AIO_MISC_WAIT() invocation.
15299
15300 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15301
15302         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15303         backslash.
15304
15305 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15306
15307         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15308         protection macro.
15309         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15310         and <dl-machine.h>.
15311         (Elf64_FuncDesc): Remove.
15312
15313 2011-08-22  David S. Miller  <davem@davemloft.net>
15314
15315         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15316         sigaltstack check, add missing cfi directives.
15317         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15318         missing cfi directives, and sigaltstack handling.
15319
15320 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15321
15322         [BZ #11724]
15323         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15324         object is seen twice.
15325         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15326
15327         * elf/Makefile (distribute): Add tst-initorder2.c.
15328         (tests): Add tst-initorder2.
15329         (modules-names): Add tst-initorder2a tst-initorder2b
15330         tst-initorder2c tst-initorder2d.  Add rules to build them.
15331         ($(objpfx)tst-initorder2.out): New rule.
15332         * elf/tst-initorder2.c: New file.
15333         * elf/tst-initorder2.exp: New file.
15334
15335 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15336
15337         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15338
15339         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15340         dependencies back to end of function.
15341
15342         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15343         $(elfobjdir)/ld.so.
15344
15345 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15346
15347         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15348         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15349         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15350         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15351         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15352         of __vdso_gettimeofday.
15353         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15354         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15355         attribute_hidden.
15356         (_libc_vdso_platform_setup): Remove initialization of
15357         __vdso_gettimeofday and __vdso_time.
15358
15359 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15360
15361         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15362         and fgetc_unlocked.
15363         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15364         getc_unlocked.
15365
15366         * elf/dl-open.c (add_to_global): Report additions to the global scope
15367         for LD_DEBUG=scopes.
15368         (dl_open_worker): Also print scope of newly loaded dependencies.
15369         (_dl_show_scope): Indicate if there is no scope.
15370
15371         [BZ #13114]
15372         * stdio-common/Makefile (tests): Add bug24.
15373         * stdio-common/bug24.c: New file.
15374
15375 2011-08-19  Andreas Jaeger  <aj@suse.de>
15376
15377         [BZ #13114]
15378         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15379         non-existant file when using close-on-exec mode.
15380
15381 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15382
15383         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15384         the very first instruction.
15385
15386         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15387         the CFI state in the end.
15388         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15389         inclusion of dl-trampoline.h.
15390         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15391
15392 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15393
15394         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15395         expectations for long double.
15396
15397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15398         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15399
15400 2011-08-14  David S. Miller  <davem@davemloft.net>
15401
15402         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15403         artificual limit depends upon the system page size.
15404
15405 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15406
15407         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15408         * resolv/Makefile: Define CFLAGS-libresolv.
15409
15410 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15411
15412         * nss/makedb.c (compute_tables): Make variables used in nested
15413         function static.
15414
15415 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15416
15417         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15418         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15419         if buffer was too small.
15420
15421         * elf/pldd.c (main): Attach to all threads in the process.
15422         Rewrite /proc handling to use *at functions.
15423
15424 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15425
15426         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15427         specifies first scope to show.
15428         (dl_open_worker): Update callers.  Move printing scope of new
15429         object to before the relocation.
15430         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15431         * sysdeps/generic/ldsodefs.h: Update declaration.
15432
15433         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15434         string for the scope number.
15435
15436 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15437
15438         * nscd/servicescache.c (cache_addserv): Make sure written is always
15439         initialized.
15440
15441 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15442
15443         * sysdeps/i386/i486/bits/atomic.h
15444         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15445         statement expression, so as to suppress "set but not used" warning.
15446         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15447
15448         * string/strncat.c (STRNCAT): Use prototype definition.
15449
15450         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15451         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15452         -Iprograms here.
15453         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15454         (localedef-modules): Add localedef.
15455         (locale-modules): Add locale.
15456
15457         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15458         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15459         to avoid a warning.
15460
15461 2011-08-14  David S. Miller  <davem@davemloft.net>
15462
15463         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15464         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15465
15466 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15467
15468         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15469         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15470         * elf/rtld.c (dl_main): Set l_name of vDSO.
15471         Call _dl_show_scope when DL_DEBUG_SCOPES.
15472         (process_dl_debug): Recognize scopes flag and also set it for all.
15473         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15474         Declare _dl_show_scope.
15475
15476         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15477         (do_dlopen): Pass caller_dlopen to dl_open.
15478         (__libc_dlopen_mode): Initialize caller_dlopen.
15479
15480         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15481         of libc.  Make tolower call locale-independent.  Optimize a bit by
15482         using isdigit instead of isalnum.
15483         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15484
15485 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15486
15487         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15488         was a dependency or dynamically loaded.
15489
15490 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15491
15492         * intl/l10nflist.c: Allow architecture-specific pop function.
15493         * sysdeps/x86_64/l10nflist.c: New file.
15494
15495         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15496         classification.
15497
15498 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15499
15500         * include/dirent.h: Add libc_hidden_proto for scandirat and
15501         scandirat64.  Don't declare __scandirat64.
15502         * dirent/scandirat.c: Add libc_hidden_def.
15503         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15504         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15505
15506 2011-08-10  David S. Miller  <davem@davemloft.net>
15507
15508         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15509         enum.
15510         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15511         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15512         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15513
15514 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15515
15516         * Versions.def [libc]: Add GLIBC_2.15.
15517         * dirent/Makefile (routines): Add scandirat and scandirat64.
15518         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15519         GLIBC_2.15.
15520         * dirent/dirent.h: Declare scandirat and scandirat64.
15521         * dirent/scandirat.c: New file.
15522         * dirent/scandirat64.c: New file.
15523         * sysdeps/wordsize-64/scandirat.c: New file.
15524         * sysdeps/wordsize-64/scandirat64.c: New file.
15525         * dirent/opendir.c: Define opendirat.
15526         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15527         using scandirat.
15528         * dirent/scandir64.c: Adjust for scandir.c change.
15529         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15530         __scandirat64, and __scandir_cancel_handler.
15531         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15532         additional parameter and use openat instead of open (outside of ld.so).
15533         Add new __opendir as wrapper around __opendirat.
15534         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15535         here without requiring old scandirat implementation.
15536
15537 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15538
15539         * dirent/scandir.c (cancel_handler): Renamed to
15540         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15541         defined.  Adjust users.
15542         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15543         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15544
15545 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15546
15547         * string/test-string.h (IMPL): Use __STRING to expand name and then
15548         stringify it.
15549
15550         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15551         of cleanups.
15552
15553 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15554
15555         * string/Makefile: Update.
15556         (strop-tests): Append strncat.
15557         * string/test-wcscmp.c: New file.
15558         New comprehensive test for wcscmp.
15559         * string/test-strcmp.c: Update.
15560         (WIDE): New define.
15561
15562 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15563
15564         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15565         line.
15566
15567 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15568
15569         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15570         encoding to ACE if AI_IDN.
15571
15572 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15573
15574         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15575         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15576
15577 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15578
15579         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15580         Fix overflow bug in strncat.
15581         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15582
15583         * string/test-strncat.c: Update.
15584         Add new tests for checking overflow bugs.
15585
15586 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15587
15588         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15589         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15590         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15591         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15592         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15593         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15594         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15595         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15596         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15597
15598         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15599         (USE_AS_STRCAT): Define.
15600         Add strcat and strncat support.
15601         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15602
15603 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15604
15605         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15606         __n bigger than INT_MAX+1.
15607         (__strncmp_g): Likewise.
15608
15609 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15610
15611         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15612         * libio/stido.h: Likewise.
15613
15614         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15615         (AF_NFC): Define.
15616         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15617         (AF_NFC): Define.
15618
15619         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15620         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15621         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15622         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15623         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15624
15625         [BZ #13021]
15626         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15627         installed.
15628
15629         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15630         typo.
15631         (_dl_x86_64_save_sse): Likewise.
15632
15633 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15634
15635         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15636         OSXSAVE.
15637         (_dl_x86_64_save_sse): Likewise.
15638
15639         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15640
15641         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15642
15643 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15644
15645         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15646         change.
15647         (_dl_x86_64_save_sse): Use correct AVX check.
15648
15649 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15650
15651         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15652         bug in strncpy/strncat.
15653         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15654
15655 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15656
15657         * string/tester.c (test_strcat): Add tests for different alignments
15658         of source and destination.
15659         (test_strncat): Likewise.
15660
15661 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15662
15663         [BZ #12852]
15664         * posix/glob.c (glob): Check passed in values before using them in
15665         expressions to avoid some overflows.
15666         (glob_in_dir): Likewise.
15667
15668         [BZ #13007]
15669         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15670         check for AVX enablement so that we don't crash with old kernels and
15671         new hardware.
15672         * elf/tst-audit4.c: Add same checks here.
15673         * elf/tst-audit6.c: Likewise.
15674
15675         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15676
15677 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15678
15679         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15680
15681 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15682
15683         * po/cs.po: Update from translation team.
15684         * po/bg.po: Likewise.
15685
15686 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15687
15688         * misc/sys/cdefs.h: Add support for const attribute.
15689         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15690         to gnu_dev_{major,minor,makedev} functions.
15691
15692 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15693
15694         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15695
15696 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15697
15698         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15699         strlen results.
15700
15701 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15702
15703         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15704         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15705         register in order to avoid conflicts with the soft frame pointer
15706         being held in r11 when necessary.
15707         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15708         (INTERNAL_VSYSCALL_NCS): Likewise.
15709
15710 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15711
15712         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15713         * elf/dl-fini.c (_dl_fini): Adjust caller.
15714         * elf/dl-close.c (_dl_close_worker): Likewise.
15715         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15716
15717 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15718
15719         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15720         "aux_cache->nlibs < 0".
15721
15722         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15723         in the reload-count case.
15724
15725 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15726
15727         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15728         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15729         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15730         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15731         * sysdeps/x86_64/multiarch/strcat.S: New file.
15732         * sysdeps/x86_64/multiarch/strncat.S: New file.
15733         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15734         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15735         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15736         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15737         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15738         (USE_AS_STRCAT): Define.
15739         Add strcat and strncat support.
15740         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15741         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15742         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15743         * string/strncat.c: Update.
15744         (USE_AS_STRNCAT): Define.
15745         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15746         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15747         and i7.
15748         * sysdeps/x86_64/multiarch/init-arch.h
15749         (bit_Prefer_PMINUB_for_stringop): New.
15750         (index_Prefer_PMINUB_for_stringop): Likewise.
15751         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15752         bit_Prefer_PMINUB_for_stringop.
15753
15754 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15755
15756         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15757         buffer64.
15758         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15759         of casting of buffer.
15760         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15761         buffer32 and buffer64.
15762         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15763         writes instead of casting of buffer.
15764         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15765         buffer32.
15766         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15767         casting of buffer.
15768
15769 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15770
15771         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15772
15773 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15774
15775         * nscd/nscd.c (termination_handler): Don't do anything for a database
15776         if it has not yet been initialized.
15777
15778 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15779
15780         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15781
15782 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15783
15784         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15785
15786 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15787
15788         * po/nl.po: Update from translation team.
15789         * po/sv.po: Likewise.
15790
15791 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15792
15793         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15794         now disallowed by GCC.
15795
15796         * configure.in (use-default-link): Default to yes if a test -shared
15797         link meets our qualifications.
15798         * configure: Regenerated.
15799
15800         * config.make.in (output-format): New variable.
15801         * configure.in: Check for ld --print-output-format support.
15802         * configure: Regenerated.
15803         * Makerules ($(common-objpfx)format.lds)
15804         [$(output-format) != unknown]: Just use $(output-format),
15805         instead of the linker-script munging.
15806
15807 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15808
15809         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15810         of $(common-objpfx)shlib.lds.
15811         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15812
15813         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15814         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15815
15816         * configure.in (-z relro check): Adjust test code to add a large
15817         writable data section after it.
15818         * configure: Regenerated.
15819
15820 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15821
15822         * configure.in (-z relro check): Fix test code to make the variable
15823         truly const.
15824         * configure: Regenerated.
15825
15826 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15827
15828         * nscd/nscd.h (struct traced_file): Define.
15829         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15830         elements.  Add traced_files.
15831         (inotify_fd): Declare.
15832         (register_traced_file): Declare.
15833         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15834         (inotify_fd): Export.
15835         (resolv_conf_descr): Remove.
15836         (nscd_init): Move inotify descriptor creation to main.
15837         Don't register files for notification here.
15838         (register_traced_file): New function.
15839         (invalidate_cache): Don't use reset_res to determine whether to call
15840         res_init, go through the list of registered files.
15841         (main_loop_poll): The inotify descriptors are now stored in the
15842         structures for the traced files.
15843         (main_loop_epoll): Likewise
15844         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15845         to __nss_disable_nscd.
15846         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15847         for a database anymore.  Check the records for all the registered
15848         files instead.
15849         * nss/Makefile (libnss_files-routines): Add files-init.
15850         (libnss_db-routines): Add db-init.
15851         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15852         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15853         * nss/nss_db/db-init.c: New file.
15854         * nss/nss_files/files-init.c: New file.
15855         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15856         __nss_lookup_function.
15857         (__nss_lookup_function): Call nss_load_library.
15858         (nss_load_all_libraries): New function.
15859         (__nss_disable_nscd): Take parameter with callback function for files
15860         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15861         used for the cached services.
15862         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15863         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15864         options for features to all the files in nscd.
15865
15866         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15867
15868 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15869
15870         * csu/elf-init.c (__libc_csu_init): Comment typo.
15871
15872 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15873
15874         * po/pl.po: Update from translation team.
15875         * po/ja.po: Likewise.
15876         * po/ru.po: Likewise.
15877         * po/ko.po: Likewise.
15878         * po/fr.po: Likewise.
15879
15880 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15881
15882         * configure.in (.ctors/.dtors header and trailer check):
15883         Use an empirical test on a built program.
15884         * configure: Regenerated.
15885
15886         * configure.in (-z relro check): Use an empirical test on a built DSO.
15887         Detect, but do not require, on ia64.
15888         * configure: Regenerated.
15889
15890         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15891         Update tests that use readelf to use $READELF instead.
15892         * configure: Regenerated.
15893
15894 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15895
15896         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15897         if the result is not used.
15898
15899 2011-07-05  Andreas Jaeger  <aj@suse.de>
15900
15901         [BZ#9696]
15902         * stdlib/tst-strtod.c: Add testcase.
15903
15904 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15905
15906         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15907         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15908         The latter has a higher limit.  Take additional parameter to pass to
15909         the new function.
15910         (__pathconf): Pass file to __statfs_link_max.
15911         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15912         __statfs_link_max.
15913         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15914         __statfs_link_max.
15915
15916         [BZ #12868]
15917         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15918         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15919         Handle Lustre.
15920         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15921         (__statfs_filesize_max): Likewise.
15922         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15923
15924 2011-07-05  Andreas Jaeger  <aj@suse.de>
15925
15926         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15927
15928 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15929
15930         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15931         `status' variable.
15932         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15933         Likewise.
15934
15935 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15936
15937         * Makefile (strop-tests): Add strncat.
15938         * string/test-strncat.c: New file.
15939
15940 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15941
15942         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15943
15944 2011-06-21  Andreas Jaeger  <aj@suse.de>
15945
15946         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15947         Copy rule from iconvdata/Makefile.
15948
15949 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15950
15951         [BZ #12922]
15952         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15953         but no long options are defined, just return 'W'.
15954
15955 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15956
15957         [BZ #9696]
15958         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15959
15960 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15961
15962         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15963         netgroups to read.
15964         (innetgr): Likewise.
15965
15966 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15967
15968         * config.make.in (install_root): Default to $(DESTDIR).
15969
15970 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15971
15972         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15973
15974 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15975
15976         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15977
15978         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15979         containing directory rather than embedding absolute directory names.
15980
15981         * scripts/check-local-headers.sh: Rewritten using awk.
15982         Match by word, not by line.  Print error messages for matches.
15983         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15984
15985         * Makerules [shlib-lds-flags empty]:
15986         ($(common-objpfx)libc_pic.opts): New target.
15987         ($(common-objpfx)libc_pic.os.clean): New target.
15988         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15989
15990         * config.make.in (OBJCOPY): New variable.
15991         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15992         * configure: Regenerated.
15993
15994         * config.make.in (use-default-link): New variable.
15995         * configure.in (use_default_link): Grok --with-default-link to set it.
15996         * configure: Regenerated.
15997         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15998         (shlib-lds, shlib-lds-flags): Define to empty.
15999
16000         * Makerules (shlib-lds): New variable.
16001         (shlib-lds-flags): New variable.
16002         (build-shlib, build-moduile, build-module-asneeded): Use it.
16003         ($(common-objpfx)libc.so): Use $(shlib-lds).
16004         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
16005         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
16006
16007         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
16008         DT_FLAGS/DT_FLAGS_1 with zero flags.
16009
16010         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16011         linker script munging.
16012
16013 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16014
16015         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16016         as 128-bit value.
16017         * crypt/sha512.c (sha512_process_block): Perform total addition using
16018         128-bit if possible.
16019         (__sha512_finish_ctx): Likewise.
16020         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16021         as 64-bit value.
16022         * crypt/sha256.c (SWAP64): Define.
16023         (sha256_process_block): Perform total addition using 64-bit if
16024         possible.
16025         (__sha256_finish_ctx): Likewise.
16026
16027 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16028
16029         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16030         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16031         * nscd/hstcache.c (cache_addhst): Likewise.
16032         * nscd/grpcache.c (cache_addgr): Likewise.
16033         * nscd/aicache.c (addhstaiX): Likewise
16034         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16035
16036 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16037
16038         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16039         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16040         * nscd/hstcache.c (cache_addhst): Likewise.
16041         * nscd/grpcache.c (cache_addgr): Likewise.
16042         * nscd/aicache.c (addhstaiX): Likewise
16043
16044 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16045
16046         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16047         domain only when needed.
16048
16049 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16050
16051         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16052         is always restored.
16053
16054 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16055
16056         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16057         are re-adding the entry.
16058         * nscd/servicescache.c (cache_addserv): Likewise.
16059
16060 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16061
16062         * sysdeps/generic/dl-irel.h: fix protection against multiple
16063         inclusions.
16064         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16065
16066 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16067
16068         [BZ #12935]
16069         * malloc/memusage.sh: Fix quoting in message.
16070         * debug/xtrace.sh: Likewise.
16071
16072         * configure.in: Remove support for --experimental-malloc option, make
16073         it the default.
16074         * config.make.in: Likewise.
16075         * malloc/Makefile: Likewise.
16076
16077 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16078
16079         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16080         two-byte characters.
16081
16082 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16083
16084         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16085         AC_CACHE_CHECK invocation.
16086         * configure: Regenerated.
16087
16088         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16089
16090 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16091
16092         [BZ #12350]
16093         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16094         bit from old_res_options.
16095
16096         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16097
16098         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16099         value type for setfct.
16100
16101 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16102
16103         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16104         __gettimeofday instead of gettimeofday.
16105
16106 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16107
16108         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16109
16110 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16111
16112         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16113
16114         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16115         info.
16116
16117 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16118
16119         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16120         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16121         strcpy-sse2-unaligned strncpy-sse2-unaligned
16122         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16123         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16124         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16125         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16126         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16127         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16128         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16129         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16130         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16131         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16132         (STRCPY): Support SSE2 and SSSE3 versions.
16133
16134 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16135
16136         [BZ #12874]
16137         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16138         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16139         kernels which artificially limit size of requests.
16140
16141 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16142
16143         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16144         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16145         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16146         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16147         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16148         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16149         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16150         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16151         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16152         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16153         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16154         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16155         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16156         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16157         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16158         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16159         Enable unaligned load optimization for Intel Core i3, i5 and i7
16160         processors.
16161         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16162         Define.
16163         (index_Fast_Unaligned_Load): Define.
16164         (HAS_FAST_UNALIGNED_LOAD): Define.
16165
16166 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16167
16168         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16169
16170 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16171
16172         [BZ #12907]
16173         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16174         until it is clear that the information is realy needed.
16175         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16176
16177 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16178
16179         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16180
16181 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16182
16183         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16184         /sys/devices/system/cpu/online if it is usable.
16185
16186         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16187         reading the information from the /proc filesystem to once a second.
16188
16189 2011-06-21  Andreas Jaeger  <aj@suse.de>
16190
16191         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16192         NULL after inclusion of kernel headers.
16193
16194 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16195
16196         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16197         calls to internal_setent.
16198
16199         [BZ #12885]
16200         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16201         addresses using gethostbyname4_r ignore IPv4 addresses.
16202
16203         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16204         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16205
16206         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16207
16208 2011-06-20  David S. Miller  <davem@davemloft.net>
16209
16210         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16211         inclusions.
16212         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16213
16214         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16215         (elf_irel): Use it.
16216         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16217         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16218         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16219         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16220         * sysdeps/x86_64/dl-irel.h: Likewise.
16221
16222         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16223         * elf/dl-sym.c: Likewise.
16224
16225 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16226
16227         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16228         need to dereference resplen2.
16229
16230 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16231
16232         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16233
16234 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16235
16236         * Makeconfig: Define vardbdir and inst_vardbdir.
16237         * nss/Makefile: Add rules to install db-Makefile.
16238
16239         * nss/nss_db/db-XXX.c: Cleanup.
16240
16241         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16242         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16243         GLIBC_PRIVATE.
16244         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16245         * nss/makedb.c: Implement -g option to specify that value strings
16246         are generated and should not be added to table iterated over for
16247         get*ent calls.
16248         * nss/nss_db/db-initgroups.c: New file.
16249
16250         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16251         interface.
16252
16253         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16254         (internal_getgrouplist): Adjust to name change.
16255         Update use_initgroups_entry if this is not the first call.
16256         * nss/databases.def: Add initgroups entry.
16257
16258         * nss/makedb.c (compute_tables): Check result of multiple hash table
16259         sizes to minimize maximum chain length.
16260
16261 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16262
16263         * Versions.def: Add entry for libnss_db.
16264         * shlib-versions: Likewise.
16265         * nss/Makefile: Add rules to build libnss_db.
16266         * nss/Versions: Add libnss_db information.  Organize libnss_files
16267         entries better.
16268         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16269         makedb progra.  Some minor improvements to generate smaller files.
16270         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16271         here from...
16272         * nss/makedb.c: ...here.
16273         Improve database format to be smaller and require less memory at
16274         runtime.
16275         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16276         db anymore.
16277         * nss/nss_db/db-netgrp.c: Likewise.
16278         * nss/nss_db/db-open.c: Likewise.
16279         * nss/nss_files/flies-XXX.x: Adjust comments.
16280         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16281         * nss/nss_files/files-grp.c: Likewise.
16282         * nss/nss_files/files-hosts.c: Likewise.
16283         * nss/nss_files/files-network.c: Likewise.
16284         * nss/nss_files/files-proto.c: Likewise.
16285         * nss/nss_files/files-pwd.c: Likewise.
16286         * nss/nss_files/files-rpc.c: Likewise.
16287         * nss/nss_files/files-service.c: Likewise.
16288         * nss/nss_files/files-sgrp.c: Likewise.
16289         * nss/nss_files/files-spwd.c: Likewise.
16290         * nss/nss_db/db-alias.c: Removed.
16291         * nss/nss_db/dummy-db.h: Removed.
16292
16293 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16294
16295         * nss/makedb.c: Rewritten to not use database library.
16296         * nss/Makefile: Update to build new makedb program.
16297
16298 2011-06-14  Andreas Jaeger  <aj@suse.de>
16299
16300         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16301         memset declaration.
16302
16303 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16304
16305         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16306         tmpbuf.
16307
16308 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16309
16310         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16311         * elf/Makefile ($(objpfx)ld.so): Likewise.
16312
16313         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16314         Don't list ld.so twice in dependencies.
16315
16316         * posix/bug-regex31.c: Include <stdlib.h>.
16317
16318         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16319
16320         * nis/nss_compat/compat-spwd.c
16321         (getspent_next_nss_netgr): Remove unused variable.
16322         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16323
16324         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16325         nonmembers" output to use the right array.
16326
16327         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16328
16329         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16330
16331         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16332         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16333         * catgets/gencat.c (read_input_file): Likewise.
16334         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16335
16336         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16337         variable definition inside #if's controlling its use.
16338
16339         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16340
16341         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16342
16343         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16344
16345         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16346         unreachable code.
16347
16348         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16349
16350         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16351         * configure: Regenerated.
16352
16353         * Makerules: Revert last change.
16354         * elf/Makefile: Likewise.
16355
16356 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16357
16358         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16359         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16360         (reloc-link): Likewise.
16361
16362 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16363
16364         * elf/Makefile: Add rules to build pldd.
16365         * elf/pldd.c: New file.
16366         * elf/pldd-xx.c: New file.
16367
16368 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16369
16370         * version.h: Update for 2.15 development version.
16371
16372 2011-06-07  David S. Miller  <davem@davemloft.net>
16373
16374         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16375         ifuncs.
16376         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16377         elf_machine_lazy_rel): Likewise.
16378         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16379         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16380         elf_machine_lazy_rel): Likewise.
16381         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16382         dl_hwcap via passed in argument.
16383         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16384         Likewise.
16385
16386 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16387
16388         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16389
16390 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16391
16392         [BZ #12849]
16393         * manual/fdl-1.1.texi: New file, verbatim from:
16394         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16395         * manual/lgpl-2.1.texi: New file, verbatim from:
16396         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16397         * manual/Makefile (licenses): New variable, list those new file names.
16398         (texis): Use it.
16399         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16400
16401         * manual/fdl.texi: File removed.
16402         * manual/lesser.texi: File removed.
16403         * manual/libc.texinfo (Copying, Documentation License):
16404         Use new @include file names, put @appendix directive before @include.
16405
16406 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16407
16408         [BZ #12841]
16409         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16410         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16411         (mq_open): Add __NTH.
16412
16413 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16414
16415         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16416         Assume Intel Core i3/i5/i7 processor if AVX is available.
16417
16418 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16419
16420         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16421         typo.
16422
16423 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16424
16425         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16426         memory.  Use alloca_account.  Fix memory leak when retrying.
16427
16428 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16429
16430         * version.h (RELEASE): Bump for 2.14 release.
16431         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16432
16433         * config.make.in (RANLIB): Remove entry.
16434
16435 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16436
16437         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16438         (libc.pot): Work around missing support for .ksh extension in xgettext.
16439
16440         [BZ #12684]
16441         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16442         if both request failed.
16443         (send_dg): In case of server errors clear resplen or *resplen2.
16444
16445         [BZ #12454]
16446         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16447         when there are multiple maps.
16448         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16449         (_dl_fini): Remove test here.
16450
16451         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16452
16453 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16454
16455         [BZ #12350]
16456         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16457         bit from old_res_options.
16458         (gaih_inet): Likewise.
16459
16460         [BZ #11099]
16461         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16462         as signed.
16463
16464         * resolv/res_init.c (res_setoptions): Make the code more compact.
16465
16466         [BZ #11558]
16467         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16468         set RES_USEVC.
16469
16470         [BZ #11634]
16471         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16472
16473         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16474
16475         [BZ #11781]
16476         * malloc/malloc.h: Declare malloc hook variables as volatile.
16477
16478         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16479         in last patch.
16480
16481         [BZ #11799]
16482         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16483         raise in the comment.
16484         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16485         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16486         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16487
16488 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16489
16490         [BZ #12811]
16491         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16492         grow the buffers more if it already has to be sufficient.
16493         (build_wcs_upper_buffer): Likewise.
16494         * posix/regexec.c (check_matching): Likewise.
16495         (clean_state_log_if_needed): Likewise.
16496         (extend_buffers): Don't enlarge buffers beyond size of the input
16497         buffer.
16498         Patches mostly by Emil Wojak <emil@wojak.eu>.
16499         * posix/bug-regex32.c: New file.
16500         * posix/Makefile (tests): Add bug-regex32.
16501
16502         * locale/findlocale.c (_nl_find_locale): Return right away if
16503         _nl_explode_name failed.
16504         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16505
16506         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16507
16508         * debug/xtrace.sh: Unify messages.
16509         * malloc/memusage.sh: Likewise.
16510
16511         [BZ #12813]
16512         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16513         time symbol from vDSO.  Substitute with vsyscall if not available.
16514         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16515         __vdso_time.
16516
16517         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16518         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16519         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16520         Add sendmmsg and internal_sendmmsg.
16521         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16522         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16523         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16524
16525         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16526         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16527         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16528
16529 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16530
16531         [BZ #12813]
16532         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16533         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16534         available.
16535         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16536         __vdso_getcpu.
16537
16538         [BZ #12814]
16539         * iconvdata/Makefile (tests): Add bug-iconv9.
16540         * iconvdata/bug-iconv9.c: New file.
16541
16542 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16543
16544         [BZ #12814]
16545         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16546
16547 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16548
16549         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16550         (struct user_regs_struct): Change intcs field back to cs.
16551
16552 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16553
16554         * po/ja.po: Update from translation team.
16555
16556 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16557
16558         [BZ #12795]
16559         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16560         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16561
16562 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16563
16564         * stdlib/longlong.h: Update from GCC.
16565
16566 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16567
16568         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16569         parameter name.
16570         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16571         Add parameter name.
16572         (__sysconf): Pass it down.
16573
16574 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16575
16576         [BZ #12671]
16577         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16578         some situations.
16579         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16580         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16581         add in in __libc_use_alloca calls.  Adjust callers.
16582         (glob): Use malloc in some situations.
16583
16584         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16585         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16586         pltexit.
16587
16588 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16589
16590         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16591         and CLOCK_BOOTTIME_ALARM.
16592
16593         [BZ #12782]
16594         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16595         is returned.
16596
16597         * string/_strerror.c (__strerror_r): Print negative errors as signed
16598         numbers.
16599
16600         [BZ #12777]
16601         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16602         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16603         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16604
16605         * configure.in: Fix typo in redirection and correct removal of test
16606         files in two cases.
16607
16608         [BZ #12788]
16609         * locale/setlocale.c (new_composite_name): Fix test to check for
16610         identical name of all categories.
16611
16612         [BZ #12792]
16613         * libio/filedoalloc.c (local_isatty): New function.
16614         (_IO_file_doallocate): Use local_isatty.
16615         * stdio-common/perror.c (perror): In case a new stream is used
16616         forward the stream error.
16617         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16618         error flag.
16619
16620 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16621
16622         [BZ #11869]
16623         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16624         alloca.
16625         * include/alloca.h (extend_alloca_account): Define.
16626
16627         [BZ #11857]
16628         * posix/regex.h: Fix comments with documentation of user-accessible
16629         fields after compilation and describe correct free'ing of pattern
16630         after re_compile_pattern.
16631         Patch by Reuben Thomas <rrt@sc3d.org>.
16632
16633 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16634
16635         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16636         and -mno-altivec to prevent the compiler from using Altivec and/or
16637         VSX instructions when the corresponding registers are not available.
16638
16639 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16640
16641         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16642
16643 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16644
16645         * libio/freopen.c (freopen): Use __dup2, not dup2.
16646         * libio/freopen64.c (freopen64): Likewise.
16647
16648 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16649
16650         [BZ #12775]
16651         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16652         * math/Makefile (tests): Add test-powl.
16653         (CFLAGS-test-powl.c): Define.
16654         * math/test-powl.c: New file.
16655
16656 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16657
16658         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16659
16660 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16661
16662         [BZ #11837]
16663         * iconvdata/gb18030.c: Update to GB18020-2005.
16664
16665 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16666
16667         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16668         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16669         Patch by Aharon Robbins <arnold@skeeve.com>.
16670
16671         [BZ #11892]
16672         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16673         on the stack.
16674
16675         [BZ #11895]
16676         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16677         through underflows.
16678
16679         [BZ #12766]
16680         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16681         point to strings before performing equality test for error_one_per_line
16682         mode.
16683
16684         [BZ #11697]
16685         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16686
16687         [BZ #11820]
16688         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16689         (struct user_fpregs_struct): Avoid __uint*_t types.
16690
16691         [BZ #6420]
16692         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16693         symbol info.  Use it instead of calling _dl_addr locally.
16694         (lock_and_info): New function.
16695         (tr_freehook): Call lock_and_info and pass symbol info as additional
16696         parameter to tr_where.
16697         (tr_mallochook): Likewise.
16698         (tr_reallochook): Likewise.
16699         (tr_memalignhook): Likewise.
16700
16701         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16702         used and couldn't be at all thread-safe.
16703
16704 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16705
16706         * libio/freopen.c (freopen): Don't close old file descriptor
16707         before the new one is opened.  Instead dup the new file descriptor
16708         to the old one after the new stream is created.
16709         * libio/freopen64.c (freopen64): Likewise.
16710         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16711         * libio/fileops.c (_IO_new_file_close_it): Handle new
16712         _IO_FLAGS2_NOCLOSE flag.
16713         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16714         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16715         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16716         _IO_FLAGS2_NOCLOSE flag.
16717         * include/unistd.h: Add hidden_proto for dup3.
16718         Define __have_dup3.
16719         * io/dup3.c: Define hidden symbol.
16720         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16721
16722         [BZ #7101]
16723         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16724         when an incomplete long option is used.
16725         * posix/tst-getopt_long1.c: New file.
16726         * posix/Makefile (tests): Add tst-getopt_long1.
16727
16728         [BZ #10138]
16729         * scripts/config.guess: Update from autoconf-2.68.
16730         * scripts/config.sub: Likewise.
16731
16732         [BZ #10157]
16733         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16734         tests into ...
16735         (has_cpuclock): ...this.  New function.
16736         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16737         macro here based on has_cpuclock code.
16738
16739         [BZ #10149]
16740         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16741         First byte (not low byte) is now always NUL.
16742         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16743
16744         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16745         Use non-cancelable interfaces.
16746
16747         [BZ #9809]
16748         * locale/iso-639.def: Add entry for Sorani.
16749
16750         [BZ #11901]
16751         * include/stdlib.h: Move include protection to the right place.
16752         Define abort_msg_s.  Declare __abort_msg with it.
16753         * stdlib/abort.c (__abort_msg): Adjust type.
16754         * assert/assert.c (__assert_fail_base): New function.  Majority
16755         of code from __assert_fail.  Allocate memory for __abort_msg with
16756         mmap.
16757         (__assert_fail): Now call __assert_fail_base.
16758         * assert/assert-perr.c: Remove bulk of implementation.  Use
16759         __assert_fail_base.
16760         * include/assert.hL Declare __assert_fail_base.
16761         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16762         mmap.
16763         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16764
16765 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16766
16767         [BZ #11952]
16768         [BZ #12453]
16769         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16770         until all modules are registered in the DTV.
16771         * elf/Makefile: Add rules to build and run tst-tls19.
16772         * elf/tst-tls19.c: New file.
16773         * elf/tst-tls19mod1.c: New file.
16774         * elf/tst-tls19mod2.c: New file.
16775         * elf/tst-tls19mod3.c: New file.
16776         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16777
16778         [BZ #12083]
16779         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16780         correctly.
16781
16782         [BZ #12601]
16783         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16784         two-byte sequence errors.
16785         * iconvdata/Makefile (tests): Add bug-iconv8.
16786         * iconvdata/bug-iconv8.c: New file.
16787
16788         [BZ #12626]
16789         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16790         buf2 definition.
16791
16792         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16793
16794         [BZ #12432]
16795         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16796         (dummy_getcfa): New function.
16797         (init): Get _Unwind_GetCFA address, use dummy if not found.
16798         (backtrace_helper): In recursion check, also check whether CFA changes.
16799         (__backtrace): Completely initialize arg.
16800
16801         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16802         storing incomplete byte sequence in state object.  Avoid testing for
16803         guaranteed too small input if we know there is enough data available.
16804
16805 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16806
16807         * Makeconfig (+link-pie): Indent.
16808         * Rules (binaries-pie): Define if $(have-fpie) and
16809         $(build-shared).
16810         (binaries-shared): Also filter out $(binaries-pie).
16811         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16812         * nscd/Makefile (others-pie): Add nscd.
16813         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16814         ($(objpfx)nscd): Remove command override.
16815         * login/Makefile (others-pie): Add pt_chown.
16816         ($(objpfx)pt_chown): Remove command override.
16817         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16818         remove command overrides.
16819
16820 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16821
16822         * libio/tst_putwc.c: Fix error messages.
16823
16824         [BZ #12724]
16825         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16826         currently writing and seek to current position when not.
16827         * libio/Makefile (tests): Add bug-fclose1.
16828         * libio/bug-fclose1.c: New file.
16829
16830 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16831
16832         [BZ #12511]
16833         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16834         don't set DF_1_NODELETE here.
16835         (do_lookup_x): When entering new entry test for copy relocation
16836         and if necessary set DF_1_NODELETE flag.
16837         * elf/tst-unique4.cc: New file.
16838         * elf/tst-unique4.h: New file.
16839         * elf/tst-unique4lib.cc: New file.
16840         * elf/Makefile: Add rules to build and run tst-unique4.
16841         Patch by Piotr Bury <pbury@goahead.com>.
16842
16843 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16844
16845         [BZ #12052]
16846         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16847
16848         [BZ #12625]
16849         * misc/mntent_r.c (addmntent): Flush the stream after the output
16850
16851         [BZ #12393]
16852         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16853         (is_trusted_path_normalize): Skip initial colon.  Append slash
16854         to empty buffer.  Duplicate is_trusted_path code but allow
16855         constructed patch to be prefix.
16856         (is_dst): Allow $ORIGIN followed by /.
16857         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16858         Correct testing of result of is_trusted_path_normalize
16859         (decompose_rpath): Fix warning.
16860
16861 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16862
16863         [BZ #11257]
16864         * grp/initgroups.c (internal_getgrouplist): When we found the service
16865         list through the initgroups entry in nsswitch.conf do not always
16866         continue on a successful lookup.  Don't always use the
16867         __nss_group_database value if it is set.
16868         * nss/nsswitch.conf (initgroups): Change action for successful db
16869         lookup to continue for compatibility.
16870
16871 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16872
16873         [BZ #11532]
16874         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16875         and CP774 modules.
16876         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16877         and CP774 modules.
16878         * iconvdata/tst-tables.sh: Likewise.
16879         * iconvdata/cp770.c: New file.
16880         * iconvdata/cp771.c: New file.
16881         * iconvdata/cp772.c: New file.
16882         * iconvdata/cp773.c: New file.
16883         * iconvdata/cp774.c: New file.
16884         * iconvdata/testdata/CP770: New file.
16885         * iconvdata/testdata/CP770..UTF8: New file.
16886         * iconvdata/testdata/CP771: New file.
16887         * iconvdata/testdata/CP771..UTF8: New file.
16888         * iconvdata/testdata/CP772: New file.
16889         * iconvdata/testdata/CP772..UTF8: New file.
16890         * iconvdata/testdata/CP773: New file.
16891         * iconvdata/testdata/CP773..UTF8: New file.
16892         * iconvdata/testdata/CP774: New file.
16893         * iconvdata/testdata/CP774..UTF8: New file.
16894
16895         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16896         END CHARMAP line.
16897         * iconvdata/gen-8bit-gap.sh: Likewise.
16898         * iconvdata/gen-8bit.sh: Likewise.
16899
16900         * locale/iso-639.def: Add ary entry.
16901
16902         [BZ #11258]
16903         * locale/C-translit.h.in: Add U20A1 transliteration.
16904
16905         [BZ #12178]
16906         * locale/iso-639.def: Add wae entry.
16907         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16908
16909         [BZ #12545]
16910         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16911         for n.
16912
16913         [BZ #12711]
16914         * locale/C-translit.h.in: Add entry for U20B9.
16915         Patch by pravin.d.s@gmail.com.
16916
16917 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16918
16919         [BZ #12713]
16920         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16921         ENAMETOOLONG use generic getcwd.
16922         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16923         in rtld.  Use *stat64.
16924         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16925         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16926         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16927         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16928         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16929         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16930         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16931         __fstatat64 macros.
16932         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16933         * dirent/rewinddir.c: Add libc_hidden_def.
16934         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16935         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16936
16937         * include/dirent.h (__alloc_dir): Add flags parameter.
16938         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16939         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16940         __alloc_dir.
16941         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16942         from fdopendir if O_CLOEXEC is already set.
16943
16944 2011-03-15  Alan Modra  <amodra@gmail.com>
16945
16946         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16947         l_tls_firstbyte_offset non-zero.  Save padding offset in
16948         l_tls_firstbyte_offset for later use.
16949         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16950         freeing static tls block.
16951
16952 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16953
16954         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16955         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16956         being defined by the kernel headers.
16957
16958 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16959
16960         [BZ #12734]
16961         * resolv/resolv.h: Define RES_NOTLDQUERY.
16962         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16963         no-tld-query and set RES_NOTLDQUERY.
16964         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16965         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16966         modern BIND to search name as TLD unless forbidden.
16967
16968 2011-05-07  Petr Baudis  <pasky@suse.cz>
16969             Ulrich Drepper  <drepper@gmail.com>
16970
16971         [BZ #12393]
16972         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16973         (is_trusted_path): ...to here.
16974         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16975         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16976         using is_trusted_path_normalize() in setuid scripts.
16977
16978 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16979
16980         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16981         __BEGIN/__END_DECLS.
16982
16983 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16984
16985         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16986         NSS_STATUS_NOTFOUND if no record was found.
16987
16988 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16989
16990         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16991         (headers-not-in-tirpc): Remove rpc/netdb.h
16992         * resolv/netdb.h: Revert last change.
16993
16994 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16995
16996         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16997         circular dependency between libgcc.a and libc.a.
16998
16999 2011-05-05  Andreas Schwab  <schwab@redhat.com>
17000
17001         * resolv/netdb.h: Don't include <rpc/netdb.h>.
17002         * nis/Makefile: Don't install rpcsvc/*.
17003         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
17004         instead of <rpc/types.h>.
17005         (MAXHOSTNAMELEN): Define.
17006
17007 2011-05-03  Andreas Schwab  <schwab@redhat.com>
17008
17009         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17010
17011 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17012
17013         [BZ #12714]
17014         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17015         gethostbyname4_r when IPv6 results are possible.
17016
17017 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17018
17019         [BZ #12723]
17020         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17021         _PC_PIPE_BUF handling.
17022
17023 2011-04-30  Bruno Haible  <bruno@clisp.org>
17024
17025         [BZ #12717]
17026         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17027         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17028         to 'int'.
17029         * inet/getnameinfo.c (getnameinfo): Likewise.
17030
17031 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17032
17033         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17034         to groups setting in database lookup.
17035         * nss/nsswitch.conf: Add initgroups entry.
17036
17037 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17038
17039         [BZ #12685]
17040         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17041         mode string.
17042         Patch by Eric Blake <eblake@redhat.com>.
17043
17044 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17045
17046         * sunrpc/Makefile (need-export-routines): Add svc_run.
17047         (routines): Remove svc_run.
17048         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17049         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17050         * sunrpc/svc_run.c (svc_run): Likewise.
17051         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17052
17053 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17054
17055         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17056         problem in reallocation in last patch.
17057
17058 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17059
17060         * sunrpc/Makefile: Move inclusion of Rules.
17061
17062 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17063
17064         * nss/nss_files/files-initgroups.c: New file.
17065         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17066         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17067         _nss_files_initgroups_dyn.
17068
17069 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17070
17071         * elf/elf.h (R_ARM_IRELATIVE): Define.
17072
17073 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17074
17075         * po/ru.po: Update from translation team.
17076
17077 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17078
17079         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17080         dependencies.
17081
17082 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17083
17084         [BZ #12653]
17085         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17086         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17087         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17088         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17089         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17090
17091 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17092
17093         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17094         differing bytes.
17095         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17096         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17097         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17098
17099 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17100
17101         [BZ #12420]
17102         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17103         storing it.
17104         * stdlib/bug-getcontext.c: New file.
17105         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17106
17107 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17108
17109         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17110         instructions into .machine "z9-109".
17111         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17112         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17113
17114 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17115
17116         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17117         between environment variables and auxiliary vector.
17118
17119 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17120
17121         * Makefile: Add rules to build linkobj/libc.so.
17122         * include/libc-symbols.h: Define libc_hidden_nolink.
17123         * include/rpc/auth.h: Mark functions which are to be hidden.
17124         * include/rpc/auth_des.h: Likewise.
17125         * include/rpc/auth_unix.h: Likewise.
17126         * include/rpc/clnt.h: Likewise.
17127         * include/rpc/des_crypt.h: Likewise.
17128         * include/rpc/key_prot.h: Likewise.
17129         * include/rpc/pmap_clnt.h: Likewise.
17130         * include/rpc/pmap_prot.h: Likewise.
17131         * include/rpc/pmap_rmt.h: Likewise.
17132         * include/rpc/rpc_msg.h: Likewise.
17133         * include/rpc/svc.h: Likewise.
17134         * include/rpc/svc_auth.h: Likewise.
17135         * include/rpc/xdr.h: Likewise.
17136         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17137         * nss/Makefile: Likewise.
17138         * sunrpc/Makefile: Don't install headers.  Build library with normal
17139         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17140         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17141         for the compat linking library.  Remove use of INTDEF/INTUSE.
17142         * sunrpc/auth_none.c: Likewise.
17143         * sunrpc/auth_unix.c: Likewise.
17144         * sunrpc/authdes_prot.c: Likewise.
17145         * sunrpc/authuxprot.c: Likewise.
17146         * sunrpc/clnt_gen.c: Likewise.
17147         * sunrpc/clnt_perr.c: Likewise.
17148         * sunrpc/clnt_raw.c: Likewise.
17149         * sunrpc/clnt_simp.c: Likewise.
17150         * sunrpc/clnt_tcp.c: Likewise.
17151         * sunrpc/clnt_udp.c: Likewise.
17152         * sunrpc/clnt_unix.c: Likewise.
17153         * sunrpc/des_crypt.c: Likewise.
17154         * sunrpc/des_soft.c: Likewise.
17155         * sunrpc/get_myaddr.c: Likewise.
17156         * sunrpc/key_call.c: Likewise.
17157         * sunrpc/key_prot.c: Likewise.
17158         * sunrpc/netname.c: Likewise.
17159         * sunrpc/pm_getmaps.c: Likewise.
17160         * sunrpc/pm_getport.c: Likewise.
17161         * sunrpc/pmap_clnt.c: Likewise.
17162         * sunrpc/pmap_prot.c: Likewise.
17163         * sunrpc/pmap_prot2.c: Likewise.
17164         * sunrpc/pmap_rmt.c: Likewise.
17165         * sunrpc/publickey.c: Likewise.
17166         * sunrpc/rpc_cmsg.c: Likewise.
17167         * sunrpc/rpc_common.c: Likewise.
17168         * sunrpc/rpc_dtable.c: Likewise.
17169         * sunrpc/rpc_prot.c: Likewise.
17170         * sunrpc/rpc_thread.c: Likewise.
17171         * sunrpc/rtime.c: Likewise.
17172         * sunrpc/svc.c: Likewise.
17173         * sunrpc/svc_auth.c: Likewise.
17174         * sunrpc/svc_authux.c: Likewise.
17175         * sunrpc/svc_raw.c: Likewise.
17176         * sunrpc/svc_run.c: Likewise.
17177         * sunrpc/svc_simple.c: Likewise.
17178         * sunrpc/svc_tcp.c: Likewise.
17179         * sunrpc/svc_udp.c: Likewise.
17180         * sunrpc/svc_unix.c: Likewise.
17181         * sunrpc/svcauth_des.c: Likewise.
17182         * sunrpc/xcrypt.c: Likewise.
17183         * sunrpc/xdr.c: Likewise.
17184         * sunrpc/xdr_array.c: Likewise.
17185         * sunrpc/xdr_float.c: Likewise.
17186         * sunrpc/xdr_intXX_t.c: Likewise.
17187         * sunrpc/xdr_mem.c: Likewise.
17188         * sunrpc/xdr_rec.c: Likewise.
17189         * sunrpc/xdr_ref.c: Likewise.
17190         * sunrpc/xdr_sizeof.c: Likewise.
17191         * sunrpc/xdr_stdio.c: Likewise.
17192
17193 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17194
17195         [BZ #12650]
17196         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17197         * sysdeps/ia64/dl-tls.h: Likewise.
17198         * sysdeps/powerpc/dl-tls.h: Likewise.
17199         * sysdeps/s390/dl-tls.h: Likewise.
17200         * sysdeps/sh/dl-tls.h: Likewise.
17201         * sysdeps/sparc/dl-tls.h: Likewise.
17202         * sysdeps/x86_64/dl-tls.h: Likewise.
17203         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17204
17205 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17206
17207         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17208         rpath element also skip the following colon.
17209         (expand_dynamic_string_token): Add is_path parameter and pass
17210         down to DL_DST_REQUIRED and _dl_dst_substitute.
17211         (decompose_rpath): Call expand_dynamic_string_token with
17212         non-zero is_path.  Ignore empty rpaths.
17213         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17214         with zero is_path.
17215
17216 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17217
17218         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17219         Make cancelable.
17220
17221 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17222
17223         [BZ #12655]
17224         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17225         Patch by Filipe David Manana <fdmanana@apache.org>.
17226
17227 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17228
17229         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17230         Maintain aligned stack.
17231         (CHECK_RSP): Remove unused macro.
17232
17233 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17234
17235         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17236         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17237
17238 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17239
17240         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17241
17242         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17243
17244 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17245
17246         [BZ #12518]
17247         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17248         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17249         * sysdeps/x86_64/memmove.c: New file.
17250         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17251         (memcpy): Renamed to ...
17252         (__new_memcpy): This.
17253         (memcpy): Provide GLIBC_2_14 memcpy.
17254         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17255         (memcpy): Provide GLIBC_2_2_5 memcpy.
17256
17257 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17258
17259         [BZ #12631]
17260         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17261
17262 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17263
17264         * misc/syncfs.c: New file.
17265         * misc/Makefile (routines): Add syncfs.
17266         * posix/unistd.h: Declare syncfs.
17267         * sysdeps/unix/syscalls.list: Add syncfs.
17268
17269 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17270
17271         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17272         open_by_handle_at.
17273         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17274         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17275         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17276         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17277         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17278         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17279         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17280
17281 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17282
17283         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17284         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17285         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17286         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17287         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17288         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17289         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17290
17291         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17292         sync_file_range.c with -fexceptions.
17293         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17294         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17295         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17296         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17297         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17298         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17299         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17300         sync_file_range as cancellation point
17301         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17302         now a wrapper around __call_sync_file_range with cancellation handling.
17303         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17304         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17305         function name to __call_sync_file_range.
17306         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17307         Add call_sync_file_range.
17308
17309 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17310
17311         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17312         bits/timex.h.
17313
17314 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17315
17316         * iconv/iconv.h: Fix typo in comment.
17317         * io/fcntl.h: Likewise.
17318         * libio/stdio.h: Likewise.
17319         * posix/spawn.h: Likewise.
17320         * posix/unistd.h: Likewise.
17321         * stdlib/stdlib.h: Likewise.
17322         * time/time.h: Likewise.
17323         * wcsmbs/wchar.h: Likewise.
17324
17325         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17326         open_by_handle): Add.
17327         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17328         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17329         Augment a few comments.
17330         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17331         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17332         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17333         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17334         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17335         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17336         open_by_handle.
17337
17338         * io/fcntl.h (AT_EMPTY_PATH): Define.
17339
17340 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17341
17342         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17343         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17344         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17345         to...
17346         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17347         * Versions.def: Add GLIBC_2.14.
17348         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17349         Export.
17350
17351 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17352
17353         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17354         round counter.
17355         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17356
17357 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17358
17359         [BZ #12597]
17360         * string/test-strncmp.c (do_page_test): New function.
17361         (check2): Likewise.
17362         (test_main): Call check2.
17363         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17364
17365 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17366
17367         [BZ #12587]
17368         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17369         Handle cache information in CPU leaf 4.
17370         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17371
17372 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17373
17374         [BZ #12583]
17375         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17376         character representation.
17377         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17378
17379 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17380
17381         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17382         END(__isnan) to END(__isnanf) to match function entry point/label
17383         EALIGN(__isnanf,...).
17384
17385 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17386
17387         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17388
17389 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17390
17391         [BZ #12510]
17392         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17393         copy from the symbol referenced in the relocation to initialize the
17394         used variable.
17395         Patch by Piotr Bury <pbury@goahead.com>.
17396         * elf/Makefile: Add rules to build and tst-unique3.
17397         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17398         * elf/tst-unique3.cc: New file.
17399         * elf/tst-unique3.h: New file.
17400         * elf/tst-unique3lib.cc: New file.
17401         * elf/tst-unique3lib2.cc: New file.
17402
17403         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17404
17405 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17406
17407         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17408         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17409         to _start.
17410
17411 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17412
17413         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17414         to-be-loaded object along a path to loader is ld.so.
17415
17416 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17417             Ulrich Drepper  <drepper@gmail.com>
17418
17419         * sysdeps/x86_64/memset.S: After aligning destination, code
17420         branches to different locations depending on the value of
17421         misalignment, when multiarch is enabled. Fix this.
17422
17423 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17424
17425         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17426         Set _x86_64_preferred_memory_instruction for AMD processsors.
17427         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17428         Set bit_Prefer_SSE_for_memop for AMD processors.
17429
17430 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17431
17432         * libio/fmemopen.c (fmemopen): Optimize a bit.
17433
17434 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17435
17436         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17437
17438 2011-03-03  Roland McGrath  <roland@redhat.com>
17439
17440         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17441
17442 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17443
17444         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17445         __bzero_ultra1 instead of __memset_ultra1.
17446
17447 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17448             Ulrich Drepper  <drepper@gmail.com>
17449
17450         [BZ #12509]
17451         * include/link.h (struct link_map): Add l_orig_initfini.
17452         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17453         returning unsuccessfully.
17454         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17455         close of a file loaded at startup, restore the original l_initfini
17456         list.
17457         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17458         list, store the pointer.
17459         * elf/Makefile ($(objpfx)noload-mem): New rule.
17460         (noload-ENV): Define.
17461         (tests): Add $(objpfx)noload-mem.
17462         * elf/noload.c: Include <memcheck.h>.
17463         (main): Call mtrace.  Close all opened handles.
17464
17465 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17466
17467         [BZ #12454]
17468         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17469         dependencies are missing.
17470
17471 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17472
17473         Fix __if_freereq crash: Unlike the generic version which uses free,
17474         Hurd needs munmap.
17475         * sysdeps/mach/hurd/ifreq.h: New file.
17476
17477 2011-01-27  Petr Baudis  <pasky@suse.cz>
17478             Ulrich Drepper  <drepper@gmail.com>
17479
17480         [BZ 12445]#
17481         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17482         to extend_alloca().
17483         * stdio-common/bug23.c: New file.
17484         * stdio-common/Makefile (tests): Add bug23.
17485
17486 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17487             Ulrich Drepper  <drepper@gmail.com>
17488
17489         [BZ #12489]
17490         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17491         before performing relro protection.  At old place add assertion
17492         to make sure nothing changed.
17493
17494 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17495             Glauber de Oliveira Costa  <glommer@gmail.com>
17496
17497         * elf/elf.h: Add new ARM TLS relocs.
17498
17499 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17500
17501         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17502         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17503         cast from r3.
17504         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17505         'tests' variable.
17506         * sysdeps/wordsize-64/tst-writev.c: New file.
17507
17508 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17509
17510         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17511         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17512         insns in _dl_start to prevent a TOC reference before relocs are
17513         resolved.
17514
17515 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17516
17517         [BZ #12469]
17518         * Makeconfig: Remove RANLIB definition.
17519         * Makerules: Don't use RANLIB.
17520         * aclocal.m4: Remove ranlib test.
17521         * configure.in: No need to check for ranlib.
17522         * elf/rtld-Rules: Don't use RANLIB.
17523
17524 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17525
17526         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17527         protection macro.
17528         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17529         inclusion protection macro.
17530
17531         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17532         SIGRTMIN and SIGRTMAX and print information in that case only when
17533         SIGRTMIN is defined.
17534
17535 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17536
17537         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17538         arginfo fn returning -1.
17539
17540         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17541         and thousands string is zero terminated.
17542
17543 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17544
17545         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17546         sysdeps/unix/sysv/linux/bits/socket.h.
17547
17548 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17549
17550         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17551         (__CPU_COUNT): Remove old macros.
17552         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17553         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17554         (__CPU_ALLOC, __CPU_FREE): Add macros.
17555         (__sched_cpualloc, __sched_cpufree): Add declarations.
17556
17557 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17558
17559         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17560         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17561         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17562         (readdhstai): Return value of addhstaiX call.
17563         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17564         (addgrbyX): Return value returned by cache_addgr.
17565         (readdgrbyname): Return value returned by addgrbyX.
17566         (readdgrbygid): Likewise.
17567         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17568         (addpwbyX): Return value returned by cache_addpw.
17569         (readdpwbyname): Return value returned by addhstbyX.
17570         (readdpwbyuid): Likewise.
17571         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17572         (addservbyX): Return value returned by cache_addserv.
17573         (readdservbyname): Return value returned by addservbyX:
17574         (readdservbyport): Likewise.
17575         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17576         (addhstbyX): Return value returned by cache_addhst.
17577         (readdhstbyname): Return value returned by addhstbyX.
17578         (readdhstbyaddr): Likewise.
17579         (readdhstbynamev6): Likewise.
17580         (readdhstbyaddrv6): Likewise.
17581         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17582         (readdinitgroups): Return value returned by addinitgroupsX.
17583         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17584         (prune_cache): Keep track of timeout value of re-added entries.
17585         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17586         * nscd/nscd.h: Adjust prototypes of readd* functions.
17587
17588 2011-02-04  Roland McGrath  <roland@redhat.com>
17589
17590         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17591         (nis_stats): Likewise.
17592         * nis/nis_modify.c (nis_modify): Likewise.
17593         * nis/nis_remove.c (nis_remove): Likewise.
17594         * nis/nis_add.c (nis_add): Likewise.
17595
17596         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17597
17598         * posix/fnmatch_loop.c: Add some consts.
17599
17600         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17601
17602 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17603
17604         [BZ #12460]
17605         * config.make.in (config-cflags-novzeroupper): Define.
17606         * configure.in: Substitute libc_cv_cc_novzeroupper.
17607         * elf/Makefile (AVX-CFLAGS): Define.
17608         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17609         (CFLAGS-tst-auditmod4a.c): Likewise.
17610         (CFLAGS-tst-auditmod4b.c): Likewise.
17611         (CFLAGS-tst-auditmod6b.c): Likewise.
17612         (CFLAGS-tst-auditmod6c.c): Likewise.
17613         (CFLAGS-tst-auditmod7b.c): Likewise.
17614         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17615
17616 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17617
17618         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17619         function to the callback.
17620         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17621
17622 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17623
17624         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17625         of errno.
17626
17627 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17628
17629         [BZ #11724]
17630         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17631         of constructors.
17632         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17633         of destructors.
17634         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17635
17636         [BZ #11724]
17637         * elf/Makefile: Add rules to build and run new test.
17638         * elf/tst-initorder.c: New file.
17639         * elf/tst-initorder.exp: New file.
17640         * elf/tst-initordera1.c: New file.
17641         * elf/tst-initordera2.c: New file.
17642         * elf/tst-initordera3.c: New file.
17643         * elf/tst-initordera4.c: New file.
17644         * elf/tst-initorderb1.c: New file.
17645         * elf/tst-initorderb2.c: New file.
17646         * elf/tst-order-a1.c: New file.
17647         * elf/tst-order-a2.c: New file.
17648         * elf/tst-order-a3.c: New file.
17649         * elf/tst-order-a4.c: New file.
17650         * elf/tst-order-b1.c: New file.
17651         * elf/tst-order-b2.c: New file.
17652         * elf/tst-order-main.c: New file.
17653         New test case by George Gensure <werkt0@gmail.com>.
17654
17655 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17656
17657         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17658         decoding ACE if AI_CANONIDN.
17659
17660 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17661
17662         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17663
17664 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17665
17666         * version.h (RELEASE): Bump for 2.13 release.
17667         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17668
17669         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17670
17671         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17672         MADV_NOHUGEPAGE.
17673         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17674         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17675         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17676         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17677         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17678         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17679
17680         * posix/getconf.c: Update copyright year.
17681         * catgets/gencat.c: Likewise.
17682         * csu/version.c: Likewise.
17683         * debug/catchsegv.sh: Likewise.
17684         * debug/xtrace.sh: Likewise.
17685         * elf/ldconfig.c: Likewise.
17686         * elf/ldd.bash.in: Likewise.
17687         * elf/sprof.c (print_version): Likewise.
17688         * iconv/iconv_prog.c: Likewise.
17689         * iconv/iconvconfig.c: Likewise.
17690         * locale/programs/locale.c: Likewise.
17691         * locale/programs/localedef.c: Likewise.
17692         * malloc/memusage.sh: Likewise.
17693         * malloc/mtrace.pl: Likewise.
17694         * nscd/nscd.c (print_version): Likewise.
17695         * nss/getent.c: Likewise.
17696
17697         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17698         PF_CAIF, and PF_ALG.
17699         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17700
17701 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17702
17703         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17704         (modules-names): Use them.
17705         (ifunc-test-modules, ifunc-pie-tests): Define.
17706         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17707         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17708         (test-extras): Likewise.
17709         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17710         $(compile-command.c).
17711         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17712         (all-built-dso): Define.
17713         (check-textrel.out, check-execstack.out): Depend on it.
17714
17715         * configure.in: Don't override --enable-multi-arch.
17716
17717 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17718
17719         [BZ #6812]
17720         * nscd/hstcache.c (tryagain): Define.
17721         (cache_addhst): Return tryagain not notfound for temporary errors.
17722         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17723         failed.
17724
17725 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17726
17727         [BZ #10563]
17728         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17729         to make the syscall.
17730         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17731
17732         [BZ #12378]
17733         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17734         and fall back to matching as normal character if the string ends before
17735         the matching ']' is found.  This is what POSIX requires.
17736         * posix/testfnm.c: Adjust test result.
17737         * posix/globtest.sh: Adjust test result.  Add new test.
17738         * posix/tst-fnmatch.input: Likewise.
17739         * posix/tst-fnmatch2.c: Add new test.
17740
17741 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17742
17743         * elf/Makefile (check-execstack): Revert last change.  Depend on
17744         check-execstack.h.
17745         (check-execstack.h): New target.
17746         (generated): Add check-execstack.h.
17747         * elf/check-execstack.c: Include "check-execstack.h".
17748         (main): Revert last change.
17749         (handle_file): Return zero if GNU_STACK is absent and
17750         DEFAULT_STACK_PERMS doesn't include PF_X.
17751
17752 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17753
17754         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17755         in child fails because the descriptor is already closed.
17756         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17757         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17758         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17759
17760         [BZ #12397]
17761         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17762         syscall.
17763
17764         [BZ #10484]
17765         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17766         temporary buffer used to handle multi lookups locally.
17767         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17768
17769 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17770
17771         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17772         loader is ld.so.
17773
17774 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17775
17776         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17777         alignment for SSE2.
17778
17779 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17780
17781         [BZ #12394]
17782         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17783         characters.  When rounding increased number of integer digits recompute
17784         number of groups.
17785         * stdio-common/tst-grouping.c: New file.
17786         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17787
17788 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17789
17790         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17791         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17792
17793         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17794         void.
17795         * bits/select.h: Likewise.
17796
17797 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17798
17799         * po/ja.po: Update from translation team.
17800
17801 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17802
17803         [BZ #11155]
17804         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17805         implementation just like for lxstat, fxstatat, et al.
17806
17807 2010-12-27  Jim Meyering  <meyering@redhat.com>
17808
17809         [BZ #12348]
17810         * posix/regexec.c (build_trtable): Return failure indication upon
17811         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17812
17813 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17814
17815         [BZ #12201]
17816         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17817         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17818         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17819         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17820
17821         [BZ #12207]
17822         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17823
17824         [BZ #12204]
17825         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17826         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17827
17828 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17829
17830         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17831         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17832         script has SORT_BY_INIT_PRIORITY.
17833         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17834         NO_CTORS_DTORS_SECTIONS is defined.
17835         * elf/soinit.c: Likewise.
17836         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17837         NO_CTORS_DTORS_SECTIONS is defined.
17838         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17839         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17840         * sysdeps/sh/init-first.c: Likewise.
17841         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17842
17843 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17844
17845         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17846         always use the slow path.
17847
17848 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17849
17850         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17851         similar rule which adds the sysdep directories to the header search in
17852         order to pick up the correct platform stackinfo.h.
17853         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17854         perform test if it is, otherwise return successfully without testing.
17855         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17856         DEFAULT_STACK_PERMS define in stackinfo.h.
17857         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17858         defined in stackinfo.h.
17859         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17860         DEFAULT_STACK_PERMS defined in stackinfo.h.
17861         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17862         * sysdeps/ia64/stackinfo.h: Likewise.
17863         * sysdeps/s390/stackinfo.h: Likewise.
17864         * sysdeps/sh/stackinfo.h: Likewise.
17865         * sysdeps/sparc/stackinfo.h: Likewise.
17866         * sysdeps/x86_64/stackinfo.h: Likewise.
17867         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17868         PF_X for powerpc64.  Retain PF_X for powerpc32.
17869
17870 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17871
17872         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17873         accurately.
17874         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17875         GETDENTS_64BIT_ALIGNED.
17876
17877 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17878
17879         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17880
17881 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17882
17883         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17884         _GNU_SOURCE.
17885
17886         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17887         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17888         Remove __restrict.
17889         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17890         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17891
17892 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17893
17894         [BZ #11655]
17895         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17896         are initialized.
17897
17898 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17899
17900         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17901
17902 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17903
17904         * po/it.po: Update from translation team.
17905
17906 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17907
17908         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17909         unused codes.
17910
17911 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17912
17913         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17914
17915 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17916
17917         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17918         specially.
17919         (gaih_getanswer_slice): Likewise.
17920
17921 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17922
17923         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17924
17925 2010-05-31  Petr Baudis  <pasky@suse.cz>
17926
17927         [BZ #11149]
17928         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17929         silently even in the chroot mode.
17930
17931 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17932
17933         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17934         last patch a bit.  Pretty printing
17935
17936 2010-05-31  Petr Baudis <pasky@suse.cz>
17937
17938         [BZ #10085]
17939         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17940         initialization of skip_initgroups_dyn.
17941
17942 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17943
17944         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17945         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17946
17947 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17948
17949         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17950
17951 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17952
17953         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17954         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17955         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17956         ($(objpfx)tst-fnmatch-mem): New rule.
17957         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17958         * posix/tst-fnmatch.c (main): Call mtrace.
17959
17960 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17961
17962         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17963         Support Intel processor model 6 and model 0x2c.
17964
17965 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17966
17967         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17968           signed comparison.
17969
17970 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17971
17972         [BZ #12205]
17973         * string/test-strncasecmp.c (check_result): New function.
17974         (do_one_test): Use it.
17975         (check1): New function.
17976         (test_main): Use it.
17977         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17978         Support strcasecmp and strncasecmp.
17979
17980 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17981
17982         [BZ #12194]
17983         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17984         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17985
17986 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17987
17988         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17989         IFUNC support.
17990         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17991         memset-x86-64.
17992         * sysdeps/x86_64/multiarch/bzero.S: New file.
17993         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17994         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17995         * sysdeps/x86_64/multiarch/memset.S: New file.
17996         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17997         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17998         Set bit_Prefer_SSE_for_memop for Intel processors.
17999         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
18000         Define.
18001         (index_Prefer_SSE_for_memop): Define.
18002         (HAS_PREFER_SSE_FOR_MEMOP): Define.
18003
18004 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
18005
18006         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
18007         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
18008
18009 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18010
18011         [BZ #12191]
18012         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18013         (__x86_64_raw_data_cache_size_half): Likewise.
18014         (__x86_64_raw_shared_cache_size): Likewise.
18015         (__x86_64_raw_shared_cache_size_half): Likewise.
18016
18017         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18018         (__x86_64_raw_data_cache_size_half): Likewise.
18019         (__x86_64_raw_shared_cache_size): Likewise.
18020         (__x86_64_raw_shared_cache_size_half): Likewise.
18021         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18022         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18023         and __x86_64_raw_shared_cache_size_half.  Round
18024         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18025         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18026         to multiple of 256 bytes.
18027
18028 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18029
18030         [BZ #12167]
18031         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18032         of inacessible symlinks.  Verify result of symlink before returning it.
18033         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18034         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18035
18036 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18037
18038         * math/math.h (isinf): Fix typo in comment.
18039
18040 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18041
18042         * po/da.po: Update from translation team.
18043
18044 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18045
18046         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18047         is added to the list.
18048
18049 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18050             Ulrich Drepper  <drepper@gmail.com>
18051
18052         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18053         the global list here.  Move code to...
18054         (_dl_add_to_namespace_list): ...here.  New function.
18055         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18056         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18057         * elf/dl-load.c (lose): Don't remove the element from the list.
18058         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18059         (_dl_map_object): Likewise.
18060
18061 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18062
18063         [BZ #12159]
18064         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18065         into all bytes of SSE register.
18066         Patch by Richard Li <richardpku@gmail.com>.
18067
18068 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18069
18070         [BZ #12140]
18071         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18072         perturbing.
18073
18074 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18075
18076         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18077         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18078         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18079         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18081         submachine.
18082         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18083
18084 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18085
18086         * include/dlfcn.h (__RTLD_SECURE): Define.
18087         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18088         mode & __RTLD_SECURE instead.
18089         (open_path): Rename preloaded parameter to secure.
18090         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18091         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18092         * elf/dl-deps.c (openaux): Likewise.
18093         * elf/rtld.c (struct map_args): Remove is_preloaded.
18094         (map_doit): Don't use it.
18095         (dl_main): Likewise.
18096         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18097         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18098
18099 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18100
18101         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18102         (sysd-rules-targets): Remove duplicates.
18103         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18104         rtld-%.$o dependency.
18105
18106 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18107
18108         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18109         _dl_map_object do it.
18110
18111 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18112
18113         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18114         fast fma builtins, define the macros in the C99 standard.
18115         (FP_FAST_FMAF): Likewise.
18116         (FP_FAST_FMAL): Likewise.
18117         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18118
18119         * bits/mathdef.h: Update copyright year.
18120         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18121
18122 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18123
18124         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18125         builtins, define the macros in the C99 standard.
18126         (FP_FAST_FMAF): Likewise.
18127         (FP_FAST_FMAL): Likewise.
18128         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18129         multiply/add.
18130         (FP_FAST_FMAF): Likewise.
18131
18132 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18133
18134         [BZ #3268]
18135         * math/libm-test.inc (fma_test): Some new testcases.
18136         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18137         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18138         y and infinite z.  Do multiplication by C already in long double.
18139         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18140         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18141         y and infinite z.  Do bitwise or of inexact bit into u.d.
18142         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18143         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18144         * sysdeps/i386/fpu/s_fma.S: Removed.
18145         * sysdeps/i386/fpu/s_fmal.S: Removed.
18146
18147 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18148
18149         [BZ #3268]
18150         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18151         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18152         computation is not scheduled after fetestexcept.  Fix value
18153         of minimum denormal long double.
18154
18155 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18156
18157         [BZ #3268]
18158         * math/libm-test.inc (fma_test): Add some more tests.
18159         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18160         correctly.
18161
18162 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18163
18164         * scripts/data/localplt-s390-linux-gnu.data: New file.
18165         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18166
18167 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18168
18169         [BZ #3268]
18170         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18171         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18172         instead of dbl-64.
18173         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18174         inlines.
18175         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18176         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18177         if one of x and y is very large and the other is subnormal.
18178         * sysdeps/s390/fpu/s_fmaf.c: New file.
18179         * sysdeps/s390/fpu/s_fma.c: New file.
18180         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18181         * sysdeps/powerpc/fpu/s_fma.S: New file.
18182         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18183         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18184         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18185
18186 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18187
18188         [BZ #3268]
18189         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18190         fma tests.
18191         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18192         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18193         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18194         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18195         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18196         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18197         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18198
18199 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18200
18201         [BZ #12078]
18202         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18203         * posix/bug-regex31.input: Add test case.
18204
18205 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18206
18207         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18208         * posix/bug-regex31.input: New file.
18209
18210         [BZ #12078]
18211         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18212         (parse_sub_exp): Fix last change, use postorder.
18213
18214         * posix/bug-regex31.c: New file.
18215         * posix/Makefile: Add rules to build and run bug-regex31.
18216
18217         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18218
18219         [BZ #12078]
18220         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18221
18222         [BZ #12108]
18223         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18224         to have entries in sys_siglist.
18225
18226         [BZ #12093]
18227         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18228         be NULL.
18229
18230 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18231
18232         [BZ #3268]
18233         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18234         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18235         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18236         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18237         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18238         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18239         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18240         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18241         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18242         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18243         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18244         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18245         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18246         * math/ftestexcept.c (fetestexcept): Likewise.
18247         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18248         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18249         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18250         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18251         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18252         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18253         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18254
18255 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18256
18257         [BZ #12107]
18258         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18259         newline.
18260
18261 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18262
18263         * string/bug-strstr1.c: New file.
18264         * string/Makefile: Add rules to build and run bug-strstr1.
18265
18266 2010-10-05  Eric Blake  <eblake@redhat.com>
18267
18268         [BZ #12092]
18269         * string/str-two-way.h (two_way_long_needle): Always clear memory
18270         when skipping input due to the shift table.
18271
18272 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18273
18274         [BZ #12005]
18275         * malloc/mcheck.c: Handle large requests.
18276
18277         [BZ #12077]
18278         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18279         for strncmp and strncasecmp.
18280         * string/stratcliff.c: Add tests for strcmp and strncmp.
18281         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18282
18283 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18284
18285         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18286         __set_fpscr.
18287
18288 2010-09-30  Andreas Jaeger  <aj@suse.de>
18289
18290         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18291         (CGROUP_SUPER_MAGIC): Define.
18292         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18293         Handle btrfs and cgroup file systems.
18294         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18295         Likewise.
18296
18297 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18298
18299         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18300         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18301
18302 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18303
18304         [BZ #12067]
18305         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18306         trying to locate the ELF header.
18307
18308 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18309
18310         [BZ #11611]
18311         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18312         Mask out sign-bit copies when constructing f_fsid.
18313
18314 2010-09-24  Petr Baudis <pasky@suse.cz>
18315
18316         * debug/stack_chk_fail_local.c: Add missing licence exception.
18317         * debug/warning-nop.c: Likewise.
18318
18319 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18320
18321         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18322         implementing getdents64 using getdents syscall, set d_type if
18323         __ASSUME_GETDENTS32_D_TYPE.
18324
18325 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18326
18327         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18328         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18329
18330 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18331
18332         [BZ #12037]
18333         * posix/unistd.h: Undo change of feature selection for ftruncate from
18334         2010-01-11.
18335
18336 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18337
18338         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18339         detection.
18340
18341 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18342
18343         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18344         fanotify_mark.
18345         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18346
18347 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18348
18349         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18350         variables after CHECK_SP call.
18351         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18352
18353 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18354             Ulrich Drepper  <drepper@redhat.com>
18355
18356         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18357         re-relocationg ld.so.
18358         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18359         _dl_init_paths call.
18360         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18361         here anymore.
18362
18363 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18364
18365         * resolv/res_init.c (__res_vinit): Count the default server we added.
18366
18367 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18368             Ulrich Drepper  <drepper@redhat.com>
18369
18370         [BZ #11968]
18371         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18372         (____longjmp_chk): Use %ebx for saving value across system call.
18373         Add unwind info.
18374
18375 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18376
18377         * manual/Makefile: Don't mix pattern rules with normal rules.
18378
18379 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18380
18381         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18382         operation.
18383         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18384         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18385         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18386         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18387         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18388         Likewise.
18389
18390 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18391
18392         [BZ #11979]
18393         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18394         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18395
18396 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18397
18398         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18399         * sysdeps/x86_64/addmul_1.S: Likewise.
18400         * sysdeps/x86_64/lshift.S: Likewise.
18401         * sysdeps/x86_64/mul_1.S: Likewise.
18402         * sysdeps/x86_64/rshift.S: Likewise.
18403         * sysdeps/x86_64/sub_n.S: Likewise.
18404         * sysdeps/x86_64/submul_1.S: Likewise.
18405
18406 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18407
18408         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18409         Define __sched_param instead of SCHED_* and sched_param when
18410         <bits/sched.h> is included with __need_schedparam defined.
18411         * bits/sched.h [__need_schedparam]
18412         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18413         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18414         (__defined_schedparam): Define to 1.
18415         (__sched_param): New structure, identical to sched_param.
18416         (__need_schedparam): Undefine.
18417
18418 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18419
18420         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18421         (epoll_create1): Declare.
18422
18423         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18424
18425 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18426
18427         [BZ #7066]
18428         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18429         shifting retval into place.
18430
18431 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18432
18433         * nis/rpcsvc/nis.h: Update copyright notice.
18434         * nis/rpcsvc/nis.x: Likewise.
18435         * nis/rpcsvc/nis_callback.h: Likewise.
18436         * nis/rpcsvc/nis_callback.x: Likewise.
18437         * nis/rpcsvc/nis_object.x: Likewise.
18438         * nis/rpcsvc/nis_tags.h: Likewise.
18439         * nis/rpcsvc/yp.h: Likewise.
18440         * nis/rpcsvc/yp.x: Likewise.
18441         * nis/rpcsvc/ypupd.h: Likewise.
18442         * nis/yp_xdr.c: Likewise.
18443         * nis/ypupdate_xdr.c: Likewise.
18444
18445         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18446         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18447         (pmap_getport): Use __libc_rpc_getport.
18448         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18449         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18450         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18451
18452 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18453
18454         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18455         fanotify_mark.
18456
18457 2010-08-27  Roland McGrath  <roland@redhat.com>
18458
18459         * sysdeps/i386/i686/multiarch/Makefile
18460         (CFLAGS-varshift.c): New variable.
18461
18462 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18463
18464         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18465         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18466
18467         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18468
18469         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18470
18471 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18472
18473         * sysdeps/x86_64/strlen.S: Unroll the loop.
18474         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18475         strlen-sse2 strlen-sse2-bsf.
18476         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18477         __strlen_no_bsf if bit_Slow_BSF is set.
18478         (__strlen_sse42): Removed.
18479         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18480         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18481
18482 2010-08-25  Roland McGrath  <roland@redhat.com>
18483
18484         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18485         * sysdeps/x86_64/multiarch/varshift.c: New file.
18486         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18487         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18488         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18489         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18490
18491 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18492
18493         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18494         strlen-sse2 strlen-sse2-bsf.
18495         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18496         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18497         (__strlen_sse2): Removed.
18498         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18499         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18500         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18501         bit_Slow_BSF for Atom.
18502         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18503         (index_Slow_BSF): Define.
18504         (HAS_SLOW_BSF): Define.
18505
18506 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18507
18508         [BZ #10851]
18509         * resolv/res_init.c (__res_vinit): When no server address at all
18510         is given default to loopback.
18511
18512 2010-08-24  Roland McGrath  <roland@redhat.com>
18513
18514         * configure.in: Remove config-name.h generation.
18515         * configure: Regenerated.
18516         * config-name.in: File removed.
18517         * scripts/config-uname.sh: New file.
18518         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18519         ($(objdir)config-name.h): New target.
18520
18521         * sunrpc/rpc_parse.h: Avoid nested comment.
18522
18523 2010-08-24  Richard Henderson  <rth@redhat.com>
18524             Ulrich Drepper  <drepper@redhat.com>
18525             H.J. Lu  <hongjiu.lu@intel.com>
18526
18527         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18528         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18529         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18530         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18531         _mm_alignr_epi8 with _mm_loadu_si128.
18532         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18533         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18534         (__m128i_shift_right): Removed.
18535         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18536         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18537         * sysdeps/x86_64/multiarch/varshift.h: New file.
18538         * sysdeps/x86_64/multiarch/varshift.S: New file.
18539
18540 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18541
18542         * configure.in: Move assembler checks to before sysdep dir checking.
18543
18544 2010-08-20  Petr Baudis  <pasky@suse.cz>
18545
18546         * LICENSES: Sync the sunrpc license.
18547
18548 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18549
18550         * sunrpc/auth_des.c: Update copyright notice once again.
18551         * sunrpc/auth_none.c: Likewise.
18552         * sunrpc/auth_unix.c: Likewise.
18553         * sunrpc/authdes_prot.c: Likewise.
18554         * sunrpc/authuxprot.c: Likewise.
18555         * sunrpc/bindrsvprt.c: Likewise.
18556         * sunrpc/clnt_gen.c: Likewise.
18557         * sunrpc/clnt_perr.c: Likewise.
18558         * sunrpc/clnt_raw.c: Likewise.
18559         * sunrpc/clnt_simp.c: Likewise.
18560         * sunrpc/clnt_tcp.c: Likewise.
18561         * sunrpc/clnt_udp.c: Likewise.
18562         * sunrpc/clnt_unix.c: Likewise.
18563         * sunrpc/des_crypt.c: Likewise.
18564         * sunrpc/des_soft.c: Likewise.
18565         * sunrpc/get_myaddr.c: Likewise.
18566         * sunrpc/getrpcport.c: Likewise.
18567         * sunrpc/key_call.c: Likewise.
18568         * sunrpc/key_prot.c: Likewise.
18569         * sunrpc/openchild.c: Likewise.
18570         * sunrpc/pm_getmaps.c: Likewise.
18571         * sunrpc/pm_getport.c: Likewise.
18572         * sunrpc/pmap_clnt.c: Likewise.
18573         * sunrpc/pmap_prot.c: Likewise.
18574         * sunrpc/pmap_prot2.c: Likewise.
18575         * sunrpc/pmap_rmt.c: Likewise.
18576         * sunrpc/rpc/auth.h: Likewise.
18577         * sunrpc/rpc/auth_unix.h: Likewise.
18578         * sunrpc/rpc/clnt.h: Likewise.
18579         * sunrpc/rpc/des_crypt.h: Likewise.
18580         * sunrpc/rpc/key_prot.h: Likewise.
18581         * sunrpc/rpc/netdb.h: Likewise.
18582         * sunrpc/rpc/pmap_clnt.h: Likewise.
18583         * sunrpc/rpc/pmap_prot.h: Likewise.
18584         * sunrpc/rpc/pmap_rmt.h: Likewise.
18585         * sunrpc/rpc/rpc.h: Likewise.
18586         * sunrpc/rpc/rpc_des.h: Likewise.
18587         * sunrpc/rpc/rpc_msg.h: Likewise.
18588         * sunrpc/rpc/svc.h: Likewise.
18589         * sunrpc/rpc/svc_auth.h: Likewise.
18590         * sunrpc/rpc/types.h: Likewise.
18591         * sunrpc/rpc/xdr.h: Likewise.
18592         * sunrpc/rpc_clntout.c: Likewise.
18593         * sunrpc/rpc_cmsg.c: Likewise.
18594         * sunrpc/rpc_common.c: Likewise.
18595         * sunrpc/rpc_cout.c: Likewise.
18596         * sunrpc/rpc_dtable.c: Likewise.
18597         * sunrpc/rpc_hout.c: Likewise.
18598         * sunrpc/rpc_main.c: Likewise.
18599         * sunrpc/rpc_parse.c: Likewise.
18600         * sunrpc/rpc_parse.h: Likewise.
18601         * sunrpc/rpc_prot.c: Likewise.
18602         * sunrpc/rpc_sample.c: Likewise.
18603         * sunrpc/rpc_scan.c: Likewise.
18604         * sunrpc/rpc_scan.h: Likewise.
18605         * sunrpc/rpc_svcout.c: Likewise.
18606         * sunrpc/rpc_tblout.c: Likewise.
18607         * sunrpc/rpc_util.c: Likewise.
18608         * sunrpc/rpc_util.h: Likewise.
18609         * sunrpc/rpcinfo.c: Likewise.
18610         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18611         * sunrpc/rpcsvc/key_prot.x: Likewise.
18612         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18613         * sunrpc/rpcsvc/mount.x: Likewise.
18614         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18615         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18616         * sunrpc/rpcsvc/rex.x: Likewise.
18617         * sunrpc/rpcsvc/rstat.x: Likewise.
18618         * sunrpc/rpcsvc/rusers.x: Likewise.
18619         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18620         * sunrpc/rpcsvc/spray.x: Likewise.
18621         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18622         * sunrpc/rtime.c: Likewise.
18623         * sunrpc/svc.c: Likewise.
18624         * sunrpc/svc_auth.c: Likewise.
18625         * sunrpc/svc_authux.c: Likewise.
18626         * sunrpc/svc_raw.c: Likewise.
18627         * sunrpc/svc_run.c: Likewise.
18628         * sunrpc/svc_simple.c: Likewise.
18629         * sunrpc/svc_tcp.c: Likewise.
18630         * sunrpc/svc_udp.c: Likewise.
18631         * sunrpc/svc_unix.c: Likewise.
18632         * sunrpc/svcauth_des.c: Likewise.
18633         * sunrpc/xcrypt.c: Likewise.
18634         * sunrpc/xdr.c: Likewise.
18635         * sunrpc/xdr_array.c: Likewise.
18636         * sunrpc/xdr_float.c: Likewise.
18637         * sunrpc/xdr_mem.c: Likewise.
18638         * sunrpc/xdr_rec.c: Likewise.
18639         * sunrpc/xdr_ref.c: Likewise.
18640         * sunrpc/xdr_sizeof.c: Likewise.
18641         * sunrpc/xdr_stdio.c: Likewise.
18642
18643         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18644         handling.
18645
18646 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18647
18648         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18649
18650 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18651
18652         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18653         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18654         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18655         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18656         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18657         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18658         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18659         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18660         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18661         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18662         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18663         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18664         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18665         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18666
18667 2010-07-26  Anton Blanchard  <anton@samba.org>
18668
18669         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18670         * malloc/arena.c (heap_trim): Likewise.
18671
18672 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18673
18674         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18675         here.  Not...
18676         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18677         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18678
18679 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18680
18681         * sysdeps/i386/elf/Makefile: New file.
18682
18683 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18684
18685         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18686         from fanotify_init.
18687         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18688         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18689
18690 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18691
18692         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18693         of strncasecmp_l.
18694         * sysdeps/multiarch/strcmp.S: Likewise.
18695
18696 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18697
18698         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18699         strncase_l-nonascii.
18700         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18701         Add strncase_l-ssse3.
18702         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18703         * sysdeps/x86_64/strcmp.S: Likewise.
18704         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18705         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18706         * sysdeps/x86_64/strncase.S: New file.
18707         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18708         * sysdeps/x86_64/strncase_l.S: New file.
18709         * string/Makefile (strop-tests): Add strncasecmp.
18710         * string/test-strncasecmp.c: New file.
18711
18712         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18713         warning.
18714
18715         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18716         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18717
18718 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18719
18720         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18721
18722 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18723
18724         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18725         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18726         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18727
18728 2010-05-01  Alan Modra  <amodra@gmail.com>
18729
18730         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18731         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18732         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18733         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18734         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18735         tidying.  Don't tail-call __sigjmp_save for static lib.
18736         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18737         save location.
18738         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18739         (CALL_MCOUNT): Add eh info, and nop after bl.
18740         (TAIL_CALL_SYSCALL_ERROR): New macro.
18741         (PSEUDO_RET): Use it.
18742         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18743         Correct save location of integer regs and cr.
18744         (_dl_profile_resolve): Correct cr save location.  Delete nops
18745         after bl when SHARED.  Reduce cfi size a little by better
18746         placement of cfi directives.
18747         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18748         make a stack frame.  Instead use parm save area as a temp.
18749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18750         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18752         Don't make a stack frame for parent, use parm save area.
18753         Increase child stack frame to 112 bytes.  Don't save unused reg,
18754         and adjust reg usage.  Set up cfi on error recovery and
18755         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18756         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18757         (__makecontext): Add dummy nop after jump to exit.
18758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18759         Use correct parm save area and cr save, reduce stack frame.
18760         Correct cfi for possible PSEUDO_RET frame setup.
18761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18762         Branch to local label emitted by PSEUDO_RET rather than
18763         __syscall_error.
18764
18765 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18766
18767         [BZ #11904]
18768         * locale/programs/locale.c (print_assignment): New function.
18769         (show_locale_vars): Use it.
18770
18771 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18772
18773         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18774         field.
18775         (struct statfs64): Likewise.
18776         (_STATFS_F_FLAGS): Define.
18777         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18778         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18779         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18780         (ST_VALID): Define locally.
18781         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18782         __statvfs_getflags, use the provided value.
18783         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18784         __ASSUME_STATFS_F_FLAGS.
18785
18786         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18787
18788         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18789         Add sys/fanotify.h.
18790         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18791         fanotify_mask for GLIBC_2.13.
18792         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18793         fanotify_init and fanotify_mark.
18794         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18795         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18796
18797         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18798         Add prlimit.
18799         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18800         prlimit64 for GLIBC_2.13.
18801         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18802         prlimit64.
18803         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18804         syscall.
18805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18806         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18807         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18808         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18809         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18810         add prlimit alias.
18811         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18812
18813         [BZ #11903]
18814         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18815         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18816
18817         * nss/Makefile: Add rules to build and run tst-nss-test1.
18818         * shlib-versions: Add entry for libnss_test1.
18819         * nss/nss_test1.c: New file.
18820         * nss/tst-nss-test1.c: New file.
18821
18822         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18823         (__nss_configure_lookup): Set appropriate entry in
18824         __nss_configure_lookup to true.
18825         * nss/nsswitch.h: Define enum with indeces of databases in
18826         databases and __nss_database_custom arrays.  Declare
18827         __nss_database_custom.
18828         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18829         to avoid using nscd when custom rules are installed.
18830         * nss/getXXbyYY_r.c: Likewise.
18831         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18832
18833         * nss/nss_files/files-parse.c: Whitespace fixes.
18834
18835 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18836
18837         [BZ #11883]
18838         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18839         * posix/fnmatch_loop.c: Likewise.
18840
18841 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18842
18843         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18844         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18845         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18846         * Versions.def [GLIBC_2.13]: Add.
18847
18848 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18849
18850         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18851         Also fail if tpwd after pwuid call is NULL.
18852
18853 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18854
18855         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18856         when converting to ms.
18857
18858 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18859
18860         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18861         EOPNOTSUPP errors with ENOTTY.
18862         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18863         EOPNOTSUPP errors with ENOTTY.
18864
18865 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18866
18867         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18868         Add strcasecmp_l-ssse3.
18869         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18870         strcasecmp.
18871         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18872         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18873         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18874
18875 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18876
18877         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18878
18879         * string/Makefile (strop-tests): Add strcasecmp.
18880         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18881         strcasecmp_l-nonascii.
18882         (gen-as-const-headers): Add locale-defines.sym.
18883         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18884         * sysdeps/x86_64/strcasecmp.S: New file.
18885         * sysdeps/x86_64/strcasecmp_l.S: New file.
18886         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18887         * sysdeps/x86_64/locale-defines.sym: New file.
18888         * string/test-strcasecmp.c: New file.
18889
18890         * string/test-strcasestr.c: Test both ends of the range of characters.
18891         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18892
18893 2010-07-29  Roland McGrath  <roland@redhat.com>
18894
18895         [BZ #11856]
18896         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18897
18898 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18899
18900         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18901         for ld.so.
18902
18903 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18904
18905         * manual/memory.texi (Malloc Tunable Parameters): Document
18906         M_PERTURB.
18907
18908 2010-07-26  Roland McGrath  <roland@redhat.com>
18909
18910         [BZ #11840]
18911         * configure.in (-fgnu89-inline check): Set and substitute
18912         gnu89_inline, not libc_cv_gnu89_inline.
18913         * configure: Regenerated.
18914         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18915
18916 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18917
18918         * string/test-strnlen.c: New file.
18919         * string/Makefile (strop-tests): Add strnlen.
18920         * string/tester.c (test_strnlen): Add a few more test cases.
18921         * string/tst-strlen.c: Better error reporting.
18922
18923         * sysdeps/x86_64/strnlen.S: New file.
18924
18925 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18926
18927         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18928         lower-latency instructions.
18929
18930 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18931
18932         * string/test-strcasestr.c: New file.
18933         * string/test-strstr.c: New file.
18934         * string/Makefile (strop-tests): Add strstr and strcasestr.
18935         * string/str-two-way.h: Don't undefine MAX.
18936         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18937
18938 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18939
18940         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18941         strcasestr-nonascii.
18942         (CFLAGS-strcasestr-nonascii.c): Define.
18943         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18944         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18945         Remove unused attribute.
18946
18947 2010-07-20  Roland McGrath  <roland@redhat.com>
18948
18949         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18950         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18951         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18952         like LD_HWCAP_MASK can disable hwcaps.
18953
18954 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18955
18956         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18957
18958 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18959
18960         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18961         call in strcasestr.
18962         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18963         __strcasestr_sse42_nonascii.
18964         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18965         strcasestr-nonascii.c.
18966         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18967
18968 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18969
18970         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18971         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18972         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18973         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18974
18975 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18976
18977         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18978         fcntl.
18979
18980 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18981
18982         [BZ #11577]
18983         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18984         dl_signal_cerror.
18985
18986 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18987
18988         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18989         _PC_PIPE_BUF using F_GETPIPE_SZ.
18990
18991 2010-07-05  Roland McGrath  <roland@redhat.com>
18992
18993         * manual/arith.texi (Rounding Functions): Fix rint description
18994         implicit in round description.
18995
18996 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
18997
18998         * elf/Makefile: Fix linking for a few tests to make recent linker
18999         happy.
19000
19001 2010-06-30  Andreas Schwab  <schwab@redhat.com>
19002
19003         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
19004         $(common-objpfx)libc_nonshared.a.
19005
19006 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
19007
19008         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
19009         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19010         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19011         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19012         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19013         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19014         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19015         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19016         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19017         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19018         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19019         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19020         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19021         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19022         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19024         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19026         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19027         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19029         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19030         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19031         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19032         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19033         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19034         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19035         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19036         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19037         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19038         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19039         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19040         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19041         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19042         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19043         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19044         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19045         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19046         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19047         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19048         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19050         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19056
19057 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19058
19059         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19060         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19061         * string/memmove.c (memmove): Renamed to ...
19062         (MEMMOVE): ...this.  Default to memmove.
19063         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19064         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19065         (END_CHK): Define.
19066         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19067         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19068         mempcpy-ssse3-back memmove-ssse3-back.
19069         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19070         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19071         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19072         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19073         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19074         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19075         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19076         * sysdeps/x86_64/multiarch/memmove.c: New file.
19077         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19078         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19079         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19080         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19081         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19082         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19083         Define.
19084         (index_Fast_Copy_Backward): Define.
19085         (HAS_ARCH_FEATURE): Define.
19086         (HAS_FAST_REP_STRING): Define.
19087         (HAS_FAST_COPY_BACKWARD): Define.
19088
19089 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19090
19091         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19092         Restore proper fallback handling.
19093
19094 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19095
19096         [BZ #11701]
19097         * posix/group_member.c (__group_member): Correct checking loop.
19098
19099         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19100         OOM in getpwuid_r correctly.  Return error number when the caller
19101         should return, otherwise -1.
19102         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19103         call returning > 0 value.
19104         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19105
19106 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19107
19108         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19109         libc_nonshared.a from targets in modules-names.
19110
19111 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19112
19113         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19114         requires it.
19115
19116 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19117
19118         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19119         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19120         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19121         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19122
19123 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19124
19125         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19126
19127 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19128
19129         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19130         and F_GETPIPE_SZ.
19131         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19132         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19133         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19134         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19135         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19136         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19137
19138 2010-06-14  Roland McGrath  <roland@redhat.com>
19139
19140         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19141
19142 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19143
19144         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19145         __REDIRECT followed by __THROW.
19146         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19147         * posix/getopt.h (getopt): Likewise.
19148
19149 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19150
19151         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19152         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19153         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19154         in AT_FLAGS.
19155         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19156         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19157
19158 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19159
19160         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19161
19162 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19163
19164         [BZ #11640]
19165         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19166         Properly check family and model.
19167
19168 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19169
19170         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19171
19172 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19173
19174         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19175
19176 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19177
19178         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19179         symbol reference.
19180
19181 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19182
19183         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19184         symbol reference.
19185
19186 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19187
19188         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19189         and internal_recvmmsg.
19190         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19191         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19192         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19193         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19194
19195         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19196         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19197         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19198
19199 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19200
19201         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19202
19203 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19204
19205         POWER7 optimizations.
19206         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19207         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19208
19209 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19210
19211         * version.h: Update for 2.13 development version.
19212
19213 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19214
19215         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19216         exceptions.  Return 0.
19217
19218 2010-05-07  Roland McGrath  <roland@redhat.com>
19219
19220         * elf/ldconfig.c (main): Add a const.
19221
19222 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19223
19224         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19225         (args_options): Add no-idn option.
19226         (ahosts_keys_int): Add idn_flags to ai_flags.
19227         (parse_option): Handle 'i' option to clear idn_flags.
19228
19229         * malloc/malloc.c (_int_free): Possible race in the most recently
19230         added check.  Only act on the data if no current modification
19231         happened.
19232
19233 See ChangeLog.17 for earlier changes.