Add "shopt -s nullglob" to check-local-headers.sh
[platform/upstream/glibc.git] / ChangeLog
1 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
2
3         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
4
5         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
6         is NULL.
7
8         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
9         (LDLIBS-tst-chk4): This.
10         (LDFLAGS-tst-chk5): Renamed to ...
11         (LDLIBS-tst-chk5): This.
12         (LDFLAGS-tst-chk6): Renamed to ...
13         (LDLIBS-tst-chk6): This.
14         (LDFLAGS-tst-lfschk4): Renamed to ...
15         (LDLIBS-tst-lfschk4): This.
16         (LDFLAGS-tst-lfschk5): Renamed to ...
17         (LDLIBS-tst-lfschk5): This.
18         (LDFLAGS-tst-lfschk6): Renamed to ...
19         (LDLIBS-tst-lfschk6): This.
20
21         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
22         on $(common-objpfx)soversions.mk.
23
24 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
25
26         [BZ #10014]
27         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
28         example host name.
29
30 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
31
32         * malloc/arena.c (arena_get_retry): New function that gets
33         another arena for the caller to try its request on.
34         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
35         current arena cannot fulfill the request.
36         (__libc_memalign): Likewise.
37         (__libc_memalign): Likewise.
38         (__libc_pvalloc): Likewise.
39         (__libc_calloc): Likewise.
40
41 2012-09-05  John Tobey  <john.tobey@gmail.com>
42
43         [BZ #13542]
44         * manual/arith.texi (Operations on Complex): Fix description
45         of carg branch cut.
46
47 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
48
49         [BZ #10014]
50         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
51         host name.
52
53         [BZ #10038]
54         * manual/memory.texi (Memory): Make order of menu items match
55         order of sections.
56
57 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
58
59         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
60         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
61         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
62
63 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
64
65         * csu/libc-tls.c (static_dtv): Renamed to ...
66         (_dl_static_dtv): This.  Make it global.
67         (_dl_initial_dtv): Removed.
68         (__libc_setup_tls): Updated.
69         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
70         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
71         DL_INITIAL_DTV.
72
73 2012-09-06  Petr Machata  <pmachata@redhat.com>
74
75         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
76         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
77         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
78         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
79
80 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
81
82         [BZ #14545]
83         * csu/libc-tls.c (_dl_initial_dtv): New variable.
84         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
85         freeing dtv[-1].
86
87 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
88
89         [BZ #14544]
90         * Makeconfig (link-static-before-libc): Replace $(+prector)
91         with $(+prectorT).
92         (link-static-after-libc): Replace $(+postctor) with
93         $(+postctorT).
94         (link-bounded): Replace $(+prector)/$(+postctor) with
95         $(+prectorT)/$(+postctorT).
96         (+prectorT): New macro.
97         (+postctorT): Likewise.
98
99 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
100
101         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
102         (round_str): Handle values above the maximum for IBM long double
103         as inexact.
104         * stdlib/tst-strtod-round.c (tests): Regenerated.
105
106 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
107
108         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
109         assembler flag.
110         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
111         zarch_nohighgprs around the zarch optimized routines.
112         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
113         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
114         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
115         for zarch.
116
117 2012-09-05  David S. Miller  <davem@davemloft.net>
118
119         * sysdeps/sparc/fpu/libm-test-ulps: Update.
120
121         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
122         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
123         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
124         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
125         entries.
126
127 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
128
129         * malloc/arena.c: Fold copyright years.
130         * malloc/mcheck.c, malloc/memusage.c: Likewise.
131
132 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
133
134         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
135
136 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
137
138         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
139
140 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
141
142         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
143         change internal state upon failure.
144
145 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
146
147         * malloc/mcheck.c (mcheck_check_all): Fix typo.
148         * malloc/memusage.c (mmap): Likewise.
149         (mmap64, mremap): Likewise.  Adjust name in comment.
150
151 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
152
153         * libio/fileops.c: Fix typos in comments.
154         * libio/oldfileops.c: Likewise.
155         * libio/wfileops.c: Likewise.
156
157 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
158
159         [BZ #1349]
160         * malloc/Makefile (tests): Add tst-malloc-usable test case.
161         (tst-malloc-usable-ENV): Set environment for test case.
162         * malloc/hooks.c (malloc_check_get_size): New function to get
163         requested size.
164         * malloc/malloc.c (musable): Use malloc_check_get_size.
165         * malloc/tst-malloc-usable.c: New test case.
166
167 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
168
169         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
170
171 2012-09-05  Allan McRae  <allan@archlinux.org>
172
173         [BZ #13966]
174         * configure.in (CXX_SYSINCLUDES): Use compiler output to
175         determine header location.
176         * configure: Regenerated.
177
178 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
179
180         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
181         float format.
182         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
183         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
184         format.
185         (test): Regenerate.
186
187 2012-09-04  David S. Miller  <davem@davemloft.net>
188
189         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
190         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
191         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
192
193 2012-09-04  Florian Weimer  <fweimer@redhat.com>
194
195         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
196         failures.
197
198         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
199
200 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
201
202         [BZ #9914]
203         * libio/iogetdelim.c: Include <limits.h>.
204         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
205         + len + 1 would overflow.
206
207 2012-09-03  Andreas Jaeger  <aj@suse.de>
208
209         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
210         * sysdeps/i386/fpu/libm-test-ulps: Update.
211
212 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
213
214         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
215         Add s_sinf-sse2, s_conf-sse2.
216
217         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
218         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
219         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
220         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
221
222         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
223         for using routine as __sinf_ia32.
224         Use macro for function declaration and weak_alias.
225         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
226         for using routine as __cosf_ia32.
227         Use macro for function declaration and weak_alias.
228
229         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
230         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
231
232         * sysdeps/x86_64/fpu/s_sinf.S: New file.
233         * sysdeps/x86_64/fpu/s_cosf.S: New file.
234         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
235
236         * math/libm-test.inc (cos_test): Add more test cases.
237         (sin_test): Likewise.
238         (sincos_test): Likewise.
239
240 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
241
242         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
243         (IFUNC_RESOLVE): Make pointers to the specialized implementations
244         hidden.
245         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
246
247 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
248
249         [BZ #14538]
250         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
251         first element of the GOT.
252         (elf_machine_load_address): Return the difference between
253         the runtime address of _DYNAMIC and elf_machine_dynamic ().
254
255 2012-09-01  Allan McRae  <allan@archlinux.org>
256
257         [BZ #13412]
258         * configure.in (AWK): Require gawk version 3.0 or later.
259         * configure: Regenerated.
260
261 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
262
263         * sysdeps/unix/sysv/linux/kernel-features.h
264         (__ASSUME_POSIX_CPU_TIMERS): Remove.
265         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
266         [__NR_clock_getres]: Make code unconditional.
267         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
268         (clock_getcpuclockid): Remove code left unreachable by removal of
269         conditionals.
270         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
271         code unconditional.
272         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
273         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
274         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
275         Make code unconditional.
276         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
277         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
278         * sysdeps/unix/sysv/linux/clock_settime.c
279         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
280         conditional code.
281         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
282         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
283
284 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
285
286         [BZ #14476]
287         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
288         scripts/test-installation.pl.
289
290         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
291         and $ld_so_version if it is set.
292
293 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
294
295         [BZ #14516]
296         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
297         failure if reading from procfs failed.
298         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
299
300 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
301
302         * sysdeps/unix/sysv/linux/kernel-features.h
303         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
304         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
305         Remove conditional code.
306         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
307         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
308         Remove conditional code.
309         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
310         * sysdeps/unix/sysv/linux/i386/fxstat.c
311         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
312         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
313         * sysdeps/unix/sysv/linux/i386/fxstatat.c
314         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
315         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
316         * sysdeps/unix/sysv/linux/i386/lxstat.c
317         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
318         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
319         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
320         Remove conditional code.
321         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
322         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
323         Remove conditional code.
324         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
325         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
326         <kernel-features.h>.
327         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
328         Remove.
329         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
330         Remove conditional code.
331         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
332         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
333         Remove conditional.
334
335 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
336
337         [BZ #5400]
338         * NEWS: Add fixed bug number.
339
340 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
341
342         [BZ #14519]
343         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
344         underflowing exponent in case of negative sign.
345         * stdlib/tst-strtod-round-data: Add more tests.
346         * stdlib/tst-strtod-round.c (tests): Regenerated.
347
348         [BZ #3479]
349         * stdlib/strtod_l.c (NDIG): Remove.
350         (HEXNDIG): Likewise.
351         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
352         smallest representable value.
353         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
354         lie within an exact representation of 1/2 ulp of the result.
355         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
356         unconditionally.
357         (TENS_P9_IDX): Define unconditionally.
358         (TENS_P9_SIZE): Likewise.
359         (TENS_P10_IDX): Likewise.
360         (TENS_P10_SIZE): Likewise.
361         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
362         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
363         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
364         entries for 10^2^13 and 10^2^14.
365         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
366         (TENS_P13_IDX): Define.
367         (TENS_P13_SIZE): Likewise.
368         (TENS_P14_IDX): Likewise.
369         (TENS_P14_SIZE): Likewise.
370         (_fpioconst_pow10): Change array size to
371         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
372         unconditional.
373         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
374         1024]: Add entries for 10^2^13 and 10^2^14.
375         [LAST_POW10 > _LAST_POW10]: Remove #error.
376         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
377         (_fpioconst_pow10): Change array size to
378         FPIOCONST_POW10_ARRAY_SIZE.
379         * stdlib/gen-fpioconst.c: New file.
380         * stdlib/gen-tst-strtod-round.c: Likewise.
381         * stdlib/tst-strtod-round-data: Likewise.
382         * stdlib/tst-strtod-round.c: Likewise.
383         * stdlib/Makefile (tests): Add tst-strtod-round.
384
385         [BZ #14459]
386         * stdlib/strtod_l.c: Include <stdint.h>.
387         (NDEBUG): Do not define.
388         (round_and_return): Change EXPONENT parameter to type intmax_t.
389         Rearrange calculations to avoid internal overflow possibilities.
390         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
391         Rearrange calculations to avoid internal overflow possibilities.
392         Assert that number fits inside MPNSIZE limbs.
393         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
394         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
395         calculations and add assertions to avoid internal overflow
396         possibilities.  Add casts to avoid signed/unsigned operations.
397         * stdlib/tst-strtod-overflow.c: New file.
398         * stdlib/Makefile (tests): Add tst-strtod-overflow.
399
400 2012-08-25  Marek Polacek  <polacek@redhat.com>
401
402         * time/time.h: Fix some typos in comments.
403
404 2012-08-23  Roland McGrath  <roland@hack.frob.com>
405
406         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
407         * posix/tst-rfc3484-2.c: Likewise.
408         * posix/tst-rfc3484-3.c: Likewise.
409
410 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
411
412         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
413         (EF_ARM_ABI_FLOAT_HARD): Likewise.
414
415 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
416
417         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
418         #include of fxstatat64.c.
419
420 2012-08-22  Roland McGrath  <roland@hack.frob.com>
421
422         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
423         * shadow/getspent_r.c: Likewise.
424         * shadow/getspnam.c: Likewise.
425         * shadow/getspnam_r.c: Likewise.
426         * gshadow/getsgent.c: Likewise.
427         * gshadow/getsgent_r.c: Likewise.
428         * gshadow/getsgnam.c: Likewise.
429         * gshadow/getsgnam_r.c: Likewise.
430         * inet/getnetbyad.c: Likewise.
431         * inet/getnetbyad_r.c: Likewise.
432         * inet/getnetbynm.c: Likewise.
433         * inet/getnetbynm_r.c: Likewise.
434         * inet/getnetent.c: Likewise.
435         * inet/getnetent_r.c: Likewise.
436         * inet/getproto.c: Likewise.
437         * inet/getproto_r.c: Likewise.
438         * inet/getprtent.c: Likewise.
439         * inet/getprtent_r.c: Likewise.
440         * inet/getprtname.c: Likewise.
441         * inet/getprtname_r.c: Likewise.
442         * inet/getrpcbyname.c: Likewise.
443         * inet/getrpcbyname_r.c: Likewise.
444         * inet/getrpcbynumber.c: Likewise.
445         * inet/getrpcbynumber_r.c: Likewise.
446         * inet/getrpcent.c: Likewise.
447         * inet/getrpcent_r.c: Likewise.
448         * inet/getaliasent.c: Likewise.
449         * inet/getaliasent_r.c: Likewise.
450         * inet/getaliasname.c: Likewise.
451         * inet/getaliasname_r.c: Likewise.
452         * nscd/getgrgid_r.c: Likewise.
453         * nscd/getgrnam_r.c: Likewise.
454         * nscd/gethstbyad_r.c: Likewise.
455         * nscd/gethstbynm3_r.c: Likewise.
456         * nscd/getpwnam_r.c: Likewise.
457         * nscd/getpwuid_r.c: Likewise.
458         * nscd/getsrvbynm_r.c: Likewise.
459         * nscd/getsrvbypt_r.c: Likewise.
460         * nscd/gai.c: Likewise.
461
462         * configure.in (build_nscd): New substituted variable, set
463         by --disable-build-nscd and defaults to $use_nscd.
464         * configure: Regenerated.
465         * config.make.in (build-nscd): New substituted variable.
466         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
467         Change conditional to require [$(build-nscd) = yes] as well.
468         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
469
470         [BZ# 13696]
471         * configure.in (use_nscd): New substituted variable, set by
472         --disable-nscd.  If enabled, define USE_NSCD.
473         * configure: Regenerated.
474         * config.h.in: Add USE_NSCD.
475         * config.make.in (use-nscd): New substituted variable.
476         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
477         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
478         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
479         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
480         (CFLAGS-getgrnam_r.c): Likewise.
481         (CFLAGS-initgroups.c): Likewise.
482         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
483         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
484         Variables removed.
485         * inet/getnetgrent_r.c
486         (nscd_setnetgrent): New function, broken out of ...
487         (setnetgrent): ... here.  Call it.
488         (innetgr): Conditionalize nscd bits on [USE_NSCD].
489         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
490         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
491         * nscd/Makefile (routines, aux): Move definitions after include of
492         Makeconfig.  Conditionalize on [$(use-nscd) != no].
493         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
494         Conditionalize on [USE_NSCD].
495         (is_nscd, nscd_init_cb): Likewise.
496         (nss_load_library): Conditionalize init callback on [USE_NSCD].
497         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
498         * nss/nss_db/db-init.c: Likewise.
499         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
500         [USE_NSCD].
501         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
502         (make_request): Use it.
503         (cache_valid_p): New function.
504         (__check_pf): Use it.
505         * NEWS: Add item for --disable-nscd.
506
507 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
508
509         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
510         to support sed >= 4.2.1-20-ga9bf076.
511         * configure: Regenerated.
512
513 2012-08-22  Roland McGrath  <roland@hack.frob.com>
514
515         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
516         Conditionalize whole body on [IREL].
517
518 2012-08-22  Jeff Law <law@redhat.com>
519
520         [BZ #14505]
521         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
522         if the family is PF_UNSPEC.
523
524 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
525
526         * Makerules (lib-version): Rename from V.
527         (install-lib-nosubdir): Change V to lib-version.
528
529 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
530
531         [BZ #14252]
532         * powerpc32/power6/wcschr.c: New file.
533         * powerpc32/power6/wcscpy.c: New file.
534         * powerpc32/power6/wcsrchr.c: New file.
535         * powerpc64/power6/wcschr.c: New file.
536         * powerpc64/power6/wcscpy.c: New file.
537         * powerpc64/power6/wcsrchr.c: New file.
538
539 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
540
541         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
542         (two_way_short_needle): Use it.
543         * string/strstr.c (AVAILABLE1_USES_J): Define.
544         * string/strcasestr.c: Likewise.
545
546         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
547         array references.
548         * string/strcasestr.c (TOLOWER): Make side-effect safe.
549
550         [BZ #11607]
551         * NEWS: Add an entry.
552         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
553         define their defaults.
554         (two_way_short_needle): Detect end-of-string on-the-fly.
555         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
556         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
557         * string/bug-strcasestr1.c: New test.
558         * string/Makefile: Run it.
559
560 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
561
562         [BZ #11607]
563         * string/str-two-way.h (two_way_short_needle): Optimize matching of
564         the first character.
565
566 2012-08-21  Roland McGrath  <roland@hack.frob.com>
567
568         * csu/elf-init.c (__libc_csu_irel): Function removed.
569         * csu/libc-start.c (apply_irel): New function.
570         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
571
572 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
573
574         * sysdeps/unix/sysv/linux/kernel-features.h
575         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
576         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
577         <kernel-features.h>.
578         [__NR_fadvise64_64]: Make code unconditional.
579         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
580         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
581         !__NR_fadvise64_64)]: Likewise.
582         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
583         !__NR_fadvise64_64))]: Likewise.
584         [__NR_fadvise64]: Make code unconditional.
585         [!__NR_fadvise64]: Remove conditional code.
586         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
587         <kernel-features.h>.
588         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
589         unconditional.
590         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
591         conditional code.
592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
593         not include <kernel-features.h>.
594         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
595         unconditional.
596         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
597         conditional code.
598         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
599         include <kernel-features.h>.
600         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
601         unconditional.
602         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
603         conditional code.
604
605 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
606
607         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
608         slight instruction rearrangements per scrollpipe analysis.
609         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
610
611 2012-08-20  Roland McGrath  <roland@hack.frob.com>
612
613         * manual/syslog.texi (syslog; vsyslog, closelog):
614         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
615         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
616
617         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
618         DSOCAPS to match condition on defining it.
619
620 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
621
622         * sysdeps/unix/sysv/linux/kernel-features.h
623         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
624         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
625         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
626         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
627         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
628         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
629         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
630         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
631         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
632         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
633
634         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
635         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
636
637         * sysdeps/unix/sysv/linux/kernel-features.h
638         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
639         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
640         unconditional.
641         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
642         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
643         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
644         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
645         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
646         Make code unconditional.
647         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
648         (__mmap64) [!__NR_mmap2]: Likewise.
649         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
650         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
651         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
652         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
653         [__NR_mmap2]: Make code unconditional.
654         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
655         (__mmap64) [!__NR_mmap2]: Likewise.
656
657 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
658
659         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
660
661 2012-08-18  Andreas Jaeger  <aj@suse.de>
662
663         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
664
665 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
666
667         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
668         * include/unistd.h (__have_sock_cloexec): Likewise.
669         (__have_pipe2): Likewise.
670         (__have_dup3): Likewise.
671
672 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
673
674         [BZ #9685]
675         * include/unistd.h (__have_pipe2): Change define into an extern int.
676         (__have_dup3): Likewise.
677         * socket/have_sock_cloexec.c: Include fcntl.h.
678         (__have_pipe2): New variable.
679         (__have_dup3): Likewise.
680
681 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
682
683         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
684
685 2012-08-17  Marek Polacek  <polacek@redhat.com>
686
687         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
688         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
689
690 2012-08-17  Roland McGrath  <roland@hack.frob.com>
691
692         * configure.in: Add AC_SUBST for sysheaders.
693         * configure: Regenerated.
694         * config.make.in (sysheaders): New substituted variable.
695
696         * sysdeps/unix/mkfifo.c: Moved ...
697         * sysdeps/posix/mkfifo.c: ... here.
698         * sysdeps/unix/mkfifoat.c: Moved ...
699         * sysdeps/posix/mkfifoat.c: ... here.
700
701         * sysdeps/unix/utime.c: Moved ...
702         * sysdeps/posix/utime.c: ... here.
703
704         * sysdeps/unix/time.c: Moved ...
705         * sysdeps/posix/time.c: ... here.
706         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
707         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
708
709         * sysdeps/unix/nice.c: Moved ...
710         * sysdeps/posix/nice.c: ... here.
711
712         * sysdeps/unix/alarm.c: Moved ...
713         * sysdeps/posix/alarm.c: ... here.
714
715         * intl/Makefile ($(codeset_mo)): Depend on the input file.
716
717 2012-08-17  Jeff Law <law@redhat.com>
718
719         * intl/Makefile (codeset_mo): New variable.
720         ($(codeset_mo)): New target.
721         (tst-codeset.out): Depend on that.  Remove explicit rule.
722         (tst-gettext3.out, tst-gettext5.out): Likewise.
723         (LOCPATH-ENV, tst-codeset-ENV): New variables.
724         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
725         * intl/tst-codeset.sh: Remove.
726         * intl/tst-gettext3.sh: Likewise.
727         * intl/tst-gettext5.sh: Likewise.
728
729 2012-08-17  Roland McGrath  <roland@hack.frob.com>
730
731         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
732         * sysdeps/unix/syscalls.list: ... here.
733
734         * sysdeps/posix/getaddrinfo.c
735         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
736         (gaiconf_init, gaiconf_reload): Use them.
737         [!_STATBUF_ST_NSEC]
738         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
739         Define using time_t rather than struct timespec.
740
741         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
742         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
743         Macros removed.
744         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
745         [!NO_THREADS].
746         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
747         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
748         Likewise.
749
750         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
751         __libc_cleanup_push argument.
752
753         * bits/param.h: New file.
754         * misc/sys/param.h: New file.
755         * include/sys/param.h: New file.
756         * misc/Makefile (headers): Add bits/param.h.
757         * sysdeps/generic/sys/param.h: File removed.
758         * sysdeps/unix/sysv/linux/bits/param.h: New file.
759         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
760         * sysdeps/mach/hurd/bits/param.h: New file.
761         * sysdeps/mach/hurd/sys/param.h: New file.
762
763         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
764         last change.
765
766         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
767         [_IO_MTSAFE_IO].
768         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
769         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
770         New macros.
771
772         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
773         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
774         rather than -D_IO_MTSAFE_IO conditionally.
775         * stdio-common/Makefile (CPPFLAGS): Likewise.
776         * wcsmbs/Makefile (CPPFLAGS): Likewise.
777         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
778         Use $(libio-mtsafe).
779         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
780         of -D_IO_MTSAFE_IO.
781         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
782         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
783         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
784         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
785         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
786         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
787         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
788         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
789         (CFLAGS-fread_u_chk.c): Likewise.
790         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
791         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
792         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
793         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
794         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
795         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
796         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
797         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
798         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
799
800         * libio/Makefile: Test [$(libc-reentrant) = yes]
801         instead of [$(filter %REENTRANT, $(defines)) nonempty].
802
803         * Makeconfig
804         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
805         * sysdeps/pthread/configure: File removed.
806         * sysdeps/pthread/Makeconfig: New file.
807         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
808         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
809
810 2012-08-16  Gary Benson  <gbenson@redhat.com>
811
812         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
813         unmapping the first object in a namespace.
814
815 2012-08-16  Roland McGrath  <roland@hack.frob.com>
816
817         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
818         (__internal_setnetgrent): ... this.  Add internal_function to
819         definition.  Add libc_hidden_def.
820         (setnetgrent): Update caller.
821         (internal_endnetgrent): Renamed to ...
822         (__internal_endnetgrent): ... this.  Add internal_function to
823         definition.  Add libc_hidden_def.
824         (endnetgrent): Update caller.
825         (internal_getnetgrent_r): Renamed to ...
826         (__internal_getnetgrent_r): ... this.  Add internal_function to
827         definition.  Add libc_hidden_def.
828         (__getnetgrent_r): Update caller.
829         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
830
831 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
832
833         * stdlib/longlong.h: Update from GCC.
834
835 2012-08-16  Roland McGrath  <roland@hack.frob.com>
836
837         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
838         on _QL, which is set by umul_ppmm but never used.
839         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
840         variables, which are set by GMP macros but never used.
841         * stdio-common/_itowa.c (_itowa): Likewise.
842         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
843         * stdlib/mod_1.c (mpn_mod_1): Likewise.
844
845 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
846
847         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
848         struct La_sh_regs is not constant.
849         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
850         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
851         and struct La_sparc64_regs are not constant.
852
853 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
854
855         * sysdeps/unix/sysv/linux/kernel-features.h
856         (__ASSUME_POSIX_TIMERS): Remove.
857         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
858         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
859         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
860         Make code unconditional.
861         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
862         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
863         Make code unconditional.
864         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
865         * sysdeps/unix/sysv/linux/clock_nanosleep.c
866         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
867         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
868         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
869         Make code unconditional.
870         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
871         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
872         (__libc_missing_posix_timers): Remove.
873
874 2012-08-15  Roland McGrath  <roland@hack.frob.com>
875
876         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
877         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
878
879         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
880
881         * elf/dl-sym.c: Include <stdlib.h>.
882
883         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
884         constants, which avoids warnings in 32-bit builds.
885
886         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
887         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
888
889         * misc/lseek.c: File moved to ...
890         * io/lseek.c: ... here.
891
892         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
893
894         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
895         shifting LEN more than 31 bits at once.
896
897 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
898
899         [BZ #14195]
900         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
901         segmentation fault for a case of two empty input strings.
902         * string/test-strncasecmp.c (check1): Renamed to...
903         (bz12205): ...this.
904         (bz14195): Add new testcase for two empty input strings and N > 0.
905         (test_main): Call new testcase, adapt for renamed function.
906
907 2012-08-15  Andreas Jaeger  <aj@suse.de>
908
909         [BZ #14090]
910         * crypt/md5test2.c: New test, based on test supplied by Serge
911         Belyshev <belyshev@depni.sinp.msu.ru>.
912         * crypt/Makefile (xtests): Add md5test-giant..
913         * crypt/Makefile ($(objpfx)md5test-giant): Add.
914
915 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
916
917         [BZ #14090]
918         * crypt/md5.c (md5_process_block): Don't assume the buffer
919         length is less than 2**32.
920         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
921         length is less than 2**64.
922
923 2012-08-15  Roland McGrath  <roland@hack.frob.com>
924
925         * string/str-two-way.h: Include <sys/param.h>.
926         (MAX): Macro removed.
927
928         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
929         Move #define and #undef of memmove to just before and after
930         including <string.h>.
931
932         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
933         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
934         and after including <string.h>.  Move declarations of
935         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
936         to before #include "string/memmove.c".
937
938         * include/dirent.h: Declare __getdirentries.
939
940         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
941         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
942
943 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
944
945         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
946         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
947         * sysdeps/i386/configure: Regenerated.
948         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
949         STABS_CURRENT_FILE, and STABS_FUN.
950         (END): Remove call to STABS_FUN_END.
951         (STABS_CURRENT_FILE1): Delete.
952         (STABS_CURRENT_FILE): Likewise.
953         (STABS_FUN): Likewise.
954         (STABS_FUN_END): Likewise.
955         (STABS_FUN2): Likewise.
956         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
957         * sysdeps/x86_64/configure: Regenerated.
958
959 2012-08-14  Roland McGrath  <roland@hack.frob.com>
960
961         * elf/dl-open.c: Include <atomic.h>.
962         * elf/dl-lookup.c: Likewise.
963
964 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
965
966         * sysdeps/unix/sysv/linux/kernel-features.h
967         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
968         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
969         unconditionally.
970         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
971         unconditionally.
972         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
973         condition on __ASSUME_CLONE_THREAD_FLAGS.
974
975 2012-08-14  Andreas Jaeger  <aj@suse.de>
976
977         * sysdeps/i386/fpu/libm-test-ulps: Update.
978
979 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
980
981         * include/atomic.h (atomic_exchange_and_add): Split into ...
982         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
983         New atomic macros.
984
985 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
986
987         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
988
989 2012-08-13  Jeff Law <law@redhat.com>
990
991         * manual/stdio.texi (snprintf): Clarify handling of the trailing
992         null byte in the output string.
993
994 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
995
996         * sysdeps/unix/sysv/linux/kernel-features.h
997         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
998         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
999         (__ASSUME_ARG_MAX_STACK_BASED): Define.
1000         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
1001         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
1002         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
1003         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
1004
1005 2012-08-09  Jeff Law <law@redhat.com>
1006
1007         [BZ #13939]
1008         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
1009         When avoid_arena is set, don't retry in the that arena.  Pick the
1010         next one, whatever it might be.
1011         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
1012         (arena_lock): Pass in new parameter to arena_get2.
1013         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
1014         arena_get2.
1015         (__libc_malloc): Unify retrying after main arena failure with
1016         __libc_memalign version.
1017         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
1018
1019 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
1020
1021         [BZ #14166]
1022         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
1023         to __redirect_strstr.
1024         (__strstr_sse42): Use typeof __redirect_strstr.
1025         (__strstr_ia32): Likewise.
1026         (__libc_strstr): New prototype.
1027         (strstr): Renamed to ...
1028         (__libc_strstr): This.
1029         (strstr): New strong alias of __libc_strstr.
1030         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
1031         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
1032         __redirect_time.
1033         Include <time.h>.
1034         (__libc_time): New prototype.
1035         (time_ifunc): Replace time with __libc_time.
1036         (time): New strong alias and hidden definition of __libc_time.
1037         (__GI_time): Remove strong alias.
1038         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
1039         Include <stddef.h>.
1040         (memmove): Redefined to __redirect_memmove.
1041         (__memmove_sse2): Use typeof __redirect_memmove.
1042         (__memmove_ssse3): Likewise.
1043         (__memmove_ssse3_back): Likewise.
1044         (__libc_memmove): New prototype.
1045         (memmove): Renamed to ...
1046         (__libc_memmove): This.
1047         (memmove): New strong alias of __libc_memmove.
1048
1049 2012-08-08  Mark Salter  <msalter@redhat.com>
1050
1051         * elf/elf.h
1052         (R_MN10300_TLS_GD): Define.
1053         (R_MN10300_TLS_LD): Likewise.
1054         (R_MN10300_TLS_LDO): Likewise.
1055         (R_MN10300_TLS_GOTIE): Likewise.
1056         (R_MN10300_TLS_IE): Likewise.
1057         (R_MN10300_TLS_LE): Likewise.
1058         (R_MN10300_TLS_DTPMOD): Likewise.
1059         (R_MN10300_TLS_DTPOFF): Likewise.
1060         (R_MN10300_TLS_TPOFF): Likewise.
1061         (R_MN10300_SYM_DIFF): Likewise.
1062         (R_MN10300_ALIGN): Likewise.
1063         (R_MN10300_NUM): Update.
1064
1065 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
1066
1067         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
1068         Remove.
1069
1070 2012-08-08  Roland McGrath  <roland@hack.frob.com>
1071
1072         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
1073
1074         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
1075         sysdeps/unix -> sysdeps/posix move.
1076         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1077
1078 2012-08-07      Allan McRae     <allan@archlinux.org>
1079
1080         [BZ #14303]
1081         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
1082         (SUNOS_CPP): Likewise.
1083         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
1084         not found.
1085         (open_input): Call CPP using execvp.
1086
1087 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1088
1089         * sysdeps/unix/sysv/linux/kernel-features.h
1090         (__ASSUME_PROT_GROWSUPDOWN): Remove.
1091         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1092         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1093         (__ASSUME_WAITID_SYSCALL): Likewise.
1094         * sysdeps/unix/sysv/linux/dl-execstack.c
1095         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
1096         code unconditional.
1097         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
1098         conditional code.
1099         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
1100         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
1101         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
1102         code.
1103         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
1104         unconditional.
1105         [__ASSUME_WAITID_SYSCALL]: Likewise.
1106         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
1107
1108 2012-08-07  Roland McGrath  <roland@hack.frob.com>
1109
1110         * sysdeps/unix/closedir.c: Renamed to ...
1111         * sysdeps/posix/closedir.c: ... here.
1112         * sysdeps/unix/dirfd.c: Renamed to ...
1113         * sysdeps/posix/dirfd.c: ... here.
1114         * sysdeps/unix/dirstream.h: Renamed to ...
1115         * sysdeps/posix/dirstream.h: ... here.
1116         * sysdeps/unix/fdopendir.c: Renamed to ...
1117         * sysdeps/posix/fdopendir.c: ... here.
1118         * sysdeps/unix/opendir.c: Renamed to ...
1119         * sysdeps/posix/opendir.c: ... here.
1120         * sysdeps/unix/readdir.c: Renamed to ...
1121         * sysdeps/posix/readdir.c: ... here.
1122         * sysdeps/unix/readdir_r.c: Renamed to ...
1123         * sysdeps/posix/readdir_r.c: ... here.
1124         * sysdeps/unix/rewinddir.c: Renamed to ...
1125         * sysdeps/posix/rewinddir.c: ... here.
1126         * sysdeps/unix/seekdir.c: Renamed to ...
1127         * sysdeps/posix/seekdir.c: ... here.
1128         * sysdeps/unix/telldir.c: Renamed to ...
1129         * sysdeps/posix/telldir.c: ... here.
1130         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
1131         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
1132         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
1133         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
1134
1135         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
1136         * bits/fcntl.h: ... here.
1137
1138         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
1139         not 0.
1140         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
1141         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
1142         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
1143         (struct flock): Move l_start, l_len to the beginning.
1144         Use __pid_t for l_pid.
1145         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
1146         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
1147         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
1148         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
1149         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
1150         [__USE_LARGEFILE64] (struct flock64): New type.
1151         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
1152
1153         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
1154         * bits/dirent.h: ... here.
1155
1156         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
1157         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
1158
1159 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
1160
1161         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1162         Change from 2.6.0 to 2.6.16.
1163         * sysdeps/unix/sysv/linux/configure: Regenerated.
1164         * sysdeps/unix/sysv/linux/kernel-features.h
1165         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
1166         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
1167         version.
1168         (__ASSUME_UTIMES): Likewise.
1169         (__ASSUME_CLONE_STOPPED): Remove.
1170         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
1171         architectures, not kernel version.
1172         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
1173         (__ASSUME_NO_CLONE_DETACHED): Likewise.
1174         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
1175         (__ASSUME_WAITID_SYSCALL): Likewise.
1176         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
1177         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
1178         * README: State 2.6.16 as minimum Linux kernel version.  Do not
1179         refer to older versions.
1180
1181 2012-08-06  Roland McGrath  <roland@hack.frob.com>
1182
1183         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
1184         Define alphasort64 as an alias.
1185         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
1186         Define versionsort64 as an alias.
1187         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
1188         Define scandir64 as an alias.
1189         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
1190         Define scandirat64 as an alias.
1191         * dirent/alphasort64.c (alphasort64):
1192         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
1193         * dirent/versionsort64.c: Likewise.
1194         * dirent/scandir64.c: Likewise.
1195         * dirent/scandirat64.c: Likewise.
1196         * sysdeps/wordsize-64/alphasort.c: File removed.
1197         * sysdeps/wordsize-64/alphasort64.c: File removed.
1198         * sysdeps/wordsize-64/scandir.c: File removed.
1199         * sysdeps/wordsize-64/scandir64.c: File removed.
1200         * sysdeps/wordsize-64/scandirat.c: File removed.
1201         * sysdeps/wordsize-64/scandirat64.c: File removed.
1202         * sysdeps/wordsize-64/versionsort.c: File removed.
1203         * sysdeps/wordsize-64/versionsort64.c: File removed.
1204         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
1205         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
1206         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
1207         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
1208         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
1209         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
1210         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
1211         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
1212
1213         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
1214         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1215         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
1216         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1217         [defined __arch64__ || defined __sparcv9]
1218         (__INO_T_MATCHES_INO64_T): New macro.
1219         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1220         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
1221         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
1222         * sysdeps/unix/sysv/linux/bits/dirent.h
1223         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
1224         (_DIRENT_MATCHES_DIRENT64): New macro.
1225
1226         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
1227         Define lockf64 as an alias.
1228         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
1229         Define fseeko64 as an alias.
1230         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
1231         Define ftello64 as an alias.
1232         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
1233         Define _IO_fgetpos64 and fgetpos64 as aliases.
1234         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
1235         Define _IO_fsetpos64 and fsetpos64 as aliases.
1236         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
1237         Conditionalize body on this.
1238         * libio/fseeko64.c: Likewise.
1239         * libio/ftello64.c: Likewise.
1240         * libio/iofgetpos64.c: Likewise.
1241         * libio/iofsetpos64.c: Likewise.
1242         * sysdeps/wordsize-64/lockf.c: File removed.
1243         * sysdeps/wordsize-64/lockf64.c: File removed.
1244         * sysdeps/wordsize-64/fseeko.c: File removed.
1245         * sysdeps/wordsize-64/fseeko64.c: File removed.
1246         * sysdeps/wordsize-64/ftello.c: File removed.
1247         * sysdeps/wordsize-64/ftello64.c: File removed.
1248         * sysdeps/wordsize-64/iofgetpos.c: File removed.
1249         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
1250         * sysdeps/wordsize-64/iofsetpos.c: File removed.
1251         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
1252         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
1253         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
1254         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
1255         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
1256         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
1257         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
1258         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
1259         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
1260         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
1261         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
1262
1263         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1264         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
1265         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
1266         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1267         [defined __arch64__ || defined __sparcv9]
1268         (__OFF_T_MATCHES_OFF64_T): New macro.
1269         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
1270         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
1271         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1272         (__OFF_T_MATCHES_OFF64_T): New macro.
1273
1274 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1275
1276         * stdlib/secure-getenv.c (__secure_getenv): Replace
1277         GLIBC_2_16 with GLIBC_2_17.
1278
1279 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
1280
1281         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
1282         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1283
1284 2012-08-03  David S. Miller  <davem@davemloft.net>
1285
1286         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1287
1288 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1289
1290         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
1291         Remove.
1292         (__ASSUME_CORRECT_SI_PID): Likewise.
1293         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
1294         (__ASSUME_TMPFS_NAME): Likewise.
1295         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
1296         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
1297         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
1298         (HAVE_AUX_SECURE): Make definition unconditional.
1299         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
1300         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
1301
1302 2012-08-03  Roland McGrath  <roland@hack.frob.com>
1303
1304         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
1305         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
1306         * sysdeps/mach/hurd/eloop-threshold.h: New file.
1307         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1308         __eloop_threshold instead of SYMLOOP_MAX.
1309
1310         * sysdeps/generic/eloop-threshold.h: New file.
1311         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
1312         of MAXSYMLINKS.
1313         * elf/chroot_canon.c (chroot_canon): Likewise.
1314
1315 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
1316
1317         [BZ #13717]
1318         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1319         Change to 2.6.0 everywhere.
1320         * sysdeps/unix/sysv/linux/configure: Regenerated.
1321         * sysdeps/unix/sysv/linux/kernel-features.h
1322         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
1323         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
1324         kernel versions.
1325         (__ASSUME_POSIX_TIMERS): Define unconditionally.
1326         (__ASSUME_FUTEX_REQUEUE): Remove.
1327         (__ASSUME_STATFS64): Define unconditionally.
1328         (__ASSUME_AT_SECURE): Likewise.
1329         (__ASSUME_CORRECT_SI_PID): Likewise.
1330         (__ASSUME_TGKILL): Define without depending on kernel version for
1331         i386.
1332         (__ASSUME_UTIMES): Likewise.
1333         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
1334         kernel version.
1335         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
1336         (__ASSUME_TMPFS_NAME): Likewise.
1337         * README: Update reference to Linux kernel versions.
1338
1339 2012-08-02  Marek Polacek  <polacek@redhat.com>
1340
1341         [BZ# 14150]
1342         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
1343         libc_cv_asm_type_prefix with %.
1344         * configure: Regenerated.
1345         * include/libc-symbols.h: Remove comment about
1346         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1347         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
1348         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
1349         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
1350         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
1351         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
1352         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
1353         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
1354         * elf/tst-unique2mod1.c: Likewise.
1355         * elf/tst-unique1mod2.c: Likewise.
1356         * elf/tst-unique1mod1.c: Likewise.
1357         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
1358         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
1359         Replace ASM_TYPE_DIRECTIVE with .type.
1360         * sysdeps/s390/s390-64/sysdep.h: Likewise.
1361         * sysdeps/i386/sysdep.h: Likewise.
1362         * sysdeps/x86_64/sysdep.h: Likewise.
1363         * sysdeps/sh/sysdep.h: Likewise.
1364         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
1365         Do not define ASM_TYPE_DIRECTIVE.
1366         * sysdeps/powerpc/sysdep.h: Likewise.
1367         * sysdeps/powerpc/powerpc32/sysdep.h:
1368         Replace ASM_TYPE_DIRECTIVE with .type.
1369         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
1370         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1371         * sysdeps/i386/fpu/e_powf.S: Likewise.
1372         * sysdeps/i386/fpu/e_expl.S: Likewise.
1373         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
1374         * sysdeps/i386/fpu/e_acosh.S: Likewise.
1375         * sysdeps/i386/fpu/e_pow.S: Likewise.
1376         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
1377         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
1378         * sysdeps/i386/fpu/s_expm1.S: Likewise.
1379         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
1380         * sysdeps/i386/fpu/e_log2.S: Likewise.
1381         * sysdeps/i386/fpu/e_log2l.S: Likewise.
1382         * sysdeps/i386/fpu/e_scalb.S: Likewise.
1383         * sysdeps/i386/fpu/e_powl.S: Likewise.
1384         * sysdeps/i386/fpu/e_log10f.S: Likewise.
1385         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
1386         * sysdeps/i386/fpu/e_logl.S: Likewise.
1387         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
1388         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
1389         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
1390         * sysdeps/i386/fpu/e_log2f.S: Likewise.
1391         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
1392         * sysdeps/i386/fpu/e_log.S: Likewise.
1393         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
1394         * sysdeps/i386/fpu/e_logf.S: Likewise.
1395         * sysdeps/i386/fpu/e_log10l.S: Likewise.
1396         * sysdeps/i386/fpu/e_atanh.S: Likewise.
1397         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
1398         * sysdeps/i386/fpu/e_log10.S: Likewise.
1399         * sysdeps/i386/fpu/s_frexp.S: Likewise.
1400         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
1401         * sysdeps/i386/fpu/s_asinh.S: Likewise.
1402         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
1403         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
1404         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
1405         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
1406         * sysdeps/i386/i686/strtok.S: Likewise.
1407         * sysdeps/i386/i386-mcount.S: Likewise.
1408         * sysdeps/i386/strtok.S: Likewise.
1409         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
1410         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
1411         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
1412         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
1413         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
1414         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
1415         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
1416         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
1417         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
1418         * sysdeps/x86_64/_mcount.S: Likewise.
1419         * sysdeps/x86_64/strtok.S: Likewise.
1420         * sysdeps/sh/_mcount.S: Likewise.
1421
1422 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1423
1424         * libio/iofopen.c: Include <fcntl.h>.
1425         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
1426         (_IO_fopen64, fopen64): Define as aliases.
1427         * libio/iofopen64.c: Include <fcntl.h>.
1428         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
1429         Conditionalize body on this.
1430         * sysdeps/wordsize-64/iofopen.c: File removed.
1431         * sysdeps/wordsize-64/iofopen64.c: File removed.
1432
1433 2012-08-01  Marek Polacek  <polacek@redhat.com>
1434
1435         * libc/Makeconfig: Use elf in place of binfmt-subdir.
1436         Use dlfcn directly instead of a variable.
1437         (binfmt-subdir): Do not define.
1438         (dlfcn): Likewise.
1439
1440 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
1441
1442         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
1443         Remove all definitions.
1444         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
1445         <kernel-features.h>.
1446         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1447         (miss_F_GETOWN_EX): Remove all definitions.
1448         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
1449         macro definition.
1450         [!__ASSUME_FCNTL64]: Remove conditional code.
1451         [__ASSUME_FCNTL64]: Make code unconditional.
1452         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
1453         <kernel-features.h>.
1454         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
1455         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
1456         (lockf64) [__NR_fcntl64]: Make code unconditional.
1457         (lockf64) [__ASSUME_FCNTL64]: Likewise.
1458
1459         * sysdeps/unix/sysv/linux/kernel-features.h
1460         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
1461         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
1462         Make code unconditional.
1463         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1464         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1465         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
1466         [__NR_vfork]: Make code unconditional.
1467         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1468         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
1470         [__NR_vfork]: Make code unconditional.
1471         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
1472         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
1473
1474 2012-08-01  Roland McGrath  <roland@hack.frob.com>
1475
1476         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
1477         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
1478
1479         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1480         Define mkstemp64 as an alias.
1481         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1482         Define mkstemps64 as an alias.
1483         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1484         Define mkostemp64 as an alias.
1485         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
1486         Define mkostemps64 as an alias.
1487         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
1488         Conditionalize body on this.
1489         * misc/mkostemp64.c: Likewise.
1490         * misc/mkostemps64.c: Likewise.
1491         * misc/mkstemps64.c: Likewise.
1492         * sysdeps/wordsize-64/mkstemp64.c: File removed.
1493         * sysdeps/wordsize-64/mkostemp64.c: File removed.
1494         * sysdeps/wordsize-64/mkostemp.c: File removed.
1495         * sysdeps/wordsize-64/mkstemp.c: File removed.
1496         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
1497         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
1498         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
1499         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
1500
1501         [BZ #14138]
1502         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
1503         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
1504         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
1505         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
1506
1507         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
1508         compat_symbol macros from <shlib-compat.h> rather than the underlying
1509         default_symbol_version and symbol_version macros, so that DEFAULT
1510         lines in shlib-versions are respected.
1511         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
1512
1513 2012-08-01  Florian Weimer  <fweimer@redhat.com>
1514
1515         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
1516         Declare with warn_unused_result.
1517         (setgid, setregid, setegid, setresgid): Likewise.
1518         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
1519         Likewise.
1520         * WUR-REPORT: Remove set*id functions.
1521
1522 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
1523
1524         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
1525
1526 2012-07-31  Roland McGrath  <roland@hack.frob.com>
1527
1528         * include/sys/socket.h (__libc_accept, __libc_accept4):
1529         Add attribute_hidden.
1530         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
1531
1532         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
1533         use of PTR_MANGLE.
1534         * inet/getnetgrent_r.c (setup): Likewise.
1535
1536         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
1537
1538 2012-07-31  David S. Miller  <davem@davemloft.net>
1539
1540         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1541
1542 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
1543
1544         [BZ #13629]
1545         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
1546         value between 1.0 and 2.0 and smaller part has absolute value less
1547         than 1.0.
1548         * math/s_clog10.c (__clog10): Likewise.
1549         * math/s_clog10f.c (__clog10f): Likewise.
1550         * math/s_clog10l.c (__clog10l): Likewise.
1551         * math/s_clogf.c (__clogf): Likewise.
1552         * math/s_clogl.c (__clogl): Likewise.
1553         * math/libm-test.inc (clog_test): Add more tests.
1554         (clog10_test): Likewise.
1555         * sysdeps/i386/fpu/libm-test-ulps: Update.
1556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1557
1558 2012-07-31  Florian Weimer  <fweimer@redhat.com>
1559
1560         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
1561         Exit with zero in case no suitable GID is found, and write a
1562         message to standard error.
1563
1564 2012-07-30  Roland McGrath  <roland@hack.frob.com>
1565
1566         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
1567         rather than to 1.
1568         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
1569         (MAXPATHLEN): Removed.
1570         (NOGROUP, NODEV): New macros.
1571         (setbit, clrbit, isset, isclr): New macros.
1572         (howmany, roundup, powerof2): New macros.
1573         (DEV_BSIZE): New macro.
1574
1575         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
1576         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
1577
1578         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
1579         definition on [!__NO_LONG_DOUBLE_MATH].
1580
1581         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
1582         PTR_MANGLE and PTR_DEMANGLE.
1583
1584         * socket/accept4.c (accept4): Rename to __libc_accept4.
1585         Define accept4 as a weak alias.
1586
1587         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
1588         on [_DIRENT_HAVE_D_TYPE].
1589         * io/ftw.c (ftw_dir): Likewise.
1590
1591         * io/xmknod.c (__xmknod): Don't check PATH for being null.
1592
1593         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
1594
1595         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
1596         Use the BSD numbers rather than the arbitrary ones we had.
1597         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
1598         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
1599         (SIGXCPU, SIGXFSZ): New macros.
1600         (_NSIG): Now 32.
1601
1602         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
1603         initializer on [_LIBC_REENTRANT].
1604
1605         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
1606         definitions inside [_POSIX_MAPPED_FILES].
1607
1608         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
1609
1610         * dirent/opendir.c: Include <fcntl.h>.
1611
1612         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
1613         (__libc_getspecific): Likewise.
1614         (__libc_key_create): Likewise.
1615
1616         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
1617         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
1618         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
1619         (tmpfile64): Define as alias.
1620         * sysdeps/wordsize-64/tmpfile.c: File removed.
1621         * sysdeps/wordsize-64/tmpfile64.c: File removed.
1622         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
1623         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
1624
1625         * stdio-common/vfscanf.c: Include <stdbool.h>.
1626         * nss/makedb.c: Likewise.
1627         * stdio-common/_i18n_number.h: Likewise.
1628         * argp/argp-help.c: Likewise.
1629         * posix/wordexp.c: Likewise.
1630         * sysdeps/posix/spawni.c: Likewise.
1631         * nss/nss_files/files-initgroups.c: Likewise.
1632         * stdio-common/reg-modifier.c: Include <stdlib.h>.
1633         * nss/nss_files/files-initgroups.c: Likewise.
1634         * nss/nss_db/db-netgrp.c: Likewise.
1635         * nss/nss_db/db-initgroups.c: Likewise.
1636         * io/fchmodat.c: Include <sys/stat.h>.
1637
1638         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
1639         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
1640
1641         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
1642         [HAVE_MMAP].
1643
1644         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
1645         Add multiple inclusion protection.
1646
1647 2012-07-27  David S. Miller  <davem@davemloft.net>
1648
1649         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1650
1651 2012-07-27  Gary Benson  <gbenson@redhat.com>
1652
1653         [BZ #14298]
1654         * elf/rtld.c: Include <stap-probe.h>.
1655         (dl_main): Added static probes "init_start" and "init_complete".
1656         * elf/dl-load.c: Include <stap-probe.h>.
1657         (lose): Take new parameter "nsid".
1658         Added static probe "map_failed".
1659         (_dl_map_object_from_fd): Pass namespace id to lose.
1660         Added static probe "map_start".
1661         (open_verify): Pass namespace id to lose.
1662         * elf/dl-open.c: Include <stap-probe.h>.
1663         (dl_open_worker) Added static probes "map_complete", "reloc_start"
1664         and "reloc_complete".
1665         * elf/dl-close.c: Include <stap-probe.h>.
1666         (_dl_close_worker): Added static probes "unmap_start" and
1667         "unmap_complete".
1668         * elf/rtld-debugger-interface.txt: New file documenting the above.
1669
1670 2012-07-26  Roland McGrath  <roland@hack.frob.com>
1671
1672         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
1673         rather than a string variable.
1674         * sunrpc/rpc_main.c (h_output): Likewise.
1675         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
1676
1677 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
1678
1679         * inet/check_native.c: New file.
1680
1681 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
1682
1683         [BZ #13629]
1684         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
1685         if larger part has absolute value 1.0.
1686         * math/s_clog10.c (__clog10): Likewise.
1687         * math/s_clog10f.c (__clog10f): Likewise.
1688         * math/s_clog10l.c (__clog10l): Likewise.
1689         * math/s_clogf.c (__clogf): Likewise.
1690         * math/s_clogl.c (__clogl): Likewise.
1691         * math/libm-test.inc (clog_test): Add more tests.
1692         (clog10_test): Likewise.
1693         * sysdeps/i386/fpu/libm-test-ulps: Update.
1694         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1695
1696         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
1697         (pltexit): Likewise.
1698         (La_regs): Likewise.
1699         (La_retval): Likewise.
1700         (int_retval): Likewise.
1701         Update #error for removed macros to refer only to definitions in
1702         tst-audit.h.
1703         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
1704         macro.
1705         (pltexit): Likewise.
1706         (La_regs): Likewise.
1707         (La_retval): Likewise.
1708         (int_retval): Likewise.
1709         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
1710         macro.
1711         (pltexit): Likewise.
1712         (La_regs): Likewise.
1713         (La_retval): Likewise.
1714         (int_retval): Likewise.
1715         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
1716         macro.
1717         (pltexit): Likewise.
1718         (La_regs): Likewise.
1719         (La_retval): Likewise.
1720         (int_retval): Likewise.
1721         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
1722         macro.
1723         (pltexit): Likewise.
1724         (La_regs): Likewise.
1725         (La_retval): Likewise.
1726         (int_retval): Likewise.
1727         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
1728         macro.
1729         (pltexit): Likewise.
1730         (La_regs): Likewise.
1731         (La_retval): Likewise.
1732         (int_retval): Likewise.
1733         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
1734         macro.
1735         (pltexit): Likewise.
1736         (La_regs): Likewise.
1737         (La_retval): Likewise.
1738         (int_retval): Likewise.
1739         * sysdeps/generic/tst-audit.h: Update comment to refer only to
1740         macro definitions in tst-audit.h.
1741         * sysdeps/i386/tst-audit.h: New file.
1742         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
1743         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
1744         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
1745         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
1746         * sysdeps/sh/tst-audit.h: Likewise.
1747         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
1748         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
1749         * sysdeps/x86_64/tst-audit.h: Likewise.
1750
1751 2012-07-26  Andreas Jaeger  <aj@suse.de>
1752
1753         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
1754         ptrace.
1755
1756         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
1757         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
1758         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
1759         PTRACE_O_MASK.
1760         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
1761         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
1762         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
1763
1764         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
1765         value.
1766
1767         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
1768         _sigsys.
1769         (si_call_addr, si_syscall, si_arch): Define new macro.
1770         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
1771         _sigsys.
1772         (si_call_addr, si_syscall, si_arch): Define new marcro.
1773         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
1774         _sigsys.
1775         (si_call_addr, si_syscall, si_arch): Define new macro.
1776         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
1777         _sigsys.
1778         (si_call_addr, si_syscall, si_arch): Define new macro.
1779
1780 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1781
1782         [BZ #13717]
1783         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
1784         Change to 2.4.21 where previously 2.4.1.
1785         * sysdeps/unix/sysv/linux/configure: Regenerated.
1786         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
1787         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
1788         Linux kernel version.
1789         (__ASSUME_STD_AUXV): Remove.
1790         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
1791         kernel version.
1792         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
1793         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
1794         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
1795         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
1796         (__ASSUME_NETLINK_SUPPORT): Likewise.
1797         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
1798         (__no_netlink_support): Remove conditional definition.
1799         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
1800         Remove.
1801         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1802         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
1803         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
1804         (if_nameindex_ioctl): Remove.
1805         (if_nameindex_netlink): Do not handle __no_netlink_support.
1806         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1807         code.
1808         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
1809         Remove conditional code.
1810         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
1811         code.
1812         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
1813         unconditional.
1814         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
1815         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
1816         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
1817         Remove.
1818         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
1819         [!__ASSUME_STD_AUXV]: Remove conditional code.
1820         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
1821         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
1822         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
1823         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
1824         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
1825         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1826         code.
1827         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
1829         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
1830         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1831         conditional code.
1832         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
1833         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
1834         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
1835         code.
1836         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
1837         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
1838         conditional code.
1839         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
1840         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1841         code unconditional.
1842         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1843         conditional code.
1844         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1845         unconditional.
1846         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1847         conditional code.
1848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
1849         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1850         unconditional.
1851         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1852         conditional code.
1853         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
1854         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1855         code unconditional.
1856         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1857         conditional code.
1858         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1859         unconditional.
1860         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1861         conditional code.
1862         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
1863         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
1864         code unconditional.
1865         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1866         conditional code.
1867         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
1868         unconditional.
1869         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
1870         conditional code.
1871
1872 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
1873
1874         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
1875         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
1876         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
1877         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
1878         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
1879         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
1880         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
1881         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
1882         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
1883         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
1884         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
1885         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
1886         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
1887         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
1888         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
1889         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
1890         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
1891         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
1892         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
1893         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
1894         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
1895         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
1896         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1897
1898 2012-07-25  Florian Weimer  <fweimer@redhat.com>
1899
1900         * Versions.def: Add GLIBC_2.17.
1901         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
1902         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
1903         Introduce __libc_secure_getenv.
1904         * stdlib/Versions (2.17): Add secure_getenv
1905         (GLIBC_PRIVATE): Add __libc_secure_getenv.
1906         * stdlib/secure-getenv.c: Rename __secure_getenv to
1907         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
1908         symbol __secure_getenv for GLIBC_2.0.
1909         * stdlib/tst-secure-getenv.c: New.
1910         * stdlib/Makefile (tests): Add testcase.
1911         * manual/startup.texi (Environment Access): Document
1912         secure_getenv.
1913         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
1914         __libc_secure_getenv.
1915         * inet/ruserpass.c (ruserpass): Likewise.
1916         * malloc/mtrace.c (mtrace): Likewise.
1917         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
1918         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
1919         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
1920         * sysdeps/posix/tempname.c: Likewise.  Evaluate
1921         HAVE_SECURE_GETENV.
1922         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
1923         __secure_getenv to __libc_secure_getenv.
1924         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
1925         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1926         Likewise.
1927         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1928         Likewise.
1929         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
1930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
1931         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1932         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
1933         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
1934         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1935         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
1936
1937 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
1938
1939         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
1940         (struct La_i86_retval): Likewise.
1941         (struct La_x86_64_regs): Likewise.
1942         (struct La_x86_64_retval): Likewise.
1943         (struct La_x32_regs): Likewise.
1944         (struct La_x32_retval): Likewise.
1945         (struct La_ppc32_regs): Likewise.
1946         (struct La_ppc32_retval): Likewise.
1947         (struct La_ppc64_regs): Likewise.
1948         (struct La_ppc64_retval): Likewise.
1949         (struct La_sh_regs): Likewise.
1950         (struct La_sh_retval): Likewise.
1951         (struct La_s390_32_regs): Likewise.
1952         (struct La_s390_32_retval): Likewise.
1953         (struct La_s390_64_regs): Likewise.
1954         (struct La_s390_64_retval): Likewise.
1955         (struct La_sparc32_regs): Likewise.
1956         (struct La_sparc32_retval): Likewise.
1957         (struct La_sparc64_regs): Likewise.
1958         (struct La_sparc64_retval): Likewise.
1959         (struct audit_ifaces): Remove architecture-specific pltenter and
1960         pltexit members.
1961         * sysdeps/i386/ldsodefs.h: New file.
1962         * sysdeps/powerpc/ldsodefs.h: Likewise.
1963         * sysdeps/s390/ldsodefs.h: Likewise.
1964         * sysdeps/sh/ldsodefs.h: Likewise.
1965         * sysdeps/sparc/ldsodefs.h: Likewise.
1966         * sysdeps/x86_64/ldsodefs.h: Likewise.
1967
1968 2012-07-25  Marek Polacek  <polacek@redhat.com>
1969
1970         [BZ #6808]
1971         * math/libm-test.inc (yn_test): Add another test.
1972         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
1973         to ERANGE when the result is +-Inf.
1974         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
1975         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
1976         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
1977         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
1978
1979 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
1980
1981         * conform/data/time.h-data (NULL): Use macro-constant.  Require
1982         equal to 0.
1983         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
1984         clock_t.
1985         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
1986
1987 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
1988
1989         * configure.in <sysdeps resolving>: Correct printing
1990         Implies_before.
1991         * configure: Regenerate.
1992
1993 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
1994
1995         * math/w_ilogb.c: Include <limits.h>.
1996         * math/w_ilogbl.c: Likewise.
1997
1998 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
1999
2000         * manual/lang.texi (__va_copy): Document primarily as ISO C99
2001         va_copy.  Document allowing for unavailable va_copy only as
2002         pre-C99 compatibility.
2003         * manual/string.texi (Copying and Concatenation): Use va_copy
2004         instead of __va_copy in concat example.
2005
2006 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
2007
2008         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
2009         (__sendto): Use create_address_port.  Initialize APORT and deallocate
2010         it if not null.
2011
2012         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
2013         with O_NOLINK passed to __file_name_lookup.
2014
2015         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
2016         with O_NOLINK passed to __file_name_lookup.
2017
2018         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
2019         negative N or less than NGIDS.
2020
2021         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
2022         type to string_t.  Set ERANGE as errno and return it if NAME is not big
2023         enough.  Use memcpy instead of strncpy.
2024
2025 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
2026
2027         * elf/Makefile (check-data): Remove.
2028         (localplt.data): New vpath directive.
2029         ($(objpfx)check-localplt.out): Use localplt.data from vpath
2030         instead of $(check-data).
2031         * scripts/data/localplt-generic.data: Move to ...
2032         * sysdeps/generic/localplt.data: ... here.
2033         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
2034         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
2035         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
2036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
2037         ... here.
2038         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
2039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
2040         ... here.
2041         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
2042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
2043         ... here.
2044         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
2045         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
2046         ... here.
2047         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
2048         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
2049         ... here.
2050         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
2051         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
2052         ... here.
2053
2054 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2055
2056         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
2057         PPC32 and PPC64 files.
2058         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
2059         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
2060
2061 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2062
2063         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
2064         __makecontext_ret to ...
2065         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
2066         ... here and call exit if uc_link is NULL.  New file.
2067         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
2068         __makecontext_ret.S.
2069         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
2070         __makecontext_ret to ...
2071         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
2072         ... here and call exit if uc_link is NULL.  New file.
2073         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
2074         __makecontext_ret.S.
2075
2076 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2077
2078         * elf/elf.h (R_390_IRELATIVE): New definition.
2079         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
2080         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
2081         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
2082         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2083         (elf_machine_lazy_rel): Likewise.
2084         * sysdeps/s390/dl-irel.h: New file.
2085         * sysdeps/s390/s390-64/memcpy.S: New asm code.
2086         * sysdeps/s390/s390-64/memset.S: New asm code.
2087         * sysdeps/s390/s390-64/memcmp.S: New asm code.
2088         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
2089         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
2090         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
2091         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
2092         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
2093         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
2094         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
2095         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
2096         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
2097         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
2098         * sysdeps/s390/s390-32/memcpy.S: New asm code.
2099         * sysdeps/s390/s390-32/memset.S: New asm code.
2100         * sysdeps/s390/s390-32/memcmp.S: New asm code.
2101
2102 2012-07-17  Marek Polacek  <polacek@redhat.com>
2103
2104         [BZ #14349]
2105         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
2106         * sysdeps/s390/s390-64/configure.in: Likewise.
2107         * sysdeps/sparc/configure.in: Likewise.
2108         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
2109         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
2110         * sysdeps/i386/configure.in: Likewise.
2111         * sysdeps/x86_64/configure.in: Likewise.
2112         * sysdeps/sh/configure.in: Likewise.
2113         * sysdeps/s390/s390-32/configure: Regenerated.
2114         * sysdeps/s390/s390-64/configure: Likewise.
2115         * sysdeps/x86_64/configure: Likewise.
2116         * sysdeps/sh/configure: Likewise.
2117         * sysdeps/powerpc/powerpc64/configure: Likewise.
2118         * sysdeps/powerpc/powerpc32/configure: Likewise.
2119         * sysdeps/sparc/configure: Likwise.
2120         * sysdeps/i386/configure: Likewise.
2121
2122         * elf/dl-open.c: Comment fixes.
2123
2124 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
2125
2126         * Makefile [CXX] (check-data): Remove.
2127         [CXX] (c++-types.data): New vpath directive.
2128         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
2129         vpath.  Do not allow for C++ type data being missing.
2130         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
2131         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
2132         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
2133         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
2134         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
2135         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
2136         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
2137         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
2138         ... here.
2139         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
2140         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
2141         ... here.
2142         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
2143         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
2144         ... here.
2145         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
2146         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
2147         ... here.
2148         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
2149         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
2150         ... here.
2151         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
2152         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
2153         ... here.
2154         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
2155         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
2156         ... here.
2157         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
2158         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
2159
2160         * elf/tls-macros.h (TLS_LE): Move architecture-specific
2161         definitions to architecture-specific files.
2162         (TLS_IE): Likewise.
2163         (TLS_LD): Likewise.
2164         (TLS_GD): Likewise.
2165         * sysdeps/i386/tls-macros.h: New file.
2166         * sysdeps/powerpc/tls-macros.h: Likewise.
2167         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
2168         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
2169         * sysdeps/sh/tls-macros.h: Likewise.
2170         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
2171         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
2172         * sysdeps/x86_64/tls-macros.h: Likewise.
2173
2174 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2175
2176         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
2177         zero value for regular exit case.
2178
2179         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
2180         (__start_context): Preserve zero value for regular exit case.
2181
2182 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
2183             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2184
2185         * manual/setjmp.texi (setcontext): Clarify normal process
2186         termination when uc_link is the null pointer.
2187         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
2188         exit call.
2189
2190 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
2191
2192         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
2193         preprocessor.  Test for each exception mask separately.
2194
2195 2012-07-16  Andreas Jaeger  <aj@suse.de>
2196
2197         * po/ru.po: Update from translation team.
2198
2199 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
2200
2201         * conform/data/string.h-data (NULL): Use macro-constant.  Require
2202         equal to 0.
2203         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
2204         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
2205         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
2206         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
2207         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2208
2209 2012-07-13  Andreas Jaeger  <aj@suse.de>
2210
2211         * po/fr.po: Update from translation team.
2212
2213 2012-07-12  Marek Polacek  <polacek@redhat.com>
2214
2215         [BZ #14173]
2216         * math/libm-test.inc (yn_test): Add test for BZ #14173.
2217         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
2218         loop condition.
2219
2220 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
2221
2222         [BZ #13717]
2223         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
2224         Change to 2.4.1 where previously 2.4.0.
2225         * sysdeps/unix/sysv/linux/configure: Regenerated.
2226         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
2227         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
2228         version.
2229         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
2230         (__ASSUME_AT_CLKTCK): Remove.
2231         (__ASSUME_AT_PAGESIZE): Likewise.
2232         (__ASSUME_AT_XID): Likewise.
2233         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
2234         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
2235         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
2236         unconditionally.
2237         (HAVE_AUX_PAGESIZE): Likewise.
2238         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
2239         [__ASSUME_AT_CLKTCK]: Make code unconditional.
2240         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
2241
2242 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
2243
2244         [BZ #14307]
2245         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
2246         the temporary buffer used to invoke __gethostbyname2_r,
2247         __gethostbyaddr_r and gethostbyname4_r to make room for struct
2248         host_data / struct gaih_addrtuple.
2249         * resolv/nss_dns/dns-host.c (global scope): Move definition of
2250         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
2251         header file nss/nsswitch.h.
2252         * nss/nsswitch.h (global scope): Add definition of implementation
2253         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
2254         resolv/nss_dns/dns-host.c).
2255
2256 2012-07-11  Andreas Jaeger  <aj@suse.de>
2257
2258         * po/fr.po: Update from translation team.
2259
2260         * po/sv.po: Update from translation team
2261         * po/fr.po: Another update from translation team.
2262
2263 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2264
2265         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
2266         for subnormals or multiply small sinh result by itself.
2267         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
2268         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2269
2270 2012-07-11  David S. Miller  <davem@davemloft.net>
2271
2272         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2273
2274 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
2275
2276         [BZ #14347]
2277         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
2278         (INTERNAL_MARK): Shift it here.
2279
2280 2012-07-10  Marek Polacek  <polacek@redhat.com>
2281
2282         [BZ #14151]
2283         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
2284         libc_cv_asm_global_directive with .globl.
2285         * configure: Regenerated.
2286         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
2287         with .globl.
2288         * sysdeps/i386/configure: Regenerated.
2289         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
2290         with .globl.
2291         * sysdeps/x86_64/configure: Regenerated.
2292         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
2293         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
2294         * elf/tst-unique2mod2.c: Likewise.
2295         * elf/tst-unique2mod1.c: Likewise.
2296         * elf/tst-unique1mod2.c: Likewise.
2297         * elf/tst-unique1mod1.c: Likewise.
2298         * sysdeps/s390/s390-32/sysdep.h: Likewise.
2299         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
2300         * sysdeps/s390/s390-64/sysdep.h: Likewise.
2301         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2302         * sysdeps/mach/sysdep.h: Likewise.
2303         * sysdeps/i386/sysdep.h: Likewise.
2304         * sysdeps/i386/i386-mcount.S: Likewise.
2305         * sysdeps/x86_64/_mcount.S: Likewise.
2306         * sysdeps/x86_64/sysdep.h: Likewise.
2307         * sysdeps/sh/_mcount.S: Likewise.
2308         * sysdeps/sh/sysdep.h: Likewise.
2309         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
2310         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
2311         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
2312         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
2313         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
2314         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
2315         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
2316         * locale/localeinfo.h: Likewise.
2317         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
2318         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
2319
2320 2012-07-09  Roland McGrath  <roland@hack.frob.com>
2321
2322         [BZ #14336]
2323         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
2324         system".
2325         * manual/message.texi (The Uniforum approach): Likewise.
2326         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
2327         (glibc iconv Implementation): Likewise.
2328
2329 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
2330
2331         [BZ #14337]
2332         * math/s_clog.c (__clog): Avoid scaling a value down where that
2333         could result in underflow.
2334         * math/s_clog10.c (__clog10): Likewise.
2335         * math/s_clog10f.c (__clog10f): Likewise.
2336         * math/s_clog10l.c (__clog10l): Likewise.
2337         * math/s_clogf.c (__clogf): Likewise.
2338         * math/s_clogl.c (__clogl): Likewise.
2339         * math/libm-test.inc (clog_test): Add more tests.
2340         (clog10_test): Likewise.
2341         * sysdeps/i386/fpu/libm-test-ulps: Update.
2342         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2343
2344 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
2345
2346         [BZ #14283]
2347         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
2348         by 7 not 8 to examine high bit of fractional part.
2349
2350         [BZ #14042]
2351         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
2352         for call to __mcount_internal.
2353         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
2354         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
2355         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
2356
2357 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
2358
2359         [BZ #14154]
2360         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
2361         approximation for values within 0x1p-13f of an odd multiple of
2362         pi/4.
2363         * math/libm-test.inc (tan_test): Do not allow spurious underflow
2364         exception.  Add more tests.
2365         * sysdeps/i386/fpu/libm-test-ulps: Update.
2366
2367         [BZ #6778]
2368         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
2369         inputs and return -1 for them.  Do not check for +Inf in case not
2370         reachable for +Inf.
2371         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
2372         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
2373         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2374         and return -1 for them.  Do not check for +Inf in case not
2375         reachable for +Inf.
2376         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
2377         define.
2378         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
2379         and return -1 for them.  Do not check for +Inf in case not
2380         reachable for +Inf.
2381         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
2382         spurious underflow.
2383         * sysdeps/i386/fpu/libm-test-ulps: Update.
2384         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2385
2386 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
2387
2388         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
2389
2390 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
2391
2392         [BZ #14157]
2393         [BZ #14331]
2394         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
2395         could result in spurious underflow.  Scale down values above
2396         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
2397         * math/s_csqrtf.c (__csqrtf): Likewise.
2398         * math/s_csqrtl.c (__csqrtl): Likewise.
2399         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
2400         spurious underflow.
2401         * sysdeps/i386/fpu/libm-test-ulps: Update.
2402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2403
2404 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
2405
2406         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
2407         xopen-msg.sed.
2408         * catgets/xopen-msg.awk: New file.
2409         * catgets/xopen-msg.sed: Removed.
2410
2411         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
2412         po2text.sed.
2413         * intl/po2test.awk: New file.
2414         * intl/po2test.sed: Removed.
2415
2416 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
2417
2418         [BZ #14328]
2419         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
2420         or multiply small sinh result by itself.
2421         * math/s_ctanf.c (__ctanf): Likewise.
2422         * math/s_ctanh.c (__ctanh): Likewise.
2423         * math/s_ctanhf.c (__ctanhf): Likewise.
2424         * math/s_ctanhl.c (__ctanhl): Likewise.
2425         * math/s_ctanl.c (__ctanl): Likewise.
2426         * math/libm-test.inc (ctan_test_tonearest): New function.
2427         (ctan_test_towardzero): Likewise.
2428         (ctan_test_downward): Likewise.
2429         (ctan_test_upward): Likewise.
2430         (ctanh_test_tonearest): Likewise.
2431         (ctanh_test_towardzero): Likewise.
2432         (ctanh_test_downward): Likewise.
2433         (ctanh_test_upward): Likewise.
2434         (main): Call these new functions.
2435         * sysdeps/i386/fpu/libm-test-ulps: Update.
2436         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2437
2438 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
2439
2440         * .gitignore: Delete /ports entry.
2441
2442 2012-07-03  Andreas Jaeger  <aj@suse.de>
2443
2444         * po/bg.po: Update from translation team.
2445         * po/cs.po: Likewise.
2446         * po/de.po: Likewise.
2447         * po/hr.po: Likewise.
2448         * po/nl.pl: Likewise.
2449         * po/pl.po: Likewise.
2450         * po/vi.po: Likewise.
2451
2452 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
2453
2454         * Makeconfig [!+link] (+link-before-libc): New variable.
2455         [!+link] (+link-after-libc): Likewise.
2456         [!+link] (+link-tests): Likewise.
2457         [!+link] (+link): Define in terms of $(+link-before-libc) and
2458         $(+link-after-libc).
2459         [!+link-static] (+link-static-before-libc): New variable.
2460         [!+link-static] (+link-static-after-libc): Likewise.
2461         [!+link-static] (+link-static-tests): Likewise.
2462         [!+link-static] (+link-static): Define in terms of
2463         $(+link-static-before-libc) and $(+link-static-after-libc).
2464         [build-shared] (link-libc-before-gnulib): New variable.
2465         [build-shared] (link-libc-tests): Likewise.
2466         [build-shared] (link-libc): Define in terms of
2467         $(link-libc-before-gnulib).
2468         [!build-shared] (link-libc-tests): New variable.
2469         (link-libc-static-tests): New variable.
2470         [!gnulib] (gnulib-arch): New variable.
2471         [!gnulib] (gnulib-tests): Likewise.
2472         [!gnulib] (static-gnulib-arch): Likewise.
2473         [!gnulib] (static-gnulib-tests): Likewise.
2474         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
2475         Define with "=" instead of ":=".
2476         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
2477         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
2478         * Rules (binaries-all-notests): New variable.
2479         (binaries-all-tests): Likewise.
2480         (binaries-static-notests): Likewise.
2481         (binaries-static-tests): Likewise.
2482         (binaries-all): Define using $(binaries-all-notests) and
2483         $(binaries-all-tests).
2484         (binaries-static): Define using $(binaries-static-notests) and
2485         $(binaries-static-tests).
2486         (binaries-shared-tests): New variable.
2487         (binaries-shared-notests): Likewise.
2488         (binaries-shared): Remove variable.
2489         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
2490         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
2491         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
2492         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
2493         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
2494         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
2495         * elf/Makefile (sln-modules): New variable.
2496         (extra-objs): Add $(sln-modules:=.o).
2497         (ldconfig-modules): Add static-stubs.
2498         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
2499         * elf/static-stubs.c: New file.
2500
2501         [BZ #14283]
2502         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
2503         by 7 not 8 to examine high bit of fractional part.  Use volatile
2504         variables when splitting into final array of floats if
2505         __FLT_EVAL_METHOD__ != 0.
2506         * math/libm-test.inc (cos_test): Add another test.
2507         (sin_test): Likewise.
2508         * sysdeps/i386/fpu/libm-test-ulps: Update.
2509
2510         [BZ #14273]
2511         * math/libm-test.inc (cosh_test): Add more tests.
2512
2513         * version.h (RELEASE): Set to "development".
2514         (VERSION): Set to "2.16.90".
2515
2516 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
2517
2518         * NEWS: Update copyright. Remove last-updated date.
2519         Mention math library bug fixes and timezone data changes.
2520         * README: Mention GNU/Hurd, x32, and HPPA support status.
2521
2522 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
2523
2524         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
2525
2526 2012-06-27  Andreas Jaeger  <aj@suse.de>
2527
2528         * manual/contrib.texi (Contributors): Add Samuel Thibault.
2529
2530 2012-06-25  Andreas Jaeger  <aj@suse.de>
2531
2532         * sysdeps/s390/fpu/libm-test-ulps: Update.
2533
2534 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
2535             Thomas Schwinge  <thomas@codesourcery.com>
2536
2537         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
2538         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
2539         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
2540         fanotify_mark.
2541
2542 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
2543
2544         * sysdeps/mach/start.c: Remove file.
2545         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
2546         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
2547         * sysdeps/sh/init-first.c: Likewise.
2548
2549         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
2550         registers for frame unwinding purposes, add CFI directives.
2551         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2552         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
2553         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
2554         Likewise.
2555
2556         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
2557         __fortify_fail returning.
2558         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
2559
2560         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
2561         sysdeps/sh/____longjmp_chk.S.
2562         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
2563         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
2564         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
2565         (gen-as-const-headers): Append sigaltstack-offsets.sym.
2566
2567         * sysdeps/sh/abort-instr.h: New file.
2568         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
2569         process in case exit returns.
2570
2571         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
2572         initialize the GOT register before use.
2573
2574         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
2575         calculation of ARGC > 4.
2576
2577         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
2578         meaningful names to some local labels.
2579
2580 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
2581             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2582
2583         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
2584         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
2585         (__arch_compare_and_exchange_val_16_acq): Likewise.
2586         (__arch_compare_and_exchange_val_32_acq): Likewise.
2587         (atomic_exchange_and_add): Fix gUSA sequence.
2588         (atomic_add): Likewise.
2589         (atomic_add_negative): Likewise.
2590         (atomic_add_zero): Likewise.
2591         (atomic_bit_test_set): Likewise.
2592
2593 2012-06-22  Andreas Schwab  <schwab@redhat.com>
2594
2595         [BZ #13579]
2596         * include/link.h (struct link_map): Add l_free_initfini.
2597         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
2598         l_initfini.
2599         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
2600         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
2601         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
2602         set.
2603
2604 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
2605
2606         * configure.in: Use AC_LANG_SOURCE.
2607         * configure: Regenerate.
2608
2609 2012-06-22  Roland McGrath  <roland@hack.frob.com>
2610
2611         * configure.in (libc_cv_localstatedir): New substituted variable.
2612         * configure: Regenerated.
2613         * config.make.in (localstatedir): New variable, substituted from
2614         libc_cv_localstatedir.
2615         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
2616         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
2617         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
2618         * sysdeps/gnu/configure: Regenerated.
2619
2620 2012-06-21  Jeff Law  <law@redhat.com>
2621
2622         [BZ #14277]
2623         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
2624         free.  Simplify list management for _LIBC case.
2625
2626 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
2627
2628         [BZ #14273]
2629         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
2630         Clear sign bit of 64-bit integer value before comparing against
2631         overflow value.
2632
2633         * sysdeps/mach/configure: Regenerated.
2634
2635 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
2636
2637         [BZ #14278]
2638         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
2639
2640 2012-06-21  Jeff Law  <law@redhat.com>
2641
2642         [BZ #13882]
2643         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
2644         uint16_t for elements in the "seen" array to avoid char overflows.
2645         * elf/dl-fini.c (_dl_sort_fini): Likewise.
2646         * elf/dl-open.c (dl_open_worker): Likewise.
2647
2648 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
2649
2650         * scripts/list-sources.sh: Scan PORTS for translations.
2651         * po/libc.pot: Regenerated.
2652
2653 2012-06-21  Andreas Jaeger  <aj@suse.de>
2654
2655         [BZ #12194]
2656         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
2657         warning.
2658         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
2659         * bits/byteswap-16.h (__bswap_16): Likewise.
2660         * bits/byteswap.h (__bswap_constant_16): Likewise.
2661
2662 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
2663
2664         [BZ #14117]
2665         * sysdeps/i386/fpu_control.h: Removed.
2666         * sysdeps/x86_64/fpu_control.h: Moved to ...
2667         * sysdeps/x86/fpu_control.h: Here.
2668
2669         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
2670         (_FPU_SETCW): Likewise.
2671
2672 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
2673
2674         [BZ #14117]
2675         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
2676         * sysdeps/x86/fpu/bits/mathinline.h: This.
2677         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
2678
2679         [BZ #14050]
2680         [BZ #14117]
2681         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
2682         functions if __x86_64__ is defined.
2683
2684 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
2685
2686         * string/endian.h: Add !__ASSEMBLER__ condition for including
2687         conversion interfaces.
2688
2689 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
2690
2691         [BZ #14241]
2692         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
2693         of ABS(x) in calculating zero to negative powers other than odd
2694         integers.
2695         * math/libm-test.inc (pow_test): Add more tests.
2696
2697 2012-06-15  Andreas Jaeger  <aj@suse.de>
2698
2699         * manual/contrib.texi (Contributors): Update entry of Liubov
2700         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
2701         Machado Filho.
2702
2703 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
2704
2705         * string/string.h: Add __wur to GNU version of strerror_r.
2706
2707 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
2708
2709         [BZ #14229]
2710         * string/Makefile (tests): Add tst-strtok_r.
2711         * string/tst-strtok_r.c: New file.
2712         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
2713         RAX_LP/RDX_LP on SAVE_PTR.
2714
2715 2012-06-14  Roland McGrath  <roland@hack.frob.com>
2716
2717         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
2718
2719 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
2720
2721         * libm_test.inc (csqrt_test): Allow more spurious underflow
2722         exceptions.
2723         (j0_test): Likewise.
2724         (j1_test): Likewise.
2725         (y0_test): Likewise.
2726         (y1_test): Likewise.
2727
2728 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
2729
2730         * po/Makefile (libc.pot): Use UTF-8 charset.
2731
2732 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
2733
2734         [BZ #14210]
2735         Suppress sign-conversion warning from FD_SET.
2736         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
2737         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
2738         not unsigned long int.
2739         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
2740
2741 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
2742
2743         [BZ #14050]
2744         [BZ #14117]
2745         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
2746         __extern_always_inline instead of __extern_inline.
2747         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
2748         (__signbit): Likewise.
2749         (__signbitl): Support C++ namespace.
2750         (lrintf): New inline function.
2751         (lrint): Likewise.
2752         (llrintf): Likewise.
2753         (llrint): Likewise.
2754         (fmaxf): Likewise.
2755         (fmax): Likewise.
2756         (fminf): Likewise.
2757         (fmin): Likewise.
2758         (rint): Likewise.
2759         (rintf): Likewise.
2760         (ceil): Likewise.
2761         (ceilf): Likewise.
2762         (floor): Likewise.
2763         (floorf): Likewise.
2764         (nearbyint): Likewise.
2765         (nearbyintf): Likewise.
2766
2767 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
2768
2769         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
2770         non-default versions.
2771
2772 2012-06-11  Roland McGrath  <roland@hack.frob.com>
2773
2774         [BZ #14218]
2775         * manual/argp.texi (Argp): Reword argp_parse description slightly.
2776
2777 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
2778
2779         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
2780         (FE_UPWARD, FE_DOWNWARD): Don't define.
2781         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
2782         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
2783
2784         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
2785         reading it.
2786         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
2787         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
2788
2789 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2790
2791         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
2792         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
2793         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
2794         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
2795
2796 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
2797
2798         [BZ #14117]
2799         * sysdeps/i386/fpu/bits/fenv.h: Removed.
2800         * sysdeps/i386/fpu/Implies: New file.
2801         * sysdeps/x86_64/fpu/Implies: Likewise.
2802         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
2803         * sysdeps/x86/fpu/bits/fenv.h: This.
2804
2805         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
2806         __SSE_MATH__.
2807
2808 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
2809
2810         [BZ #14134]
2811         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
2812         character 0xffff that matches the last element of the
2813         conversion table.
2814
2815 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2816
2817         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
2818         fmodl commit.
2819
2820 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2821
2822         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
2823         values higher than 25.6283.
2824
2825 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2826
2827         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
2828         subnormal exponent extraction and add some __builtin_expect.
2829         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
2830         Fix for subnormal mantissa calculation.
2831
2832 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
2833
2834         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
2835         cpu2 is -1 and errno is not ENOSYS.
2836
2837 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
2838
2839         [BZ #14117]
2840         * sysdeps/i386/i486/bits/string.h: Renamed to ...
2841         * sysdeps/x86/bits/string.h: This.
2842         * sysdeps/x86_64/bits/string.h: Removed.
2843
2844         * sysdeps/i386/i486/bits/string.h: Define inline functions only
2845         if not compiling for x86-64, but compiling for >= i486.
2846
2847         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
2848         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
2849
2850         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
2851         New macro from Linux kernel 3.4.0.
2852         (FP_XSTATE_MAGIC2): Likewise.
2853         (FP_XSTATE_MAGIC2_SIZE): Likewise.
2854         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
2855         (struct _fpx_sw_bytes): New struct.
2856         (struct _xsave_hdr): Likewise.
2857         (struct _ymmh_state): Likewise.
2858         (struct _xstate): Likewise.
2859
2860         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
2861         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
2862         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
2863         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
2864         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
2865         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
2866
2867         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
2868         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
2869         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
2870         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
2871         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
2872         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
2873
2874 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
2875
2876         [BZ #13743]
2877         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
2878         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
2879         (sysdep_headers): Include sys/platform/ppc.h.
2880         * sysdeps/powerpc/test-gettimebase.c: Test for
2881         __ppc_get_timebase() to catch future ISA opcode/insn changes.
2882         * manual/Makefile (appendices): Include platform.texi.
2883         * manual/contrib.texi (Contributors): Update @node pointers.
2884         * manual/maint.texi (Maintenance): Likewise.
2885         (Platform): New node.
2886         * manual/platform.texi: New file.  Document the new features.
2887
2888 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
2889             Jakub Jelinek  <jakub@redhat.com>
2890
2891         [BZ #14188]
2892         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
2893         where __builtin_expect is unavailable.
2894
2895 2012-06-03  David S. Miller  <davem@davemloft.net>
2896
2897         * stdlib/longlong.h: Updated from GCC.
2898
2899 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
2900
2901         [BZ #14042]
2902         * sysdeps/powerpc/powerpc32/mcount.c: New file.
2903         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
2904         __mcount_internal.
2905         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
2906         (GLIBC_2.16): Likewise.
2907
2908 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2909
2910         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
2911
2912 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2913
2914         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
2915         (default-abi): New variable.
2916         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
2917         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
2918         variable.
2919         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
2920         Likewise.
2921         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
2922         Likewise.
2923         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
2924         Likewise.
2925
2926         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
2927         definition.  Document in comment.
2928
2929 2012-06-01  David S. Miller  <davem@davemloft.net>
2930
2931         * stdlib/longlong.h: Updated from GCC.
2932
2933 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2934
2935         [BZ #14117]
2936         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
2937         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
2938         sys/debugreg.h sys/io.h here.
2939         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
2940         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
2941         sys/io.h.
2942         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
2943         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
2944         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
2945         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
2946         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
2947         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
2948
2949         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
2950         Define only if __x86_64__ is defined.
2951
2952 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
2953
2954         [BZ #14048]
2955         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
2956         Use int64_t for variable i.
2957         * math/libm-test.inc (fmod_test): Add more tests.
2958
2959         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
2960         z computation is not scheduled after fetestexcept.
2961         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
2962         Use math_force_eval instead of asm to ensure calculation scheduled
2963         before exception test.
2964         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
2965         Ensure a1 + u.d computation is not scheduled after fetestexcept.
2966
2967 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
2968
2969         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
2970         computation is not scheduled after fetestexcept.
2971
2972 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
2973
2974         [BZ #14117]
2975         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
2976         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
2977
2978 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2979
2980         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
2981         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
2982
2983 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
2984
2985         [BZ #14117]
2986         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
2987         <bits/wordsize.h>.
2988         (__WCHAR_MIN): Support __WORDSIZE == 64.
2989         (__WCHAR_MAX): Likewise.
2990
2991         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
2992         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
2993
2994         [BZ #14183]
2995         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
2996         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
2997
2998         [BZ #14117]
2999         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
3000         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
3001
3002         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
3003         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
3004
3005         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
3006         Defined to 1 if __x86_64__ isn't defined.
3007         (_STAT_VER_LINUX_OLD): New.
3008         (st_atime): Remove duplicate.
3009         (st_mtime): Likewise.
3010         (st_ctime): Likewise.
3011
3012 2012-05-31  David S. Miller  <davem@davemloft.net>
3013
3014         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
3015         entries.
3016
3017 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
3018
3019         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
3020         gen-libm-test.pl.
3021
3022         [BZ #14132]
3023         * elf/dl-reloc.c: Include <_itoa.h>.
3024         (_dl_reloc_bad_type): Remove use of INTUSE.
3025         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
3026         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
3027         * stdio-common/psiginfo.c (psiginfo): Likewise.
3028         * stdio-common/psignal.c (psignal): Likewise.
3029         * string/strsignal.c (strsignal): Likewise.
3030         * include/signal.h (_sys_siglist): Declare hidden proto.
3031         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
3032         INTVARDEF with libc_hidden_data_def.
3033         * stdio-common/itoa-udigits.c: Likewise.
3034         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
3035         (_itoa_lower_digits_internal): Remove declaration.
3036         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
3037         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
3038         (_sys_sigabbrev_internal): Remove aliases.
3039         (_sys_siglist): Define hidden alias.
3040
3041 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
3042
3043         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
3044         bits/sysctl.h.
3045
3046 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
3047
3048         [BZ #14117]
3049         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
3050         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
3051
3052         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
3053         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
3054         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
3055         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
3056         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
3057         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
3058
3059         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
3060         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
3061         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
3062
3063         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
3064         with __addr.
3065         (insw): Likewise.
3066         (insl): Likewise.
3067         (outsb): Likewise.
3068         (outsw): Likewise.
3069         (outsl): Likewise.
3070
3071         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
3072         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
3073         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
3074
3075         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
3076         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
3077         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
3078         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
3079         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
3080         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
3081
3082         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
3083         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
3084
3085         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
3086         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
3087
3088         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
3089         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
3090         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
3091
3092         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
3093         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
3094         to ...
3095         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
3096
3097         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
3098         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
3099         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
3100
3101         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
3102         for x86-64.
3103         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
3104
3105 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
3106
3107         * math/math.h (M_El): Use two more decimal places.
3108         (M_LOG2El): Likewise.
3109         (M_LOG10El): Likewise.
3110         (M_LN2l): Likewise.
3111         (M_LN10l): Likewise.
3112         (M_PIl): Likewise.
3113         (M_PI_2l): Likewise.
3114         (M_PI_4l): Likewise.
3115         (M_1_PIl): Likewise.
3116         (M_2_PIl): Likewise.
3117         (M_2_SQRTPIl): Likewise.
3118         (M_SQRT2l): Likewise.
3119         (M_SQRT1_2l): Likewise.
3120
3121 2012-05-31  David S. Miller  <davem@davemloft.net>
3122
3123         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
3124         values between float registers.
3125         * sysdeps/sparc/sparc64/memset.S: Likewise.
3126         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
3127
3128 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
3129
3130         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
3131         -D_FORTIFY_SOURCE=1.
3132         (CPPFLAGS-tst-longjmp_chk.c): Define.
3133         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
3134         (CPPFLAGS-tst-longjmp_chk2.c): Define.
3135         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
3136         CFLAGS-tst-wchar-h.c.
3137
3138 2012-05-31  Marek Polacek  <polacek@redhat.com>
3139
3140         [BZ #14132]
3141         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
3142         __endmntent_internal): Remove declaration.
3143         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
3144         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
3145         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
3146
3147 2012-05-30  David S. Miller  <davem@davemloft.net>
3148
3149         * sysdeps/sparc/sparc32/soft-fp/q_util.c
3150         (___Q_simulate_exceptions): Use real FP ops rather than writing
3151         into the %fsr.
3152         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
3153         Likewise.
3154
3155 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3156
3157         [BZ #14117]
3158         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
3159         * sysdeps/x86/bits/xtitypes.h: This.
3160
3161         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
3162         * sysdeps/x86/bits/wordsize.h: This.
3163
3164         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
3165         * sysdeps/x86/bits/huge_vall.h: This.
3166
3167         * sysdeps/i386/bits/select.h: Removed.
3168         * sysdeps/x86_64/bits/select.h: Renamed to ...
3169         * sysdeps/x86/bits/select.h: This.
3170
3171         * sysdeps/i386/bits/setjmp.h: Removed.
3172         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
3173         * sysdeps/x86/bits/setjmp.h: This.
3174
3175         * sysdeps/i386/bits/mathdef.h: Removed.
3176         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
3177         * sysdeps/x86/bits/mathdef.h: This.
3178
3179 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
3180
3181         [BZ #14132]
3182         * include/sys/socket.h (__connect_internal)
3183         (__libc_sa_len_internal): Remove declaration.
3184         (__connect, __libc_sa_len): Declare hidden_proto.
3185         (SA_LEN): Remove use of INTUSE.
3186         * socket/connect.c: Add libc_hidden_def.
3187         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
3188         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
3189         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
3190         alias.
3191         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
3192         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
3193         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
3194         of adding _internal alias.
3195
3196 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3197
3198         [BZ #14117]
3199         * sysdeps/i386/bits/link.h: Removed.
3200         * sysdeps/i386/bits/linkmap.h: Likewise.
3201         * sysdeps/x86_64/bits/link.h: Renamed to ...
3202         * sysdeps/x86/bits/link.h: This.
3203         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
3204         * sysdeps/x86/bits/linkmap.h: This.
3205
3206         * sysdeps/i386/bits/endian.h: Removed.
3207         * sysdeps/x86_64/bits/endian.h: Renamed to ...
3208         * sysdeps/x86/bits/endian.h: This.
3209
3210         * sysdeps/i386/bits/byteswap.h: Removed.
3211         * sysdeps/i386/bits/byteswap-16.h: Likewise.
3212         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
3213         * sysdeps/x86/bits/byteswap.h: This.
3214         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
3215         * sysdeps/x86/bits/byteswap-16.h: This.
3216         * sysdeps/i386/Implies: Add x86.
3217         * sysdeps/x86_64/Implies: Likewise.
3218
3219 2012-05-30  David S. Miller  <davem@davemloft.net>
3220
3221         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
3222         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
3223         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
3224         (FP_TRAPPING_EXCEPTIONS): Define.
3225         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
3226         (FP_TRAPPING_EXCEPTIONS): Define.
3227         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
3228         subnormals only when inexact has been signalled or underflow
3229         exceptions are enabled.
3230         (_FP_PACK_CANONICAL): Likewise.
3231
3232 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3233
3234         [BZ #14183]
3235         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
3236         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
3237
3238 2012-05-30  Richard Henderson  <rth@twiddle.net>
3239
3240         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
3241         with #ifndef NOT_IN_libc.
3242
3243         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
3244         marked to avoid plt entry.
3245
3246 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
3247
3248         [BZ #14112]
3249         * Makeconfig (default-abi): New macro.
3250         (abi-includes): Likewise.
3251         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
3252         $(abi-$(default-abi)-lib-soname) for soname if defined.
3253         ($(common-objpfx)gnu/lib-names.stmp): Generate from
3254         abi-variants.
3255         * Makefile (installed-stubs): Likewise.
3256         * include/stubs-biarch.h: Removed.
3257         * scripts/lib-names.awk: Only handle one library at a time.
3258         * scripts/soversions.awk: Remove WORDSIZE support.
3259         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
3260         entries.
3261         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
3262         Removed.
3263         (syscall-list-default-condition): Likewise.
3264         (syscall-list-default-condition): Likewise.
3265         (syscall-list-includes): Likewise.
3266         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
3267         syscall-list-* with abi-*.  Handle undefined abi-variants.
3268         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
3269         * sysdeps/unix/sysv/linux/i386/Implies: New file.
3270         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
3271         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
3272         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
3273         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
3274         Removed.
3275         (syscall-list-32-options): Likewise.
3276         (syscall-list-32-condition): Likewise.
3277         (syscall-list-64-options): Likewise.
3278         (syscall-list-64-condition): Likewise.
3279         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
3280         macro.
3281         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
3282         Renamed to ...
3283         (abi-*): This.
3284         (abi-64-ld-soname): New macro.
3285         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
3286         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
3287         Renamed to ...
3288         (abi-*): This.
3289         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
3290         * sysdeps/x86_64/x32/shlib-versions: Likewise.
3291
3292 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
3293
3294         * sysdeps/unix/sysv/linux/kernel-features.h
3295         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
3296         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
3297         include <kernel-features.h>.
3298         [!__NR_ftruncate64]: Remove conditional code.
3299         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3300         [__NR_ftruncate64]: Make code unconditional.
3301         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3302         * sysdeps/unix/sysv/linux/truncate64.c: Do not
3303         include <kernel-features.h>.
3304         [!__NR_ftruncate64]: Remove conditional code.
3305         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3306         [__NR_ftruncate64]: Make code unconditional.
3307         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
3309         include <kernel-features.h>.
3310         [!__NR_ftruncate64]: Remove conditional code.
3311         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3312         [__NR_ftruncate64]: Make code unconditional.
3313         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3314         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
3315         include <kernel-features.h>.
3316         [!__NR_ftruncate64]: Remove conditional code.
3317         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3318         [__NR_ftruncate64]: Make code unconditional.
3319         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
3320
3321         * configure.in (libc_cv_fpie): Weaken to a compile test using
3322         LIBC_TRY_CC_OPTION.
3323         * configure: Regenerated.
3324
3325 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3326
3327         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
3328         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
3329         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
3330         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3331         Refreshed.
3332         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
3333         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
3334         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
3335         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
3336         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
3337         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3338         Refreshed.
3339
3340 2012-05-27  David S. Miller  <davem@davemloft.net>
3341
3342         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
3343         (___Q_zero): New.
3344         (__Q_simulate_exceptions): Return void.  Change to simulate
3345         exceptions by writing into the %fsr.
3346         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
3347         (__Qp_handle_exceptions): Likewise.
3348         (numbers): Delete.
3349         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
3350         __Qp_handle_exceptions.
3351         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
3352         __Qp_handle_exceptions.
3353         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3354         as unused and give dummy FP_RND_NEAREST initializer.
3355         (FP_INHIBIT_RESULTS): Define.
3356         (___Q_simulate_exceptions): Update declaration.
3357         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
3358         formatting.
3359         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
3360         as unused and give dummy FP_RND_NEAREST initializer.
3361         (__Qp_handle_exceptions): Update declaration.
3362         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
3363         formatting.
3364
3365 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
3366
3367         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
3368         the temporary FPU control word.
3369         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
3370         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
3371         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
3372         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
3373         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
3374         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
3375         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
3376         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
3377         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
3378         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
3379         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
3380
3381 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3382
3383         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
3384         fields.
3385
3386 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
3387
3388         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
3389         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
3390         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
3391         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
3392         Likewise.
3393         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
3394         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
3395         Likewise.
3396
3397 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
3398
3399         * po/h.po: Update from translation team.
3400
3401 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
3402
3403         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
3404
3405         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
3406         handling of denormals.
3407         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
3408         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
3409         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
3410         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
3411         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3412         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
3413         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
3414         Likewise.
3415
3416 2012-05-26  Marek Polacek  <polacek@redhat.com>
3417
3418         [BZ #14152]
3419         * math/libm-test.inc (fma_test): Don't always expect underflow
3420         exception.
3421
3422 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3423
3424         [BZ #12416]
3425         * elf/tst-execstack.c: Include stackinfo.h.
3426         (do_test): Adjust test case to ensure that pthread_getattr_np
3427         behaviour remains the same after marking stack executable.
3428
3429 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3430
3431         * sysdeps/unix/sysv/linux/kernel-features.h
3432         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
3433         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
3434         kernel-features.h.
3435         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3436         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3437         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
3438         kernel-features.h.
3439         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
3440         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
3441
3442 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
3443
3444         * configure.in: Define the default includes to being none.
3445         * configure: Regenerated.
3446
3447 2012-05-25  Roland McGrath  <roland@hack.frob.com>
3448
3449         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
3450         * sysdeps/x86_64/setjmp.S: Likewise.
3451         * sysdeps/i386/bsd-setjmp.S: Likewise.
3452         * sysdeps/i386/bsd-_setjmp.S: Likewise.
3453         * sysdeps/i386/setjmp.S: Likewise.
3454         * sysdeps/i386/__longjmp.S: Likewise.
3455         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
3456         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
3457
3458         * include/stap-probe.h: New file.
3459         * configure.in: Handle --enable-systemtap.
3460         * configure: Regenerated.
3461         * config.h.in (USE_STAP_PROBE): New #undef.
3462         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
3463         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
3464         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
3465
3466 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
3467
3468         [BZ #13717]
3469         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
3470         to 2.4.0 where earlier.
3471         * sysdeps/unix/sysv/linux/configure: Regenerated.
3472         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
3473         <kernel-features.h>.
3474         [__ASSUME_32BITUIDS]: Make code unconditional.
3475         [!__ASSUME_32BITUIDS]: Remove conditional code.
3476         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
3477         <kernel-features.h>.
3478         [__ASSUME_32BITUIDS]: Make code unconditional.
3479         [!__ASSUME_32BITUIDS]: Remove conditional code.
3480         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
3481         [__ASSUME_32BITUIDS]: Make code unconditional.
3482         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
3483         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
3484         <kernel-features.h>.
3485         [__ASSUME_32BITUIDS]: Make code unconditional.
3486         [!__ASSUME_32BITUIDS]: Remove conditional code.
3487         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
3488         <kernel-features.h>.
3489         [__ASSUME_32BITUIDS]: Make code unconditional.
3490         [!__ASSUME_32BITUIDS]: Remove conditional code.
3491         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
3492         <kernel-features.h>.
3493         [__ASSUME_32BITUIDS]: Make code unconditional.
3494         [!__ASSUME_32BITUIDS]: Remove conditional code.
3495         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
3496         <kernel-features.h>.
3497         [__ASSUME_32BITUIDS]: Make code unconditional.
3498         [!__ASSUME_32BITUIDS]: Remove conditional code.
3499         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
3500         <kernel-features.h>.
3501         [__ASSUME_32BITUIDS]: Make code unconditional.
3502         [!__ASSUME_32BITUIDS]: Remove conditional code.
3503         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
3504         <kernel-features.h>.
3505         [__ASSUME_32BITUIDS]: Make code unconditional.
3506         [!__ASSUME_32BITUIDS]: Remove conditional code.
3507         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
3508         <kernel-features.h>.
3509         [__ASSUME_32BITUIDS]: Make code unconditional.
3510         [!__ASSUME_32BITUIDS]: Remove conditional code.
3511         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
3512         <kernel-features.h>.
3513         [__ASSUME_32BITUIDS]: Make code unconditional.
3514         [!__ASSUME_32BITUIDS]: Remove conditional code.
3515         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
3516         <kernel-features.h>.
3517         [__ASSUME_32BITUIDS]: Make code unconditional.
3518         [!__ASSUME_32BITUIDS]: Remove conditional code.
3519         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
3520         <kernel-features.h>.
3521         [__ASSUME_32BITUIDS]: Make code unconditional.
3522         [!__ASSUME_32BITUIDS]: Remove conditional code.
3523         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
3524         <kernel-features.h>.
3525         [__NR_setresgid] (__setresgid): Do not declare.
3526         [__ASSUME_32BITUIDS]: Make code unconditional.
3527         [!__ASSUME_32BITUIDS]: Remove conditional code.
3528         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
3529         <kernel-features.h>.
3530         [__NR_setresuid] (__setresuid): Do not declare.
3531         [__ASSUME_32BITUIDS]: Make code unconditional.
3532         [!__ASSUME_32BITUIDS]: Remove conditional code.
3533         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
3534         <kernel-features.h>.
3535         [__ASSUME_32BITUIDS]: Make code unconditional.
3536         [!__ASSUME_32BITUIDS]: Remove conditional code.
3537         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
3538         <kernel-features.h>.
3539         [__ASSUME_32BITUIDS]: Make code unconditional.
3540         [!__ASSUME_32BITUIDS]: Remove conditional code.
3541         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
3542         <kernel-features.h>.
3543         [__ASSUME_32BITUIDS]: Make code unconditional.
3544         [!__ASSUME_32BITUIDS]: Remove conditional code.
3545         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
3546         <kernel-features.h>.
3547         [__ASSUME_32BITUIDS]: Make code unconditional.
3548         [!__ASSUME_32BITUIDS]: Remove conditional code.
3549         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
3550         <kernel-features.h>.
3551         [__ASSUME_32BITUIDS]: Make code unconditional.
3552         [!__ASSUME_32BITUIDS]: Remove conditional code.
3553         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
3554         <kernel-features.h>.
3555         [__ASSUME_32BITUIDS]: Make code unconditional.
3556         [!__ASSUME_32BITUIDS]: Remove conditional code.
3557         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
3558         <kernel-features.h>.
3559         [__ASSUME_32BITUIDS]: Make code unconditional.
3560         [!__ASSUME_32BITUIDS]: Remove conditional code.
3561         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
3562         <kernel-features.h>.
3563         [__ASSUME_32BITUIDS]: Make code unconditional.
3564         [!__ASSUME_32BITUIDS]: Remove conditional code.
3565         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
3566         <kernel-features.h>.
3567         [__ASSUME_32BITUIDS]: Make code unconditional.
3568         [!__ASSUME_32BITUIDS]: Remove conditional code.
3569         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
3570         <kernel-features.h>.
3571         [__ASSUME_32BITUIDS]: Make code unconditional.
3572         [!__ASSUME_32BITUIDS]: Remove conditional code.
3573         * sysdeps/unix/sysv/linux/kernel-features.h
3574         (__ASSUME_SETRESUID_SYSCALL): Remove.
3575         (__ASSUME_SETRESGID_SYSCALL): Likewise.
3576         (__ASSUME_32BITUIDS): Likewise.
3577         (__ASSUME_LDT_WORKS): Likewise.
3578         (__ASSUME_O_DIRECTORY): Likewise.
3579         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
3580         architecture but not kernel version.
3581         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
3582         (__ASSUME_MMAP2_SYSCALL): Likewise.
3583         (__ASSUME_STAT64_SYSCALL): Likewise.
3584         (__ASSUME_IPC64): Likewise.
3585         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
3586         <kernel-features.h>.
3587         [__ASSUME_32BITUIDS]: Make code unconditional.
3588         [!__ASSUME_32BITUIDS]: Remove conditional code.
3589         * sysdeps/unix/sysv/linux/opendir.c: Do not include
3590         <kernel-features.h>.
3591         [__ASSUME_O_DIRECTORY]: Make code unconditional.
3592         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
3593         132096]: Remove conditional code.
3594         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
3595         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
3596         <kernel-features.h>.
3597         [__ASSUME_32BITUIDS]: Make code unconditional.
3598         [!__ASSUME_32BITUIDS]: Remove conditional code.
3599         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
3600         <kernel-features.h>.
3601         [__ASSUME_32BITUIDS]: Make code unconditional.
3602         [!__ASSUME_32BITUIDS]: Remove conditional code.
3603         * sysdeps/unix/sysv/linux/setegid.c: Do not include
3604         <kernel-features.h>.
3605         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
3606         unconditional.
3607         (__setresgid): Do not declare.
3608         [__ASSUME_32BITUIDS]: Make code unconditional.
3609         [!__ASSUME_32BITUIDS]: Remove conditional code.
3610         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
3611         <kernel-features.h>.
3612         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
3613         unconditional.
3614         (__setresuid): Do not declare.
3615         [__ASSUME_32BITUIDS]: Make code unconditional.
3616         [!__ASSUME_32BITUIDS]: Remove conditional code.
3617         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
3618         <kernel-features.h>.
3619         [__ASSUME_32BITUIDS]: Make code unconditional.
3620         [!__ASSUME_32BITUIDS]: Remove conditional code.
3621         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
3622         <kernel-features.h>.
3623         [__ASSUME_32BITUIDS]: Make code unconditional.
3624         [!__ASSUME_32BITUIDS]: Remove conditional code.
3625
3626 2012-05-25  Richard Henderson  <rth@twiddle.net>
3627
3628         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
3629         dl_hwcap to ifunc resolver.
3630         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
3631         elf_ifunc_invoke.
3632         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
3633         dl_hwcap to ifunc resolver.
3634         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
3635
3636 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3637
3638         [BZ #14153]
3639         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
3640         for |x| <= 2**-26, not 2**-57.
3641         * math/libm-test.inc (acos_test): Do not allow spurious underflow
3642         exception.
3643
3644 2012-05-24  Jeff Law  <law@redhat.com>
3645
3646         * stdio-common/Makefile (tests): Add bug25.
3647         * stdio-common/bug25.c: New test.
3648
3649 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3650
3651         [BZ #13576]
3652         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
3653         multiple of MALLOC_ALIGNMENT in size.
3654         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
3655
3656 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3657
3658         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
3659         Require >= 256.
3660         (FILENAME_MAX): Use macro-int-constant.
3661         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
3662         (_IOFBF): Use macro-int-constant.
3663         (_IOLBF): Likewise.
3664         (_IONBF): Likewise.
3665         (SEEK_CUR): Likewise.
3666         (SEEK_END): Likewise.
3667         (SEEK_SET): Likewise.
3668         (TMP_MAX): Likewise.
3669         (EOF): Use macro-int-constant.  Require < 0.
3670         (NULL): Use macro-constant.  Require == 0.
3671         (stdin): Require type to be FILE *.
3672         (stdout): Likewise.
3673         (stderr): Likewise.
3674         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
3675         macro-int-constant.
3676         (EXIT_SUCCESS): Likewise.
3677         (NULL): Use macro-constant.  Require == 0.
3678         (RAND_MAX): Use macro-int-constant.
3679         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
3680         [C99-based standards] (strtof): Require function.
3681         [C99-based standards] (strtold): Likewise.
3682         [C99-based standards] (strtoll): Likewise.
3683         [C99-based standards] (strtoull): Likewise.
3684         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
3685         [ISO || ISO99 || ISO11] (limits.h): Likewise.
3686         [ISO || ISO99 || ISO11] (math.h): Likewise.
3687         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
3688         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
3689         [ISO || ISO99 || ISO11] (*_t): Do not allow.
3690
3691 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
3692
3693         [BZ #14132]
3694         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
3695         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
3696         * intl/dgettext.c (DCGETTEXT): Likewise.
3697         * intl/gettext.c (DCGETTEXT): Likewise.
3698         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
3699         * posix/regex_internal.h (gettext): Likewise.
3700         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
3701         Remove declaration.
3702         * include/argz.h (__argz_count_internal)
3703         (__argz_stringify_internal): Remove declaration.
3704         (__argz_count, __argz_stringify): Declare hidden proto.
3705         * intl/dcgettext.c: Remove use of INTDEF.
3706         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
3707         * string/argz-stringify.c: Likewise.
3708         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3709         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3710         Declare hidden proto.
3711         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
3712         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
3713         Declare hidden proto.
3714         * include/stdio.h (__asprintf_internal): Don't declare.
3715         (__asprintf): Don't define as macro.  Declare hidden proto.
3716         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
3717         (__fsetlocking): Declare hidden proto.
3718         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
3719         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
3720         hidden proto.
3721         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
3722         (_IO_setlinebuf): Remove use of INTUSE.
3723         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
3724         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
3725         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
3726         Remove declaration.
3727         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
3728         (_IO_do_flush): Remove use of INTUSE.
3729         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
3730         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
3731         (_IO_adjust_column, _IO_least_wmarker)
3732         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
3733         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
3734         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
3735         (_IO_default_doallocate, _IO_wdefault_doallocate)
3736         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
3737         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
3738         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
3739         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
3740         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
3741         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
3742         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
3743         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
3744         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
3745         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
3746         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
3747         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
3748         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
3749         proto.
3750         (_IO_flush_all_internal, _IO_adjust_column_internal)
3751         (_IO_default_uflow_internal, _IO_default_finish_internal)
3752         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
3753         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
3754         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
3755         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
3756         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
3757         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
3758         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
3759         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
3760         (_IO_file_close_internal, _IO_file_close_it_internal)
3761         (_IO_file_underflow_internal, _IO_file_overflow_internal)
3762         (_IO_file_init_internal, _IO_file_attach_internal)
3763         (_IO_file_fopen_internal, _IO_file_read_internal)
3764         (_IO_file_sync_internal, _IO_file_seek_internal)
3765         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
3766         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
3767         (_IO_str_underflow_internal, _IO_str_overflow_internal)
3768         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
3769         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
3770         (_IO_list_all_internal, _IO_link_in_internal)
3771         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
3772         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
3773         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
3774         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
3775         (_IO_do_write_internal, _IO_padn_internal)
3776         (_IO_getline_info_internal, _IO_getline_internal)
3777         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
3778         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
3779         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
3780         (_IO_vfscanf_internal, _IO_vfprintf_internal)
3781         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
3782         (_IO_init_internal, _IO_un_link_internal): Don't declare.
3783         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
3784         with libc_hidden_ver, remove use of INTUSE.
3785         * libio/genops.c: Likewise.
3786         * libio/freopen.c: Likewise.
3787         * libio/freopen64.c: Likewise.
3788         * libio/iofclose.c: Likewise.
3789         * libio/iofdopen.c: Likewise.
3790         * libio/iofflush.c: Likewise.
3791         * libio/iofflush_u.c: Likewise.
3792         * libio/iofgets.c: Likewise.
3793         * libio/iofgets_u.c: Likewise.
3794         * libio/iofopen.c: Likewise.
3795         * libio/iofopncook.c: Likewise.
3796         * libio/iofread.c: Likewise.
3797         * libio/iofread_u.c: Likewise.
3798         * libio/ioftell.c: Likewise.
3799         * libio/iofwrite.c: Likewise.
3800         * libio/iogetline.c: Likewise.
3801         * libio/iogets.c: Likewise.
3802         * libio/iogetwline.c: Likewise.
3803         * libio/iopadn.c: Likewise.
3804         * libio/iopopen.c: Likewise.
3805         * libio/ioseekoff.c: Likewise.
3806         * libio/ioseekpos.c: Likewise.
3807         * libio/iosetbuffer.c: Likewise.
3808         * libio/iosetvbuf.c: Likewise.
3809         * libio/ioungetc.c: Likewise.
3810         * libio/ioungetwc.c: Likewise.
3811         * libio/iovdprintf.c: Likewise.
3812         * libio/iovsprintf.c: Likewise.
3813         * libio/iovsscanf.c: Likewise.
3814         * libio/memstream.c: Likewise.
3815         * libio/obprintf.c: Likewise.
3816         * libio/oldfileops.c: Likewise.
3817         * libio/oldiofclose.c: Likewise.
3818         * libio/oldiofdopen.c: Likewise.
3819         * libio/oldiofopen.c: Likewise.
3820         * libio/oldiopopen.c: Likewise.
3821         * libio/oldstdfiles.c: Likewise.
3822         * libio/putc.c: Likewise.
3823         * libio/setbuf.c: Likewise.
3824         * libio/setlinebuf.c: Likewise.
3825         * libio/stdfiles.c: Likewise.
3826         * libio/strops.c: Likewise.
3827         * libio/vasprintf.c: Likewise.
3828         * libio/vscanf.c: Likewise.
3829         * libio/vsnprintf.c: Likewise.
3830         * libio/vswprintf.c: Likewise.
3831         * libio/wfiledoalloc.c: Likewise.
3832         * libio/wfileops.c: Likewise.
3833         * libio/wgenops.c: Likewise.
3834         * libio/wmemstream.c: Likewise.
3835         * libio/wstrops.c: Likewise.
3836         * libio/__fpurge.c: Likewise.
3837         * libio/__fsetlocking.c: Likewise.
3838         * assert/assert.c: Likewise.
3839         * debug/fgets_chk.c: Likewise.
3840         * debug/fgets_u_chk.c: Likewise.
3841         * debug/fread_chk.c: Likewise.
3842         * debug/fread_u_chk.c: Likewise.
3843         * debug/gets_chk.c: Likewise.
3844         * debug/obprintf_chk.c: Likewise.
3845         * debug/vasprintf_chk.c: Likewise.
3846         * debug/vdprintf_chk.c: Likewise.
3847         * debug/vsnprintf_chk.c: Likewise.
3848         * debug/vsprintf_chk.c: Likewise.
3849         * malloc/mtrace.c: Likewise.
3850         * misc/error.c: Likewise.
3851         * misc/syslog.c: Likewise.
3852         * stdio-common/asprintf.c: Likewise.
3853         * stdio-common/fxprintf.c: Likewise.
3854         * stdio-common/getw.c: Likewise.
3855         * stdio-common/isoc99_fscanf.c: Likewise.
3856         * stdio-common/isoc99_scanf.c: Likewise.
3857         * stdio-common/isoc99_vfscanf.c: Likewise.
3858         * stdio-common/isoc99_vscanf.c: Likewise.
3859         * stdio-common/isoc99_vsscanf.c: Likewise.
3860         * stdio-common/printf-prs.c: Likewise.
3861         * stdio-common/printf_fp.c: Likewise.
3862         * stdio-common/printf_fphex.c: Likewise.
3863         * stdio-common/printf_size.c: Likewise.
3864         * stdio-common/putw.c: Likewise.
3865         * stdio-common/scanf.c: Likewise.
3866         * stdio-common/sprintf.c: Likewise.
3867         * stdio-common/tmpfile.c: Likewise.
3868         * stdio-common/vfprintf.c: Likewise.
3869         * stdio-common/vfscanf.c: Likewise.
3870         * stdlib/strfmon_l.c: Likewise.
3871         * sunrpc/openchild.c: Likewise.
3872         * sunrpc/xdr_stdio.c: Likewise.
3873         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
3874         * sysdeps/mach/hurd/tmpfile.c: Likewise.
3875
3876 2012-05-24  Roland McGrath  <roland@hack.frob.com>
3877
3878         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
3879
3880         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
3881         in the third column, to generate for the shared library an IFUNC
3882         that uses _dl_vdso_vsym.
3883         * Makerules (COMPILE.c, compile-stdin.c): New variables.
3884         * Makeconfig (object-suffixes-noshared): New variable.
3885
3886         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
3887         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
3888         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
3889         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
3890
3891         [BZ #14132]
3892         * include/sys/time.h (__gettimeofday): Remove macro.
3893         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
3894         * time/gettimeofday.c (__gettimeofday): Remove #undef.
3895         Remove INTDEF.
3896         (__gettimeofday): Add libc_hidden_def.
3897         (gettimeofday): Add libc_hidden_weak.
3898         * sysdeps/mach/gettimeofday.c: Likewise.
3899         * sysdeps/posix/gettimeofday.c: Likewise.
3900         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
3901         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
3902         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
3903         (__gettimeofday_internal): Remove strong_alias.
3904         (__gettimeofday): Add libc_hidden_def.
3905         (gettimeofday): Add libc_hidden_weak.
3906         * sysdeps/unix/syscalls.list (gettimeofday):
3907         Remove __gettimeofday_internal alias.
3908
3909 2012-05-24  Daniel Jacobowitz  <drow@false.org>
3910             H.J. Lu  <hongjiu.lu@intel.com>
3911
3912         [BZ #12495]
3913         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
3914         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
3915         (largebin_index_32_big): New.
3916         (largebin_index): Use it for 16-byte alignment.
3917         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
3918         correction with front_misalign.
3919
3920 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
3921
3922         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
3923         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
3924         Likewise.
3925         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
3926         Likewise.
3927         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
3928         Likewise.
3929         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
3930         Likewise.
3931         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
3932         Likewise.
3933         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
3934         Likewise.
3935         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
3936         Likewise.
3937         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3938         Likewise.
3939         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
3940         Likewise.
3941         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
3942         Likewise.
3943         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
3944         Likewise.
3945         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
3946         Likewise.
3947
3948         * scripts/data/c++-types-x32-linux-gnu.data: New file.
3949         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
3950
3951 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
3952
3953         [BZ #10846]
3954         [BZ #14036]
3955         * math/libm-test.inc (exp_test): Add test from bug 14036.
3956         (pow_test): Add test from bug 10846.
3957
3958         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
3959         and other flags.
3960         (special_function): Do not include flags in test name.
3961         (parse_args): Likewise.
3962         * sysdeps/i386/fpu/libm-test-ulps: Update.
3963         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3964         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3965         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3967
3968         * math/gen-libm-test.pl (%beautify): Add entries for underflow
3969         exceptions.
3970         * math/libm-test.inc ("Philosophy"): Update comment about
3971         exception testing.
3972         (UNDERFLOW_EXCEPTION): New macro.
3973         (UNDERFLOW_EXCEPTION_OK): Likewise.
3974         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
3975         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
3976         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
3977         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
3978         (INVALID_EXCEPTION_OK): Update value.
3979         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3980         (OVERFLOW_EXCEPTION_OK): Likewise.
3981         (IGNORE_ZERO_INF_SIGN): Likewise.
3982         (test_exceptions): Handle underflow exceptions.
3983         (acos_test): Update for underflow exception expectations.
3984         (cexp_test): Likewise.
3985         (clog_test): Likewise.
3986         (clog10_test): Likewise.
3987         (csqrt_test): Likewise.
3988         (ctan_test): Likewise.
3989         (ctanh_test): Likewise.
3990         (exp_test): Likewise.
3991         (exp10_test): Likewise.
3992         (exp2_test): Likewise.
3993         (expm1_test): Likewise.
3994         (fma_test): Likewise.
3995         (j0_test): Likewise.
3996         (jn_test): Likewise.
3997         (nexttoward_test): Likewise.
3998         (pow_test): Likewise.
3999         (scalbn_test): Likewise.
4000         (scalbln_test): Likewise.
4001         (tan_test): Likewise.
4002         (y1_test): Likewise.
4003         * sysdeps/i386/fpu/libm-test-ulps: Update.
4004         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4005
4006 2012-05-23  David S. Miller  <davem@davemloft.net>
4007
4008         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
4009         (__libc_sigaction): Remove unused local variables.
4010
4011 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4012
4013         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
4014
4015 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
4016
4017         mktime: avoid signed integer overflow
4018         * time/mktime.c (__mktime_internal): Do not mishandle the case
4019         where diff == INT_MIN.
4020
4021         mktime: simplify computation of average
4022         * time/mktime.c (ranged_convert): Use new time_t_avg function
4023         instead of rolling our own (probably-slower) code.
4024
4025         mktime: do not assume signed right shift propagates sign bit
4026         * time/mktime.c (isdst_differ): New static function.
4027         (__mktime_internal): No need to normalize tm_isdst now.
4028         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
4029         tm_isdst values.
4030
4031         mktime: merge another wrapv change from gnulib
4032         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
4033         from some compilers.
4034
4035         mktime: remove incorrect attempt at unusual arithmetics
4036         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
4037         The code didn't really work on such machines anyway.
4038         (TYPE_MINIMUM): Assume two's complement.
4039         (twos_complement_arithmetic): Verify that long_int and time_t
4040         are two's complement (or unsigned, in the latter case).
4041
4042         mktime: check signed shifts on long_int and time_t, too
4043         * time/mktime.c (SHR): Check that shifts work as desired
4044         on the types long_int and time_t too, as SHR is used on
4045         such types.
4046
4047         mktime: do not assume 'long' is wide enough
4048         * time/mktime.c (verify): Move decl up.
4049         (long_int): New type.
4050         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
4051         to remove assumption in the code that 'long' is wide enough to
4052         store year values.  This assumption is not true on x32 and on
4053         some non-glibc platforms.
4054
4055         mktime: merge wrapv change from gnulib
4056         * time/mktime.c (WRAPV): New macro.
4057         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
4058         (guess_time_tm, __mktime_internal): Do not assume that signed
4059         integer overflow wraps around; modern compilers generate code
4060         where this assumption is no longer valid.
4061
4062 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4063
4064         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4065         Replace "jmp L(pseudo_end)" with "ret".
4066         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
4067         Likewise.
4068
4069 2012-05-23  Andreas Jaeger  <aj@suse.de>
4070
4071         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
4072         * sysdeps/unix/sysv/linux/poll.c: Remove file.
4073
4074 2012-05-23  Andreas Jaeger  <aj@suse.de>
4075             Maximilian Attems  <max@stro.at>
4076
4077         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
4078         New macros.
4079
4080 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
4081
4082         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
4083         code so that pseudo_end is just ret and the stack pointer is
4084         correct also for static library in error case.
4085
4086 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
4087
4088         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
4089         move to syscalls.list.
4090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
4091         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
4092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
4093         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
4094
4095         * manual/install.texi (Running make install): Do not mention Linux
4096         kernel version for which pt_chown is not needed.
4097         (Linux): Do not mention problems with nscd with 2.0 kernels.
4098         * INSTALL: Regenerated.
4099
4100 2012-05-23  Andreas Jaeger  <aj@suse.de>
4101
4102         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
4103         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
4104         macro.
4105         * sysdeps/unix/sysv/linux/s390/bits/mman.h
4106         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4107         * sysdeps/unix/sysv/linux/sh/bits/mman.h
4108         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4109         * sysdeps/unix/sysv/linux/i386/bits/mman.h
4110         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4111         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
4112         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4113         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
4114         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
4115         * sysdeps/unix/sysv/linux/bits/in.h
4116         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
4117
4118 2012-05-22  Roland McGrath  <roland@hack.frob.com>
4119
4120         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
4121         (PREPARE_VERSION): Just use assert instead, it will be elided
4122         under [NDEBUG] anyway.
4123
4124 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4125
4126         * sysdeps/unix/sysv/linux/Makefile: Include
4127         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
4128         (sysdep_routines): Remove sysctl.
4129         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
4130         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
4131         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
4132         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
4133         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
4134
4135 2012-05-22  Andreas Jaeger  <aj@suse.de>
4136
4137         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
4138         that pseudo_end is just ret and the stack pointer is correct also
4139         for static library in error case.
4140
4141 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
4142
4143         [BZ #14122]
4144         * nss/nsswitch.c (defconfig_entries): New variable.
4145         (__nss_database_lookup): Don't leak defconfig entries.
4146         (nss_parse_service_list): Don't leak on error paths.
4147         (free_database_entries): New function.
4148         (free_defconfig): New function.
4149         (free_mem): Move common code to free_database_entries.
4150
4151 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4152
4153         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
4154         Add arch_prctl.
4155         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
4156
4157         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
4158         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
4159         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
4160         New macro.
4161         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
4162         (INTERNAL_SYSCALL_TYPES): Likewise.
4163         (LOAD_ARGS_TYPES_[1-6]): Likewise.
4164         (LOAD_REGS_TYPES_[1-6]): Likewise.
4165         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
4166         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
4167
4168 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4169
4170         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
4171         copysignl for GLIBC_2_0.
4172         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
4173         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
4174         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
4175         logbl for GLIBC_2_0.
4176         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
4177         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
4178
4179 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4180
4181         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
4182         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4183
4184         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
4185         Use "neg %eax".
4186
4187         * time/mktime.c: Update copyright years.
4188
4189 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
4190
4191         mktime: merge comment-quoting-style change from gnulib
4192         * time/mktime.c: Quote 'like this' in comments.
4193         The GNU coding standards suggest that we no longer quote `like this',
4194         as "`" and "'" are typically rendered asymmetrically nowadays.
4195         The typical gnulib style is to quote 'like this' when quoting
4196         code, and "like this" when quoting English.
4197
4198         * time/mktime.c (compile-command): Add "-I.".
4199
4200         mktime: merge mktime-internal.h change from gnulib
4201         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
4202
4203         mktime: merge time_r change from gnulib
4204         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
4205
4206         mktime: merge DEBUG change from gnulib
4207         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
4208         case system <time.h> has a #define.
4209
4210         mktime: merge <sys/types.h> change from gnulib
4211         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
4212         since <time.t> is now guaranteed to define time_t.
4213
4214         mktime: merge HAVE_CONFIG_H change from gnulib
4215         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
4216
4217 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
4218
4219         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4220         Use "neg %eax".
4221
4222         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
4223         __rlim_t cast.
4224         (struct rusage): Use anonymous union to pad each field to
4225         __syscall_slong_t.
4226
4227 2012-05-21  David S. Miller  <davem@davemloft.net>
4228
4229         * Makefules (o-iterator): Remove .s cases.
4230         (compile-command.s): Delete.
4231         (COMPILE.s): Delete.
4232         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
4233
4234 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
4235
4236         * configure.in (libc_cv_predef_stack_protector): Only consider
4237         "foobar" and "__stack_chk_fail" lines in libc_undefs.
4238         * configure: Regenerated.
4239
4240 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4241
4242         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
4243         New macro.  Use R*LP on int and pointer.
4244         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
4245         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
4246         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
4247         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
4248
4249         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
4250         [__WORDSIZE_TIME64_COMPAT32] instead of
4251         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
4252         (struct utmp): Likewise.
4253         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
4254         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
4255         Renamed to ...
4256         (__WORDSIZE_TIME64_COMPAT32): This.
4257         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
4258         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
4259         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
4260         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
4261         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
4262         (__WORDSIZE_TIME64_COMPAT32): New macro.
4263
4264 2012-05-21  Andreas Jaeger  <aj@suse.de>
4265
4266         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
4267         only if [SHARED]. Add prototype for __wcschr_ia32.
4268
4269 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4270
4271         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
4272         of %rbp unmolested in the jmp_buf while mangling the low bits.
4273         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
4274         unmolested high bits of %rbp while demangling the low bits.
4275         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
4276
4277 2012-05-21  Andreas Jaeger  <aj@suse.de>
4278
4279         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
4280         * sunrpc/svc_simple.c: Use it for registerrpc.
4281         * sunrpc/xcrypt.c: Use it for passwd2des.
4282
4283         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
4284
4285 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4286
4287         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
4288         Don't define if [__SYSCALL_WORDSIZE != 32].
4289         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
4290         New macro.
4291
4292 2012-05-21  Bruno Haible  <bruno@clisp.org>
4293             Andreas Jaeger  <aj@suse.de>
4294
4295         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
4296         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
4297         inptr and inend for must_buffer_ch.
4298         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
4299         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
4300         * stdio-common/Makefile (tests): Remove bug15.
4301         (bug15-ENV): Remove macro.
4302         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
4303         anymore.
4304
4305 2012-05-19  Andreas Jaeger  <aj@suse.de>
4306             Roland McGrath  <roland@hack.frob.com>
4307
4308         * manual/contrib.texi: Completely rewritten. It contains now an
4309         alphabetical list of contributors and their contributions.
4310
4311 2012-05-21  Richard Henderson  <rth@twiddle.net>
4312
4313         * misc/getauxval.c (__getauxval): Use unsigned long int.
4314         * misc/sys/auxv.h: Include <sys/cdefs.h>.
4315         (getauxval): Use unsigned long int.
4316
4317 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
4318
4319         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
4320
4321 2012-05-21  Roland McGrath  <roland@hack.frob.com>
4322
4323         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
4324         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
4325         __alignof__ (long double).
4326
4327 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4328
4329         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4330
4331 2012-05-20  Richard Henderson  <rth@twiddle.net>
4332
4333         * misc/getauxval.c: New file.
4334         * misc/sys/auxv.h: New file.
4335         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
4336         (routines): Add getauxval.
4337         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
4338         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
4339         * elf/dl-sysdep.c (_dl_auxv): Remove.
4340         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
4341         * elf/dl-support.c (_dl_auxv): New variable.
4342         (_dl_aux_init): Initialize it.
4343         * manual/startup.texi (Auxiliary Vector): New node.
4344         * sysdeps/generic/bits/hwcap.h: New file.
4345         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
4346         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
4347         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
4348         * sysdeps/sparc/sysdep.h: ... here.  Include it.
4349         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
4350         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
4351         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
4352         Update.
4353         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
4354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
4355         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
4356         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
4357         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4358         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
4359         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
4360         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
4361
4362 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4363
4364         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4365
4366 2012-05-19  David S. Miller  <davem@davemloft.net>
4367
4368         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4369
4370 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4371
4372         [BZ #14123]
4373         * math/s_ccosh.c: Include <float.h>
4374         (__ccosh): Avoid internal overflow calculating sinh and cosh
4375         values before multiplying by sin and cos values.
4376         * math/s_ccoshf.c: Likewise.
4377         * math/s_ccoshl.c: Likewise.
4378         * math/s_csin.c: Likewise.
4379         * math/s_csinf.c: Likewise.
4380         * math/s_csinl.c: Likewise.
4381         * math/s_csinh.c: Likewise.
4382         * math/s_csinhf.c: Likewise.
4383         * math/s_csinhl.c: Likewise.
4384         * math/libm-test.inc (ccos_test): Add more tests.
4385         (ccosh_test): Likewise.
4386         (csin_test): Likewise.
4387         (csinh_test): Likewise.
4388         * sysdeps/i386/fpu/libm-test-ulps: Update.
4389         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4390
4391 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
4392
4393         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
4394         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
4395
4396         * sysdeps/x86_64/x32/_itoa.h: Add comment.
4397
4398 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
4399
4400         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
4401         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
4402         * sysdeps/powerpc/soft-fp/Versions: Likewise.
4403         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
4404         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
4405         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
4406         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
4407         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
4408         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
4409         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
4410         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
4411         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
4412         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
4413         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
4414         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
4415         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
4416         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
4417         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
4418         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
4419         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
4420         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
4421         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
4422         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
4423         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
4424         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
4425         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
4426         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
4427         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
4428         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
4429         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
4430         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
4431
4432 2012-05-18  Andreas Jaeger  <aj@suse.de>
4433
4434         * csu/.gitignore: Delete.
4435
4436 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4437
4438         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
4439         (timex): Use __syscall_slong_t.
4440
4441 2012-05-18  Andreas Jaeger  <aj@suse.de>
4442             Carlos O'Donell  <carlos_odonell@mentor.com>
4443
4444         * manual/install.texi (Configuring and compiling): Update
4445         description about files modified in the source directory.
4446         * INSTALL: Regenerated.
4447
4448 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4449
4450         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
4451         value.  Use "or" to set return value to -1.
4452         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
4453         negate return value.
4454
4455 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4456
4457         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
4458         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
4459         failure if the compiler has Graphite support disabled.
4460         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
4461         Likewise.
4462         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
4463         CFLAGS-memmove.c): Likewise.
4464         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
4465         Likewise.
4466
4467 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
4468
4469         * sysdeps/x86_64/x32/_itoa.h: New file.
4470
4471         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
4472         getdents system call only if kernel and user dirents have the
4473         same d_ino and d_off.
4474
4475         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4476         LLONG_MAX != LONG_MAX.
4477         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4478         (_fitoa_word): Likewise.
4479
4480         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
4481         years.
4482         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
4483         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
4484         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
4485
4486         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
4487         include <bits/wordsize.h>.  Check __x86_64__ instead of
4488         __WORDSIZE.
4489         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
4490         if __x86_64__ is defined.  Use anonymous union on fpstate.
4491
4492         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
4493         anonymous union.
4494
4495 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
4496
4497         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
4498         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
4499         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
4500         Refer to _rtld_local_ro instead of _rtld_global_ro.
4501         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
4502         Likewise.
4503         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
4504         Likewise.
4505         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
4506         Likewise.
4507         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
4508         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
4509         of _rtld_global, and rtld_progname instead of _dl_argv[0].
4510
4511         * sysdeps/powerpc/powerpc32/dl-machine.c
4512         (__elf_machine_runtime_setup) [PROF]: Don't reference
4513         _dl_prof_resolve.
4514
4515 2012-05-18  Andreas Jaeger  <aj@suse.de>
4516
4517         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
4518         function only available for GCCs before 3.4 since GCC 3.4
4519         introduced a builtin.
4520         (lrint): Likewise.
4521         (llrintf): Likewise.
4522         (llrint): Likewise.
4523         (fmaxf): Likewise.
4524         (fmax): Likewise.
4525         (fminf): Likewise.
4526         (fmin): Likewise.
4527         (rint): Likewise.
4528         (rintf): Likewise.
4529         (nearbyint): Likewise.
4530         (nearbyintf): Likewise.
4531         (ceil): Likewise.
4532         (ceilf): Likewise.
4533         (floor): Likewise.
4534         (floorf): Likewise.
4535
4536 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4537
4538         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
4539         on both fields and cast pointer to __syscall_ulong_t.
4540
4541         * bits/types.h (__fsword_t): New type.
4542         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
4543         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
4544         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4545         (__FSWORD_T_TYPE): Likewise.
4546         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4547         (__FSWORD_T_TYPE): Likewise.
4548         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4549         (__FSWORD_T_TYPE): Likewise.
4550         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
4551         (__FSWORD_T_TYPE): Likewise.
4552         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
4553         __SWORD_TYPE with __fsword_t.
4554         (statfs64): Likewise.
4555
4556 2012-05-17  David S. Miller  <davem@davemloft.net>
4557
4558         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
4559
4560 2012-05-17  Andreas Jaeger  <aj@suse.de>
4561
4562         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
4563         warning.
4564
4565 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4566
4567         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
4568
4569 2012-05-17  Andreas Jaeger  <aj@suse.de>
4570
4571         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
4572         when it is used.
4573
4574 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4575
4576         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
4577
4578 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
4579
4580         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
4581         * sysdeps/x86_64/tst-mallocalign1.c: New file.
4582
4583 2012-05-17  Andreas Jaeger  <aj@suse.de>
4584             Carlos O'Donell  <carlos_odonell@mentor.com>
4585
4586         [BZ #14059]
4587         * sysdeps/x86_64/multiarch/init-arch.h
4588         (bit_YMM_Usable): Rename to...
4589         (bit_AVX_Usable): ... this.
4590         (bit_FMA4_Usable): New macro.
4591         (bit_XMM_state): New macro.
4592         (bit_YMM_state): New macro.
4593         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
4594         [__ASSEMBLER__] (index_AVX_Usable): ... this.
4595         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
4596         (CPUID_OSXSAVE): New macro.
4597         (CPUID_AVX): New macro.
4598         (CPUID_FMA4): New macro.
4599         (index_YMM_Usable): Rename to...
4600         (index_AVX_Usable): ... this.
4601         (HAS_AVX): Use HAS_ARCH_FEATURE.
4602         (HAS_FMA4): Likewise.
4603         (HAS_YMM_USABLE): Remove.
4604         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
4605         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
4606         are present.
4607         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
4608         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
4609         * sysdeps/x86_64/multiarch/Makefile: Likewise.
4610         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
4611         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
4612
4613 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
4614
4615         * math/libm-test.c: Support platforms without multiple rounding modes.
4616         * math/bug-nextafter.c: Support platforms without FP exceptions.
4617         * math/bug-nexttoward.c: Likewise.
4618         * math/test-fenv.c: Likewise.
4619         * math/test-misc.c: Likewise.
4620         * stdlib/bug-getcontext.c: Likewise.
4621
4622 2012-05-17  Andreas Jaeger  <aj@suse.de>
4623
4624         * manual/examples/search.c (critter_cmp): Change signature to
4625         avoid warnings.
4626         * manual/string.texi (Collation Functions): Likewise.
4627
4628 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4629
4630         * bits/types.h: Fold copyright years.
4631         * bits/typesizes.h: Likewise.
4632         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
4633         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
4634         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
4635         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
4636         * time/time.h: Likewise.
4637
4638 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
4639
4640         [BZ #208]
4641         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
4642         in instead of returning them.  Return void.
4643         (__libc_mallinfo): Accumulate over all arenas.
4644         (__malloc_stats): Adjust for change in int_mallinfo interface.
4645
4646 2012-05-16  Roland McGrath  <roland@hack.frob.com>
4647
4648         [BZ #10375]
4649         * configure.in (NM): Add AC_CHECK_TOOL for it.
4650         (libc_extra_cflags): New substituted variable.
4651         Check for -fstack-protector being used implicitly.
4652         * configure: Regenerated.
4653         * config.make.in (config-extra-cflags): New variable,
4654         gets @libc_extra_cflags@.
4655         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
4656
4657         [BZ #10375]
4658         * configure.in: Check for _FORTIFY_SOURCE being predefined.
4659         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
4660         * configure: Regenerated.
4661         * config.make.in (CPPUNDEFS): New substituted variable.
4662         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
4663         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
4664         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
4665
4666 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4667
4668         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
4669         (mq_attr): Use __syscall_slong_t.
4670
4671 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4672
4673         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
4674         Check __x86_64__ instead of __WORDSIZE.
4675         (_STAT_VER_LINUX): Likewise.
4676         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
4677         __syscall_ulong_t and __syscall_slong_t.
4678         (stat64): Likewise.
4679
4680 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4681
4682         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
4683
4684 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4685
4686         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
4687
4688 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4689
4690         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
4691         __syscall_ulong_t.
4692
4693         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
4694         include <bits/wordsize.h>.  Check __x86_64__ instead of
4695         __WORDSIZE.
4696         (greg_t): Use "__extension__ long long int" if __x86_64__ is
4697         defined.
4698         (mcontext_t): Replace "unsigned long" with "unsigned long long".
4699
4700         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
4701         include <bits/wordsize.h>.  Check __x86_64__ instead of
4702         __WORDSIZE.
4703         (user_regs_struct): Use "__extension__ unsigned long long"
4704         instead of "unsigned long" if __x86_64__ is defined.
4705         (user): Likewise.  Pad after pointer field if __ILP32__ is
4706         defined.
4707
4708 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
4709
4710         * configure.in (makeinfo): Require version 4.5 or later.  Allow
4711         versions 5 to 9.
4712         * configure: Regenerated.
4713         * manual/install.texi (texinfo): Increase version requirement to
4714         4.5 or later.
4715         * INSTALL: Regenerated.
4716
4717         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
4718
4719 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
4720
4721         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
4722
4723         * sysdeps/x86_64/x32/ffs.c: New file.
4724
4725         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
4726         __syscall_ulong_t.
4727         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
4728         defined.  Use __syscall_ulong_t.
4729         (shminfo): Use __syscall_ulong_t.
4730         (shm_info): Likewise.
4731
4732         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
4733         __syscall_ulong_t.
4734
4735         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
4736         <bits/wordsize.h>.
4737         (msgqnum_t): Use __syscall_ulong_t.
4738         (msglen_t): Likewise.
4739         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
4740         __syscall_ulong_t.
4741
4742         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
4743         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4744
4745         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
4746
4747         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
4748         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
4749
4750         * sysvipc/sys/msg.h (msgbuf): Replace long int with
4751         __syscall_slong_t.
4752
4753         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
4754         include <bits/wordsize.h>.  Check __x86_64__ instead of
4755         __WORDSIZE.
4756
4757         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
4758         "unsigned long long int" if __x86_64__ is defined.
4759         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
4760
4761         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
4762         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
4763         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
4764
4765         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
4766         <stdint.h>.
4767         (GET_PC): Cast to uintptr_t first.
4768         (GET_FRAME): Likewise.
4769         (GET_STACK): Likewise.
4770
4771         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
4772         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
4773         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
4774         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
4775         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
4776         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
4777         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
4778         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
4779         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
4780         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
4781         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
4782         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
4783         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
4784         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
4785         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
4786         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
4787         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
4788         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
4789         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
4790         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
4791         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
4792         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
4793         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
4794         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
4795         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
4796         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
4797         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
4798         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
4799         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
4800
4801 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
4802
4803         * Makerules (+depfiles): Also collect depfiles from .oS in
4804         $(extra-objs).
4805         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
4806         .oS, $(libnldbl-routines)).
4807
4808         * Makerules (native-compile-mkdep-flags): Define.
4809         * sunrpc/Makefile (extra-objs): Add $(addprefix
4810         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
4811         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
4812         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
4813         calling $(make-target-directory).
4814
4815 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4816
4817         * bits/types.h (__snseconds_t): Removed.
4818         * time/time.h (struct timespec): Replace __snseconds_t with
4819         __syscall_slong_t.
4820         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
4821         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
4822         Likewise.
4823         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4824         (__SNSECONDS_T_TYPE): Likewise.
4825         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4826         (__SNSECONDS_T_TYPE): Likewise.
4827         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4828         (__SNSECONDS_T_TYPE): Likewise.
4829
4830 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4831
4832         * sysdeps/mach/hurd/bits/typesizes.h
4833         (__SYSCALL_SLONG_TYPE): New macro.
4834         (__SYSCALL_ULONG_TYPE): Likewise.
4835
4836 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4837
4838         * bits/types.h (__syscall_slong_t): New type.
4839         (__syscall_ulong_t): Likewise.
4840
4841         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
4842         (__SYSCALL_ULONG_TYPE): Likewise.
4843         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4844         (__SYSCALL_SLONG_TYPE): Likewise.
4845         (__SYSCALL_ULONG_TYPE): Likewise.
4846         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4847         (__SYSCALL_SLONG_TYPE): Likewise.
4848         (__SYSCALL_ULONG_TYPE): Likewise.
4849         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4850         (__SYSCALL_SLONG_TYPE): Likewise.
4851         (__SYSCALL_ULONG_TYPE): Likewise.
4852
4853 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4854
4855         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
4856         Add sigaltstack-offsets.sym.
4857         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
4858         <sigaltstack-offsets.h>.
4859         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
4860         longjmp_msg pointer.
4861         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
4862         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
4863         signal stack.
4864         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
4865
4866 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
4867
4868         * elf/stackguard-macros.h: Remove file.
4869         * sysdeps/generic/stackguard-macros.h: New file.
4870         * sysdeps/i386/stackguard-macros.h: Likewise.
4871         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
4872         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
4873         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
4874         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
4875         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
4876         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
4877         * sysdeps/x86_64/stackguard-macros.h: Likewise.
4878         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
4879         <elf/stackguard-macros.h>.
4880
4881         [BZ #14109]
4882         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
4883         __aligned__ in attribute.
4884         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
4885         (gregset_t): Likewise.
4886
4887 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4888
4889         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
4890         * sysdeps/x86_64/64/Implies-after: Here.  New file.
4891         * sysdeps/x86_64/x32/Implies-after: New file.
4892
4893 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4894
4895         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
4896         and access return value for _dl_profile_fixup.  Use R10_LP to
4897         load frame size.
4898
4899 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4900
4901         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
4902
4903 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4904
4905         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
4906         * sysdeps/x86_64/x32/sysdep.h: New file.
4907
4908 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4909
4910         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
4911         * sysdeps/x86_64/setjmp.S: Likewise.
4912
4913 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4914
4915         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
4916         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
4917         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
4918         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
4919         remove unused global constant.
4920
4921 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
4922
4923         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
4924         include of <not-cancel.h>.
4925
4926 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4927
4928         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
4929
4930 2012-05-15  Jeff Law  <law@redhat.com>
4931             Andreas Jaeger  <aj@suse.de>
4932
4933         [BZ #13594]
4934         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
4935         out from...
4936         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
4937         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
4938         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
4939         code changing __hst_map_handle.map.
4940
4941 2012-05-15  Roland McGrath  <roland@hack.frob.com>
4942
4943         * configure.in (sysnames): Look for Implies-before and Implies-after
4944         files.
4945         * configure: Regenerated.
4946
4947 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4948
4949         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
4950         8-byte data alignment with LP_SIZE alignment.
4951
4952 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4953
4954         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
4955         into R10_LP.
4956
4957 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4958
4959         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
4960
4961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4962
4963         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
4964         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
4965         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
4966         Likewise.
4967         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
4968
4969 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4970
4971         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
4972         (stackinfo_sub_sp): Likewise.
4973
4974 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4975
4976         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
4977         RAX_LP.
4978
4979 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4980
4981         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
4982         into R*_LP.
4983
4984 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4985
4986         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
4987         sizes into R*_LP.
4988
4989 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4990
4991         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
4992
4993 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
4994
4995         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
4996         into R11_LP and load __x86_64_shared_cache_size_half into
4997         R8_LP.
4998
4999 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
5000
5001         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
5002         R8_LP.
5003
5004 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5005
5006         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
5007         logb for POWER7.
5008         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
5009         logbf for POWER7.
5010         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
5011         logbl for POWER7.
5012         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
5013         powerpc32/power7/fpu/s_logb.c via #include.
5014         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
5015         powerpc32/power7/fpu/s_logbf.c via #include.
5016         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
5017         powerpc32/power7/fpu/s_logbl.c via #include.
5018
5019 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
5020
5021         * README.libm: Remove file.
5022
5023 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5024
5025         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
5026         count for x32.  Use R*_LP and omit operand-size suffix.
5027
5028 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5029
5030         * shlib-versions: Move x86_64-.*-linux.* entries to ...
5031         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
5032         * sysdeps/x86_64/x32/shlib-versions: New file.
5033
5034 2012-05-14  Roland McGrath  <roland@hack.frob.com>
5035
5036         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
5037         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
5038         Use _dl_fatal_printf instead.
5039
5040 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5041
5042         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
5043         set if not set by the user.  Do not allow for being unset.
5044         * sysdeps/unix/sysv/linux/configure: Regenerated.
5045
5046 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5047
5048         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
5049         the `q' suffix from lea and replace .quad with ASM_ADDR.
5050
5051 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5052
5053         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
5054         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
5055         instead of $17.
5056         (PTR_DEMANGLE): Likewise.
5057
5058 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5059
5060         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
5061         (LP_OP): Likewise.
5062         (ASM_ADDR): Likewise.
5063         (RAX_LP): Likewise.
5064         (RBP_LP): Likewise.
5065         (RBX_LP): Likewise.
5066         (RCX_LP): Likewise.
5067         (RDI_LP): Likewise.
5068         (RSI_LP): Likewise.
5069         (RSP_LP): Likewise.
5070         (R8_LP): Likewise.
5071         (R9_LP): Likewise.
5072         (R10_LP): Likewise.
5073         (R10_LP): Likewise.
5074         (R11_LP): Likewise.
5075         (R12_LP): Likewise.
5076         (R13_LP): Likewise.
5077         (R14_LP): Likewise.
5078         (R15_LP): Likewise.
5079
5080 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5081
5082         * sysdeps/x86_64/x32/dl-machine.h: New file.
5083
5084 2012-05-14  Andreas Jaeger  <aj@suse.de>
5085
5086         * manual/Makefile (subdir): Remove export of subdir.
5087         (all): Remove target.
5088         (.PHONY): Remove all from list.
5089         (mkinstalldirs): Remove.
5090         (.PHONY): Remove installdirs from list.
5091         ($(inst_infodir)/libc.info): Use make-target-directory.
5092         (installdirs): Remove.
5093         (subdir_%): Remove.
5094         (glibc-targets): Remove.
5095         (lib): Remove.
5096         (stubs): Remove.
5097         ($(objpfx)stubs ../po/manual.pot): Remove.
5098         ($(objpfx)stamp%): Remove.
5099         (make-target-directory): Remove.
5100         (subdir_install): Remove.
5101         (routines): Remove.
5102         (aux): Remove.
5103         (sources): Remove.
5104         (objects): Remove.
5105         (headers): Remove.
5106
5107         [BZ #13750]
5108         * manual/.gitignore: Remove, it's not needed anymore.
5109         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
5110         all files in it.
5111         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
5112         directory.
5113         (texis): Renamed to $(objpfx)texis.
5114         (texis-path): New, contains path to generated files.
5115         (chapters.%): Use texis-path for complete path, add extra argument
5116         libc-texinfo.sh.
5117         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
5118         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
5119         (summary,texi, stamp-summary): Use complete path of
5120         files. Generate files in build dir.
5121         (dir-add.texi): Build in build dir.
5122         (libm-err.texi,stamp-libm-err): Likewise.
5123         (version.texi, stamp-version): Likewise.
5124         (.%c.texi): Likewise.
5125         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
5126         (mostlyclean): Remove target.
5127         (realclean): Remove target.
5128         (generated): Add new variable with contents from mostlyclean and
5129         realclean, remove entries duplicated in common-mostlyclean, add
5130         stamp-libm-err and stamp-version.
5131         (generated-dirs): Add libc directory.
5132         ($(inst_infodir)/libc.info): Install files from build dir.
5133
5134         * manual/install.texi (Configuring and compiling): Adjust since
5135         the info files are not part of the tar ball anymore.
5136
5137 2012-05-14  Andreas Jaeger  <aj@suse.de>
5138
5139         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
5140         variable.
5141
5142 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
5143
5144         [BZ #13717]
5145         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
5146         to 2.2.0 where earlier.
5147         * sysdeps/unix/sysv/linux/configure: Regenerated.
5148         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
5149         Remove conditional code.
5150         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
5151         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
5152         Remove conditional code.
5153         [!__NR_lchown]: Likewise.
5154         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5155         [__NR_lchown]: Likewise.
5156         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
5157         comment referencing __ASSUME_LCHOWN_SYSCALL.
5158         * sysdeps/unix/sysv/linux/i386/sigaction.c
5159         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5160         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5161         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
5162         Remove conditional code.
5163         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
5164         (__protocol_available): Remove #if 0 code.
5165         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
5166         conditional code.
5167         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
5168         * sysdeps/unix/sysv/linux/kernel-features.h
5169         (__ASSUME_GETCWD_SYSCALL): Don't define.
5170         (__ASSUME_REALTIME_SIGNALS): Likewise.
5171         (__ASSUME_PREAD_SYSCALL): Likewise.
5172         (__ASSUME_PWRITE_SYSCALL): Likewise.
5173         (__ASSUME_POLL_SYSCALL): Likewise.
5174         (__ASSUME_LCHOWN_SYSCALL): Likewise.
5175         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
5176         non-SPARC.
5177         (__ASSUME_SIOCGIFNAME): Don't define.
5178         (__ASSUME_MSG_NOSIGNAL): Likewise.
5179         (__ASSUME_SENDFILE): Define unconditionally.
5180         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
5181         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
5182         conditional code.
5183         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
5184         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
5185         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5186         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5187         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
5188         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
5189         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
5190         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
5191         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5192         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5193         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
5194         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5195         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5196         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
5197         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5198         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5199         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
5200         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5201         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5202         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
5203         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5204         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5205         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
5206         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
5207         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
5209         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5210         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
5212         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5213         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5214         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
5215         Remove conditional code.
5216         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5217         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5218         Remove conditional code.
5219         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5220         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
5221         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
5222         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5223         Remove conditional code.
5224         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5225         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
5226         Remove conditional code.
5227         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5228         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
5229         Remove conditional code.
5230         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5231         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
5232         Remove conditional code.
5233         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
5234         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
5235         Remove conditional code.
5236         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5237         * sysdeps/unix/sysv/linux/sh/pwrite64.c
5238         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
5239         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
5240         * sysdeps/unix/sysv/linux/sigaction.c
5241         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5242         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5243         * sysdeps/unix/sysv/linux/sigpending.c
5244         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5245         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5246         * sysdeps/unix/sysv/linux/sigprocmask.c
5247         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5248         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5249         * sysdeps/unix/sysv/linux/sigsuspend.c
5250         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
5251         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
5252         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
5253         (__libc_missing_rt_sigs): Remove.
5254         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
5255         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
5256         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
5257         Remove conditional code.
5258         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
5259         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
5260         return 1.
5261         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
5262         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
5263         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
5264         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
5265
5266 2012-05-14  Andreas Jaeger  <aj@suse.de>
5267
5268         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
5269         it's not used in glibc.
5270         (__coshm1): Likewise.
5271         (__acosh1p): Likewise.
5272         (__sgn): Likewise.
5273
5274         * manual/string.texi (Copying and Concatenation): Add missing
5275         variable in concat example.
5276         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
5277
5278 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5279
5280         [BZ #14103]
5281         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
5282         __builtin_clzl with __builtin_clzll.
5283
5284 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
5285
5286         [BZ #14104]
5287         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
5288         libc_freeres_ptr.
5289
5290 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
5291
5292         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
5293         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
5294         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
5295         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
5296
5297 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
5298
5299         * NEWS: Update ia64 info.
5300
5301 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
5302
5303         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
5304         used as bcopy.
5305
5306 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
5307
5308         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
5309         * sysdeps/unix/syscalls.list (dup3): Likewise.
5310         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
5311         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
5312
5313 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5314
5315         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
5316         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
5317
5318 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
5319
5320         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
5321         thread pointer.
5322         (TLS_IE): Use mov/add instead of movq/addq to load thread
5323         pointer.
5324         (TLS_GD_PREFIX): New.
5325         (TLS_GD): Use it.
5326
5327 2012-05-11  David S. Miller  <davem@davemloft.net>
5328
5329         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
5330         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
5331         (_FPU_SETCW): Likewise.
5332
5333 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5334
5335         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
5336         is 32-byte aligned.
5337
5338 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
5339
5340         [BZ #11837]
5341         * iconvdata/gb18030.c: Update tables.
5342         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
5343         characters specially.
5344         (BODY for TO_LOOP): Add encoding of missing ranges.
5345
5346 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
5347
5348         [BZ #13673]
5349         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
5350         * sysdeps/mach/hurd/dup3.c: Likewise.
5351         * sysdeps/mach/hurd/readlinkat.c: Likewise.
5352         * sysdeps/powerpc/memmove.c:: Likewise.
5353
5354 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5355
5356         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
5357         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
5358
5359 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5360
5361         * elf/elf.h (R_X86_64_RELATIVE64): New.
5362         (R_X86_64_NUM): Updated.
5363         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
5364         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
5365         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
5366         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
5367         tst-quad1pie tst-quad2pie
5368         (modules-names): Add tst-quadmod1 tst-quadmod2.
5369         ($(objpfx)tst-quad1): New dependency.
5370         ($(objpfx)tst-quad2): Likewise.
5371         ($(objpfx)tst-quad1pie): Likewise.
5372         ($(objpfx)tst-quad2pie): Likewise.
5373         * sysdeps/x86_64/tst-quad1.c: New file.
5374         * sysdeps/x86_64/tst-quad1pie.c: New file.
5375         * sysdeps/x86_64/tst-quad2.c: Likewise.
5376         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
5377         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
5378         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
5379         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
5380         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
5381
5382 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5383
5384         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
5385         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
5386         * streams/stropts.h (t_scalar_t): Define type.
5387
5388         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
5389         (_PATH_PRESERVE): Set to "/var/lib".
5390         (_PATH_RWHODIR): Set to "/var/spool/rwho".
5391
5392         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
5393         instead of int.
5394
5395         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
5396         if __dir_mkfile succeeded.
5397
5398         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
5399         checking for _hurd_dtablesize.  Unlock it right after having
5400         finished _hurd_dtable allocation.
5401
5402 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5403
5404         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
5405         * sysdeps/mach/hurd/configure: Regenerated.
5406         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
5407         special-casing to...
5408         * sysdeps/gnu/configure.in: ... this new file.
5409         * sysdeps/unix/sysv/linux/configure: Regenerated.
5410         * sysdeps/gnu/configure: New generated file.
5411
5412         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
5413         for Linux: use nsec instead of usec, as well as:
5414         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
5415         members of type struct timespec.
5416         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
5417         New macros.
5418         (struct stat64): Likewise.
5419         (_STATBUF_ST_NSEC): New macro.
5420         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
5421
5422         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
5423         __strtoul_internal rather than strtoul.
5424
5425 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5426
5427         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
5428         and reject them.
5429
5430 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5431
5432         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
5433         which preserves existing values.
5434         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
5435
5436 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5437
5438         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
5439         TIMEOUT values.  Return EINVAL for NFDS values either negative or
5440         greater than FD_SETSIZE.
5441
5442 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5443
5444         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
5445         allocated, call __vm_protect to finish enabling the existing space, and
5446         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
5447         allocate the remainder.
5448
5449 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5450
5451         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
5452         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
5453
5454 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5455
5456         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
5457         sysdeps/mach/hurd/readlink.c.
5458
5459         * posix/tst-sysconf.c (posix_options): Only use
5460         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
5461         _POSIX_SYNCHRONIZED_IO when they are defined
5462         * sysdeps/mach/hurd/bits/posix_opt.h:
5463         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
5464         (_XOPEN_REALTIME): Undefine macro.
5465         (_XOPEN_REALTIME_THREADS): Undefine macro.
5466         (_XOPEN_SHM): Undefine macro.
5467         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
5468         macro to -1.
5469         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
5470         macro to -1.
5471         (_POSIX_ASYNC_IO): Undefine macro.
5472         (_POSIX_PRIORITIZED_IO): Undefine macro.
5473         (_POSIX_SPIN_LOCKS): Define macro to -1.
5474
5475         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
5476         SA_NODEFER, SA_RESETHAND.
5477         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
5478         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
5479         F_DUPFD_CLOEXEC.
5480
5481 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5482
5483         * elf/Makefile (pldd-modules): Define unconditionally.
5484
5485 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5486
5487         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
5488
5489 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5490
5491         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
5492         Return ENOENT when name is empty.
5493         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
5494
5495 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5496
5497         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
5498
5499         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
5500
5501 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5502
5503         Fix mlock in all cases except non-readable pages.
5504         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
5505         instead of VM_PROT_ALL as parameter to __vm_wire function.
5506
5507         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
5508         (__mkdir): When path is `/', just fail with EEXIST.
5509         * sysdeps/mach/hurd/mkdirat.c: Likewise.
5510
5511 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5512
5513         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
5514         <sys/uio.h> (for writev).
5515         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
5516         and <sys/param.h> (for MIN).
5517
5518 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
5519
5520         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
5521         REQUESTED_TIME.  Properly set the remaining time and return EINTR
5522         if interrupted.
5523
5524 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5525
5526         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
5527         Depend on against $(link-rpcuserlibs).
5528
5529 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5530
5531         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
5532         (__libc_stack_end): Do not use attribute_relro.
5533         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
5534         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
5535         to libthread-provided value.
5536         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
5537         attribute_relro.
5538
5539 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5540
5541         [BZ #3748]
5542         * bits/libc-lock.h (__libc_once_get): New macro.
5543         * sysdeps/mach/bits/libc-lock.h: Likewise.
5544         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
5545         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
5546         instead of using implementation details.
5547
5548         * libio/fileops.c: Unconditionally include <kernel-features.h>.
5549         * libio/freopen.c: Likewise.
5550         * libio/freopen64.c: Likewise.
5551         * misc/syslog.c: Likewise.
5552         * nscd/connections.c: Likewise.
5553         * nscd/netgroupcache.c: Likewise.
5554         * sysdeps/posix/getcwd.c: Likewise.
5555
5556 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5557
5558         * math/w_ilogbf.c: Add #include <limits.h>.
5559
5560 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5561
5562         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
5563         path instead of returning without unlocking.
5564
5565         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
5566         immediate-write ioctls.
5567         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
5568
5569 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5570
5571         * sysdeps/mach/hurd/i386/init-first.c (init): Use
5572         __builtin_frame_address instead of making assumptions about the
5573         location of the return address relative to DATA.  Force early load of
5574         the return address.
5575         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
5576         __builtin_frame_address.
5577
5578         dup3 for GNU Hurd.
5579         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
5580         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
5581         implement dup3 and do some further code clean-ups.
5582         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
5583         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
5584
5585 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5586
5587         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
5588
5589         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
5590         HURD_CRITICAL_END around holding _hurd_dtable_lock.
5591         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
5592         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
5593         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
5594         d->port.lock.
5595
5596         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
5597         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
5598         when handler == SIG_ERR, not when handler != SIG_ERR.
5599
5600 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5601
5602         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
5603         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
5604         definitions.
5605
5606         accept4 for GNU Hurd.
5607         * include/sys/socket.h (__libc_accept4): New prototype.
5608         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
5609         to implement __libc_accept4.
5610         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
5611         __libc_accept4.
5612         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
5613
5614         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
5615         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
5616         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
5617         signal-defines.sym.
5618
5619 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5620
5621         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
5622
5623 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
5624
5625         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
5626         assertion on O_CLOEXEC flag.
5627         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
5628         * hurd/intern-fd.c: Likewise.
5629         * hurd/port2fd.c: Likewise.
5630
5631 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5632
5633         [BZ #3906]
5634         * bits/in.h (IPV6_PKTINFO): Define new macro.
5635         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
5636
5637 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5638
5639         [BZ #13954]
5640         [BZ #13955]
5641         [BZ #13956]
5642         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
5643         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
5644         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
5645         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
5646         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
5647         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
5648         * math/libm-test.inc (logb_test) : Additional logb tests.
5649
5650 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
5651             Andreas Jaeger  <aj@suse.de>
5652
5653         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
5654         * configure: Regenerated.
5655         * config.h.in (LINK_OBSOLETE_RPC): New macro.
5656         * config.make.in (link-obsolete-rpc): New substituted variable.
5657         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
5658         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
5659         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5660         (shared-only-routines): Don't set it under [link-obsolete-rpc],
5661         so that libc.a contains the symbols.
5662         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
5663         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
5664         * sunrpc/auth_none.c: Likewise.
5665         * sunrpc/auth_unix.c: Likewise.
5666         * sunrpc/authdes_prot.c: Likewise.
5667         * sunrpc/authuxprot.c: Likewise.
5668         * sunrpc/clnt_gen.c: Likewise.
5669         * sunrpc/clnt_perr.c: Likewise.
5670         * sunrpc/clnt_raw.c: Likewise.
5671         * sunrpc/clnt_simp.c: Likewise.
5672         * sunrpc/clnt_tcp.c: Likewise.
5673         * sunrpc/clnt_udp.c: Likewise.
5674         * sunrpc/clnt_unix.c: Likewise.
5675         * sunrpc/des_crypt.c: Likewise.
5676         * sunrpc/des_soft.c: Likewise.
5677         * sunrpc/get_myaddr.c: Likewise.
5678         * sunrpc/key_call.c: Likewise.
5679         * sunrpc/key_prot.c: Likewise.
5680         * sunrpc/netname.c: Likewise.
5681         * sunrpc/pm_getmaps.c: Likewise.
5682         * sunrpc/pm_getport.c: Likewise.
5683         * sunrpc/pmap_clnt.c: Likewise.
5684         * sunrpc/pmap_prot.c: Likewise.
5685         * sunrpc/pmap_prot2.c: Likewise.
5686         * sunrpc/pmap_rmt.c: Likewise.
5687         * sunrpc/publickey.c: Likewise.
5688         * sunrpc/rpc_cmsg.c: Likewise.
5689         * sunrpc/rpc_common.c: Likewise.
5690         * sunrpc/rpc_dtable.c: Likewise.
5691         * sunrpc/rpc_prot.c: Likewise.
5692         * sunrpc/rpc_thread.c: Likewise.
5693         * sunrpc/rtime.c: Likewise.
5694         * sunrpc/svc.c: Likewise.
5695         * sunrpc/svc_auth.c: Likewise.
5696         * sunrpc/svc_raw.c: Likewise.
5697         * sunrpc/svc_run.c: Likewise.
5698         * sunrpc/svc_tcp.c: Likewise.
5699         * sunrpc/svc_udp.c: Likewise.
5700         * sunrpc/svc_unix.c: Likewise.
5701         * sunrpc/svcauth_des.c: Likewise.
5702         * sunrpc/xcrypt.c: Likewise.
5703         * sunrpc/xdr.c: Likewise.
5704         * sunrpc/xdr_array.c: Likewise.
5705         * sunrpc/xdr_float.c: Likewise.
5706         * sunrpc/xdr_intXX_t.c: Likewise.
5707         * sunrpc/xdr_mem.c: Likewise.
5708         * sunrpc/xdr_rec.c: Likewise.
5709         * sunrpc/xdr_ref.c: Likewise.
5710         * sunrpc/xdr_sizeof.c: Likewise.
5711         * sunrpc/xdr_stdio.c: Likewise.
5712
5713 2012-05-10  Roland McGrath  <roland@hack.frob.com>
5714
5715         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
5716         change.  Update copyright years.
5717
5718 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5719
5720         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
5721
5722 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
5723             Joseph Myers  <joseph@codesourcery.com>
5724             Paul Pluzhnikov  <ppluzhnikov@google.com>
5725
5726         [BZ #14012]
5727         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
5728         requiring rpcgen.
5729         [cross-compiling] (extra-libs): Likewise.
5730         [cross-compiling] (extra-libs-others): Likewise.
5731         [cross-compiling] (librpcsvc-routines): Likewise.
5732         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
5733         [cross-compiling] (omit-deps): Likewise.
5734         (sunrpc-CPPFLAGS): New variable.
5735         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
5736         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
5737         (cross-rpcgen-objs): New variable.
5738         (extra-objs): Append $(cross-rpcgen-objs).
5739         ($(cross-rpcgen-objs)): New rule.
5740         ($(objpfx)cross-rpcgen): Likewise.
5741         (rpcgen-cmd): Define to use $(built-program-file).  Expand
5742         comment.
5743         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
5744         ($(objpfx)x%.stmp): Likewise.
5745         * sunrpc/proto.h [IS_IN_build] (_): Define.
5746         [IS_IN_build] (_libc_intl_domainname): Likewise.
5747
5748 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
5749
5750         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
5751         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
5752         and R_X86_64_TPOFF64.
5753
5754 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
5755
5756         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
5757         sysdeps/unix/sysv/syscalls.list.
5758         (stime): Likewise.
5759         (utime): Likewise.
5760         * sysdeps/unix/sysv/syscalls.list: Remove file.
5761
5762 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
5763
5764         [BZ #3440]
5765         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
5766         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
5767         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
5768         (__LC_IDENTIFICATION): Make these macros useful in #if
5769         expressions, as required by C99.
5770
5771 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
5772
5773         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
5774         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
5775         after this.
5776
5777 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
5778
5779         * stdlib/longlong.h: Updated from GCC.
5780
5781 2012-05-09  Andreas Jaeger  <aj@suse.de>
5782
5783         * nscd/nscd.c (run_modes): Make named enum, reorder so that
5784         default is first entry.
5785         (run_mode): Set type.
5786         (main): Remove informal message about syslog.
5787         (options): Fix typo.
5788
5789         [BZ #14053]
5790         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
5791         to asm.
5792         (lrint): Likewise.
5793         (llrintf): Likewise.
5794         (llrint): Likewise.
5795         (rint): Likewise.
5796         (rintf): Likewise.
5797         (nearbyint): Likewise.
5798         (nearbyintf): Likewise.
5799
5800 2012-05-09  Andreas Jaeger  <aj@suse.de>
5801             Pedro Alves  <palves@redhat.com>
5802
5803         * nscd/nscd.c (run_mode): Use enum.
5804         (main): Cleanup coding style issue.
5805
5806 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
5807             Andreas Jaeger  <aj@suse.de>
5808
5809         * nscd/nscd.c (go_background): Replaced with...
5810         (run_mode): ... this.
5811         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
5812         (options): Add -F --foreground.
5813         (main): Implement it.
5814         (parse_opt): Parse it.
5815
5816 2012-05-09  Andreas Jaeger  <aj@suse.de>
5817
5818         [BZ #14083]
5819         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
5820         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
5821         -Wconversion warning.
5822         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
5823         Likewise.
5824
5825 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
5826
5827         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
5828         == 0.
5829         (LC_ALL): Use macro-int-constant.
5830         (LC_COLLATE): Likewise.
5831         (LC_CTYPE): Likewise.
5832         (LC_MESSAGES): Likewise.
5833         (LC_MONETARY): Likewise.
5834         (LC_NUMERIC): Likewise.
5835         (LC_TIME): Likewise.
5836         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
5837         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5838         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5839         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
5840         Specify type.
5841         [C99-based standards] (float_t): Expect type.
5842         [C99-based standards] (double_t): Expect type.
5843         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
5844         type.
5845         [C99-based standards] (HUGE_VALL): Likewise.
5846         [C99-based standards] (INFINITY): Likewise.
5847         [C99-based standards] (NAN): Likewise.
5848         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
5849         [C99-based standards] (FP_NAN): Likewise.
5850         [C99-based standards] (FP_NORMAL): Likewise.
5851         [C99-based standards] (FP_SUBNORMAL): Likewise.
5852         [C99-based standards] (FP_ZERO): Likewise.
5853         [C99-based standards] (FP_FAST_FMA): Use
5854         optional-macro-int-constant.  Specify type.  Require == 1.
5855         [C99-based standards] (FP_FAST_FMAF): Likewise.
5856         [C99-based standards] (FP_FAST_FMAL): Likewise.
5857         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
5858         [C99-based standards] (FP_ILOGBNAN): Likewise.
5859         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
5860         Specify type.
5861         [C99-based standards] (MATH_ERREXCEPT): Likewise.
5862         [C99-based standards] (math_errhandling): Specify type.
5863         [ISO99 || ISO11] (signgam): Do not allow.
5864         [non-C99-based standards] (copysignf): Do not allow.
5865         [non-C99-based standards] (exp2f): Likewise.
5866         [non-C99-based standards] (log2f): Likewise.
5867         [non-C99-based standards] (modff): Allow.
5868         [non-C99-based standards] (erff): Do not allow.
5869         [non-C99-based standards] (erfcf): Likewise.
5870         [non-C99-based standards] (gammaf): Likewise.
5871         [non-C99-based standards] (hypotf): Likewise.
5872         [non-C99-based standards] (j0f): Likewise.
5873         [non-C99-based standards] (j1f): Likewise.
5874         [non-C99-based standards] (jnf): Likewise.
5875         [non-C99-based standards] (lgammaf): Likewise.
5876         [non-C99-based standards] (tgammaf): Likewise.
5877         [non-C99-based standards] (y0f): Likewise.
5878         [non-C99-based standards] (y1f): Likewise.
5879         [non-C99-based standards] (ynf): Likewise.
5880         [non-C99-based standards] (isnanf): Likewise.
5881         [non-C99-based standards] (acoshf): Likewise.
5882         [non-C99-based standards] (asinhf): Likewise.
5883         [non-C99-based standards] (atanhf): Likewise.
5884         [non-C99-based standards] (cbrtf): Likewise.
5885         [non-C99-based standards] (expm1f): Likewise.
5886         [non-C99-based standards] (ilogbf): Likewise.
5887         [non-C99-based standards] (log1pf): Likewise.
5888         [non-C99-based standards] (logbf): Likewise.
5889         [non-C99-based standards] (nextafterf): Likewise.
5890         [non-C99-based standards] (remainderf): Likewise.
5891         [non-C99-based standards] (rintf): Likewise.
5892         [non-C99-based standards] (scalbf): Likewise.
5893         [non-C99-based standards] (copysignl): Likewise.
5894         [non-C99-based standards] (exp2l): Likewise.
5895         [non-C99-based standards] (log2l): Likewise.
5896         [non-C99-based standards] (modfl): Allow.
5897         [non-C99-based standards] (erfl): Do not allow.
5898         [non-C99-based standards] (erfcl): Likewise.
5899         [non-C99-based standards] (gammal): Likewise.
5900         [non-C99-based standards] (hypotl): Likewise.
5901         [non-C99-based standards] (j0l): Likewise.
5902         [non-C99-based standards] (j1l): Likewise.
5903         [non-C99-based standards] (jnl): Likewise.
5904         [non-C99-based standards] (lgammal): Likewise.
5905         [non-C99-based standards] (tgammal): Likewise.
5906         [non-C99-based standards] (y0l): Likewise.
5907         [non-C99-based standards] (y1l): Likewise.
5908         [non-C99-based standards] (ynl): Likewise.
5909         [non-C99-based standards] (isnanl): Likewise.
5910         [non-C99-based standards] (acoshl): Likewise.
5911         [non-C99-based standards] (asinhl): Likewise.
5912         [non-C99-based standards] (atanhl): Likewise.
5913         [non-C99-based standards] (cbrtl): Likewise.
5914         [non-C99-based standards] (expm1l): Likewise.
5915         [non-C99-based standards] (ilogbl): Likewise.
5916         [non-C99-based standards] (log1pl): Likewise.
5917         [non-C99-based standards] (logbl): Likewise.
5918         [non-C99-based standards] (nextafterl): Likewise.
5919         [non-C99-based standards] (remainderl): Likewise.
5920         [non-C99-based standards] (rintl): Likewise.
5921         [non-C99-based standards] (scalbl): Likewise.
5922         [ISO || ISO99 || ISO11] (*_t): Do not allow.
5923         [non-C99-based standards] (FP_*): Do not allow.
5924         [C99-based standards] (FP_*): Change to
5925         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
5926         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5927         allow.
5928         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
5929         (SIG_ERR): Likewise.
5930         [X/Open-based standards] (SIG_HOLD): Likewise.
5931         (SIG_IGN): Likewise.
5932         (SIGABRT): Use macro-int-constant.  Specify type.  Require
5933         positive value.
5934         (SIGFPE): Likewise.
5935         (SIGILL): Likewise.
5936         (SIGINT): Likewise.
5937         (SIGSEGV): Likewise.
5938         (SIGTER): Likewise.
5939         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
5940         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
5941         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
5942         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
5943         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
5944         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
5945         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
5946         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
5947         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
5948         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
5949         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
5950         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
5951         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
5952         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
5953         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
5954         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
5955         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
5956         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
5957         [X/Open-based standards] (SIGTRAP): Likewise.
5958         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
5959         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
5960         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
5961         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
5962         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
5963         allow.
5964
5965 2012-05-08  Ian Wienand  <ianw@vmware.com>
5966
5967         [BZ #14080]
5968         * time/tzset.c (__tzset_parse_tz): Update default rules for
5969         daylight time changes in the Energy Policy Act of 2005.
5970
5971 2012-05-09  Andreas Jaeger  <aj@suse.de>
5972
5973         [BZ #13983]
5974         * elf/ldconfig.c (parse_conf): Change string to make clear that
5975         ldconfig only issued a warning if ld.so.conf does not exist.
5976
5977 2012-05-08  David S. Miller  <davem@davemloft.net>
5978
5979         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
5980         movxtod instead of popping the value on the stack.
5981
5982         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5983
5984 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
5985
5986         * config.h.in: Add HAVE_ARM_PCS_VFP.
5987
5988 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
5989
5990         [BZ #13979]
5991         * include/features.h: Warn if user requests __FORTIFY_SOURCE
5992         checking but the checks are disabled for any reason.
5993
5994 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
5995
5996         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
5997         and ELF64_R_TYPE with ELFW(R_TYPE).
5998
5999 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
6000
6001         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
6002         (ulimit): Likewise.
6003
6004         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
6005         (settimeofday): Likewise.
6006
6007 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
6008
6009         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
6010         a struct th_u2 inside the union, and move tu_block/tu_code into
6011         a new th_u3 union of tu_block/tu_code inside of that.  Move
6012         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
6013         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
6014         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
6015         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
6016         (th_stuff): Change to th_u1.tu_stuff.
6017         (th_data): Define.
6018         (th_msg): Change to th_u1.th_u2.tu_data.
6019
6020 2012-05-07  David S. Miller  <davem@davemloft.net>
6021
6022         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6023
6024         [BZ #14074]
6025         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
6026         (SETUP_PIC_REG): Use it.
6027         (SETUP_PIC_REG_LEAF): Use it.
6028
6029 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
6030
6031         [BZ #13885]
6032         [BZ #13923]
6033         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6034         USE_AS_EXPM1L.
6035         (EXPL_FINITE): Likewise.
6036         (FLDLOG): Likewise.
6037         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6038         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6039         e_expl.S.
6040         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6041         USE_AS_EXPM1L.
6042         (EXPL_FINITE): Likewise.
6043         (FLDLOG): Likewise.
6044         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
6045         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
6046         e_expl.S.
6047         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
6048         test of -max_value argument for long double.
6049         * sysdeps/i386/fpu/libm-test-ulps: Update.
6050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6051
6052 2012-05-06  David S. Miller  <davem@davemloft.net>
6053
6054         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
6055         quad soft-float symbols whose references which are compiler
6056         generated.
6057         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
6058
6059 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
6060
6061         [BZ #13884]
6062         [BZ #13914]
6063         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6064         USE_AS_EXP10L.
6065         (EXPL_FINITE): Likewise.
6066         (FLDLOG): Likewise.
6067         (c0): Likewise.
6068         (c1): Likewise.
6069         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6070         Adjust comments for base varying.
6071         (__expl_finite): Change alias to EXPL_FINITE.
6072         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
6073         e_expl.S.
6074         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
6075         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
6076         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
6077         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
6078         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
6079         USE_AS_EXP10L.
6080         (EXPL_FINITE): Likewise.
6081         (FLDLOG): Likewise.
6082         (c0): Likewise.
6083         (c1): Likewise.
6084         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
6085         Adjust comments for base varying.
6086         (__expl_finite): Change alias to EXPL_FINITE.
6087         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
6088         tests for bugs.
6089         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6090
6091         [BZ #14064]
6092         * math/libm-test.inc (check_float_internal): Correct ulp
6093         calculation for subnormal expected results.
6094
6095 2012-05-06  Andreas Jaeger  <aj@suse.de>
6096
6097         * Makeconfig (+math-flags): New, set to -frounding-math.
6098         (+cflags): Add +math-flags so that all of glibc gets compiled with
6099         it.
6100
6101         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
6102
6103 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
6104
6105         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
6106         Disable one test.
6107
6108         [BZ #13787]
6109         [BZ #13922]
6110         [BZ #14036]
6111         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
6112         (__ieee754_expl): Allow for and saturate large arguments.
6113         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
6114         (u_threshold): Likewise.
6115         (__exp): Call __ieee754_exp before checking for overflow and
6116         underflow.
6117         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
6118         (u_threshold): Likewise.
6119         (__expf): Call __ieee754_expf before checking for overflow and
6120         underflow.
6121         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
6122         (u_threshold): Likewise.
6123         (__expl): Call __ieee754_expl before checking for overflow and
6124         underflow.
6125         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
6126         (__ieee754_expl): Allow for and saturate large arguments.
6127         * math/libm-test.inc (exp_test): Add another test.  Do not allow
6128         missing overflow exception on overflow.
6129         (expm1_test): Do not allow missing overflow exception on overflow.
6130
6131         * sysdeps/i386/fpu/e_expl.c: Move to ...
6132         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
6133         rather than using inline asm.
6134         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
6135         * sysdeps/x86_64/fpu/e_expl.S: Copy from
6136         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
6137
6138         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
6139         (nice): Likewise.
6140         (poll): Likewise.
6141         (signal): Likewise.
6142         (time): Likewise.
6143         (times): Likewise.
6144
6145 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6146
6147         * sysdeps/unix/syscalls.list (adjtime): Add entry from
6148         sysdeps/unix/common/syscalls.list.
6149         (fchmod): Likewise.
6150         (fchown): Likewise.
6151         (ftruncate): Likewise.
6152         (getrusage): Likewise.
6153         (gettimeofday): Likewise.
6154         (setpgid): Likewise.
6155         (setregid): Likewise.
6156         (setreuid): Likewise.
6157         (sigaction): Likewise.
6158         (truncate): Likewise.
6159         (vhangup): Likewise.
6160         * sysdeps/unix/common/syscalls.list: Remove file.
6161         * sysdeps/unix/bsd/Implies: Don't include unix/common.
6162         * sysdeps/unix/sysv/linux/Implies: Likewise.
6163
6164 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
6165
6166         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
6167         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
6168         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
6169         Moved to ...
6170         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
6171         Here.
6172         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
6173         to ...
6174         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
6175         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
6176         to ...
6177         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
6178         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
6179         to ...
6180         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
6181         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
6182         to ...
6183         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
6184         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
6185         to ...
6186         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
6187         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
6188         to ...
6189         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
6190         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
6191         to ...
6192         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
6193         Here.
6194         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
6195         to ...
6196         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
6197         Here.
6198         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
6199         to ...
6200         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
6201         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
6202         Moved to ...
6203         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
6204         Here.
6205         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
6206         to ...
6207         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
6208
6209 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6210
6211         * sysdeps/unix/common/bits/dirent.h: Remove file.
6212         * sysdeps/unix/common/bits/fcntl.h: Likewise.
6213
6214         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
6215         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
6216         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
6217         * sysdeps/unix/bsd/isatty.c: Likewise.
6218         * sysdeps/unix/bsd/tcdrain.c: Likewise.
6219         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
6220         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
6221
6222 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6223
6224         [BZ #13563]
6225         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
6226         long double comparison inaccuracies.
6227         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
6228         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6229
6230 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
6231
6232         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
6233         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
6234
6235 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
6236
6237         [BZ #14049]
6238         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
6239         nonzero digits before rounding a hex value.
6240         * stdlib/tst-strtod.c (tests): Add another test.
6241
6242 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6243
6244         * sysdeps/s390/fpu/libm-test-ulps: Update.
6245
6246 2012-05-03  Andreas Jaeger  <aj@suse.de>
6247
6248         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
6249         does not get optimized out.
6250         (malloc_opt_barrier): New.
6251
6252 2012-05-03  Andreas Jaeger  <aj@suse.de>
6253             Roland McGrath  <roland@hack.frob.com>
6254
6255         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
6256         intermediate file deletion.
6257         (generated): Add .symlist files.
6258
6259 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
6260
6261         [BZ #13775]
6262         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
6263         Redirect under this condition.
6264         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6265         [__USE_GNU] (__dprintf_chk): Not under this condition.
6266         [__USE_GNU] (__vdprintf_chk): Likewise.
6267         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
6268         under this condition.
6269         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
6270         [__USE_XOPEN2K8] (dprintf): Define under this condition.
6271         [__USE_XOPEN2K8] (vdprintf): Likewise.
6272         [__USE_GNU] (__dprintf_chk): Not under this condition.
6273         [__USE_GNU] (__vdprintf_chk): Likewise.
6274         [__USE_GNU] (dprintf): Likewise.
6275         [__USE_GNU] (vdprintf): Likewise.
6276
6277 2012-05-03  Roland McGrath  <roland@hack.frob.com>
6278
6279         * elf/Makefile (common-generated): Set this instead of generated for
6280         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
6281         $(all-built-dso)-derived lists.
6282
6283 2012-05-03  Andreas Jaeger  <aj@suse.de>
6284
6285         * sysdeps/i386/fpu/libm-test-ulps: Update.
6286
6287         * FAQ: Removed.
6288         * FAQ.in: Likewise.
6289         * scripts/gen-FAQ.pl: Likewise.
6290         * manual/install.texi (Installation): Point to online location of
6291         FAQ.
6292         * Makefile (files-for-dist): Remove FAQ.
6293         (FAQ): Remove.
6294
6295 2012-05-02  Allan McRae  <allan@archlinux.org>
6296
6297         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
6298         (LDFLAGS-reldepmod5.so): Likewise.
6299         (LDFLAGS-reldep6mod1.so): Likewise.
6300         (LDFLAGS-reldep6mod4.so): Likewise.
6301         (LDFLAGS-reldep8mod3.so): Likewise.
6302         (LDFLAGS-unload4mod1.so): Likewise.
6303         (LDFLAGS-unload4mod2.so): Likewise.
6304         (LDFLAGS-tst-initorder): Likewise.
6305         (LDFLAGS-tst-initordera2.so): Likewise.
6306         (LDFLAGS-tst-initordera3.so): Likewise.
6307         (LDFLAGS-tst-initordera4.so): Likewise.
6308         (LDFLAGS-tst-initorderb2.so): Likewise.
6309         (LDFLAGS-noload): Likewise.
6310         (LDFLAGS-next): Likewise.
6311         (LDFLAGS-order2mod1.so): Likewise.
6312         (LDFLAGS-order2mod2.so): Likewise.
6313         (LDFLAGS-tst-initorder2): Likewise.
6314         (LDFLAGS-tst-initorder2a.so): Likewise.
6315         (LDFLAGS-tst-initorder2b.so): Likewise.
6316         (LDFLAGS-tst-initorder2c.so): Likewise.
6317         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
6318
6319 2012-05-02  David S. Miller  <davem@davemloft.net>
6320
6321         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6322
6323 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
6324
6325         [BZ #14055]
6326         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
6327
6328 2012-05-02  Andreas Jaeger  <aj@suse.de>
6329
6330         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
6331         since we manipulate rounding mode.
6332         (CPPFLAGS-test-idouble.c): Likewise.
6333         (CPPFLAGS-test-ifloat.c): Likewise.
6334         (CFLAGS-test-ldouble.c): Likewise.
6335         (CFLAGS-test-double.c): Likewise.
6336         (CFLAGS-test-float.c): Likewise.
6337         (CFLAGS-test-misc.c): Likewise.
6338         (CFLAGS-test-test-fenv.c): Likewise.
6339
6340 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6341
6342         [BZ #2550]
6343         [BZ #2570]
6344         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
6345         comparisons to determine direction to adjust input.
6346
6347 2012-05-01  Roland McGrath  <roland@hack.frob.com>
6348
6349         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
6350         output to the target.
6351
6352         * scripts/localplt.awk: New file.
6353         * elf/Makefile ($(objpfx)check-localplt): Target removed.
6354         (check-localplt-CFLAGS): Variable removed.
6355         ($(all-built-dso:=.jmprel)): New static pattern rule.
6356         (generated): Add those targets.
6357         (localplt-built-dso): New variable.
6358         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
6359
6360         * elf/check-localplt.c: File removed.
6361
6362         * scripts/check-execstack.awk: New file.
6363         * elf/Makefile ($(objpfx)check-execstack): Target removed.
6364         (check-execstack-CFLAGS): Variable removed.
6365         ($(objpfx)check-execstack.h): Target removed.
6366         ($(objpfx)execstack-default): New target.
6367         (generated): Add that instead of check-execstack.h.
6368         ($(all-built-dso:=.phdr)): New static pattern rule.
6369         (generated): Add those targets.
6370         * elf/check-execstack.c: File removed.
6371
6372         * scripts/check-textrel.awk: New file.
6373         * elf/Makefile ($(objpfx)check-textrel): Target removed.
6374         (check-textrel-CFLAGS): Variable removed.
6375         (all-built-dso): Use := to define.o
6376         ($(all-built-dso:=.dyn)): New static pattern rule.
6377         (generated): Add those targets.
6378         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
6379         * config.make.in (READELF): New substituted variable.
6380         * elf/check-textrel.c: File removed.
6381
6382 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6383
6384         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
6385         allow.
6386         * conform/data/ctype.h-data [C99-based standards] (isblank):
6387         Expect function.
6388         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
6389         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
6390         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6391         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
6392         Specify type.  Require positive value.
6393         (EILSEQ): Likewise.
6394         (ERANGE): Likewise.
6395         [ISO || POSIX] (EILSEQ): Do not expect.
6396         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
6397         Specify type.  Require positive value.
6398         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
6399         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
6400         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
6401         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
6402         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
6403         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
6404         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
6405         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
6406         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
6407         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
6408         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
6409         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
6410         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
6411         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
6412         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
6413         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
6414         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
6415         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
6416         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
6417         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
6418         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
6419         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
6420         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
6421         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
6422         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
6423         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
6424         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
6425         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
6426         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
6427         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
6428         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
6429         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
6430         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
6431         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
6432         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
6433         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
6434         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
6435         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
6436         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
6437         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
6438         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
6439         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
6440         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
6441         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
6442         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
6443         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
6444         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
6445         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
6446         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
6447         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
6448         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
6449         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
6450         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
6451         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
6452         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
6453         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
6454         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
6455         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
6456         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
6457         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
6458         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
6459         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
6460         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
6461         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
6462         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
6463         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
6464         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
6465         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
6466         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
6467         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
6468         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
6469         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
6470         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
6471         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
6472         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
6473         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
6474         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
6475         Require >= 2.
6476         (FLT_ROUNDS): Expect as macro, not constant.
6477         (FLT_MANT_DIG): Use macro-int-constant.
6478         (DBL_MANT_DIG): Likewise.
6479         (LDBL_MANT_DIG): Likewise.
6480         (FLT_DIG): Likewise.
6481         (DBL_DIG): Likewise.
6482         (LDBL_DIG): Likewise.
6483         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
6484         (DBL_MIN_EXP): Likewise.
6485         (LDBL_MIN_EXP): Likewise.
6486         (FLT_MAX_EXP): Use macro-int-constant.
6487         (DBL_MAX_EXP): Likewise.
6488         (LDBL_MAX_EXP): Likewise.
6489         (FLT_MAX_10_EXP): Likewise.
6490         (DBL_MAX_10_EXP): Likewise.
6491         (LDBL_MAX_10_EXP): Likewise.
6492         (FLT_MAX): Use macro-constant.
6493         (DBL_MAX): Likewise.
6494         (LDBL_MAX): Likewise.
6495         (FLT_EPSILON): Use macro-constant.  Give upper bound.
6496         (DBL_EPSILON): Likewise.
6497         (LDBL_EPSILON): Likewise.
6498         (FLT_MIN): Likewise.
6499         (DBL_MIN): Likewise.
6500         (LDBL_MIN): Likewise.
6501         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
6502         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
6503         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
6504         [ISO11] (FLT_HAS_SUBNORM): Likewise.
6505         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
6506         [ISO11] (DBL_DECIMAL_DIG): Likewise.
6507         [ISO11] (FLT_DECIMAL_DIG): Likewise.
6508         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
6509         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
6510         [ISO11] (FLT_TRUE_MIN): Likewise.
6511         [ISO11] (LDBL_TRUE_MIN): Likewise.
6512         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6513         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
6514         (SCHAR_MIN): Use macro-int-constant.  Specify type.
6515         (SCHAR_MAX): Likewise.
6516         (UCHAR_MAX): Likewise.
6517         (CHAR_MIN): Likewise.
6518         (CHAR_MAX): Likewise.
6519         (MB_LEN_MAX): Use macro-int-constant.
6520         (SHRT_MIN): Use macro-int-constant.  Specify type.
6521         (SHRT_MAX): Likewise.
6522         (USHRT_MAX): Likewise.
6523         (INT_MAX): Likewise.
6524         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
6525         bound negative.
6526         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6527         bound with "U".
6528         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6529         bound with "L".
6530         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
6531         bound negative.  Suffix upper bound with "L".
6532         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
6533         bound with "UL".
6534         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
6535         Specify type.
6536         [C99-based standards] (LLONG_MAX): Likewise.
6537         [C99-based standards] (ULLONG_MAX): Likewise.
6538         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
6539         == 0.
6540         [ISO11] (max_align_t): Require type.
6541         [ISO || ISO99 || ISO11] (*_t): Do not allow.
6542
6543         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
6544         from $CFLAGS, without defining away __attribute__ calls.
6545         (checknamespace): Use $CFLAGS_namespace.
6546
6547         * conform/conformtest.pl (@keywords): Only include C99 keywords
6548         for standards based on C99 or C11.
6549
6550         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
6551         Disable tests.
6552         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
6553         UNIX98]: Likewise.
6554
6555         * conform/conformtest.pl: Handle "macro-int-constant" and test for
6556         usability of symbols in #if.
6557
6558         * conform/conformtest.pl: If macro or constant types start
6559         "promoted:", expect the symbol to be of the following type
6560         promoted by the integer promotions.
6561
6562         * conform/conformtest.pl: Parse all "constant" and "macro" lines
6563         in one place.  Also handle "macro-constant".
6564
6565         * conform/conformtest.pl: Only accept expected macro values with
6566         "==".  Parse all "macro" lines in one place.
6567         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
6568
6569         * conform/conformtest.pl: Handle braced types on "constant" lines
6570         instead of handling "typed-constant".
6571         * conform/data/signal.h-data: Use "constant" instead of
6572         "typed-constant".
6573
6574         * conform/conformtest.pl: Handle "optional-" at start of lines in
6575         one place rather than duplicating several cases.  Handle each
6576         format of "macro" line with initial "optional-".
6577
6578         * conform/conformtest.pl: Only accept expected constant or
6579         optional-constant values with "==".  Parse all "constant" lines in
6580         one place.  Parse all "optional-constant" lines in one place.
6581         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
6582         * conform/data/fmtmsg.h-data: Likewise.
6583         * conform/data/netinet/in.h-data: Likewise.
6584         * conform/data/tar.h-data: Likewise.
6585         * conform/data/limits.h-data: Use "==" form on "constant" and
6586         "optional-constant" lines.
6587
6588         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
6589         Use -std=c99 for XOPEN2K.
6590         (@knownproblems): Remove.
6591         (newtoken): Don't check %isknown.
6592
6593         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
6594         Do not expect macro.
6595         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
6596         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
6597         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
6598         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
6599         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
6600         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
6601         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
6602         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
6603         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
6604         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
6605         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
6606         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
6607         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
6608         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
6609         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
6610         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
6611         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
6612         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
6613         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
6614         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
6615         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
6616         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
6617         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
6618         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
6619         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
6620         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
6621         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
6622         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
6623         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
6624         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
6625         [XPG3] (acosh): Likewise.
6626         [XPG3] (asinh): Likewise.
6627         [XPG3] (atanh): Likewise.
6628         [XPG3] (cbrt): Likewise.
6629         [XPG3] (expm1): Likewise.
6630         [XPG3] (ilogb): Likewise.
6631         [XPG3] (log1p): Likewise.
6632         [XPG3] (logb): Likewise.
6633         [XPG3] (nextafter): Likewise.
6634         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
6635         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
6636         [XPG3] (remainder): Likewise.
6637         [XPG3] (rint): Likewise.
6638         [XPG3 || XPG4 || UNIX98] (round): Likewise.
6639         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
6640         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
6641         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
6642         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
6643         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
6644         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
6645         [UNIX98 || XOPEN2K] (scalb): Expect.
6646         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
6647         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
6648         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
6649         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
6650         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
6651         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
6652         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
6653         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
6654         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
6655         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
6656         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
6657         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
6658         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
6659         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
6660         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
6661         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
6662         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
6663         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
6664         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
6665         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
6666         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
6667         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
6668         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
6669         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
6670         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
6671         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
6672         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
6673         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
6674         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
6675         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
6676         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
6677         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
6678         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
6679         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
6680         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
6681         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
6682         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
6683         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
6684         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
6685         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
6686         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
6687         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
6688         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
6689         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
6690         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
6691         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
6692         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
6693         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
6694         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
6695         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
6696         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
6697         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
6698         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
6699         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
6700         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
6701         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
6702         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
6703         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
6704         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
6705         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
6706         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
6707         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
6708         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
6709         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
6710         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
6711         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
6712         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
6713         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
6714         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
6715         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
6716         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
6717         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
6718         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
6719         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
6720         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
6721         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
6722         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
6723         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
6724         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
6725         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
6726         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
6727         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
6728         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
6729         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
6730         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
6731         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
6732         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
6733         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
6734         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
6735         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
6736         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
6737         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
6738         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
6739         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
6740         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
6741         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
6742         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
6743         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
6744         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
6745         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
6746         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
6747         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
6748         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
6749         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
6750         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
6751         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
6752         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
6753         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
6754         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
6755         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
6756         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
6757         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
6758         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
6759         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
6760         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
6761         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
6762         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
6763         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
6764         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
6765         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
6766         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
6767         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
6768         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
6769         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
6770         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
6771         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
6772         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
6773         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
6774         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
6775         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
6776         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
6777         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
6778         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
6779         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
6780         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
6781         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
6782         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
6783
6784         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
6785         _XOPEN_SOURCE_EXTENDED for XPG4.
6786
6787         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
6788
6789         * Makeconfig (localtime): Remove variable.
6790         (inst_localtime-file): Likewise.
6791
6792 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6793
6794         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
6795         Update.
6796         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6797         Update.
6798         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
6799         Update.
6800         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
6801         Update.
6802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
6803         Update.
6804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
6805         Update.
6806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6807         Update.
6808         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
6809         Update.
6810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
6811         Update.
6812
6813 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
6814
6815         [BZ #2550]
6816         [BZ #2570]
6817         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
6818         comparisons to determine direction to adjust input.
6819         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
6820         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
6821         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
6822         Likewise.
6823         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
6824         Likewise.
6825         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
6826         Likewise.
6827         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
6828         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
6829         Likewise.
6830         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
6831         Likewise.
6832         * math/libm-test.inc (nexttoward_test): Add more tests.
6833
6834 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
6835
6836         [BZ #14040]
6837         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
6838         in version GLIBC_2.1, not GLIBC_2.0.
6839         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
6840         Likewise.
6841
6842 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
6843
6844         [BZ #13942]
6845         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
6846         (1 - x) * (1 + x).
6847         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6848         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
6849         * math/libm-test.inc (acos_test): Add more tests.
6850         (asin_test): Likewise.
6851         * sysdeps/i386/fpu/libm-test-ulps: Update.
6852         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6853
6854         [BZ #14034]
6855         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
6856         of square root.
6857         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
6858         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
6859         * math/libm-test.inc (acos_test_tonearest): New function.
6860         (acos_test_towardzero): Likewise.
6861         (acos_test_downward): Likewise.
6862         (acos_test_upward): Likewise.
6863         (asin_test_tonearest): Likewise.
6864         (asin_test_towardzero): Likewise.
6865         (asin_test_downward): Likewise.
6866         (asin_test_upward): Likewise.
6867         (main): Call the new functions.
6868         * sysdeps/i386/fpu/libm-test-ulps: Update.
6869         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
6870
6871         [BZ #13884]
6872         [BZ #13924]
6873         * math/e_exp10.c: Include <float.h>.
6874         (__ieee754_exp10): Handle underflow here rather than multiplying
6875         large negative argument by M_LN10.
6876         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
6877         of __ieee754_expf.
6878         * math/e_exp10l.c: Include <float.h>.
6879         (__ieee754_exp10l): Handle underflow here rather than multiplying
6880         large negative argument by M_LN10l.
6881         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
6882         spurious overflow exception on underflow.
6883
6884 2012-04-29  Marek Polacek  <polacek@redhat.com>
6885
6886         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
6887         (__fortify_function): New macro.
6888         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
6889         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
6890         __extern_always_inline.
6891         * libio/bits/stdio2.h: Likewise.
6892         * libio/bits/stdio.h: Likewise.
6893         * string/string.h: Likewise.
6894         * string/bits/string3.h: Likewise.
6895         * include/stdio.h: Likewise.
6896         * stdlib/bits/stdlib.h: Likewise.
6897         * stdlib/stdlib.h: Likewise.
6898         * rt/bits/mqueue2.h: Likewise.
6899         * rt/mqueue.h: Likewise.
6900         * posix/bits/unistd.h: Likewise.
6901         * posix/unistd.h: Likewise.
6902         * io/bits/poll2.h: Likewise.
6903         * io/bits/fcntl2.h: Likewise.
6904         * io/fcntl.h: Likewise.
6905         * io/sys/poll.h: Likewise.
6906         * misc/bits/syslog.h: Likewise.
6907         * misc/bits/syslog-ldbl.h: Likewise.
6908         * misc/sys/syslog.h: Likewise.
6909         * socket/bits/socket2.h: Likewise.
6910         * socket/sys/socket.h: Likewise.
6911         * debug/tst-chk1.c: Likewise.
6912         * wcsmbs/bits/wchar2.h: Likewise.
6913         * wcsmbs/bits/wchar-ldbl.h: Likewise.
6914         * wcsmbs/wchar.h: Likewise.
6915
6916 2012-04-29  Andreas Jaeger  <aj@suse.de>
6917
6918         * Makerules (tests): Remove enable-check-abi protection.
6919         (check-abi-warn): Remove.
6920         (check-abi-%): Remove check-abi-warn usage.
6921
6922         * configure.in: Remove check-abi configure option.
6923         * configure: Regenerated.
6924         * config.make.in (enable-check-abi): Remove.
6925
6926 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
6927
6928         [BZ #14033]
6929         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
6930         double functions to double *_finite functions.
6931
6932         [BZ #13941]
6933         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
6934         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
6935         LDBL_MIN_EXP.
6936         * stdio-common/Makefile (tests): Add tst-sprintf3.
6937         * stdio-common/tst-sprintf3.c: New file.
6938
6939         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
6940         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
6941
6942 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
6943
6944         * conform/conformtest.pl: Remove duplicate typed-constant
6945         handling.
6946
6947 2012-04-28  David S. Miller  <davem@davemloft.net>
6948
6949         * Makerules (%.abilist): Add vpath on sysdep_dirs.
6950         (check-abi-%): Remove AWK script prerequisite and explicit
6951         abilist directory.
6952         (check-abi): Rewrite to just diff the symlist with the abilist.
6953         (config-tls, config-abi-config): Delete, no longer used.
6954         (update-abi-%): Remove AWK script and explicit abilist directory.
6955         (update-abi): Rewrite to simply compare and conditionally copy the
6956         symlist and the sysdep abilist file.  Remove update-abi-config
6957         checks.
6958         * abilist/ld.abilist: Remove.
6959         * abilist/libBrokenLocale.abilist: Remove.
6960         * abilist/libanl.abilist: Remove.
6961         * abilist/libcrypt.abilist: Remove.
6962         * abilist/libdl.abilist: Remove.
6963         * abilist/librt.abilist: Remove.
6964         * abilist/libthread_db.abilist: Remove.
6965         * abilist/libutil.abilist: Remove.
6966         * scripts/extract-abilist.awk: Remove.
6967         * scripts/merge-abilist.awk: Remove.
6968         * sysdeps/generic/libcidn.abilist: New file.
6969         * sysdeps/generic/libnss_compat.abilist: New file.
6970         * sysdeps/generic/libnss_db.abilist: New file.
6971         * sysdeps/generic/libnss_dns.abilist: New file.
6972         * sysdeps/generic/libnss_files.abilist: New file.
6973         * sysdeps/generic/libnss_hesiod.abilist: New file.
6974         * sysdeps/generic/libnss_nis.abilist: New file.
6975         * sysdeps/generic/libnss_nisplus.abilist: New file.
6976         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
6977         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
6978         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
6979         file.
6980         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
6981         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
6982         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
6983         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
6984         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
6985         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
6986         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
6987         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
6988         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
6989         file.
6990         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
6991         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
6992         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
6993         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
6994         file.
6995         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
6996         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
6997         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
6998         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
6999         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
7000         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
7001         file.
7002         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
7003         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
7004         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
7005         file.
7006         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
7007         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
7008         New file.
7009         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
7010         New file.
7011         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
7012         New file.
7013         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
7014         New file.
7015         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
7016         New file.
7017         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
7018         New file.
7019         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
7020         New file.
7021         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
7022         New file.
7023         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
7024         New file.
7025         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
7026         New file.
7027         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
7028         New file.
7029         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
7030         New file.
7031         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
7032         New file.
7033         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
7034         file.
7035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
7036         New file.
7037         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
7038         New file.
7039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
7040         file.
7041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
7042         New file.
7043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
7044         New file.
7045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
7046         file.
7047         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
7048         New file.
7049         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
7050         New file.
7051         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
7052         New file.
7053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
7054         New file.
7055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
7056         New file.
7057         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
7058         New file.
7059         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
7060         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
7061         file.
7062         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
7063         New file.
7064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
7065         file.
7066         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
7067         file.
7068         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
7069         file.
7070         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
7071         file.
7072         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
7073         file.
7074         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
7075         New file.
7076         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
7077         file.
7078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
7079         file.
7080         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
7081         New file.
7082         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
7083         file.
7084         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
7085         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
7086         file.
7087         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
7088         New file.
7089         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
7090         file.
7091         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
7092         file.
7093         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
7094         file.
7095         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
7096         file.
7097         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
7098         file.
7099         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
7100         New file.
7101         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
7102         file.
7103         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
7104         file.
7105         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
7106         New file.
7107         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
7108         file.
7109         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
7110         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
7111         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
7112         file.
7113         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
7114         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
7115         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
7116         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
7117         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
7118         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
7119         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
7120         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
7121         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
7122         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
7123         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
7124         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
7125         file.
7126         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
7127         New file.
7128         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
7129         file.
7130         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
7131         file.
7132         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
7133         file.
7134         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
7135         file.
7136         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
7137         file.
7138         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
7139         New file.
7140         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
7141         New file.
7142         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
7143         file.
7144         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
7145         New file.
7146         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
7147         file.
7148         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
7149         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
7150         file.
7151         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
7152         New file.
7153         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
7154         file.
7155         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
7156         file.
7157         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
7158         file.
7159         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
7160         file.
7161         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
7162         file.
7163         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
7164         New file.
7165         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
7166         New file.
7167         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
7168         file.
7169         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
7170         New file.
7171         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
7172         file.
7173
7174 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
7175
7176         * conform/conformtest.pl: Fix typo in handling typed-constant from
7177         allow-header.
7178
7179 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7180
7181         * README: Cut down references to pre-2.6 Linux kernels and
7182         Linuxthreads.  Update lists of configurations in libc and ports
7183         and sort alphabetically.  Say "or newer" with Linux kernel version
7184         requirements.
7185
7186         * config.h.in [IS_IN_build]: Allow compiling without optimization.
7187
7188 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7189
7190         [BZ #887]
7191         * math/libm-test.inc (logb_test_downward): New test to expose
7192         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
7193         rounding mode.
7194
7195 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
7196
7197         [BZ #14027]
7198         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
7199         to be done.
7200         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
7201         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
7202
7203 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
7204
7205         * sysdeps/unix/i386/brk.S: Remove file.
7206         * sysdeps/unix/i386/dl-brk.S: Likewise.
7207         * sysdeps/unix/i386/pipe.S: Likewise.
7208         * sysdeps/unix/i386/sigreturn.S: Likewise.
7209         * sysdeps/unix/i386/syscall.S: Likewise.
7210         * sysdeps/unix/i386/vfork.S: Likewise.
7211         * sysdeps/unix/i386/wait.S: Likewise.
7212
7213         * sysdeps/unix/common/tcsendbrk.c: Move to ...
7214         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
7215
7216         * configure.in (arm*-none*): Do not allow without
7217         --enable-hacker-mode.
7218         (netbsd*): Remove case setting base_os.
7219         (386bsd*): Likewise.
7220         (freebsd*): Likewise.
7221         (bsdi*): Likewise.
7222         (osf*): Likewise.
7223         (sunos*): Likewise.
7224         (ultrix*): Likewise.
7225         (newsos*): Likewise.
7226         (dynix*): Likewise.
7227         (*bsd*): Likewise.
7228         (sysv*): Likewise.
7229         (isc*): Likewise.
7230         (esix*): Likewise.
7231         (sco*): Likewise.
7232         (minix*): Likewise.
7233         (irix4*): Likewise.
7234         (irix6*): Likewise.
7235         (solaris[2-9]*): Likewise.
7236         (none): Likewise.
7237         * configure: Regenerated.
7238
7239 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7240
7241         [BZ #11521]
7242         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
7243         overflow or cancellation in calculating denominator.
7244         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
7245         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
7246         down expression to avoid unexpected rounding in newer GCCs.
7247         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
7248
7249 2012-04-26  David S. Miller  <davem@davemloft.net>
7250
7251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
7252         long-double compat symbols.
7253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
7255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
7256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
7257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
7258         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
7259         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
7260         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
7261         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
7262         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
7263         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
7264         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
7265         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
7266
7267 2012-04-25  David S. Miller  <davem@davemloft.net>
7268
7269         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
7270         HWCAP_* values only after the memory barriers have been defined.
7271         (atomic_full_barrier): Define.
7272         (atomic_read_barrier): Define.
7273         (atomic_write_barrier): Define.
7274
7275 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
7276
7277         * shlib-versions: Add libgcc_s version information.
7278         * sysdeps/generic/libgcc_s.h: Remove.
7279         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
7280         libgcc_s.h.
7281         * sysdeps/gnu/unwind-resume.c: Likewise.
7282         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
7283
7284 2012-04-25  David S. Miller  <davem@davemloft.net>
7285
7286         * sysdeps/unix/sparc/brk.S: Delete.
7287         * sysdeps/unix/sparc/dl-brk.S: Delete.
7288         * sysdeps/unix/sparc/pipe.S: Delete.
7289         * sysdeps/unix/sparc/sysdep.S: Delete.
7290         * sysdeps/unix/sparc/sysdep.h: Delete.
7291         * sysdeps/unix/sparc/vfork.S: Delete.
7292         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
7293         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
7294         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
7295         ret_ERRVAL, r0, r1, MOVE): Define.
7296         (JUMPTARGET): Remove.
7297         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
7298         sysdeps/unix/sparc/sysdep.h
7299         (ENTRY, END): Remove.
7300         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7301
7302 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
7303
7304         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
7305         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
7306         -DIS_IN_build.
7307
7308         * timezone/README: Update upstream location and email address for
7309         tzcode and tzdata.
7310         * timezone/zdump.c: Update from tzcode 2012b.
7311         * timezone/zic.c: Likewise.
7312
7313         * configure.in (libc_cv_as_needed): Remove test.
7314         * configure: Regenerated.
7315         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
7316         conditional definition.
7317         [$(have-as-needed) != yes] (no-as-needed): Likewise.
7318         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
7319         * config.make.in (have-as-needed): Remove variable.
7320
7321 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7322             Paul Pluzhnikov  <ppluzhnikov@google.com>
7323
7324         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
7325         strings correctly.
7326
7327 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
7328
7329         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
7330         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
7331         * sysdeps/sh/strlen.S: Likewise.
7332
7333 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7334
7335         * sysdeps/unix/fork.S: Remove file.
7336         * sysdeps/unix/i386/fork.S: Likewise.
7337         * sysdeps/unix/sparc/fork.S: Likewise.
7338
7339         * sysdeps/unix/system.c: Remove file.
7340         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
7341
7342         * sysdeps/unix/getegid.S: Remove file.
7343         * sysdeps/unix/geteuid.S: Likewise.
7344
7345 2012-04-24  Roland McGrath  <roland@hack.frob.com>
7346
7347         * scripts/check-localplt.awk: New file.
7348         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
7349         of diff.
7350         * scripts/data/localplt-generic.data: Add a comment.
7351
7352         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
7353         NODE when __dir_mkfile failed.
7354         * sysdeps/mach/hurd/symlinkat.c: Likewise.
7355         Reported by Ludovic Courtès <ludo@gnu.org>.
7356
7357 2012-04-24  Andreas Jaeger  <aj@suse.de>
7358
7359         * Makerules (common-clean): Also remove gen-as-const-headers
7360         files.
7361
7362 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7363
7364         * Makerules (native-compile): Do not change working directory for
7365         build.  Use $(OUTPUT_OPTION) in command.
7366         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
7367
7368 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7369
7370         [BZ #13886]
7371         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
7372         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
7373         * math/libm-test.inc (floor_test): Add more tests.
7374         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
7375
7376 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
7377
7378         * sysdeps/unix/getdents.c: Remove file.
7379         * sysdeps/unix/sysv/getdents.c: Likewise.
7380         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
7381
7382         * sysdeps/unix/syscalls.list (madvise): Add syscall from
7383         sysdeps/unix/mman/syscalls.list.
7384         (mmap): Likewise.
7385         (mprotect): Likewise.
7386         (msync): Likewise.
7387         (munmap): Likewise.
7388         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
7389         * sysdeps/unix/mman/syscalls.list: Remove.
7390         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
7391
7392         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
7393         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
7394         * configure: Regenerated.
7395         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
7396         $(libgcc_s_suffix).
7397         * config.make.in (libgcc_s_suffix): Remove variable.
7398
7399 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
7400
7401         * sysdeps/unix/sysv/gethostname.c: Move to ...
7402         * sysdeps/posix/gethostname.c: ... here.
7403
7404         * sysdeps/unix/execve.S: Remove file.
7405
7406         * sysdeps/unix/_exit.S: Remove file.
7407
7408 2012-04-23  Andreas Jaeger  <aj@suse.de>
7409
7410         [BZ #13739]
7411         * manual/Makefile: Remove make dist support, there's no
7412         need for a stand-alone documentation tar ball.
7413         (TEXI2DVI): Define always, it's not in Makeconfig.
7414         (dist): Removed.
7415         (tar-it): Removed.
7416         (edition): Removed.
7417         (glibc-doc-$(edition).tar): Removed
7418         (%.Z): Removed.
7419         (%.gz): Removed.
7420         (%.uu): Removed.
7421         (ETAGS): Remove, it's in Makeconfig.
7422         (move-if-change): Remove, it's in Makeconfig.
7423
7424 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
7425
7426         [BZ #13970]
7427         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
7428         (strtod, strtof, strtold, strtol, strtoul, strtoq)
7429         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
7430         (strtod_l, strtof_l, strtold_l): Remove __wur.
7431         It is not necessarily an error to ignore strtol's return value.
7432         One can reliably look at the stored endptr to decide whether
7433         the number had valid syntax.
7434
7435 2012-04-21  Andreas Jaeger  <aj@suse.de>
7436
7437         [BZ #13739]
7438         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
7439
7440 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
7441
7442         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
7443         * sysdeps/unix/sysv/Versions: Remove file.
7444
7445 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
7446
7447         [BZ #13927]
7448         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7449
7450 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
7451
7452         [BZ #7064]
7453         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
7454         version from __vm86.
7455
7456 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
7457
7458         * sysdeps/unix/common/lxstat.c: Remove file.
7459         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
7460
7461         * sysdeps/unix/sysv/Makefile: Remove file.
7462
7463         * sysdeps/unix/sysv/direct.h: Remove file.
7464
7465         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
7466         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
7467         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
7468         * sysdeps/unix/sysv/bits/signum.h: Likewise.
7469         * sysdeps/unix/sysv/bits/stat.h: Likewise.
7470         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
7471         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
7472
7473         * sysdeps/unix/sysv/setrlimit.c: Remove file.
7474
7475         * sysdeps/unix/xmknod.c: Remove file.
7476         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
7477
7478         * sysdeps/unix/sysv/settimeofday.c: Remove file.
7479
7480         * sysdeps/unix/sysv/i386/time.S: Remove file.
7481
7482         * sysdeps/unix/fxstat.c: Remove file.
7483         * sysdeps/unix/xstat.c: Likewise.
7484         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
7485
7486         * sysdeps/unix/sysv/sigaction.c: Remove file.
7487
7488         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
7489         (sysdep_headers): Remove variable.
7490         [termio.h not in sysdep_headers] (generated): Likewise.
7491         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
7492         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
7493         * sysdeps/unix/sysv/tcdrain.c: Likewise.
7494         * sysdeps/unix/sysv/tcflow.c: Likewise.
7495         * sysdeps/unix/sysv/tcflush.c: Likewise.
7496         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
7497         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
7498         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
7499         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
7500         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
7501
7502         * sysdeps/unix/siglist.c: Remove file.
7503
7504         * sysdeps/unix/getppid.S: Remove file.
7505
7506         * sysdeps/unix/mkdir.c: Remove file.
7507         * sysdeps/unix/rmdir.c: Likewise.
7508
7509 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
7510
7511         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
7512         ERR_MAX value.
7513         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
7514         errlist-compat value.
7515
7516 2012-04-18  David S. Miller  <davem@davemloft.net>
7517
7518         * sysdeps/generic/memcopy.h (reg_char): Delete.
7519         * debug/strcat_chk.c: Use char, not reg_char.
7520         * debug/strcpy_chk.c: Likewise.
7521         * debug/strncat_chk.c: Likewise.
7522         * debug/strncpy_chk.c: Likewise.
7523         * string/memchr.c: Likewise.
7524         * string/memrchr.c: Likewise.
7525         * string/rawmemchr.c: Likewise.
7526         * string/strcat.c: Likewise.
7527         * string/strchr.c: Likewise.
7528         * string/strchrnul.c: Likewise.
7529         * string/strcmp.c: Likewise.
7530         * string/strcpy.c: Likewise.
7531         * string/strncat.c: Likewise.
7532         * string/strncmp.c: Likewise.
7533         * string/strncpy.c: Likewise.
7534
7535 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7536
7537         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
7538         __builtin_memcopy is called when src and dest ranges are known to not
7539         overlap.
7540
7541 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7542
7543         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
7544         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
7545         fwd_align_merge macro call.
7546         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
7547         bwd_align_merge macro call.
7548         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7549
7550 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
7551
7552         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
7553         bwd_align_merge macros.
7554         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
7555         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
7556         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
7557
7558 2012-04-18  David S. Miller  <davem@davemloft.net>
7559
7560         * sysdeps/sparc/sparc64/memcopy.h: Delete.
7561
7562 2012-04-18  Andreas Jaeger  <aj@suse.de>
7563
7564         [BZ# 6794]
7565         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
7566         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
7567         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7568
7569         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
7570         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
7571         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7572
7573         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
7574         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
7575         Adjust for changed ldbl-128 files.
7576
7577         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
7578         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
7579         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
7580
7581 2012-04-17  David S. Miller  <davem@davemloft.net>
7582
7583         * sysdeps/sparc/sparc32/memcopy.h: Delete.
7584
7585 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
7586
7587         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
7588         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
7589         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
7590         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
7591         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
7592         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
7593
7594 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7595
7596         [BZ #6794]
7597         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
7598         * math/libm-test.inc: Add ilogb errno and exception tests.
7599         * math/w_ilogb.c: New file: ilogb wrapper.
7600         * math/w_ilogbf.c: New file: ilogbf wrapper.
7601         * math/w_ilogbl.c: New file: ilogbl wrapper.
7602         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
7603         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
7604         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
7605         exception being thrown with 0.0 as argument.
7606         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
7607         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
7608         exception being thrown with 0.0 as argument.
7609         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
7610         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7611         exception being thrown with 0.0 as argument.
7612         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
7613         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
7614         exception being thrown with 0.0 as argument.
7615         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
7616         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
7617         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
7618         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
7619         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
7620         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
7621         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
7622         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
7623         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
7624
7625 2012-04-17  Petr Baudis  <pasky@ucw.cz>
7626
7627         * include/sys/uio.h: Change __vector to __iovec to avoid clash
7628         with altivec.
7629
7630 2012-04-16  Marek Polacek  <polacek@redhat.com>
7631
7632         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
7633
7634 2012-04-16  Marek Polacek  <polacek@redhat.com>
7635
7636         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
7637         operands of fdivp instruction.
7638
7639 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7640
7641         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
7642         * elf/tst-auditmod3b.c: Likewise.
7643         * elf/tst-auditmod4b.c: Likewise.
7644         * elf/tst-auditmod5b.c: Likewise.
7645         * elf/tst-auditmod6b.c: Likewise.
7646         * elf/tst-auditmod6c.c: Likewise.
7647         * elf/tst-auditmod7b.c: Likewise.
7648         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
7649         * sysdeps/x86_64/preconfigure.in: Likewise.
7650         * sysdeps/x86_64/preconfigure: Regenerated.
7651
7652 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
7653
7654         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
7655         __ILP32__.
7656
7657 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
7658
7659         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
7660         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
7661
7662 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
7663
7664         [BZ #13973]
7665         * locale/iso-639.def: Fix gl language name. Spotted by
7666         Yaron Shahrabani.
7667
7668 2012-04-12  Roland McGrath  <roland@hack.frob.com>
7669
7670         [BZ #2074]
7671         * libio/libio.h (__io_write_fn): Update comment.
7672
7673 2012-04-12  Petr Baudis  <pasky@ucw.cz>
7674
7675         [BZ #2074]
7676         * stdio.texi (Hook Functions): The user provided writer function
7677         is not allowed to return -1.
7678
7679 2012-04-11  David S. Miller  <davem@davemloft.net>
7680
7681         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7682
7683 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
7684
7685         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
7686         Add a leading slash to rtkaio.
7687
7688 2012-04-11  Jim Meyering  <meyering@redhat.com>
7689
7690         [BZ #11959]
7691         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
7692         It is not necessarily an error to ignore fwrite's return
7693         value.  One can reliably use ferror to test for errors after
7694         the fact.
7695
7696 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7697
7698         * bits/types.h (__snseconds_t): New type.
7699         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
7700
7701         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
7702         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7703         (__SNSECONDS_T_TYPE): Likewise.
7704         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7705         (__SNSECONDS_T_TYPE): Likewise.
7706         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7707         (__SNSECONDS_T_TYPE): Likewise.
7708
7709 2012-04-10  Andreas Jaeger  <aj@suse.de>
7710
7711         [BZ #2636]
7712         * manual/time.texi (Processor Time): Return type of times is
7713         elapsed real time since an arbitrary point in the past.
7714         (CPU Time): Move CLK_TCK from here...
7715         (Processor Time): ...to here.  Correct description.
7716         * manual/conf.texi (Constants for Sysconf): Correct description of
7717         _SC_CLK_TCK.
7718
7719 2012-04-10  David S. Miller  <davem@davemloft.net>
7720
7721         [BZ #13967]
7722         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
7723         where the is a gap between DT_REL(A) and DT_JMPREL.
7724
7725 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
7726
7727         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
7728         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7729         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7730
7731 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7732
7733         * elf/dl-support.c (_dl_inhibit_cache): New variable.
7734         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
7735         (dl_main): Handle --inhibit-cache.
7736         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
7737         _dl_inhibit_cache.
7738         * elf/dl-load.c (_dl_map_object): Use it.
7739         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
7740
7741 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7742
7743         [BZ #13872]
7744         * sysdeps/i386/fpu/e_powl.S (p78): New object.
7745         (__ieee754_powl): Saturate large exponents rather than testing for
7746         overflow of y*log2(x).
7747         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7748         * math/libm-test.inc (pow_test): Do not permit spurious overflow
7749         exceptions.
7750
7751         [BZ #11521]
7752         * math/s_ctan.c: Include <float.h>.
7753         (__ctan): Avoid internal overflow or cancellation in calculating
7754         denominator.
7755         * math/s_ctanf.c: Likewise.
7756         * math/s_ctanl.c: Likewise.
7757         * math/s_ctanh.c: Likewise.
7758         * math/s_ctanhf.c: Likewise.
7759         * math/s_ctanhl.c: Likewise.
7760         * math/libm-test.inc (ctan_test): Add more tests.
7761         (ctanh_test): Likewise.
7762         * sysdeps/i386/fpu/libm-test-ulps: Update.
7763         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7764
7765 2012-04-09  Andreas Jaeger  <aj@suse.de>
7766
7767         [BZ #6894]
7768         * manual/filesys.texi (Directory Entries): Mention that d_namlen
7769         is an optional BSD extension.
7770
7771         [BZ #10254]
7772         * manual/stdio.texi (Opening Streams): Document additional fopen
7773         parameters.
7774
7775 2012-04-09  Roland McGrath  <roland@hack.frob.com>
7776
7777         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
7778         %eax without telling the compiler.
7779
7780 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
7781
7782         [BZ # 13963]
7783         * manual/install.texi: Use sourceware.org.
7784
7785 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
7786
7787         [BZ #13873]
7788         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
7789         (__ieee754_pow): Generate overflow and underflow using huge*huge
7790         and tiny*tiny rather than just returning constant infinity or zero
7791         for large exponents.
7792         * math/libm-test.inc (pow_test): Require overflow exceptions for
7793         applicable cases of large exponents.
7794
7795         [BZ #706]
7796         * sysdeps/i386/fpu/e_pow.S (p10): New object.
7797         (__ieee754_pow): Use iterative multiplication algorithm only for
7798         integer exponents with absolute value below 1024.  Check for odd
7799         integer exponents when using algorithm for real exponents.
7800         * math/libm-test.inc (pow_test): Add more tests.
7801         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7802
7803 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
7804
7805         [BZ #13705]
7806         * math/libm-test.inc (exp_test): Do not allow overflow exception
7807         on underflow test.
7808
7809 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
7810
7811         [BZ #13705]
7812         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
7813         instead of __kernel_standard_f.
7814
7815 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
7816
7817         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
7818         * sysdeps/x86_64/memset_chk.S: Likewise.
7819
7820 2012-04-08  Andreas Jaeger  <aj@suse.de>
7821
7822         [BZ #10153]
7823         * manual/startup.texi (Environment Access): Describe return value
7824         for putenv and setenv.
7825
7826         [BZ #6895]
7827         * manual/filesys.texi (Directory Entries): Add description for
7828         DT_LNK.
7829
7830         [BZ #6890]
7831         * manual/filesys.texi (Directory Entries): Clarify that it's file
7832         system not operating system in the description of DT_UNKNOWN.
7833
7834         [BZ #6578]
7835         * manual/syslog.texi (closelog): Fix reference, it's openlog.
7836
7837 2012-04-08  Stephen Compall  <s11@member.fsf.org>
7838
7839         [BZ #6649]
7840         * manual/llio.texi (Opening and Closing Files): Add cross
7841         reference to explain mode argument.
7842
7843 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
7844
7845         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
7846         * sysdeps/x86_64/memset_chk.S: Likewise.
7847
7848 2012-04-07  David S. Miller  <davem@davemloft.net>
7849
7850         * elf/elf.h (R_SPARC_WDISP10): Define.
7851         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
7852         R_SPARC_SIZE32.
7853         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
7854         R_SPARC_SIZE64 and R_SPARC_H34.
7855
7856 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
7857
7858         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
7859         conditions and remove no longer applicable assertion.
7860
7861 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7862
7863         * bits/byteswap.h: Include <features.h>.
7864         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
7865         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
7866
7867 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
7868
7869         * bits/byteswap.h (__bswap_16): Removed.
7870         Include <bits/byteswap-16.h> to get __bswap_16.
7871         * sysdeps/i386/bits/byteswap.h: Likewise.
7872         * sysdeps/s390/bits/byteswap.h: Likewise.
7873         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7874         * bits/byteswap-16.h: New file.
7875         * sysdeps/i386/bits/byteswap-16.h: Likewise.
7876         * sysdeps/s390/bits/byteswap-16.h: Likewise.
7877         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
7878         * string/Makefile (headers): Add bits/byteswap-16.h.
7879
7880 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
7881
7882         [BZ #13895]
7883         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
7884         extra indirection.
7885         * nss/Makefile (tests-static, tests): Add tst-nss-static.
7886         * nss/tst-nss-static.c: New.
7887
7888 2012-04-06  Robert Millan  <rmh@gnu.org>
7889
7890         [BZ #6486]
7891         * manual/llio.texi (File Position Primitive): lseek
7892         refers to WHENCE when it really means OFFSET.
7893
7894 2012-04-06  Andreas Jaeger  <aj@suse.de>
7895
7896         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
7897         strncmp declarations.
7898
7899         * abilist/libc.abilist: Add __poll and __ppoll.
7900
7901 2012-04-05  David S. Miller  <davem@davemloft.net>
7902
7903         * scripts/check-local-headers.sh: Accept a host triplet in the
7904         path matched by the exclude regexp.
7905
7906         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
7907         definition.
7908         * sysdeps/powerpc/powerpc32/dl-machine.h
7909         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
7910         * sysdeps/s390/s390-32/dl-machine.h
7911         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7912         * sysdeps/sparc/sparc32/dl-machine.h
7913         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7914         * sysdeps/sparc/sparc64/dl-machine.h
7915         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
7916
7917         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
7918         lazy binding.
7919         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
7920         undefined symbol errors.
7921
7922         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
7923         DT_NEEDED entries.
7924
7925 2012-04-05  Michael Matz  <matz@suse.de>
7926
7927         [BZ #13592]
7928         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
7929
7930 2012-04-05  Andreas Jaeger  <aj@suse.de>
7931
7932         [BZ #13908]
7933         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
7934         comment.
7935
7936 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7937
7938         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
7939         which ROUND is no valid rounding mode.
7940
7941 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7942
7943         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
7944         read again.
7945         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
7946
7947 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7948
7949         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
7950         an exception using FPU order intentionally.
7951
7952 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
7953
7954         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
7955         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
7956         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
7957         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
7958
7959 2012-04-05  Simon Josefsson  <simon@josefsson.org>
7960
7961         [BZ #12340]
7962         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
7963         EINVAL when BUFLEN is too smal.
7964
7965 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7966
7967         [BZ #13553]
7968         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
7969         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
7970
7971 2012-04-03  Andreas Jaeger  <aj@suse.de>
7972
7973         [BZ #13938]
7974         * manual/setjmp.texi (System V contexts): Fix sentence.
7975
7976         [BZ #13926]
7977         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
7978         New macro for this case.
7979         [!__GNUC__] (__bswap_64): New inline function for this case.
7980         * sysdeps/x86_64/bits/byteswap.h: Likewise.
7981         * bits/byteswap.h: Likewise.
7982         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
7983         ull, guard with __GLIBC_HAVE_LONG_LONG.
7984
7985         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
7986         __GLIBC_HAVE_LONG_LONG.
7987
7988         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
7989         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
7990
7991 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
7992
7993         [BZ #13691]
7994         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
7995         inptr and inend, rather than using last_ch.
7996
7997 2012-04-02  David S. Miller  <davem@davemloft.net>
7998
7999         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
8000         * stdio-common/printf-parse.h (read_int): Change return type to
8001         'int', return -1 on INT_MAX overflow.
8002         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
8003         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
8004         overflows INT_MAX.  Check for overflow of in-format-string precision
8005         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
8006         SIZE_MAX not INT_MAX for integer overflow test.
8007         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
8008         skip the construct in the format string but do not record anything.
8009         * stdio-common/bug22.c: Adjust to test both width/prevision
8010         INT_MAX overflow as well as total length INT_MAX overflow.  Check
8011         explicitly for proper errno values.
8012
8013 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
8014
8015         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
8016         CHAR_MAX.
8017         * string/test-strcmp.c [! WIDE]: Likewise.
8018         * time/tst-mktime2.c: Likewise for INT_MAX.
8019         * string/test-string.h: #include <sys/param.h> for MIN.
8020
8021         * csu/init-first.c (__libc_init_first): Call __ctype_init.
8022         * sysdeps/i386/init-first.c (init): Likewise.
8023         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
8024         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
8025         * sysdeps/sh/init-first.c (init): Likewise.
8026
8027 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
8028
8029         * po/ru.po: Update from translation team.
8030         * po/vi.po: Likewise.
8031
8032 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8033
8034         * resolv/nss_dns/dns-host.c: Merge copyright years.
8035
8036 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8037
8038         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
8039         Optimize memcpy with prefetch if
8040         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
8041         src, dst pointers have unequal 16 byte alignments.
8042
8043 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
8044
8045         [BZ #13928]
8046         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
8047         from a CNAME entry and return the minimum ttl for the query.
8048         (gaih_getanswer_slice): Likewise.
8049
8050 2012-03-30  Jeff Law  <law@redhat.com>
8051
8052         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
8053         due to long keys.
8054         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
8055         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
8056
8057         * resolv/nss_dns/dns-host.c: Update copyright year.
8058
8059 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
8060
8061         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
8062         requests to save a system call.  Fix check that all bytes are sent.
8063
8064         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
8065         comments for sendmmsg.
8066
8067 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8068
8069         [BZ #13691]
8070         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
8071         with only 1 character between 0x0041 and 0x01b0.
8072         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
8073         * wcsmbs/tst-mbsnrtowcs.c: New file.
8074
8075 2012-03-29  David S. Miller  <davem@davemloft.net>
8076
8077         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
8078         small copies by hand.
8079
8080 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8081
8082         [BZ #13761]
8083         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
8084         _nss_compat_initgroups_dyn): Fall back to malloc/free
8085         for large group memberships.
8086
8087 2012-03-28  David S. Miller  <davem@davemloft.net>
8088
8089         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
8090         that branches into memcpy.
8091         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
8092         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
8093         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
8094         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
8095         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
8096         bits.
8097         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
8098         implementation too.
8099         * sysdeps/sparc/mempcpy.S: New file.
8100
8101         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
8102         the IFUNC routine in the libc case.
8103         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
8104
8105         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
8106         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
8107         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
8108         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
8109         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
8110         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
8111         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
8112         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
8113
8114         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
8115         loop to 256 bytes instead of 64 bytes and fix test signedness.
8116
8117         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
8118         * sysdeps/sparc/sparc32/Makefile: rather than here...
8119         * sysdeps/sparc/sparc64/Makefile: and here.
8120
8121 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
8122
8123         * malloc/mallocbug.c: Avoid warnings about unused variables.
8124
8125 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
8126
8127         [BZ #13760]
8128         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
8129         in the right place. Discard and retry query if response is
8130         larger than input buffer size.
8131
8132 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
8133
8134         [BZ #369]
8135         [BZ #2678]
8136         [BZ #3866]
8137         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
8138         x for large integer exponent.
8139         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
8140         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
8141         sign of result as needed afterwards.
8142         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
8143         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
8144         result for underflowing pow the same as for overflow.
8145         (__kernel_standard_l): Handle powl overflow and underflow here
8146         rather than calling __kernel_standard.
8147         * math/libm-test.inc (pow_test): Add more tests.
8148
8149         [BZ #3868]
8150         [BZ #13879]
8151         [BZ #13910]
8152         [BZ #13911]
8153         [BZ #13912]
8154         [BZ #13913]
8155         [BZ #13915]
8156         [BZ #13916]
8157         [BZ #13917]
8158         [BZ #13918]
8159         [BZ #13919]
8160         [BZ #13920]
8161         [BZ #13921]
8162         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
8163         * sysdeps/ieee754/k_standard.c: Include <float.h>.
8164         (__kernel_standard_l): New function.
8165         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
8166         __kernel_standard.
8167         * math/w_acosl.c (__acosl): Likewise.
8168         * math/w_asinl.c (__asinl): Likewise.
8169         * math/w_atan2l.c (__atan2l): Likewise.
8170         * math/w_atanhl.c (__atanhl): Likewise.
8171         * math/w_coshl.c (__coshl): Likewise.
8172         * math/w_exp10l.c (__exp10l): Likewise.
8173         * math/w_exp2l.c (__exp2l): Likewise.
8174         * math/w_fmodl.c (__fmodl): Likewise.
8175         * math/w_hypotl.c (__hypotl): Likewise.
8176         * math/w_j0l.c (__j0l, __y0l): Likewise.
8177         * math/w_j1l.c (__j1l, __y1l): Likewise.
8178         * math/w_jnl.c (__jnl, __ynl): Likewise.
8179         * math/w_lgammal.c (__lgammal): Likewise.
8180         * math/w_log10l.c (__log10l): Likewise.
8181         * math/w_log2l.c (__log2l): Likewise.
8182         * math/w_logl.c (__logl): Likewise.
8183         * math/w_powl.c (__powl): Likewise.
8184         * math/w_remainderl.c (__remainderl): Likewise.
8185         * math/w_scalbl.c (sysv_scalbl): Likewise.
8186         * math/w_sinhl.c (__sinhl): Likewise.
8187         * math/w_sqrtl.c (__sqrtl): Likewise.
8188         * math/w_tgammal.c (__tgammal): Likewise.
8189         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
8190         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
8191         * math/libm-test.inc (acos_test): Add more tests.
8192         (acosh_test): Likewise.
8193         (asin_test): Likewise.
8194         (atanh_test): Likewise.
8195         (exp_test): Likewise.
8196         (exp10_test): Likewise.
8197         (exp2_test): Likewise.
8198         (expm1_test): Likewise.
8199         (lgamma_test): Likewise.
8200         (log_test): Likewise.
8201         (log10_test): Likewise.
8202         (log1p_test): Likewise.
8203         (log2_test): Likewise.
8204         (pow_test): Do not allow some spurious overflow exceptions.
8205         (sqrt_test): Add more tests.
8206         (tgamma_test): Likewise.
8207         (y0_test): Likewise.
8208         (y1_test): Likewise.
8209         (yn_test): Likewise.
8210
8211 2012-03-27  Anton Blanchard  <anton@samba.org>
8212
8213         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
8214         MAP_HUGETLB.
8215         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
8216         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
8217         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
8218
8219 2012-03-27  David S. Miller  <davem@davemloft.net>
8220
8221         * conform/Makefile: Run run-conformtest.sh using $(BASH).
8222
8223         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
8224         have-as-vis3 check.
8225
8226 2012-03-27  Andreas Jaeger  <aj@suse.de>
8227
8228         * sysdeps/x86_64/elf/configure.in: Moved to ...
8229         * sysdeps/x86_64/configure.in: ... here.
8230         * sysdeps/x86_64/elf/start.S: Moved to ...
8231         * sysdeps/x86_64/start.S: ... here.
8232         * sysdeps/x86_64/elf/configure: Delete.
8233
8234         * sysdeps/x86_64/configure.in: Merge contents from
8235         sysdeps/i386/configure.in (without i686 check).
8236
8237         * sysdeps/i386/elf/Versions: Merge into ...
8238         * sysdeps/i386/Versions: ... this.
8239         * sysdeps/i386/elf/Versions: Delete file.
8240         * sysdeps/i386/elf/start.S: Moved to ...
8241         * sysdeps/i386/start.S: ...here.
8242         * sysdeps/i386/elf/configure.in: Merge into...
8243         * sysdeps/i386/configure.in: ...here.
8244         * sysdeps/i386/elf/configure.in: Delete file.
8245         * sysdeps/i386/elf/configure: Delete file.
8246
8247         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
8248         * debug/backtracesyms.c: ... here.
8249         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
8250         * debug/backtracesymsfd.c: ... here.
8251         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
8252         * sysdeps/generic/ifunc-sel.h: ... here.
8253
8254         * sysdeps/unix/i386/start.c: Delete file.
8255         * sysdeps/unix/sparc/start.c: Delete file.
8256         * sysdeps/unix/start.c: Delete file.
8257
8258         * sysdeps/sh/elf/configure.in: Moved to ...
8259         * sysdeps/sh/configure.in: ... here.
8260         * sysdeps/sh/elf/start.S: Moved to ...
8261         * sysdeps/sh/start.S: ... here.
8262         * sysdeps/sh/elf/configure: Delete file.
8263
8264         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
8265         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
8266         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
8267         * sysdeps/powerpc/powerpc64/entry.h: ... here.
8268         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
8269         * sysdeps/powerpc/powerpc64/start.S: here.
8270         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
8271         * sysdeps/powerpc/powerpc64/Makefile: ... this.
8272         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
8273         * sysdeps/powerpc/powerpc64/configure.in: ... this.
8274         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
8275
8276         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
8277         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
8278         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
8279         * sysdeps/powerpc/powerpc32/start.S: ... here.
8280         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
8281         * sysdeps/powerpc/powerpc32/configure.in: ... this.
8282         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
8283
8284         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
8285         * sysdeps/powerpc/ifunc-sel.h: ... here.
8286         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
8287         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
8288
8289         * sysdeps/sparc/elf/configure.in: Moved to ...
8290         * sysdeps/sparc/configure.in: ... here.
8291         * sysdeps/sparc/elf/configure: Delete file.
8292         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
8293         * sysdeps/sparc/sparc32/start.S: ... here.
8294         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
8295         * sysdeps/sparc/sparc64/start.S: ... here.
8296         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
8297         * sysdeps/sparc/sparc32/Makefile: ... this.
8298         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
8299         * sysdeps/sparc/sparc64/Makefile: ... this.
8300
8301         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
8302         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
8303         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
8304         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
8305         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
8306         * sysdeps/s390/s390-32/setjmp.S: ... here.
8307         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
8308         * sysdeps/s390/s390-32/configure.in: ... here.
8309         * sysdeps/s390/s390-32/elf/configure: Delete file.
8310         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
8311         * sysdeps/s390/s390-32/start.S: ... here.
8312
8313         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
8314         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
8315         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
8316         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
8317         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
8318         * sysdeps/s390/s390-64/setjmp.S: ... here.
8319         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
8320         * sysdeps/s390/s390-64/configure.in: ... here
8321         * sysdeps/s390/s390-64/elf/configure: Delete file.
8322         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
8323         * sysdeps/s390/s390-64/start.S: ... here.
8324         * sysdeps/s390/s390-64/elf/configure: Delete.
8325
8326         * configure.in: Remove support for elf directories in sysdeps.
8327
8328         * configure: Regenerated.
8329         * sysdeps/i386/configure: Regenerated.
8330         * sysdeps/powerpc/powerpc32/configure: Regenerated.
8331         * sysdeps/powerpc/powerpc64/configure: Regenerated.
8332         * sysdeps/s390/s390-32/configure: Regenerated.
8333         * sysdeps/s390/s390-64/configure: Regenerated.
8334         * sysdeps/sh/configure: Regenerated.
8335         * sysdeps/sparc/configure: Regenerated.
8336         * sysdeps/x86_64/configure: Regenerated.
8337
8338 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
8339
8340         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8341
8342         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
8343         denormal result into account.
8344
8345 2012-03-25  Roland McGrath  <roland@hack.frob.com>
8346
8347         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
8348         Reported by Allan McRae <allan@archlinux.org>.
8349
8350 2012-03-23  Jeff Law  <law@redhat.com>
8351
8352         * nss/getnssent.c (__nss_getent): Fix typo.
8353
8354 2012-03-23  David S. Miller  <davem@davemloft.net>
8355
8356         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8357
8358 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
8359
8360         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
8361         to pad to uint64_t for each field.
8362         (dl_tls_index): Replace unsigned long with uint64_t.
8363
8364 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
8365         Paul Pluzhnikov  <ppluzhnikov@google.com>
8366
8367         [BZ #6528]
8368         * grp/Makefile (otherlibs): Don't set it.
8369         * inet/Makefile (otherlibs): Likewise.
8370         * login/Makefile (otherlibs): Likewise.
8371         * nscd/Makefile (otherlibs): Likewise.
8372         * posix/Makefile (otherlibs): Likewise.
8373         * pwd/Makefile (otherlibs): Likewise.
8374         * rt/Makefile (otherlibs): Likewise.
8375         * sunrpc/Makefile (otherlibs): Likewise.
8376         * nss/Makefile (otherlibs): Likewise.
8377         Add libnss_files to routines and static-only-routines.
8378         ($(objpfx)getent): Remove rule.
8379         * resolv/Makefile: Add libnss_dns and libresolv to routines and
8380         static-only-routines.
8381
8382 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8383
8384         [BZ #13892]
8385         * math/s_cexp.c: Include <float.h>.
8386         (__cexp): Handle exp result overflowing not necessarily
8387         overflowing both real and imaginary parts of result.
8388         * math/s_cexpf.c: Likewise.
8389         * math/s_cexpl.c: Likewise.
8390         * math/libm-test.inc (cexp_test): Add more tests.
8391         * sysdeps/i386/fpu/libm-test-ulps: Update.
8392         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8393
8394 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8395
8396         * include/link.h (ELFW): New macro.
8397         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
8398         Replace ELF64_R_TYPE with ELFW(R_TYPE).
8399
8400 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8401
8402         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
8403         with uint64_t.
8404
8405 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8406
8407         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
8408         declaration.
8409         (struct La_x32_retval): Likewise.
8410
8411 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
8412
8413         * sysdeps/x86_64/preconfigure.in: New file.
8414         * sysdeps/x86_64/preconfigure: New generated file.
8415
8416 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
8417
8418         [BZ #13824]
8419         * math/e_exp2l.c: Include <float.h>.
8420         (__ieee754_exp2l): Handle overflow and underflow cases
8421         separately.  Only pass fractional part of argument to
8422         __ieee754_expl.
8423         * math/libm-test.inc (exp2_test): Add more tests.
8424
8425         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
8426         negating x to take absolute value.
8427         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
8428         Likewise.
8429         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
8430         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
8431         Likewise.
8432         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
8433         computing low part if x was negated.
8434         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
8435
8436 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8437
8438         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
8439         la_x32_gnu_pltexit.
8440         (pltexit): Cast int_retval to ptrdiff_t.
8441         * elf/tst-auditmod3b.c: Likewise.
8442         * elf/tst-auditmod4b.c: Likewise.
8443         * elf/tst-auditmod5b.c: Likewise.
8444         * elf/tst-auditmod6b.c: Likewise.
8445         * elf/tst-auditmod6c.c: Likewise.
8446         * elf/tst-auditmod7b.c: Likewise.
8447
8448         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
8449         and x32_gnu_pltexit.
8450
8451         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
8452         __ELF_NATIVE_CLASS.
8453         (La_x32_regs): New macro.
8454         (La_x32_retval): Likewise.
8455         (la_x32_gnu_pltenter): New function prototype.
8456         (la_x32_gnu_pltexit): Likewise.
8457
8458 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
8459
8460         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
8461         exponent.
8462
8463         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8464
8465         * configure.in (libc_cv_cc_nofma): Check for option to disable
8466         generation of FMA instructions.
8467         * configure: Regenerate.
8468         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
8469         * sysdeps/ieee754/dbl-64/Makefile: New file.
8470         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
8471         Remove brandred-fma4.
8472         (CFLAGS-brandred-fma4.c): Remove.
8473         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
8474         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
8475         define.
8476         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
8477         define.
8478
8479 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8480
8481         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
8482         LLONG_MAX != LONG_MAX.
8483         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8484         (_fitoa_word): Likewise.
8485         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
8486         LLONG_MAX != LONG_MAX.
8487         * stdio-common/_itowa.h: Include <_itoa.h>.
8488         (_itowa_word): Use _ITOA_WORD_TYPE on value.
8489         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
8490         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
8491         only if not defined.
8492         (_ITOA_WORD_TYPE): Likewise.
8493         (_itoa_word): Use _ITOA_WORD_TYPE on value.
8494         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
8495
8496 2012-03-21  David S. Miller  <davem@davemloft.net>
8497
8498         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8499
8500 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
8501
8502         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
8503         of x86_64 when setting libc_cv_slibdir, libdir and
8504         libc_cv_localedir.
8505         * sysdeps/unix/sysv/linux/configure: Regenerated.
8506
8507 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8508
8509         * manual/lang.texi (Old Varargs): Remove section.
8510         (How Variadic): Update menu.
8511         (va_start): Do not mention varargs.h.
8512
8513 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8514             Joseph Myers  <joseph@codesourcery.com>
8515
8516         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
8517         link test.
8518         * configure: Regenerated.
8519
8520 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8521
8522         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
8523         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
8524         conformtest.pl
8525
8526 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8527
8528         * NOTES: Remove.
8529         * Makefile (files-for-dist): Remove NOTES.
8530         (NOTES): Remove rule.
8531         * README: Don't refer to NOTES.
8532         * manual/creature.texi: Don't include macros.texi.
8533         * manual/intro.texi (creature.texi): Remove comment referring to
8534         NOTES.
8535
8536         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
8537         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
8538         * configure: Regenerated.
8539         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
8540         LIBC_TRY_CC_OPTION.
8541         (libc_cv_as_i686): Likewise.
8542         (libc_cv_cc_avx): Likewise.
8543         (libc_cv_cc_sse2avx): Likewise.
8544         (libc_cv_cc_fma4): Likewise.
8545         (libc_cv_cc_novzeroupper): Likewise.
8546         * sysdeps/i386/configure: Regenerated.
8547
8548         [BZ #13883]
8549         * sysdeps/i386/fpu/s_cexp.S: Remove.
8550         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
8551         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
8552         * math/libm-test.inc (cexp_test): Add more tests.
8553         * sysdeps/i386/fpu/libm-test-ulps: Update.
8554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8555
8556 2012-03-21  Allan McRae  <allan@archlinux.org>
8557
8558         * timezone/Makefile: Do not install iso3166.tab and zone.tab
8559
8560 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
8561
8562         [BZ #13871]
8563         * math/w_exp2.c: Do not include <float.h>.
8564         (o_threshold, u_threshold): Remove.
8565         (__exp2): Calculate result before checking finiteness and calling
8566         __kernel_standard.
8567         * math/w_exp2f.c: Likewise.
8568         * math/w_exp2l.c: Likewise.
8569         * math/libm-test.inc (exp2_test): Require overflow exception for
8570         1e6 input.
8571
8572         [BZ #3866]
8573         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
8574         range of signed 64-bit integers before using fistpll.  Remove
8575         checks for whether integers fit in mantissa bits.
8576         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
8577         the range of signed 32-bit integers before using fistpl.  Remove
8578         checks for whether integers fit in mantissa bits.
8579         * sysdeps/i386/fpu/e_powl.S (p64): New object.
8580         (__ieee754_powl): Test for y outside the range of signed 64-bit
8581         integers before using fistpll.  Reduce 64-bit values to 63-bit
8582         ones as needed.
8583         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
8584         divide-by-zero is raised for zero to large negative powers.
8585         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
8586         (__ieee754_powl): Test for y outside the range of signed 64-bit
8587         integers before using fistpll.  Reduce 64-bit values to 63-bit
8588         ones as needed.
8589         * math/libm-test.inc (pow_test): Add more tests.
8590
8591 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8592
8593         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
8594         <stdio-common/_itoa.h>.
8595         * debug/segfault.c: Likewise.
8596         * elf/dl-cache.c: Likewise.
8597         * elf/dl-minimal.c: Likewise.
8598         * elf/dl-misc.c: Likewise.
8599         * elf/dl-sysdep.c: Likewise.
8600         * elf/dl-version.c: Likewise.
8601         * elf/rtld.c: Likewise.
8602         * hurd/hurdsock.c: Likewise.
8603         * hurd/lookup-retry.c: Likewise.
8604         * malloc/malloc.c: Likewise.
8605         * malloc/mtrace.c: Likewise.
8606         * nscd/nscd_getgr_r.c: Likewise.
8607         * nscd/nscd_getpw_r.c: Likewise.
8608         * nscd/nscd_getserv_r.c: Likewise.
8609         * posix/getopt_init.c: Likewise.
8610         * posix/wordexp.c: Likewise.
8611         * stdio-common/_itoa.c: Likewise.
8612         * stdio-common/printf_fphex.c: Likewise.
8613         * stdio-common/vfprintf.c: Likewise.
8614         * string/_strerror.c: Likewise.
8615         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
8616         * sysdeps/i386/i686/hp-timing.h: Likewise.
8617         * sysdeps/mach/_strerror.c: Likewise.
8618         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
8619         * sysdeps/mach/hurd/sethostid.c: Likewise.
8620         * sysdeps/mach/hurd/xmknodat.c: Likewise.
8621         * sysdeps/mach/xpg-strerror.c: Likewise.
8622         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8623         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8624         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
8625         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
8626         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8627         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
8628         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
8629         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
8630         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
8631         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
8632         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
8633         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
8634         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
8635         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
8636         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
8637         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
8638         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
8639         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
8640         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
8641         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
8642         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
8643
8644         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
8645
8646         * stdio-common/_itoa.h: Moved to ...
8647         * sysdeps/generic/_itoa.h: Here.
8648
8649         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
8650
8651         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
8652         instead of "_itoa.h" and "_itowa.h".
8653         * stdio-common/vfprintf.: Likewise.
8654
8655 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8656
8657         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
8658         <bits/wordsize.h>.
8659         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
8660         (__signbit): Likwise.
8661         (llrintf): Likwise.
8662         (llrint): Likwise.
8663
8664 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
8665
8666         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
8667         __WORDSIZE != 64.
8668
8669 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
8670
8671         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
8672         OVERFLOW_EXCEPTION_OK.
8673         * math/libm-test.inc ("Philosophy"): Update comment about
8674         exception testing.
8675         (OVERFLOW_EXCEPTION): Define.
8676         (OVERFLOW_EXCEPTION_OK): Likewise.
8677         (INVALID_EXCEPTION_OK): Renumber.
8678         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
8679         (IGNORE_ZERO_INF_SIGN): Likewise.
8680         (test_exceptions): Handle FE_OVERFLOW.
8681         (exp10_test): Expect overflow exceptions.
8682         (exp2_test): Likewise.
8683         (expm1_test): Likewise.
8684         (nextafter_test): Likewise.
8685         (pow_test): Likewise.
8686         (scalbn_test): Likewise.
8687         (scalbln_test): Likewise.
8688
8689 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8690
8691         * sysdeps/x86_64/bits/atomic.h
8692         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
8693         64bit integer.
8694         (atomic_exchange_acq): Likewise.
8695         (__arch_exchange_and_add_body): Likewise.
8696         (__arch_add_body): Likewise.
8697         (atomic_add_negative): Likewise.
8698         (atomic_add_zero): Likewise.
8699
8700 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8701
8702         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
8703         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
8704
8705 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8706
8707         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
8708         Check __x86_64__ instead of __WORDSIZE.
8709
8710 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8711
8712         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
8713
8714 2012-03-19  David S. Miller  <davem@davemloft.net>
8715
8716         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8717
8718         * sysdeps/sparc/fpu/fenv_private.h: New file.
8719         * sysdeps/sparc/fpu/math_private.h: Use it.
8720         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
8721         Remove.
8722         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
8723         (libc_feholdexcept_setroundl): Remove.
8724         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
8725         Remove.
8726         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
8727         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
8728
8729 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8730
8731         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
8732         int64_t instead of long int.
8733         (INSERT_WORDS64): Likwise.
8734
8735 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
8736
8737         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
8738         _Unwind_GetCFA return to _Unwind_Ptr first.
8739
8740 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
8741
8742         [BZ #13629]
8743         * math/s_clog.c: Include <float.h>.
8744         (__clog): Scale large or subnormal inputs.
8745         * math/s_clogf.c: Likewise.
8746         * math/s_clogl.c: Likewise.
8747         * math/s_clog10.c: Include <float.h>.
8748         (M_LOG10_2): Define.
8749         (__clog10): Scale large or subnormal inputs.
8750         * math/s_clog10f.c: Likewise.
8751         * math/s_clog10l.c: Likewise.
8752         * math/libm-test.inc (clog_test): Add more tests.
8753         (clog10_test): Likewise.
8754         * sysdeps/i386/fpu/libm-test-ulps: Update.
8755         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8756
8757         [BZ #11451]
8758         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
8759         x and y.
8760         * math/libm-test.inc (atan2_test): Add another test.
8761
8762         * Makerules (common-objdir-compile): Remove.
8763         * sysdeps/unix/Makefile (config-generated): Do not add
8764         $(unix-generated) to variable.
8765         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
8766         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
8767         Remove rule.
8768         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
8769         Likewise.
8770         [generic bits/local_lim.h] (before-compile): Do not append to
8771         variable.
8772         [generic bits/local_lim.h] (common-generated): Likewise.
8773         [generic sys/param.h] (before-compile): Do not append to variable.
8774         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
8775         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
8776         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
8777         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
8778         include.
8779         [generic sys/param.h] (sys/param.h-includes): Remove variable.
8780         [generic sys/param.h] (sys/param.h-includes): Remove rule.
8781         [generic sys/param.h] ($(addprefix
8782         $(common-objpfx),$(sys/param.h-includes))): Likewise.
8783         [generic sys/param.h] (common-generated): Do not append to
8784         variable.
8785         [generic sys/param.h] (sysdep_headers): Likewise.
8786         [generic bits/errno.h] (before-compile): Do not append to
8787         variable.
8788         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
8789         rule.
8790         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
8791         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
8792         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
8793         [generic bits/errno.h] (common-generated): Do not append to
8794         variable.
8795         [generic bits/ioctls.h] (before-compile): Do not append to
8796         variable.
8797         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
8798         rule.
8799         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
8800         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
8801         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
8802         rule.
8803         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
8804         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
8805         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
8806         [generic bits/ioctls.h] (common-generated): Do not append to
8807         variable.
8808         [generic sys/syscall.h] (syscall.h): Remove variable.
8809         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
8810         rule.
8811         [generic sys/syscall.h] (before-compile): Do not append to
8812         variable.
8813         [generic sys/syscall.h] (common-generated): Likewise.
8814         * sysdeps/unix/errnos-tmpl.c: Remove file.
8815         * sysdeps/unix/errnos.awk: Likewise.
8816         * sysdeps/unix/ioctls-tmpl.c: Likewise.
8817         * sysdeps/unix/ioctls.awk: Likewise.
8818         * sysdeps/unix/mk-local_lim.c: Likewise.
8819         * sysdeps/unix/snarf-ioctls: Likewise.
8820
8821 2012-03-19  Richard Henderson  <rth@twiddle.net>
8822
8823         * sysdeps/i386/fpu/fenv_private.h: New file.
8824         * sysdeps/i386/fpu/math_private.h: Use it.
8825         (math_opt_barrier, math_force_eval): Remove.
8826         (libc_feholdexcept_setround_53bit): Remove.
8827         (libc_feupdateenv_53bit): Remove.
8828         * sysdeps/x86_64/fpu/math_private.h: Likewise.
8829         (math_opt_barrier, math_force_eval): Remove.
8830         (libc_feholdexcept): Remove.
8831         (libc_feholdexcept_setround): Remove.
8832         (libc_fetestexcept, libc_fesetenv): Remove.
8833         (libc_feupdateenv_test): Remove.
8834         (libc_feupdateenv, libc_feholdsetround): Remove.
8835         (libc_feresetround): Remove.
8836
8837         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
8838         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
8839
8840         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
8841         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
8842         (libc_feupdateenv_testl): New.
8843         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
8844         (libc_feupdateenv_testf): New.
8845         (libc_feupdateenv): Use libc_feupdateenv_test.
8846         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
8847         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
8848
8849         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
8850         (libc_feholdsetroundf, libc_feholdsetroundl): New.
8851         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
8852         (libc_feresetround_noex): New.
8853         (libc_feresetround_noexf): New.
8854         (libc_feresetround_noexl): New.
8855         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
8856         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
8857         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
8858         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
8859         SET_RESTORE_ROUND.
8860         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8861         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
8862         (__cos): Likewise.
8863         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
8864         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
8865         SET_RESTORE_ROUND_NOEX.
8866         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
8867         SET_RESTORE_ROUND_NOEXF.
8868         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
8869         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
8870         (libc_feholdsetroundf): New.
8871         (libc_feresetround, libc_feresetroundf): New.
8872
8873         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
8874         (libc_feholdexcept_setround_53bit): Convert from macro to function.
8875         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
8876
8877         * sysdeps/generic/math_private.h: Include <fenv.h>.
8878         (default_libc_feholdexcept): New.
8879         (default_libc_feholdexcept_setround): New.
8880         (default_libc_fesetenv, default_libc_feupdateenv): New.
8881         (libc_feholdexcept): Only define if undefined.
8882         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
8883         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
8884         (libc_feholdexcept_setroundl): Likewise.
8885         (libc_feholdexcept_setround_53bit): Likewise.
8886         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
8887         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
8888         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
8889         (libc_feupdateenv_53bit): Likewise.
8890         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
8891         (libc_feholdexcept): Convert from macro to inline function.
8892         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
8893         (libc_fesetenv, libc_feupdateenv): Likewise.
8894
8895         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
8896         not previously defined.
8897         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
8898         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
8899         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
8900         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
8901         * sysdeps/ieee754/flt-32/math_private.h: New file.
8902         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
8903         math_private.h below SET_FLOAT_WORD.
8904         (__isnan, __isinf_ns, __finite): Remove.
8905         (__isnanf, __isinf_nsf, __finitef): Remove.
8906
8907 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
8908
8909         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8910
8911 2012-03-17  David S. Miller  <davem@davemloft.net>
8912
8913         [BZ #6471]
8914         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
8915         for 2.16.
8916
8917 2012-03-16  David S. Miller  <davem@davemloft.net>
8918
8919         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
8920         warnings.
8921
8922         [BZ #6471]
8923         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
8924         properly.
8925         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
8926         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
8927         sysdep_routines when subdir is sysvipc.
8928         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
8929         __getshmlba helper.
8930
8931         * sysdeps/sparc/fpu/libm-test/ulps: Update.
8932
8933 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8934
8935         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
8936         [__LP64__].
8937
8938 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8939
8940         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
8941         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
8942         (__lround): Renamed to ...
8943         (__llround): This.  Replace long int with long long int.
8944         Define lround functions as aliases of llround functions.
8945         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
8946
8947 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8948
8949         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
8950         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
8951         adresses to uintptr_t.  Replace "long int" and "unsigned long
8952         int" with "greg_t" on va_arg.
8953
8954 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
8955
8956         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
8957         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
8958
8959         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
8960         Move e_machine check before EI_CLASS check.  Handle x32
8961         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
8962         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
8963         SKIP_EM_IA_64 and include
8964         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
8965
8966         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
8967         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
8968         (add_system_dir): New macro.
8969
8970         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
8971         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
8972
8973 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
8974
8975         [BZ #2551]
8976         [BZ #2552]
8977         [BZ #2553]
8978         [BZ #2554]
8979         [BZ #2562]
8980         [BZ #2563]
8981         [BZ #2565]
8982         [BZ #2566]
8983         [BZ #2576]
8984         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
8985         (y0): Likewise.
8986         * math/w_j0f.c (j0f): Likewise.
8987         (y0f): Likewise.
8988         * math/w_j0l.c (__j0l): Likewise.
8989         (__y0l): Likewise.
8990         * math/w_j1.c (j1): Likewise.
8991         (y1): Likewise.
8992         * math/w_j1f.c (j1f): Likewise.
8993         (y1f): Likewise.
8994         * math/w_j1l.c (__j1l): Likewise.
8995         (__y1l): Likewise.
8996         * math/w_jn.c (jn): Likewise.
8997         (yn): Likewise.
8998         * math/w_jnf.c (jnf): Likewise.
8999         (ynf): Likewise.
9000         * math/w_jnl.c (__jnl): Likewise.
9001         (__ynl): Likewise.
9002         * math/libm-test.inc (j0_test): Add more tests.
9003         (j1_test): Likewise.
9004         (jn_test): Likewise.  Add trailing semicolon to existing test.
9005         (y0_test): Likewise.
9006         (y1_test): Likewise.
9007         * sysdeps/i386/fpu/libm-test-ulps: Update.
9008         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9009
9010         [BZ #13851]
9011         [BZ #13854]
9012         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
9013         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
9014         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
9015         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
9016         (__tanl): Set errno for infinite argument.
9017         * sysdeps/i386/fpu/mptan.c: Remove.
9018         * sysdeps/i386/fpu/s_tan.S: Likewise.
9019         * sysdeps/i386/fpu/s_tanl.S: Likewise.
9020         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
9021         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
9022         * math/libm-test.inc (tan_test): Add more tests and enable more
9023         tests for double and long double.
9024         * sysdeps/i386/fpu/libm-test-ulps: Update.
9025         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9026
9027 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
9028
9029         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
9030         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
9031
9032 2012-03-16  Roland McGrath  <roland@hack.frob.com>
9033
9034         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
9035         * configure.in: Use it for both main tree and add-ons.
9036         * configure: Regenerated.
9037
9038 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
9039
9040         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
9041
9042 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
9043
9044         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
9045         in comment.
9046
9047         [BZ #13851]
9048         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
9049         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
9050         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
9051         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
9052         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
9053         infinite argument.
9054         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
9055         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
9056         != 0 for prec == 2.
9057         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
9058         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
9059         * sysdeps/i386/fpu/s_cosl.S: Likewise.
9060         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
9061         * sysdeps/i386/fpu/s_sinl.S: Likewise.
9062         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
9063         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
9064         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
9065         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
9066         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
9067         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
9068         * math/libm-test.inc (cos_test): Add more tests and enable more
9069         tests for long double.
9070         (sin_test): Likewise.
9071         (sincos_test): Likewise.
9072         * sysdeps/i386/fpu/libm-test-ulps: Update.
9073         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9074
9075 2012-03-16  David S. Miller  <davem@davemloft.net>
9076
9077         * sysdeps/sparc/fpu/math_private.h: New file.
9078
9079 2012-03-15  David S. Miller  <davem@davemloft.net>
9080
9081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
9082         file.
9083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
9084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
9085         file.
9086         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
9087         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
9088         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
9089         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
9090         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
9091         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
9092         sysdep routines.
9093         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9094
9095         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
9096         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
9097
9098         * sysdeps/sparc/sparc-ifunc.h: New file.
9099         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
9100         sparc-ifunc.h
9101         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
9102         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
9103         Likewise.
9104         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
9105         Likewise.
9106         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
9107         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
9108         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
9109         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
9110         Likewise.
9111         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
9112         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
9113         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
9114         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
9115         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
9116         Likewise.
9117         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
9118         Likewise.
9119         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
9120         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
9121         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
9122         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
9123         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
9124         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
9125         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
9126         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
9127         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
9128         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
9129         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
9130         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
9131         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
9132         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
9133         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
9134         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
9135         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
9136         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
9137         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
9138         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
9139         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
9140         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
9141         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
9142         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
9143
9144 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9145
9146         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
9147         scaling.
9148         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9149
9150 2012-03-15  Andreas Jaeger  <aj@suse.de>
9151
9152         [BZ #13852]
9153         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
9154         ieee754/flt-32 implementation for sin, cos and sincos.
9155         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
9156         * sysdeps/i386/fpu/s_cosf.S: Likewise.
9157         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
9158         * sysdeps/i386/fpu/s_sinf.S: Likewise.
9159         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
9160         ieee754/flt-32 implementation for tan.
9161
9162         * math/libm-test.inc (cos_test): Enable some large input tests for
9163         float as well
9164         (sin_test): Likewise.
9165         (sincos_test): Likewise.
9166         (tan_test): Add tests for large input.
9167
9168         * sysdeps/i386/fpu/libm-test-ulps: Update.
9169
9170 2012-03-15  Andreas Jaeger  <aj@suse.de>
9171
9172         [BZ #13658]
9173         * math/libm-test.inc (cos_test): Add more test cases.
9174         (sin_test): Likewise.
9175         (sincos_test): Likewise.
9176
9177 2012-03-15  Andreas Jaeger  <aj@suse.de>
9178
9179         [BZ #13837]
9180         * math/libm-test.inc (cos_test): Add a test case for large input
9181         value.
9182         (sin_test): Likewise.
9183         (sincos_test): Likewise.
9184
9185 2012-03-15  Andreas Jaeger  <aj@suse.de>,
9186         Joseph Myers  <joseph@codesourcery.com>
9187
9188         [BZ #13658]
9189         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
9190         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
9191         * sysdeps/i386/fpu/branred.c: Likewise.
9192         * sysdeps/i386/fpu/dosincos.c: Likewise.
9193         * sysdeps/i386/fpu/mpa.c: Likewise.
9194         * sysdeps/i386/fpu/s_cos.S: Likewise.
9195         * sysdeps/i386/fpu/s_sin.S: Likewise.
9196         * sysdeps/i386/fpu/s_sincos.S: Likewise.
9197         * sysdeps/i386/fpu/sincos32.c: Likewise.
9198
9199         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
9200         Define.
9201         (libc_feupdateenv_53bit): Define.
9202         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
9203         Define.
9204         (libc_feupdateenv_53bit): Define.
9205
9206         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
9207         53 bit (without extend i386 double precision).
9208
9209         * math/libm-test.inc (sincos_test): Add tests for large input.
9210         (sin): Likewise.
9211         (cos): Likewise.
9212
9213         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
9214
9215 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
9216
9217         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9218
9219 2012-03-15  David S. Miller  <davem@davemloft.net>
9220
9221         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
9222         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
9223         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
9224         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
9225         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
9226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
9227         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
9228         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
9229         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
9230         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
9231         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
9232         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
9233         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
9234         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
9235         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
9236         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
9237         file.
9238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
9239         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
9240         file.
9241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
9242         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
9243         file.
9244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
9245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
9246         file.
9247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
9248         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
9249         fmin/fmax sysdep routines.
9250         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
9251
9252 2012-03-14  David S. Miller  <davem@davemloft.net>
9253
9254         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
9255         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
9256         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
9257         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
9258         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
9259         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
9260         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
9261         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
9262         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
9263         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
9264         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
9265         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
9266         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
9267         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
9268         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
9269         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
9270         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
9271         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
9272         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
9273         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
9274         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
9275         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
9276         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
9277         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
9278         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
9279         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
9280         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
9281         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
9282         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
9283         routines.
9284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
9285         file.
9286         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
9287         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
9288         file.
9289         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
9290         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
9291         file.
9292         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
9293         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
9294         file.
9295         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
9296         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
9297         file.
9298         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
9299         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
9300         file.
9301         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
9302         file.
9303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
9304         file.
9305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
9306         file.
9307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
9308         New file.
9309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
9310         file.
9311         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
9312         file.
9313         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
9314         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
9315         file.
9316         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
9317         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
9318         file.
9319         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
9320         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
9321         file.
9322         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
9323         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
9324         VIS3 routines.
9325
9326         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
9327         New file.
9328
9329         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9330
9331         * sysdeps/sparc/configure.in: New file.
9332         * sysdeps/sparc/configure: Generate.
9333         * configure.in (libc_cv_sparc_as_vis3): Substitute.
9334         * configure: Regenerate.
9335         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
9336         * config.make.in (have-as-vis3): New.
9337         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
9338         available use -Av9d instead of -Av9a.
9339         * sysdeps/sparc/sparc64/Makefile: Likewise.
9340         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
9341         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
9342         New file.
9343         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
9344         file.
9345         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
9346         New file.
9347         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
9348         file.
9349         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
9350         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
9351         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
9352         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
9353         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
9354
9355         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
9356         fzeros/fnegs to load 0x80000000 into a float register instead of
9357         using the stack.
9358         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
9359
9360 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9361
9362         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9363         bits/syscall.h.
9364         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
9365         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
9366         ($(inst_includedir)/bits/syscall.h): Remove rule.
9367         ($(objpfx)bits/syscall.d): Include instead of
9368         $(objpfx)syscall-list.d.
9369         (generated): Change syscall-list.h and syscall-list.d to
9370         bits/syscall.h and bits/syscall.d.
9371
9372 2012-03-14  Roland McGrath  <roland@hack.frob.com>
9373
9374         [BZ #13846]
9375         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
9376
9377 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
9378
9379         [BZ #13841]
9380         * math/s_csqrt.c: Include <float.h>.
9381         (__csqrt): Scale large or subnormal inputs.
9382         * math/s_csqrtf.c: Likewise.
9383         * math/s_csqrtl.c: Likewise.
9384         * math/libm-test.inc (csqrt_test): Add more tests.
9385         * sysdeps/i386/fpu/libm-test-ulps: Update.
9386         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9387
9388         [BZ #13840]
9389         * math/libm-test.inc (hypot_test): Add more tests.
9390
9391 2012-03-13  David S. Miller  <davem@davemloft.net>
9392
9393         [BZ #13840]
9394         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
9395         double-precision for the calculation instead of scaling.
9396
9397 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
9398
9399         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
9400         manipulate bits before adding and subtracting TWO52[sx].
9401         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
9402         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
9403         Likewise.
9404         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
9405
9406 2012-03-13  David S. Miller  <davem@davemloft.net>
9407
9408         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
9409         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
9410         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
9411         rtld-global-offsets.h
9412         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
9413
9414         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
9415         large parameters.
9416
9417         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
9418
9419         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
9420         'err' in the ifdef scope in which it is actually used.
9421
9422         * nss/nss_db/db-init.c: Include string.h
9423
9424 2012-03-12  David S. Miller  <davem@davemloft.net>
9425
9426         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
9427         masking out of the most significant byte of random value used.
9428         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9429         Fix coding style in previous change.
9430
9431         * sysdeps/unix/sysv/linux/kernel-features.h
9432         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
9433         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
9434         expression.
9435         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
9436         later.
9437
9438 2012-03-11  David S. Miller  <davem@davemloft.net>
9439
9440         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
9441         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
9442         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
9443         for 'resultvar' otherwise things get truncated on 64-bit.
9444
9445         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
9446         Fix masking out of the most significant byte of random value used.
9447
9448         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9449
9450 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
9451
9452         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9453
9454 2012-03-09  David S. Miller  <davem@davemloft.net>
9455
9456         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
9457         variables with appropriate CPP guards.
9458         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
9459         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
9460         on resulting framesize and the management of the outregs buffer for pltexit.
9461         Preserve floating point return values across _dl_call_pltexit call.
9462         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
9463         framesize and the management of the outregs buffer for pltexit.
9464         Preserve floating point return values across _dl_call_pltexit
9465         call.
9466         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
9467         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
9468         (print_exit): Fix format string for return register value.
9469
9470 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
9471
9472         * sunrpc/Makefile (others): Add rpcgen.
9473         ($(objpfx)rpcgen): Remove special build rule and dependency on
9474         libc.
9475         * sunrpc/rpcgen.c: New file.
9476
9477 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
9478
9479         [BZ #13673]
9480         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
9481         * stdio-common/bug-vfprintf-nargs.c: Likewise.
9482         * sysdeps/i386/crti.S: Likewise.
9483         * sysdeps/i386/crtn.S: Likewise.
9484         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
9485         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
9486         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
9487         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
9488         * sysdeps/sh/crti.S: Likewise.
9489         * sysdeps/sh/crtn.S: Likewise.
9490         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9491
9492         [BZ #13673]
9493         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
9494         with URL.
9495         * locale/programs/locfile-kw.gperf: Likewise.
9496         * locale/programs/charmap-kw.h: Regenerated.
9497         * locale/programs/locfile-kw.h: Likewise.
9498
9499         [BZ #13673]
9500         * intl/plural.y: Replace FSF snail mail address with URL.
9501         * intl/plural.c: Regenerated.
9502
9503 2012-03-09  Richard Henderson  <rth@twiddle.net>
9504
9505         * include/math_private.h: Remove file.
9506         * math/math_private.h: Move file ...
9507         * sysdeps/generic/math_private.h: ... here.
9508
9509         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
9510         * sysdeps/powerpc/fpu/math_private.h: Likewise.
9511         * sysdeps/x86_64/fpu/math_private.h: Likewise.
9512
9513         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
9514         and <math_private.h>.
9515         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
9516         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
9517         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
9518         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
9519         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
9520         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
9521         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9522         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9523         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
9524         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9525         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9526         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
9527         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
9528         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9529         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
9530         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
9531         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9532         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
9533         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
9534         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
9535         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9536         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
9537         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
9538         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9539         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
9540         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9541         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
9542         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9543         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9544         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
9545         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
9546         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9547         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
9548         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9549         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
9550         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
9551         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9552         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
9553         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
9554         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9555         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
9556         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
9557         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
9558         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
9559         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
9560         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
9561         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
9562         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
9563         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9564         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
9565         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
9566         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
9567         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
9568         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
9569         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
9570         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
9571         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9572         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
9573         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
9574         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
9575         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9576         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
9577         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9578         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
9579         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
9580         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9581         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9582         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9583         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
9584         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
9585         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
9586         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9587         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
9588         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9589         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
9590         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
9591         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
9592         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
9593         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
9594         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
9595         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
9596         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
9597         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
9598         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
9599         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9600         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
9601         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
9602         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
9603         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
9604         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
9605         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
9606         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
9607         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9608         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
9609         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
9610         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
9611         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9612         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
9613         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
9614         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
9615         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
9616         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
9617         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
9618         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
9619         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
9620         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
9621         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
9622         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
9623         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
9624         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
9625         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
9626         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
9627         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
9628         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
9629         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
9630         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9631         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
9632         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
9633         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
9634         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9635         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
9636         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
9637         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9638         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
9639         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
9640         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
9641         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
9642         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
9643         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
9644         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
9645         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
9646         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9647         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
9648         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
9649         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
9650         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
9651         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
9652         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
9653         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
9654         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
9655         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9656         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
9657         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
9658         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
9659         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
9660         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
9661         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
9662         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
9663         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
9664         * sysdeps/ieee754/k_standard.c: Likewise.
9665         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
9666         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
9667         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
9668         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
9669         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
9670         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
9671         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
9672         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
9673         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
9674         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
9675         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
9676         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
9677         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
9678         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
9679         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
9680         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
9681         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
9682         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
9683         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
9684         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
9685         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
9686         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
9687         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
9688         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
9689         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
9690         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
9691         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
9692         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
9693         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
9694         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
9695         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
9696         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
9697         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
9698         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
9699         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
9700         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
9701         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
9702         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
9703         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
9704         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
9705         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
9706         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
9707         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
9708         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
9709         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
9710         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
9711         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
9712         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
9713         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
9714         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
9715         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
9716         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
9717         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
9718         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
9719         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
9720         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
9721         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
9722         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
9723         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
9724         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
9725         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
9726         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
9727         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
9728         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
9729         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
9730         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
9731         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
9732         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
9733         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
9734         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
9735         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
9736         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
9737         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
9738         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
9739         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
9740         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
9741         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
9742         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
9743         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
9744         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
9745         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
9746         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
9747         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
9748         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
9749         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
9750         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
9751         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
9752         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
9753         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9754         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
9755         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
9756         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
9757         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
9758         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
9759         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
9760         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
9761         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
9762         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
9763         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
9764         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
9765         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
9766         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
9767         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
9768         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
9769         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
9770         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
9771         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
9772         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
9773         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
9774         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
9775         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
9776         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
9777         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
9778         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
9779         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
9780         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9781         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
9782         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
9783         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9784         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
9785         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
9786         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
9787         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
9788         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
9789         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
9790         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
9791         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
9792         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
9793         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
9794         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
9795         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
9796         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
9797         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
9798         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
9799         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
9800         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
9801         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
9802         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
9803         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
9804         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
9805         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
9806         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
9807         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
9808         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
9809         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
9810         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
9811         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
9812         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
9813         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
9814         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
9815         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
9816         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9817         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
9818         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
9819         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
9820         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
9821         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
9822         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
9823         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
9824         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
9825         * sysdeps/ieee754/s_lib_version.c: Likewise.
9826         * sysdeps/ieee754/s_matherr.c: Likewise.
9827         * sysdeps/ieee754/s_signgam.c: Likewise.
9828         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
9829         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
9830         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
9831         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
9832         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
9833         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
9834         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
9835         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
9836         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
9837         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
9838         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
9839         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
9840         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
9841         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
9842         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
9843         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9844         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9845         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9846         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9847         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
9848         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
9849
9850 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9851
9852         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
9853         * sunrpc/rpc_main.c: Likewise.
9854         * sunrpc/rpc_svcout.c: Likewise.
9855
9856 2012-03-09  David S. Miller  <davem@davemloft.net>
9857
9858         * include/math_private.h: New file.
9859
9860 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
9861
9862         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
9863         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
9864         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
9865         from <bits/socket_type.h>.
9866         (enum __socket_type): Don't define here.
9867         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
9868         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
9869         bits/socket_type.h.
9870
9871         [BZ #13566]
9872         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
9873         checking __USE_GNU.
9874
9875         * Makerules ($(inst_includedir)/%.h): New rule.
9876         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
9877         (install-others): Remove variable setting.
9878         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
9879
9880 2012-03-08  Richard Henderson  <rth@twiddle.net>
9881
9882         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
9883         from macro to inline function; merge with the
9884         !__LIBC_INTERNAL_MATH_INLINES version.
9885         (__ieee754_sqrtf): Likewise.
9886
9887         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
9888         to inline function.
9889         (__rintf, __floor, __floorf): Likewise.
9890
9891         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
9892         macro to inline function.
9893         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
9894
9895         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
9896         not <math/math_private.h>.
9897
9898 2012-03-08  David S. Miller  <davem@davemloft.net>
9899
9900         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
9901         copyright year.
9902         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
9903
9904 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
9905
9906         * resolv/gai_misc.c (handle_requests): Fix struct timespec
9907         normalization.
9908         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
9909         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
9910
9911 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
9912
9913         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
9914         be defined individually, they must be defined as a block.  Define
9915         S for printing a string instead of hidint the different by using a
9916         macro for adding the 'l'.
9917         * stdio-common/tst-fphex-wide.c: Adjust.
9918
9919 2012-03-07  Marek Polacek  <polacek@redhat.com>
9920
9921         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
9922
9923 2012-03-08  Marek Polacek  <polacek@redhat.com>
9924
9925         [BZ #13806]
9926         * stdio-common/Makefile (tests): Add tst-fphex-wide.
9927         * stdio-common/tst-fphex.c: Define a few macros to make the
9928         test reusable.  Use them.
9929         * stdio-common/tst-fphex-wide.c: New file.
9930
9931 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
9932
9933         [BZ #6911]
9934         * manual/macros.texi (gnusystems): New macro.
9935         (nongnusystems): Likewise.
9936         (gnulinuxhurdsystems): Likewise.
9937         (gnuhurdsystems): Likewise..
9938         (gnulinuxsystems): Likewise.
9939         * manual/charset.texi: Use new macros or @theglibc{} to refer to
9940         variants of the GNU system, not "GNU system".
9941         * manual/conf.texi: Likewise.
9942         * manual/errno.texi: Likewise.  Update example of errno macro
9943         expansion.
9944         * manual/filesys.texi: Likewise.
9945         (getumask): Document as specific to GNU/Hurd.
9946         * manual/install.texi: Likewise.  Reword some references to
9947         GNU/Linux.
9948         * manual/intro.texi: Likewise.
9949         * manual/io.texi: Likewise.
9950         (File Name Portability): Detail which constraints are inapplicable
9951         to all GNU systems and which are only inapplicable to GNU/Hurd.
9952         * manual/job.texi: Likewise.
9953         * manual/llio.texi: Likewise.
9954         (O_NOCTTY): Document as present on GNU/Linux.
9955         * manual/maint.texi: Likewise.
9956         * manual/memory.texi: Likewise.
9957         * manual/pattern.texi: Likewise.
9958         * manual/pipe.texi: Likewise.
9959         * manual/process.texi: Likewise.
9960         * manual/resource.texi: Likewise.
9961         (RUSAGE_CHILDREN): Remove statement about specifying a particular
9962         child on GNU/Hurd.
9963         * manual/setjmp.texi: Likewise.
9964         * manual/signal.texi: Likewise.
9965         * manual/startup.texi: Likewise.
9966         * manual/stdio.texi: Likewise.
9967         * manual/terminal.texi: Likewise.
9968         (ONLCR): Document as POSIX.
9969         (OXTABS): Document availability on GNU/Linux as XTABS.
9970         (ONOEOT): Document availability separately from other bits.
9971         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
9972         * manual/time.texi: Likewise.
9973         * manual/users.texi: Likewise.
9974         * INSTALL: Regenerated.
9975         * sysdeps/gnu/errlist.c: Regenerated.
9976
9977         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
9978         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
9979         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
9980         puts.
9981         * configure: Regenerated.
9982
9983 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
9984
9985         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
9986         default includes instead of AC_HEADER_CHECK.
9987         * sysdeps/i386/configure: Regenerated.
9988
9989         [BZ #10716]
9990         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
9991         * math/s_cacoshf.c (__cacoshf): Likewise.
9992         * math/s_cacoshl.c (__cacoshl): Likewise.
9993         * math/s_casinh.c (__casinh): Set signs of result from argument.
9994         * math/s_casinhf.c (__casinhf): Likewise.
9995         * math/s_casinhl.c (__casinhl): Likewise.
9996         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
9997         (casinh_test): Add more tests.
9998         * sysdeps/i386/fpu/libm-test-ulps: Update.
9999         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10000
10001 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
10002
10003         * po/zh_TW.po: Update from translation team.
10004
10005         * login/Makefile (distribute): Remove variable.
10006         * catgets/Makefile: Likewise.
10007         * mach/Makefile: Likewise.
10008         * malloc/Makefile: Likewise.
10009         * misc/Makefile: Likewise.
10010         * iconv/Makefile: Likewise.
10011         * nscd/Makefile: Likewise.
10012         * hurd/Makefile: Likewise.
10013         * manual/Makefile: Likewise.
10014         * locale/Makefile: Likewise.
10015         * intl/Makefile: Likewise.
10016         * conform/Makefile: Likewise.
10017         * nss/Makefile: Likewise.
10018         * time/Makefile: Likewise.
10019         * soft-fp/Makefile: Likewise.
10020         * dirent/Makefile: Likewise.
10021         * gmon/Makefile: Likewise.
10022         * po/Makefile: Likewise.
10023         * rt/Makefile: Likewise.
10024         * socket/Makefile: Likewise.
10025         * math/Makefile: Likewise.
10026         * signal/Makefile: Likewise.
10027         * debug/Makefile: Likewise.
10028         * elf/Makefile: Likewise.
10029         * timezone/Makefile: Likewise.
10030         * stdlib/Makefile: Likewise.
10031         * iconvdata/Makefile: Likewise.
10032         * sunrpc/Makefile: Likewise.
10033         * io/Makefile: Likewise.
10034         * argp/Makefile: Likewise.
10035         * inet/Makefile: Likewise.
10036         * hesiod/Makefile: Likewise.
10037         * grp/Makefile: Likewise.
10038         * csu/Makefile: Likewise.
10039         * wctype/Makefile: Likewise.
10040         * crypt/Makefile: Likewise.
10041         * libio/Makefile: Likewise.
10042         * string/Makefile: Likewise.
10043         * nis/Makefile: Likewise.
10044         * resolv/Makefile: Likewise.
10045         * stdio-common/Makefile: Likewise.
10046         * wcsmbs/Makefile: Likewise.
10047         * dlfcn/Makefile: Likewise.
10048         * posix/Makefile: Likewise.
10049
10050         [BZ #6959]
10051         * timezone/Makefile: Don't install timezone files, just the programs
10052         and scripts.
10053
10054 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
10055
10056         * nss/databases.def: Add missing gshadow entry.
10057
10058         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
10059
10060 2012-03-06  Marek Polacek  <polacek@redhat.com>
10061
10062         [BZ #13726]
10063         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
10064         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
10065         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
10066         * stdio-common/tst-long-dbl-fphex.c: New file.
10067
10068 2012-03-06  David S. Miller  <davem@davemloft.net>
10069
10070         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
10071         (set_obp_int): New function.
10072         (get_obp_int): New function.
10073         (__get_clockfreq_via_dev_openprom): Likewise.
10074         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
10075         Avoid unused variable warnings on 'val' and use builtin_expect.
10076         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
10077         __builtin_expect.
10078         (INLINE_CLONE_SYSCALL): Likewise.
10079
10080 2012-03-05  David S. Miller  <davem@davemloft.net>
10081
10082         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10083
10084 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
10085
10086         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10087
10088         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
10089         only for |x| >= 40.
10090         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10091
10092 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
10093
10094         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
10095         Replace gettimeofday with __vdso_gettimeofday.
10096
10097         * sysdeps/unix/sysv/linux/x86_64/init-first.c
10098         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
10099         __vdso_clock_gettime and __vdso_getcpu.
10100
10101         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
10102         time with __vdso_time.
10103
10104 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10105
10106         * manual/lang.texi (size_t): Note types to which size_t may be
10107         equivalent with the GNU C Library, but do not describe when
10108         differences between them are significant.
10109
10110 2012-03-05  Andreas Jaeger  <aj@suse.de>
10111
10112         * sysdeps/i386/fpu/libm-test-ulps: Update.
10113
10114 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
10115
10116         [BZ #3976]
10117         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
10118         (__ieee754_pow): Save and restore rounding mode and use
10119         round-to-nearest for main computations.
10120         * math/libm-test.inc (pow_test_tonearest): New function.
10121         (pow_test_towardzero): Likewise.
10122         (pow_test_downward): Likewise.
10123         (pow_test_upward): Likewise.
10124         (main): Call the new functions.
10125         * sysdeps/i386/fpu/libm-test-ulps: Update.
10126         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10127
10128         [BZ #3976]
10129         * math/libm-test.inc (cosh_test_tonearest): New function.
10130         (cosh_test_towardzero): Likewise.
10131         (cosh_test_downward): Likewise.
10132         (cosh_test_upward): Likewise.
10133         (sinh_test_tonearest): Likewise.
10134         (sinh_test_towardzero): Likewise.
10135         (sinh_test_downward): Likewise.
10136         (sinh_test_upward): Likewise.
10137         (main): Call the new functions.
10138         * sysdeps/i386/fpu/libm-test-ulps: Update.
10139         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10140
10141 2012-03-05  Tom de Vries  <tom@codesourcery.com>
10142
10143         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
10144         default stack guard is set in last bytes.
10145         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
10146
10147 2012-03-05  Kees Cook  <keescook@chromium.org>
10148
10149         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
10150
10151         [BZ #13656]
10152         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
10153         possibly allocate from heap instead of stack.
10154         * stdio-common/bug-vfprintf-nargs.c: New file.
10155         * stdio-common/Makefile (tests): Add nargs overflow test.
10156
10157 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
10158
10159         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10160
10161 2012-03-03  Marek Polacek  <polacek@redhat.com>
10162
10163         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
10164         * math/math_private.h: Likewise.
10165         * stdlib/tst-strtod.c: Likewise.
10166         * sysdeps/i386/i486/bits/atomic.h: Likewise.
10167         * sysdeps/x86_64/bits/atomic.h: Likewise.
10168
10169 2012-03-02  David S. Miller  <davem@davemloft.net>
10170
10171         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
10172         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
10173         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
10174         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
10175         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
10176         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
10177         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
10178         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
10179
10180 2012-03-02  Roland McGrath  <roland@hack.frob.com>
10181
10182         [BZ #13792]
10183         * manual/examples/README: New file, says the example source files
10184         can be used under GPL>=2.
10185         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
10186         line containing just "*/".
10187         * manual/examples/add.c: Add copyright header (GPL>=2).
10188         * manual/examples/argp-ex1.c: Likewise.
10189         * manual/examples/argp-ex2.c: Likewise.
10190         * manual/examples/argp-ex3.c: Likewise.
10191         * manual/examples/argp-ex4.c: Likewise.
10192         * manual/examples/atexit.c: Likewise.
10193         * manual/examples/db.c: Likewise.
10194         * manual/examples/dir.c: Likewise.
10195         * manual/examples/dir2.c: Likewise.
10196         * manual/examples/execinfo.c: Likewise.
10197         * manual/examples/filecli.c: Likewise.
10198         * manual/examples/filesrv.c: Likewise.
10199         * manual/examples/fmtmsgexpl.c: Likewise.
10200         * manual/examples/genpass.c: Likewise.
10201         * manual/examples/inetcli.c: Likewise.
10202         * manual/examples/inetsrv.c: Likewise.
10203         * manual/examples/isockad.c: Likewise.
10204         * manual/examples/longopt.c: Likewise.
10205         * manual/examples/memopen.c: Likewise.
10206         * manual/examples/memstrm.c: Likewise.
10207         * manual/examples/mkfsock.c: Likewise.
10208         * manual/examples/mkisock.c: Likewise.
10209         * manual/examples/mygetpass.c: Likewise.
10210         * manual/examples/pipe.c: Likewise.
10211         * manual/examples/popen.c: Likewise.
10212         * manual/examples/rprintf.c: Likewise.
10213         * manual/examples/search.c: Likewise.
10214         * manual/examples/select.c: Likewise.
10215         * manual/examples/setjmp.c: Likewise.
10216         * manual/examples/sigh1.c: Likewise.
10217         * manual/examples/sigusr.c: Likewise.
10218         * manual/examples/stpcpy.c: Likewise.
10219         * manual/examples/strdupa.c: Likewise.
10220         * manual/examples/strftim.c: Likewise.
10221         * manual/examples/strncat.c: Likewise.
10222         * manual/examples/subopt.c: Likewise.
10223         * manual/examples/swapcontext.c: Likewise.
10224         * manual/examples/termios.c: Likewise.
10225         * manual/examples/testopt.c: Likewise.
10226         * manual/examples/testpass.c: Likewise.
10227         * manual/examples/timeval_subtract.c: Likewise.
10228
10229         [BZ #13792]
10230         * manual/time.texi (Elapsed Time): Move timeval_subtract example
10231         function to ...
10232         * manual/timeval_subtract.c.texi: ... here, new file.
10233
10234 2012-03-02  David S. Miller  <davem@davemloft.net>
10235
10236         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
10237
10238 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
10239
10240         [BZ #3976]
10241         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
10242         (__sin): Save and restore rounding mode and use round-to-nearest
10243         for all computations.
10244         (__cos): Save and restore rounding mode and use round-to-nearest
10245         for all computations.
10246         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
10247         <fenv.h>.
10248         (tan): Save and restore rounding mode and use round-to-nearest for
10249         all computations.
10250         * math/libm-test.inc (cos_test_tonearest): New function.
10251         (cos_test_towardzero): Likewise.
10252         (cos_test_downward): Likewise.
10253         (cos_test_upward): Likewise.
10254         (sin_test_tonearest): Likewise.
10255         (sin_test_towardzero): Likewise.
10256         (sin_test_downward): Likewise.
10257         (sin_test_upward): Likewise.
10258         (tan_test_tonearest): Likewise.
10259         (tan_test_towardzero): Likewise.
10260         (tan_test_downward): Likewise.
10261         (tan_test_upward): Likewise.
10262         (main): Call the new functions.
10263         * sysdeps/i386/fpu/libm-test-ulps: Update.
10264         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10265
10266         [BZ #10135]
10267         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
10268         small n, then large n, before computing and testing k+n.
10269         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
10270         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
10271         Likewise.
10272         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
10273         Likewise.
10274         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
10275         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
10276         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
10277         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
10278         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
10279         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
10280         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
10281         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
10282         * math/libm-test.inc (scalbn_test): Add more tests.
10283         (scalbln_test): Likewise.
10284
10285         * manual/filesys.texi (mode_t): Describe constraints on size and
10286         signedness, not exact equivalence to a particular type.
10287         (ino_t): Likewise.
10288         (ino64_t): Likewise.
10289         (dev_t): Likewise.
10290         (nlink_t): Likewise.
10291         (blkcnt_t): Likewise.
10292         (blkcnt64_t): Likewise.
10293         * manual/llio.texi (off_t): Likewise.
10294
10295         [BZ #3976]
10296         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
10297         (__ieee754_exp): Save and restore rounding mode and use
10298         round-to-nearest for all computations.
10299         * math/libm-test.inc (exp_test_tonearest): New function.
10300         (exp_test_towardzero): Likewise.
10301         (exp_test_downward): Likewise.
10302         (exp_test_upward): Likewise.
10303         (main): Call the new functions.
10304         * sysdeps/i386/fpu/libm-test-ulps: Update.
10305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10306
10307 2012-03-01  Chris Demetriou  <cgd@google.com>
10308
10309         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
10310         have predictable order.
10311
10312 2012-03-01  David S. Miller  <davem@davemloft.net>
10313
10314         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
10315
10316         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
10317         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
10318         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
10319         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
10320
10321         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
10322         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
10323         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
10324         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
10325         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
10326         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
10327         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
10328         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
10329         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
10330
10331         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10332
10333         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
10334         * sysdeps/sparc/fpu/libm-test-ulps: to here.
10335         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
10336
10337         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
10338         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
10339         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10340         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
10341         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
10342         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
10343         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
10344         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
10345         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10346         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
10347         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
10348         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10349         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
10350         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10351         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10352         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
10353         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
10354         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
10355         * sysdeps/sparc/elf/configure: Regenerated.
10356
10357 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
10358
10359         * configure.in (AS, LD): Require binutils 2.20 or later.
10360         * configure: Regenerated.
10361         * manual/install.texi (Tools for Compilation): Give binutils 2.20
10362         as required minimum version.
10363         * INSTALL: Regenerated.
10364
10365         [BZ #2541]
10366         [BZ #4108]
10367         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
10368         before squaring exponent.
10369         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
10370         bottom long double and 27 bits of top long double before squaring
10371         exponent.
10372         * math/libm-test.inc (erfc_test): Add more tests.
10373         * sysdeps/i386/fpu/libm-test-ulps: Update.
10374         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
10375         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10376
10377 2012-03-01  Kai Tietz  <ktietz@redhat.com>
10378
10379         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
10380         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
10381         containing bit-fields.
10382         * soft-fp/extended.h (_FP_UNION_E): Likewise.
10383         * soft-fp/single.h (_FP_UNION_S): Likewise.
10384         * soft-fp/double.h (_FP_UNION_D): Likewise.
10385
10386 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10387
10388         [BZ #13786]
10389         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
10390         not include ../strcmp.S.
10391         [USE_AS_STRNCASECMP_L]: Likewise.
10392         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
10393         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
10394         * sysdeps/i386/i686/multiarch/strncase_l-c.c
10395         (__strncasecmp_l_ia32): Define as alias to
10396         __strncasecmp_l_nonascii.
10397
10398         [BZ #5794]
10399         * math/libm-test.inc (expm1_test): Add test for bug 5794.
10400         * sysdeps/i386/fpu/libm-test-ulps: Update.
10401         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10402
10403         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
10404         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10405
10406 2012-02-29  Jeff Law  <law@redhat.com>
10407
10408         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
10409         out of bounds read.
10410
10411 2012-02-29  Marek Polacek  <polacek@redhat.com>
10412
10413         [BZ #13706]
10414         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
10415         * elf/Makefile: Add rules to run tst-unused-dep.out.
10416
10417 2012-02-28  David S. Miller  <davem@davemloft.net>
10418
10419         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
10420         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
10421         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
10422         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
10423         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
10424         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
10425
10426 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
10427
10428         * math/libm-test.inc (llround_test): Move one test from
10429         lround_test.  Use TEST_f_L in moved test.
10430         (lround_test): Move misplaced test to llround_test.  Add testcase
10431         from bug 2561.
10432
10433 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
10434
10435         * sysdeps/x86_64/fpu/e_expf.S: New file.
10436         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
10437
10438 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
10439
10440         [BZ #13637]
10441         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
10442         of remain_len that may cause incomplete multi-byte character and
10443         false match.
10444         * posix/bug-regex33.c: New file.
10445         * posix/Makefile (tests): Add bug-regex33.
10446
10447 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
10448
10449         * manual/macros.texi: New file.
10450         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
10451         * manual/libc.texinfo: Include macros.texi.
10452         * manual/creatute.texi: Likewise.
10453         * manual/install.texi: Likewise.
10454         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
10455         @glibcadj{} in references to the GNU C Library.
10456         * manual/charset.texi: Likewise.
10457         * manual/conf.texi: Likewise.
10458         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
10459         when not using those macros.
10460         * manual/creature.texi: Likewise.
10461         * manual/crypt.texi: Likewise.
10462         * manual/errno.texi: Likewise.
10463         * manual/filesys.texi: Likewise.
10464         * manual/header.texi: Likewise.
10465         * manual/install.texi: Likewise.
10466         * manual/intro.texi: Likewise.
10467         * manual/io.texi: Likewise.
10468         * manual/job.texi: Likewise.
10469         * manual/lang.texi: Likewise.
10470         * manual/libc.texiinfo: Likewise.
10471         * manual/llio.texi: Likewise.
10472         * manual/locale.texi: Likewise.
10473         * manual/maint.texi: Likewise.
10474         * manual/math.texi: Likewise.
10475         * manual/memory.texi: Likewise.
10476         * manual/message.texi: Likewise.
10477         * manual/nss.texi: Likewise.
10478         * manual/pattern.texi: Likewise.
10479         * manual/process.texi: Likewise.
10480         * manual/resource.texi: Likewise.
10481         * manual/search.texi: Likewise.
10482         * manual/setjmp.texi: Likewise.
10483         * manual/signal.texi: Likewise.
10484         * manual/socket.texi: Likewise.
10485         * manual/startup.texi: Likewise.
10486         * manual/stdio.texi: Likewise.
10487         * manual/string.texi: Likewise.
10488         * manual/sysinfo.texi: Likewise.
10489         * manual/syslog.texi: Likewise.
10490         * manual/terminal.texi: Likewise.
10491         * manual/time.texi: Likewise.
10492         * manual/users.texi: Likewise.
10493         * INSTALL: Regenerated.
10494         * NOTES: Regenerated.
10495         * sysdeps/gnu/errlist.c: Regenerated.
10496
10497 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
10498
10499         * include/dirent.h: Include <dirstream.h> before
10500         <dirent/dirent.h>.
10501
10502 2012-02-28  David S. Miller  <davem@davemloft.net>
10503
10504         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
10505         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
10506         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
10507         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
10508
10509 2012-02-27  David S. Miller  <davem@davemloft.net>
10510
10511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
10512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
10513         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
10514         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
10515
10516         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
10517         frame pointer instead of stack pointer relative arg slot.
10518         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10519         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10520         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10521
10522 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
10523
10524         [BZ #3992]
10525         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
10526
10527 2012-02-27  David S. Miller  <davem@davemloft.net>
10528
10529         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
10530         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
10531         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
10532         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
10533         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
10534         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
10535         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
10536         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
10537
10538 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10539
10540         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
10541         later.  Allow versions 5-9.
10542         * configure: Regenerated.
10543         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
10544         required minimum version and 4.6 as recommended version.  Do not
10545         mention bugs in GCC 2.7 and 2.8.
10546         * INSTALL: Regenerated.
10547
10548 2012-02-27  David S. Miller  <davem@davemloft.net>
10549
10550         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
10551         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
10552         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
10553         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
10554         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
10555         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
10556         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
10557         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
10558
10559         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
10560         manipulate bits before adding and subtracting TWO112[sx].
10561         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10562
10563 2012-02-27  Roland McGrath  <roland@hack.frob.com>
10564
10565         [BZ #13775]
10566         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
10567         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
10568         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
10569         being in POSIX, because they are in 1003.1-2008.
10570
10571         * rt/tst-aio.c: Include <fcntl.h>.
10572         * rt/tst-aio7.c: Likewise.
10573         * rt/tst-aio64.c: Likewise.
10574
10575         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
10576
10577 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
10578
10579         * manual/install.texi (--with-headers): Describe headers as
10580         interface headers, not private headers.
10581         (Specific advice for GNU/Linux systems): Describe use of headers
10582         from "make headers_install", not private headers from older
10583         kernels.
10584         * INSTALL: Regenerated.
10585         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
10586         Change to 2.6.19.
10587         * sysdeps/unix/sysv/linux/configure: Regenerated.
10588
10589         * manual/llio.texi (fclean): Remove documentation.
10590
10591         * manual/Makefile (libc-texi-generated): New variable.  Include
10592         version.texi.
10593         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
10594         $(libc-texi-generated), not duplicated list of files.
10595         (version.texi, stamp-version): New rules.
10596         (realclean): Remove $(libc-texi-generated), not individual files
10597         from that list.  Do not remove dir-add.texinfo.
10598         * manual/libc.texinfo: Comment out uses of edition numbers and
10599         references to printed manual.  Remove last-updated dates.
10600         (EDITION): Comment out.
10601         (ISBN): Likewise.
10602         (VERSION, UPDATED): Remove.
10603         (version.texi): Include.
10604
10605 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
10606
10607         * sysdeps/posix/spawni.c: Include <signal.h>.
10608         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
10609         * sysdeps/pthread/aio_fsync.c: Likewise.
10610
10611 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
10612
10613         * conform/Makefile (tests): Run only when not cross-compiling and
10614         when fast-check is not defined.
10615
10616         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
10617         * conform/data/limits.h-data: Fixes for POSIX2008.
10618         * conform/run-conformtest.sh: Run all tests.
10619         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
10620         headers.
10621         * include/bits/dlfcn.h: Likewise.
10622         * include/langinfo.h: Likewise.
10623         * include/monetary.h: Likewise.
10624         * include/sys/poll.h: Likewise.
10625
10626         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
10627         for __USE_GNU.
10628         * posix/spawn.h: Define __need_sigset_t.
10629         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
10630         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
10631         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
10632         to get sigevent_t only.
10633         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
10634         only for __USE_GNU.
10635         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
10636         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
10637         process_vm_writev only for __USE_GNU.
10638         * termios/termios.h: Declare tcgetsid also for POSIX2008.
10639
10640         * conform/Makefile: For now ignore errors from run-conformtest.
10641         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
10642         POSIX to avoid namespace pollution.  Don't prepend headers.
10643         * conform/data/aio.h-data: Fixes for POSIX testing.
10644         * conform/data/fcntl.h-data: Likewise.
10645         * conform/data/glob.h-data: Likewise.
10646         * conform/data/grp.h-data: Likewise.
10647         * conform/data/pthread.h-data: Likewise.
10648         * conform/data/pwd.h-data: Likewise.
10649         * conform/data/signal.h-data: Likewise.
10650         * conform/data/spawn.h-data: Likewise.
10651         * conform/data/stdio.h-data: Likewise.
10652         * conform/data/stdlib.h-data: Likewise.
10653         * conform/data/stropts.h-data: Likewise.
10654         * conform/data/sys/mman.h-data: Likewise.
10655         * conform/data/sys/stat.h-data: Likewise.
10656         * conform/data/sys/types.h-data: Likewise.
10657         * conform/data/sys/wait.h-data: Likewise.
10658         * conform/data/time.h-data: Likewise.
10659         * conform/data/unistd.h-data: Likewise.
10660         * conform/data/utime.h-data: Likewise.
10661
10662         * io/sys/stat.h: fchmod was always in POSIX.
10663         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
10664         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
10665         * rt/aio.h: Define __need_timespec before including <time.h>.
10666         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
10667         struct.  Add forward declaration of pthread_attr_t and use it in
10668         sigevent.
10669         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
10670         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
10671         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
10672         always remove CLK_TCK definition.
10673
10674 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
10675
10676         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
10677
10678 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
10679
10680         * conform/run-conformtest.sh: New file.
10681         * conform/Makefile: Run run-conformtest for tests.
10682         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
10683         support.
10684
10685         * conform/data/uchar.h-data: New file.
10686         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
10687         * conform/data/arpa/inet.h-data: Likewise.
10688         * conform/data/assert.h-data: Likewise.
10689         * conform/data/complex.h-data: Likewise.
10690         * conform/data/cpio.h-data: Likewise.
10691         * conform/data/ctype.h-data: Likewise.
10692         * conform/data/dirent.h-data: Likewise.
10693         * conform/data/dlfcn.h-data: Likewise.
10694         * conform/data/errno.h-data: Likewise.
10695         * conform/data/fcntl.h-data: Likewise.
10696         * conform/data/float.h-data: Likewise.
10697         * conform/data/fmtmsg.h-data: Likewise.
10698         * conform/data/fnmatch.h-data: Likewise.
10699         * conform/data/ftw.h-data: Likewise.
10700         * conform/data/glob.h-data: Likewise.
10701         * conform/data/grp.h-data: Likewise.
10702         * conform/data/iconv.h-data: Likewise.
10703         * conform/data/inttypes.h-data: Likewise.
10704         * conform/data/langinfo.h-data: Likewise.
10705         * conform/data/libgen.h-data: Likewise.
10706         * conform/data/limits.h-data: Likewise.
10707         * conform/data/locale.h-data: Likewise.
10708         * conform/data/math.h-data: Likewise.
10709         * conform/data/monetary.h-data: Likewise.
10710         * conform/data/mqueue.h-data: Likewise.
10711         * conform/data/ndbm.h-data: Likewise.
10712         * conform/data/net/if.h-data: Likewise.
10713         * conform/data/netdb.h-data: Likewise.
10714         * conform/data/netinet/in.h-data: Likewise.
10715         * conform/data/nl_types.h-data: Likewise.
10716         * conform/data/poll.h-data: Likewise.
10717         * conform/data/pthread.h-data: Likewise.
10718         * conform/data/pwd.h-data: Likewise.
10719         * conform/data/regex.h-data: Likewise.
10720         * conform/data/sched.h-data: Likewise.
10721         * conform/data/search.h-data: Likewise.
10722         * conform/data/semaphore.h-data: Likewise.
10723         * conform/data/setjmp.h-data: Likewise.
10724         * conform/data/signal.h-data: Likewise.
10725         * conform/data/spawn.h-data: Likewise.
10726         * conform/data/stdarg.h-data: Likewise.
10727         * conform/data/stdio.h-data: Likewise.
10728         * conform/data/stdlib.h-data: Likewise.
10729         * conform/data/string.h-data: Likewise.
10730         * conform/data/strings.h-data: Likewise.
10731         * conform/data/stropts.h-data: Likewise.
10732         * conform/data/sys/ipc.h-data: Likewise.
10733         * conform/data/sys/mman.h-data: Likewise.
10734         * conform/data/sys/msg.h-data: Likewise.
10735         * conform/data/sys/resource.h-data: Likewise.
10736         * conform/data/sys/select.h-data: Likewise.
10737         * conform/data/sys/sem.h-data: Likewise.
10738         * conform/data/sys/shm.h-data: Likewise.
10739         * conform/data/sys/socket.h-data: Likewise.
10740         * conform/data/sys/stat.h-data: Likewise.
10741         * conform/data/sys/statvfs.h-data: Likewise.
10742         * conform/data/sys/time.h-data: Likewise.
10743         * conform/data/sys/timeb.h-data: Likewise.
10744         * conform/data/sys/times.h-data: Likewise.
10745         * conform/data/sys/types.h-data: Likewise.
10746         * conform/data/sys/uio.h-data: Likewise.
10747         * conform/data/sys/un.h-data: Likewise.
10748         * conform/data/sys/utsname.h-data: Likewise.
10749         * conform/data/sys/wait.h-data: Likewise.
10750         * conform/data/syslog.h-data: Likewise.
10751         * conform/data/tar.h-data: Likewise.
10752         * conform/data/termios.h-data: Likewise.
10753         * conform/data/utime.h-data: Likewise.
10754         * conform/data/utmpx.h-data: Likewise.
10755         * conform/data/varargs.h-data: Likewise.
10756         * conform/data/wchar.h-data: Likewise.
10757         * conform/data/wctype.h-data: Likewise.
10758         * conform/data/wordexp.h-data: Likewise.
10759
10760         * include/stropts.h: New file.
10761         * include/uchar.h: New file.
10762         * include/aio.h: Changes to allow conformtest.pl to use the headers.
10763         * include/assert.h: Likewise.
10764         * include/ctype.h: Likewise.
10765         * include/dirent.h: Likewise.
10766         * include/dlfcn.h: Likewise.
10767         * include/fcntl.h: Likewise.
10768         * include/fnmatch.h: Likewise.
10769         * include/glob.h: Likewise.
10770         * include/grp.h: Likewise.
10771         * include/libio.h: Likewise.
10772         * include/locale.h: Likewise.
10773         * include/math.h: Likewise.
10774         * include/net/if.h: Likewise.
10775         * include/netdb.h: Likewise.
10776         * include/netinet/in.h: Likewise.
10777         * include/pthread.h: Likewise.
10778         * include/pwd.h: Likewise.
10779         * include/regex.h: Likewise.
10780         * include/sched.h: Likewise.
10781         * include/search.h: Likewise.
10782         * include/setjmp.h: Likewise.
10783         * include/signal.h: Likewise.
10784         * include/stdio.h: Likewise.
10785         * include/stdlib.h: Likewise.
10786         * include/string.h: Likewise.
10787         * include/sys/cdefs.h: Likewise.
10788         * include/sys/mman.h: Likewise.
10789         * include/sys/msg.h: Likewise.
10790         * include/sys/resource.h: Likewise.
10791         * include/sys/select.h: Likewise.
10792         * include/sys/socket.h: Likewise.
10793         * include/sys/stat.h: Likewise.
10794         * include/sys/statvfs.h: Likewise.
10795         * include/sys/time.h: Likewise.
10796         * include/sys/times.h: Likewise.
10797         * include/sys/uio.h: Likewise.
10798         * include/sys/utsname.h: Likewise.
10799         * include/sys/wait.h: Likewise.
10800         * include/termios.h: Likewise.
10801         * include/time.h: Likewise.
10802         * include/ulimit.h: Likewise.
10803         * include/unistd.h: Likewise.
10804         * include/utime.h: Likewise.
10805         * include/wchar.h: Likewise.
10806         * include/wctype.h: Likewise.
10807         * include/wordexp.h: Likewise.
10808
10809         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
10810
10811         * time/time.h: TIME_UTC must be a macro.
10812         Make timespec_get available for ISO C11 only as well.
10813
10814 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
10815
10816         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
10817         Reported by Peng Haitao <penght@cn.fujitsu.com>.
10818
10819 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10820
10821         * configure.in: Use -o not -a in test for unsupported multi-arch.
10822
10823 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10824
10825         * manual/texinfo.tex: Update to version 2012-01-19.16.
10826
10827 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
10828
10829         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
10830
10831 2012-02-24  Roland McGrath  <roland@hack.frob.com>
10832
10833         [BZ #13738]
10834         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
10835         * manual/fdl-1.3.texi: New file.
10836         * manual/fdl-1.1.texi: File removed.
10837
10838         [BZ #13738]
10839         * manual/libc.texinfo (FDL_VERSION): New @set.
10840         Use it for mention of FDL in cover text.
10841         (Documentation License): Use it in @include file name.
10842
10843 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10844             Roland McGrath  <roland@hack.frob.com>
10845
10846         [BZ #5461]
10847         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
10848         not LONG_LONG_MAX and LONG_LONG_MIN.
10849         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
10850         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
10851         name.
10852         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
10853
10854 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10855
10856         [BZ #2547]
10857         [BZ #11365]
10858         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
10859         manipulate bits before adding and subtracting TWO23[sx].
10860         * math/libm-test.inc (nearbyint_test): Add more tests.
10861
10862 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10863
10864         [BZ #2548]
10865         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
10866         bits before adding and subtracting TWO23[sx].
10867         * math/libm-test.inc (rint_test): Add more tests.
10868         (rint_test_tonearest): Likewise.
10869         (rint_test_towardzero): Likewise.
10870         (rint_test_downward): Likewise.
10871         (rint_test_upward: Likewise.
10872
10873 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10874
10875         [BZ #10110]
10876         * include/stdc-predef.h: New file.  Extracted from features.h.
10877         * include/features.h: Include stdc-predef.h.
10878         * Makefile (headers): Add stdc-predef.h.
10879         * CONFORMANCE (Compiler limitations): Update.
10880
10881 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
10882
10883         * manual/libc.texinfo (VERSION, UPDATED): Revert.
10884
10885 2012-02-21  David S. Miller  <davem@davemloft.net>
10886
10887         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
10888         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
10889
10890 2012-02-20  David S. Miller  <davem@davemloft.net>
10891
10892         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
10893         using a normal save/restore sequence, rather than allocating a
10894         dummy stack frame just to store a frame pointer and restore.
10895         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10896
10897 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10898
10899         * manual/install.texi: Fix stray word in line-wrapped comment.
10900
10901 2012-02-20  David S. Miller  <davem@davemloft.net>
10902
10903         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
10904         both binutils and gcc support GOTDATA.
10905
10906         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
10907         "rd %pc" in the PIC register setup sequences.
10908
10909         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
10910         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
10911         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
10912         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
10913         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
10914         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
10915         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
10916         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
10917         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
10918         (SYSCALL_ERROR_HANDLER): Likewise.
10919         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
10920         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
10921         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
10922         (SYSCALL_ERROR_HANDLER): Likewise.
10923
10924         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
10925         (HAVE_GCC_GOTDATA): New.
10926         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
10927         relocation support in both binutils and gcc.
10928         * sysdeps/sparc/elf/configure: Regenerate.
10929
10930         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
10931         * sysdeps/sparc/sparc32/elf/configure: Delete.
10932         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
10933         * sysdeps/sparc/sparc64/elf/configure: Delete.
10934         * sysdeps/sparc/elf/configure.in: New file.
10935         * sysdeps/sparc/elf/configure: Generate.
10936
10937         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
10938         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
10939         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
10940         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
10941         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
10942
10943 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10944
10945         * manual/install.texi: Do not mention specific glibc version
10946         numbers.
10947         * manual/libc.texinfo (VERSION, UPDATED): Update.
10948         (@copying): Use @copyright{} and range of years.
10949
10950 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
10951
10952         [BZ #13695]
10953         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
10954         [crti.S not in sysdirs] (generated): Do not append.
10955         [crti.S not in sysdirs] (omit-deps): Likewise.
10956         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
10957         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
10958         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
10959         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
10960         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
10961         Likewise.
10962         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
10963         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
10964         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
10965         * csu/defs.awk: Remove file.
10966         * sysdeps/generic/initfini.c: Likewise.
10967         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
10968         variable.
10969         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
10970         Likewise.
10971
10972 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10973
10974         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
10975         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
10976         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
10977         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
10978         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
10979         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
10980         <bits/epoll.h>.
10981         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
10982         (__EPOLL_PACKED): Define to empty if not defined by
10983         <bits/epoll.h>.
10984         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
10985         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10986         bits/epoll.h.
10987
10988 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
10989
10990         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
10991         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
10992         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
10993         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
10994         <bits/timerfd.h>.
10995         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
10996         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10997         bits/timerfd.h.
10998
10999 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
11000
11001         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
11002         in C locale.
11003         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11004         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
11005         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
11006         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11007
11008 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
11009
11010         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11011         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
11012
11013 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
11014
11015         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
11016         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
11017         defined.
11018         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
11019         Likewise.
11020         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
11021         entry for 2.16.
11022
11023 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
11024
11025         * math/w_acos.c: Use non-signaling floating-point comparisons.
11026         * math/w_acosf.c: Likewise.
11027         * math/w_acosh.c: Likewise.
11028         * math/w_acoshf.c: Likewise.
11029         * math/w_acoshl.c: Likewise.
11030         * math/w_acosl.c: Likewise.
11031         * math/w_asin.c: Likewise.
11032         * math/w_asinf.c: Likewise.
11033         * math/w_asinl.c: Likewise.
11034         * math/w_atanh.c: Likewise.
11035         * math/w_atanhf.c: Likewise.
11036         * math/w_atanhl.c: Likewise.
11037         * math/w_exp2.c: Likewise.
11038         * math/w_exp2f.c: Likewise.
11039         * math/w_exp2l.c: Likewise.
11040         * math/w_j0.c: Likewise.
11041         * math/w_j0f.c: Likewise.
11042         * math/w_j0l.c: Likewise.
11043         * math/w_j1.c: Likewise.
11044         * math/w_j1f.c: Likewise.
11045         * math/w_j1l.c: Likewise.
11046         * math/w_jn.c: Likewise.
11047         * math/w_jnf.c: Likewise.
11048         * math/w_log.c: Likewise.
11049         * math/w_log10.c: Likewise.
11050         * math/w_log10f.c: Likewise.
11051         * math/w_log10l.c: Likewise.
11052         * math/w_log2.c: Likewise.
11053         * math/w_log2f.c: Likewise.
11054         * math/w_log2l.c: Likewise.
11055         * math/w_logf.c: Likewise.
11056         * math/w_logl.c: Likewise.
11057         * math/w_sqrt.c: Likewise.
11058         * math/w_sqrtf.c: Likewise.
11059         * math/w_sqrtl.c: Likewise.
11060         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
11061         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
11062         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
11063         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
11064         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
11065
11066 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11067
11068         [BZ #9739]
11069         * manual/string.texi (strnlen): Use correct parameter name in
11070         equivalent expression.
11071
11072 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11073
11074         [BZ #11174]
11075         * manual/users.texi (seteuid): Consistently use neweuid for
11076         argument name.
11077
11078 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
11079
11080         [BZ #13704]
11081         * manual/nss.texi (Services in the NSS configuration): Correct
11082         list of services in example configuration file.
11083
11084 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
11085
11086         [BZ #11322]
11087         * manual/arith.texi: Remove statements about negative zero
11088         behaving identically to zero.
11089
11090 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11091
11092         [BZ #5993]
11093         * manual/install.texi: Do not document upgrading from libc5.
11094
11095 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
11096
11097         [BZ #4596]
11098         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
11099
11100 2012-02-18  David S. Miller  <davem@davemloft.net>
11101
11102         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
11103         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
11104         %o7 across the call.
11105         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
11106         instead.
11107         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
11108         SETUP_PIC_REG_LEAF.
11109         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11110         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
11111         * sysdeps/sparc/crtn.S: Likewise.
11112
11113 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
11114
11115         * aout/Makefile: Remove.
11116
11117 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
11118
11119         [BZ #13058]
11120         * manual/examples/argp-ex1.c (main): Format definition in GNU
11121         style.
11122         * manual/examples/argp-ex2.c (main): Likewise.
11123         * manual/examples/argp-ex3.c (main): Likewise.
11124         * manual/examples/argp-ex4.c (main): Likewise.
11125         * manual/examples/longopt.c (main): Use new-style prototype
11126         definition.
11127         * manual/examples/strncat.c (main): Specify return type and use
11128         (void) for arguments.
11129         * manual/examples/subopt.c (main): Use char **argv argument.
11130
11131 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11132
11133         [BZ #5077]
11134         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
11135         rounding modes.
11136
11137 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
11138
11139         [BZ #6907]
11140         * manual/string.texi (strchr): Change when strchrnul is
11141         recommended.
11142
11143 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
11144
11145         [BZ #174]
11146         * manual/locale.texi (setlocale): Document LOCPATH.
11147
11148 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11149
11150         [BZ #10210]
11151         * manual/process.texi (execle): Move @dots{} before last argument.
11152
11153 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
11154
11155         [BZ #12047]
11156         * manual/charset.texi (Generic Charset Conversion): Fix typo
11157         (LC_TYPE -> LC_CTYPE).
11158
11159 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
11160
11161         [BZ #5805]
11162         * manual/arith.texi (scalbn): Use @var{} on parameter names.
11163         (scalbnf): Likewise.
11164         (scalbnl): Likewise.
11165         (scalbln): Likewise.
11166         (scalblnf): Likewise.
11167         (scalblnl): Likewise.
11168         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
11169         (vwarnx): Likewise.
11170         (verr): Likewise.
11171         (verrx): Likewise.
11172         * manual/filesys.texi (telldir): Use braces around return type.
11173         * manual/llio.texi (mmap): Add space after comma.
11174         (mmap64): Likewise.
11175         * manual/math.texi (jn): Use @var{} on parameter names.
11176         (jnf): Likewise.
11177         (jnl): Likewise.
11178         (yn): Likewise.
11179         (ynf): Likewise.
11180         (ynl): Likewise.
11181         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
11182         line.
11183         * manual/resource.texi (ulimit): Use @dots{} instead of literal
11184         "...".
11185         (sched_get_priority_min): Remove semicolon on @deftypefun line.
11186         (sched_get_priority_max): Likewise.
11187         * manual/signal.texi (sigvec): Add space after comma.
11188         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
11189         names.
11190         (if_indextoname): Likewise.
11191         (if_freenameindex): Likewise.
11192         (sendto): Use ',' instead of '.' in prototype.
11193         * manual/startup.texi (syscall): Use @dots{} instead of literal
11194         "...".
11195         * manual/stdio.texi (__fpending): Separate initial words of
11196         paragraph from @deftypefun line.
11197         * manual/syslog.texi (syslog): Use @dots{} instead of literal
11198         "...".
11199         (vsyslog): Use @var{} on parameter names.
11200         * manual/terminal.texi (stty): Use @var{} on parameter names.
11201         * manual/users.texi (getutmp): Use @var{} on parameter names.
11202         (getutmpx): Likewise.
11203
11204 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11205
11206         [BZ #6884]
11207         * manual/stdio.texi (fopen): Fix typos in description of
11208         ",ccs=STRING".
11209
11210 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
11211
11212         [BZ #4026]
11213         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
11214         get clock_id definition.
11215
11216 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
11217
11218         [BZ #4822]
11219         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
11220         (madvise): Cast every argument to void on its own.
11221
11222 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11223
11224         [BZ #9902]
11225         * manual/startup.texi (Exit Status): Fix typo.
11226
11227 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
11228
11229         [BZ #10140]
11230         * manual/examples/argp-ex1.c: Include <stdlib.h>.
11231         * manual/examples/argp-ex2.c: Likewise.
11232         * manual/examples/argp-ex3.c: Likewise.
11233
11234 2012-02-16  Richard Henderson  <rth@redhat.com>
11235
11236         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
11237         * sysdeps/s390/s390-32/initfini.c: Remove.
11238         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
11239         * sysdeps/s390/s390-64/initfini.c: Remove.
11240
11241 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11242
11243         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
11244         compiler output for sysdeps/generic/initfini.c.
11245         * sysdeps/sh/elf/initfini.c: Remove file.
11246
11247 2012-02-16  David S. Miller  <davem@davemloft.net>
11248
11249         [BZ #11494]
11250         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
11251
11252         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
11253         * sysdeps/sparc/crti.S: New file.
11254         * sysdeps/sparc/crtn.S: New file.
11255         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
11256         * sysdeps/sparc/sparc64/Makefile: Likewise.
11257
11258 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
11259
11260         [BZ #3335]
11261         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
11262
11263 2012-02-15  Roland McGrath  <roland@hack.frob.com>
11264
11265         [BZ #4822]
11266         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
11267
11268         * mach/devstream.c (cookie_io_functions_t): Macro removed.
11269         (write, read, close): Likewise.
11270         Patch by Aurelien Jarno <aurelien@aurel32.net>.
11271
11272 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
11273
11274         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
11275         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
11276         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
11277         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
11278         <bits/signalfd.h>.
11279         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
11280         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11281         bits/signalfd.h.
11282
11283 2012-02-14  Marek Polacek  <polacek@redhat.com>
11284
11285         * sysdeps/x86_64/crti.S: New file.
11286         * sysdeps/x86_64/crtn.S: New file.
11287         * sysdeps/x86_64/elf/initfini.c: Remove file.
11288
11289 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11290
11291         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
11292         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
11293         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
11294         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
11295         <bits/inotify.h>.
11296         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
11297         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11298         bits/inotify.h.
11299
11300 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
11301
11302         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
11303         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
11304         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
11305         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
11306         <bits/eventfd.h>.
11307         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
11308         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11309         bits/eventfd.h.
11310
11311 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
11312
11313         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
11314         __feraiseexcept instead of feraiseexcept.
11315
11316         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
11317         nanosleep invocations.
11318         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
11319         strings, and add error checking for a nanosleep invocations.
11320
11321 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
11322
11323         Replace FSF snail mail address with URLs, as per GNU coding standards.
11324         Most of the snail mail addresses were wrong anyway, and omitting
11325         them makes the source code easier to maintain.  Almost all of the
11326         changes are to license notices and to locale LC_IDENTIFICATION
11327         addresses, except for this one:
11328         * manual/libc.texinfo: In "Published by", give the FSF's URL,
11329         not its snail mail address.
11330
11331 2012-02-09  Richard Henderson  <rth@twiddle.net>
11332
11333         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
11334         of kernel-features.h.
11335
11336         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
11337
11338 2012-02-08  Marek Polacek  <polacek@redhat.com>
11339
11340         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
11341         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
11342         * sysdeps/gnu/_G_config.h: Likewise.
11343         * sysdeps/generic/_G_config.h: Likewise.
11344
11345 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
11346
11347         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
11348         tests.
11349         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11350
11351         * sysdeps/powerpc/powerpc32/crti.S: New file.
11352         * sysdeps/powerpc/powerpc32/crtn.S: New file.
11353         * sysdeps/powerpc/powerpc64/crti.S: New file.
11354         * sysdeps/powerpc/powerpc64/crtn.S: New file.
11355
11356         * Makeconfig (have-initfini): Don't set.
11357         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
11358         * configure.in (nopic_initfini): Don't substitute.
11359         * config.h.in (HAVE_INITFINI): Don't #undef.
11360         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
11361         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
11362
11363 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
11364
11365         Support crti.S and crtn.S provided directly by architectures.
11366         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
11367         [crti.S in sysdirs] (omit-deps): Likewise.
11368         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
11369         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
11370         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
11371         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
11372         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
11373         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
11374         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
11375         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
11376         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
11377         compiler output for sysdeps/generic/initfini.c.
11378         * sysdeps/i386/elf/Makefile: Remove file.
11379         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
11380
11381 2012-02-07  Marek Polacek  <polacek@redhat.com>
11382
11383         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
11384         * sysdeps/gnu/_G_config.h: Likewise.
11385         * sysdeps/mach/hurd/_G_config.h: Likewise.
11386
11387 2012-02-07  Marek Polacek  <polacek@redhat.com>
11388
11389         * math/Makefile (tests): Add tst-CMPLX2.
11390         * math/tst-CMPLX2.c: New file.
11391
11392 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
11393
11394         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11395
11396         * math/libm-test.inc (jn_test): Add missing L suffix.
11397
11398 2012-02-06  Marek Polacek  <polacek@redhat.com>
11399
11400         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
11401         * sysdeps/i386/fpu/e_powf.S: Likewise.
11402         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
11403         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
11404         * sysdeps/i386/fpu/e_acosh.S: Likewise.
11405         * sysdeps/i386/fpu/e_pow.S: Likewise.
11406         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
11407         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
11408         * sysdeps/i386/fpu/s_expm1.S: Likewise.
11409         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
11410         * sysdeps/i386/fpu/e_log2.S: Likewise.
11411         * sysdeps/i386/fpu/e_log2l.S: Likewise.
11412         * sysdeps/i386/fpu/e_scalb.S: Likewise.
11413         * sysdeps/i386/fpu/e_powl.S: Likewise.
11414         * sysdeps/i386/fpu/s_log1p.S: Likewise.
11415         * sysdeps/i386/fpu/e_log10f.S: Likewise.
11416         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
11417         * sysdeps/i386/fpu/e_logl.S: Likewise.
11418         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
11419         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
11420         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
11421         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
11422         * sysdeps/i386/fpu/e_log2f.S: Likewise.
11423         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
11424         * sysdeps/i386/fpu/e_log.S: Likewise.
11425         * sysdeps/i386/fpu/s_cexp.S: Likewise.
11426         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
11427         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
11428         * sysdeps/i386/fpu/e_logf.S: Likewise.
11429         * sysdeps/i386/fpu/e_log10l.S: Likewise.
11430         * sysdeps/i386/fpu/e_atanh.S: Likewise.
11431         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
11432         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
11433         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
11434         * sysdeps/i386/fpu/e_log10.S: Likewise.
11435         * sysdeps/i386/fpu/s_frexp.S: Likewise.
11436         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
11437         * sysdeps/i386/fpu/s_asinh.S: Likewise.
11438         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
11439         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
11440         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
11441         * sysdeps/i386/asm-syntax.h: Likewise.
11442         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
11443         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
11444         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
11445         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
11446         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
11447         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
11448         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
11449         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
11450         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
11451         * sysdeps/powerpc/sysdep.h: Likewise.
11452         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
11453         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
11454
11455 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11456
11457         [BZ #411]
11458         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
11459
11460 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
11461
11462         * sysdeps/i386/sysdep.h: Include <features.h>.
11463         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
11464         version.
11465
11466 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
11467
11468         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
11469         Define.
11470         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
11471         LOAD_PIC_REG_STR.
11472
11473 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11474
11475         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
11476         (SETUP_PIC_REG): Use GET_PC_THUNK.
11477         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
11478         macro.
11479
11480 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11481
11482         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
11483         for non-PIC compilation.
11484         (SETUP_PIC_REG): Add .p2align directive.
11485         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
11486         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
11487         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
11488         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
11489         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
11490         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
11491         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
11492         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
11493         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
11494         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
11495         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
11496         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
11497         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
11498         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
11499         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
11500         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
11501         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
11502         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
11503         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
11504         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
11505         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
11506         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
11507         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
11508         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
11509         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
11510         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
11511         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
11512         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
11513         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
11514         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
11515         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
11516         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
11517         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
11518         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
11519         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
11520         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
11521         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
11522         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
11523         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
11524         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
11525         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
11526
11527 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
11528
11529         * math/tst-CMPLX.c: Include <stdio.h>.
11530
11531 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
11532
11533         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
11534         float.
11535         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11536         * sysdeps/sparc/bits/mathdef.h: Likewise.
11537
11538 2012-01-31  Marek Polacek  <polacek@redhat.com>
11539
11540         * libio/libio.h: Don't define _PARAMS.
11541         * locale/programs/config.h: Don't define PARAMS.
11542         * stdlib/strtol_l.c: Likewise.
11543         (__strtol_l): Remove PARAMS from the prototype.
11544
11545 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
11546
11547         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
11548         names.  Just use the correct names.  Remove unnecessary wrapper
11549         functions.
11550         * malloc/arena.c: Likewise.
11551         * malloc/hooks.c: Likewise.
11552
11553         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
11554         ARENA_TEST says not to.  Simplify test for creation of a new arena.
11555         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
11556
11557 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
11558
11559         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
11560         into tail calls.
11561         (update_get_addr): New function.
11562         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
11563         GET_ADDR_MODULE parameter.
11564
11565 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11566
11567         * crypt/cert.c: Remove __STDC__ conditionals.
11568         * crypt/crypt-entry.c: Likewise.
11569         * crypt/crypt_util.c: Likewise.
11570         * libio/filedoalloc.c: Likewise.
11571         * libio/fileops.c: Likewise.
11572         * libio/genops.c: Likewise.
11573         * libio/iofclose.c: Likewise.
11574         * libio/iofdopen.c: Likewise.
11575         * libio/iofopen.c: Likewise.
11576         * libio/iofopen64.c: Likewise.
11577         * libio/iogetdelim.c: Likewise.
11578         * libio/iopopen.c: Likewise.
11579         * libio/obprintf.c: Likewise.
11580         * libio/oldfileops.c: Likewise.
11581         * libio/oldiofclose.c: Likewise.
11582         * libio/oldiofdopen.c: Likewise.
11583         * libio/oldiofopen.c: Likewise.
11584         * libio/oldiopopen.c: Likewise.
11585         * libio/wfiledoalloc.c: Likewise.
11586         * libio/wgenops.c: Likewise.
11587         * locale/programs/xmalloc.c: Likewise.
11588         * misc/syslog.c: Likewise.
11589         * stdio-common/xbug.c: Likewise.
11590         * string/memchr.c: Likewise.
11591         * string/memcmp.c: Likewise.
11592         * string/memrchr.c: Likewise.
11593         * string/rawmemchr.c: Likewise.
11594         * sysdeps/posix/getcwd.c: Likewise.
11595         * time/strftime_l.c: Likewise.
11596
11597 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
11598
11599         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
11600         * config.make.in (config-cflags-sse2avx): Define.
11601         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
11602         Fix typo.
11603
11604 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
11605
11606         * scripts/config.guess: Update from upstream config git repository.
11607         * scripts/config.sub: Likewise.
11608
11609 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
11610
11611         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
11612         (EM_NUM): Update.
11613         (R_TILEPRO_*, R_TILEGX_*): New macros.
11614
11615         * scripts/firstversions.awk: Fix bug in version range handling.
11616
11617         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
11618
11619         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
11620
11621         * include/sys/epoll.h: New file.
11622         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
11623         libc_hidden_def.
11624
11625 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
11626
11627         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
11628         Avoid unnecessary __WORDSIZE == 64 test.
11629         (fmaxf): Use VEX format if possible.
11630         (fmax): Likewise.
11631         (fminf): Likewise.
11632         (fmin): Likewise.
11633
11634         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
11635         * math/math_private.h: Remove libc_fegetround* and
11636         libc_fesetround*.
11637         * sysdeps/i386/configure.in: Check for -msse2avx.
11638         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
11639         also if SSE2AVX is defined.
11640         Remove libc_fegetround* and libc_fesetround*.
11641         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
11642         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
11643         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
11644         of HAS_YMM_USABLE.
11645         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11646         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11647         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11648         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11649         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11650
11651         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
11652
11653 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11654
11655         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
11656         size is not set.
11657         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
11658
11659 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
11660
11661         [BZ #13618]
11662         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
11663         relocation.
11664         * Makeconfig (libm): Define.
11665         * elf/Makefile: Add rules to build and run tst-relsort1.
11666         * elf/tst-relsort1.c: New file.
11667         * elf/tst-relsort1mod1.c: New file.
11668         * elf/tst-relsort1mod2.c: New file.
11669
11670 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
11671
11672         * math/s_ldexp.c: Remove __STDC__ conditionals.
11673         * math/s_ldexpf.c: Likewise.
11674         * math/s_ldexpl.c: Likewise.
11675         * math/s_nextafter.c: Likewise.
11676         * math/s_nexttowardf.c: Likewise.
11677         * math/s_significand.c: Likewise.
11678         * math/s_significandf.c: Likewise.
11679         * math/s_significandl.c: Likewise.
11680         * math/w_jnl.c: Likewise.
11681         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
11682         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
11683         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
11684         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
11685         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
11686         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
11687         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
11688         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
11689         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
11690         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
11691         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
11692         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
11693         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
11694         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
11695         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
11696         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
11697         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
11698         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
11699         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
11700         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
11701         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
11702         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
11703         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
11704         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
11705         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
11706         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
11707         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
11708         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
11709         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
11710         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
11711         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
11712         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
11713         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
11714         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
11715         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
11716         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
11717         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
11718         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
11719         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
11720         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
11721         * sysdeps/ieee754/k_standard.c: Likewise.
11722         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
11723         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
11724         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
11725         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
11726         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
11727         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
11728         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
11729         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
11730         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
11731         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
11732         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
11733         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
11734         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
11735         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
11736         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
11737         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
11738         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
11739         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
11740         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
11741         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
11742         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
11743         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
11744         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
11745         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
11746         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
11747         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
11748         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
11749         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
11750         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11751         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
11752         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
11753         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
11754         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
11755         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
11756         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
11757         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
11758         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
11759         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
11760         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
11761         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
11762         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
11763         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
11764         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
11765         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
11766         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
11767         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
11768         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
11769         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
11770         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
11771         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
11772         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
11773         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
11774         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
11775         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
11776         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
11777         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
11778         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
11779         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
11780         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
11781         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
11782         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
11783         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
11784         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
11785         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
11786         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
11787         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
11788         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
11789         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
11790         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
11791         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
11792         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
11793         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
11794         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
11795         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
11796         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
11797         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
11798         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
11799         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
11800         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
11801         * sysdeps/ieee754/s_matherr.c: Likewise.
11802         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
11803         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
11804         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
11805         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
11806
11807 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11808
11809         * crypt/md5.h: Remove __STDC__ conditionals.
11810         * libio/libioP.h: Likewise.
11811         * locale/programs/config.h: Likewise.
11812         * sysdeps/generic/sysdep.h: Likewise.
11813         * sysdeps/i386/asm-syntax.h: Likewise.
11814         * sysdeps/s390/asm-syntax.h: Likewise.
11815         * sysdeps/unix/sysdep.h: Likewise.
11816         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
11817         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11818
11819 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
11820
11821         * libio/libio.h: Remove __STDC__ conditionals.
11822         * malloc/obstack.h: Likewise.
11823         * math/complex.h: Likewise.
11824         * math/math.h: Likewise.
11825         * sysdeps/generic/_G_config.h: Likewise.
11826         * sysdeps/gnu/_G_config.h: Likewise.
11827         * sysdeps/mach/hurd/_G_config.h: Likewise.
11828         * sysdeps/powerpc/bits/mathdef.h: Likewise.
11829         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
11830         * sysdeps/sparc/bits/mathdef.h: Likewise.
11831
11832 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
11833
11834         [BZ #13583]
11835         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
11836         Clean up HAS_* macros.
11837         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
11838         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
11839         possible.
11840         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
11841         HAS_AVX.
11842         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
11843         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
11844         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
11845         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
11846         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
11847
11848 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
11849
11850         * elf/tst-unique3.cc (gets): Remove declaration.
11851         * elf/tst-unique3lib.cc (gets): Likewise.
11852         * elf/tst-unique3lib2.cc (gets): Likewise.
11853         * elf/tst-unique4.cc (gets): Likewise.
11854
11855 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
11856
11857         * include/stdio.h: Add C++ protection.  Add gets declarations and
11858         definitions.
11859         * debug/tst-chk1.c: Don't declare gets here.
11860         * stdio-common/tst-gets.c: Likewise.
11861
11862 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11863
11864         * posix/glob: Remove directory.
11865
11866 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
11867
11868         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
11869
11870 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
11871
11872         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
11873         of the non-standard EPFNOSUPPORT.
11874
11875 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11876
11877         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
11878         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
11879         ANYWHERE set to 1 only on KERN_NO_SPACE error.
11880
11881 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
11882
11883         * wcsmbs/uchar.h: Test __STDC_VERSION__.
11884
11885 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
11886
11887         * nscd/aicache.c (addhstaiX): Do not cache negative results of
11888         transient errors.
11889         * nscd/grpcache.c (cache_addgr): Likewise.
11890         * nscd/hstcache.c (cache_addhst): Likewise.
11891         * nscd/initgrcache.c (addinitgroupsX): Likewise.
11892         * nscd/pwdcache.c (cache_addpw): Likewise.
11893         * nscd/servicescache.c (cache_addserv): Likewise.
11894
11895 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
11896
11897         * malloc/malloc.c: Various cleanups.
11898         * malloc/hooks.c: Likewise.
11899
11900         * stdlib/Makefile (tests): Add bug-fmtmsg1.
11901         * stdlib/bug-fmtmsg1.c: New file.
11902
11903         * stdlib/fmtmsg.c (init): Add missing unlock.
11904         Patch by Peng Haitao <penght@cn.fujitsu.com>.
11905
11906 2012-01-12  Marek Polacek  <polacek@redhat.com>
11907
11908         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
11909         and _GNU_SOURCE.
11910
11911 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11912
11913         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
11914         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
11915         macro to ensure uniqueness of label name.
11916         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
11917         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
11918
11919 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
11920
11921         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
11922
11923         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
11924         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
11925         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
11926         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
11927
11928 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
11929
11930         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
11931
11932         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
11933         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
11934         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
11935
11936         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
11937
11938         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
11939         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
11940         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
11941         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
11942
11943         * math/bits/math-finite.h: Add ldexp support.
11944
11945 2012-01-10  Marek Polacek  <polacek@redhat.com>
11946
11947         * locale/programs/localedef.h (show_archive_content): Add noreturn
11948         attribute.
11949
11950 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
11951
11952         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
11953
11954 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11955
11956         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
11957
11958         * io/Makefile (headers): Add bits/poll2.h.
11959
11960 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
11961
11962         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
11963         typo #include statement.
11964
11965 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11966
11967         * include/sys/cdefs.h: Define __attribute_alloc_size.
11968         * catgets/gencat.c: Add alloc_size attribute and apply consistently
11969         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
11970         * elf/pldd.c: Likewise.
11971         * iconv/iconv_charmap.c: Likewise.
11972         * iconv/iconvconfig.c: Likewise.
11973         * iconv/strtab.c: Likewise.
11974         * locale/programs/locale.c: Likewise.
11975         * locale/programs/localedef.h: Likewise.
11976         * locale/programs/simple-hash.c: Likewise.
11977         * nscd/nscd.h: Likewise.
11978         * nss/makedb.c: Likewise.
11979         * sysdeps/generic/ldconfig.h: Likewise.
11980         * locale/programs/localedef.c: Remove xmalloc prototype.
11981         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
11982
11983 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
11984
11985         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
11986         appropriate.
11987
11988 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
11989
11990         * math/Makefile (tests): Add tst-CMPLX.
11991         * math/tst-CMPLX.c: New file.
11992
11993         * math/complex.h (CMPLXL): Fix typo.
11994
11995         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
11996         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
11997         GLIBC_2.16.
11998         * debug/tst-chk1.c: Add poll and ppoll tests.
11999         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
12000         * include/sys/poll.h: Add hidden proto for ppoll.
12001         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
12002         * sysdeps/mach/hurd/ppoll.c: Likewise.
12003         * io/ppoll.c: Likewise.
12004         * debug/poll_chk.c: New file.
12005         * debug/ppoll_chk.c: New file.
12006         * include/bits/poll2.h: New file.
12007         * io/bits/poll2.h: New file.
12008
12009         [BZ #1350]
12010         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
12011
12012         * configure.in: static is always set to yes.  Remove.
12013         * config.make.in: Don't set build-static.
12014         * Makeconfig: Remove use of build-static.
12015         * dlfcn/Makefile: Likewise.
12016         * elf/Makefile: Likewise.
12017         * math/Makefile: Likewise.
12018         * misc/Makefile: Likewise.
12019         * nptl/Makefile: Likewise.
12020         * sysdeps/mach/hurd/Makefile: Likewise.
12021
12022         * configure.in: PWD_P is not used anymore.
12023         * config.make.in: Remove PWD_P entry.
12024
12025         * configure.in: Remove last remnants of RANLIB.
12026         No need to check for signed size_t anymore.
12027         Don't set libc_commonpagesize and libc_relro_required here for Alpha
12028         and IA-64.
12029         Remove __builtin_expect test because we require at least gcc 3.4.
12030         * aclocal.m4: Likewise.
12031
12032         * wcsmbs/mbrtoc16.c: Implement using towc function.
12033         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
12034         * wcsmbs/wcsmbsload.c: Likewise.
12035         * iconv/gconv_simple.c: Likewise.
12036         * iconv/gconv_int.h: Likewise.
12037         * iconv/gconv_builtin.h: Likewise.
12038         * iconv/iconv_prog.c: Remove CHAR16 handling.
12039
12040         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
12041
12042         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
12043
12044         * configure.in: Remove --with-elf and --enable-bounded options.
12045         Dont set base_machine for ia64.  More non-ELF conditions removed.
12046         Remove testing and setting of leading underscore information.
12047         * config.make.in (build-bounded): Set to no.
12048         * config.h.in: Remove NO_UNDERSCORES entry.
12049         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
12050         them.
12051         * csu/start.c: Remove !NO_UNDERSCORE code.
12052         * locale/localeinfo.h: Likewise.
12053         * sysdeps/generic/machine-gmon.h: Likewise.
12054         * sysdeps/generic/sysdep.h: Likewise.
12055         * sysdeps/i386/sysdep.h: Likewise.
12056         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12057         * sysdeps/mach/sysdep.h: Likewise.
12058         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12059         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12060         * sysdeps/sh/sysdep.h: Likewise.
12061         * sysdeps/sparc/sparc32/alloca.S: Likewise.
12062         * sysdeps/unix/i386/sysdep.S: Likewise.
12063         * sysdeps/unix/sparc/start.c: Likewise.
12064         * sysdeps/unix/sparc/sysdep.S: Likewise.
12065         * sysdeps/unix/sparc/sysdep.h: Likewise.
12066         * sysdeps/unix/start.c: Likewise.
12067         * sysdeps/unix/x86_64/sysdep.S: Likewise.
12068         * sysdeps/x86_64/sysdep.h: Likewise.
12069
12070 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
12071
12072         [BZ #13553]
12073         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
12074         for non-gcc.
12075         * argp/argp-fmtstream.h: Use const instead __const.
12076         * argp/argp.h: Likewise.
12077         * assert/assert.h: Likewise.
12078         * bits/fenv.h: Likewise.
12079         * bits/sched.h: Likewise.
12080         * bits/sigset.h: Likewise.
12081         * bits/sigthread.h: Likewise.
12082         * catgets/nl_types.h: Likewise.
12083         * conform/data/pthread.h-data: Likewise.
12084         * crypt/crypt-private.h: Likewise.
12085         * crypt/crypt.h: Likewise.
12086         * crypt/crypt_util.c: Likewise.
12087         * ctype/ctype.h: Likewise.
12088         * debug/execinfo.h: Likewise.
12089         * debug/mbsnrtowcs_chk.c: Likewise.
12090         * debug/mbsrtowcs_chk.c: Likewise.
12091         * debug/wcsnrtombs_chk.c: Likewise.
12092         * debug/wcsrtombs_chk.c: Likewise.
12093         * debug/wcstombs_chk.c: Likewise.
12094         * dirent/dirent.h: Likewise.
12095         * dlfcn/dlfcn.h: Likewise.
12096         * elf/neededtest4.c: Likewise.
12097         * grp/grp.h: Likewise.
12098         * gshadow/gshadow.h: Likewise.
12099         * iconv/gconv.h: Likewise.
12100         * iconv/gconv_int.h: Likewise.
12101         * iconv/gconv_simple.c: Likewise.
12102         * iconv/iconv.h: Likewise.
12103         * iconv/loop.c: Likewise.
12104         * iconv/skeleton.c: Likewise.
12105         * include/aio.h: Likewise.
12106         * include/aliases.h: Likewise.
12107         * include/argz.h: Likewise.
12108         * include/arpa/inet.h: Likewise.
12109         * include/assert.h: Likewise.
12110         * include/dirent.h: Likewise.
12111         * include/dlfcn.h: Likewise.
12112         * include/execinfo.h: Likewise.
12113         * include/fcntl.h: Likewise.
12114         * include/fenv.h: Likewise.
12115         * include/glob.h: Likewise.
12116         * include/grp.h: Likewise.
12117         * include/libintl.h: Likewise.
12118         * include/mntent.h: Likewise.
12119         * include/netdb.h: Likewise.
12120         * include/pwd.h: Likewise.
12121         * include/rpc/netdb.h: Likewise.
12122         * include/sched.h: Likewise.
12123         * include/search.h: Likewise.
12124         * include/shadow.h: Likewise.
12125         * include/signal.h: Likewise.
12126         * include/stdio.h: Likewise.
12127         * include/stdlib.h: Likewise.
12128         * include/string.h: Likewise.
12129         * include/sys/socket.h: Likewise.
12130         * include/sys/stat.h: Likewise.
12131         * include/sys/statfs.h: Likewise.
12132         * include/sys/statvfs.h: Likewise.
12133         * include/sys/syslog.h: Likewise.
12134         * include/sys/time.h: Likewise.
12135         * include/sys/uio.h: Likewise.
12136         * include/time.h: Likewise.
12137         * include/unistd.h: Likewise.
12138         * include/utmp.h: Likewise.
12139         * include/wchar.h: Likewise.
12140         * include/wctype.h: Likewise.
12141         * inet/aliases.h: Likewise.
12142         * inet/arpa/inet.h: Likewise.
12143         * inet/netinet/ether.h: Likewise.
12144         * inet/netinet/in.h: Likewise.
12145         * intl/libintl.h: Likewise.
12146         * io/bits/fcntl2.h: Likewise.
12147         * io/fcntl.h: Likewise.
12148         * io/ftw.h: Likewise.
12149         * io/sys/poll.h: Likewise.
12150         * io/sys/stat.h: Likewise.
12151         * io/sys/statfs.h: Likewise.
12152         * io/sys/statvfs.h: Likewise.
12153         * io/utime.h: Likewise.
12154         * libio/bits/stdio.h: Likewise.
12155         * libio/bits/stdio2.h: Likewise.
12156         * libio/libio.h: Likewise.
12157         * libio/libioP.h: Likewise.
12158         * libio/stdio.h: Likewise.
12159         * locale/lc-ctype.c: Likewise.
12160         * locale/locale.h: Likewise.
12161         * login/utmp.h: Likewise.
12162         * malloc/arena.c: Likewise.
12163         * malloc/malloc.c: Likewise.
12164         * malloc/malloc.h: Likewise.
12165         * malloc/mcheck.c: Likewise.
12166         * malloc/mtrace.c: Likewise.
12167         * math/bits/mathcalls.h: Likewise.
12168         * math/fenv.h: Likewise.
12169         * math/math_private.h: Likewise.
12170         * misc/bits/error.h: Likewise.
12171         * misc/bits/syslog.h: Likewise.
12172         * misc/err.h: Likewise.
12173         * misc/error.h: Likewise.
12174         * misc/fstab.h: Likewise.
12175         * misc/mntent.h: Likewise.
12176         * misc/regexp.h: Likewise.
12177         * misc/search.h: Likewise.
12178         * misc/sgtty.h: Likewise.
12179         * misc/sys/mman.h: Likewise.
12180         * misc/sys/syslog.h: Likewise.
12181         * misc/sys/uio.h: Likewise.
12182         * misc/sys/xattr.h: Likewise.
12183         * misc/ttyent.h: Likewise.
12184         * nis/rpcsvc/ypclnt.h: Likewise.
12185         * nss/nss.h: Likewise.
12186         * posix/bits/unistd.h: Likewise.
12187         * posix/fnmatch.h: Likewise.
12188         * posix/glob.h: Likewise.
12189         * posix/sched.h: Likewise.
12190         * posix/spawn.h: Likewise.
12191         * posix/sys/wait.h: Likewise.
12192         * posix/unistd.h: Likewise.
12193         * posix/wordexp.h: Likewise.
12194         * pwd/pwd.h: Likewise.
12195         * resolv/netdb.h: Likewise.
12196         * resource/sys/resource.h: Likewise.
12197         * rt/aio.h: Likewise.
12198         * rt/bits/mqueue2.h: Likewise.
12199         * rt/mqueue.h: Likewise.
12200         * shadow/shadow.h: Likewise.
12201         * signal/signal.h: Likewise.
12202         * socket/send.c: Likewise.
12203         * socket/sendto.c: Likewise.
12204         * socket/sys/socket.h: Likewise.
12205         * stdio-common/printf.h: Likewise.
12206         * stdlib/bits/stdlib.h: Likewise.
12207         * stdlib/fmtmsg.h: Likewise.
12208         * stdlib/monetary.h: Likewise.
12209         * stdlib/stdlib.h: Likewise.
12210         * stdlib/ucontext.h: Likewise.
12211         * streams/stropts.h: Likewise.
12212         * string/argz.h: Likewise.
12213         * string/bits/string2.h: Likewise.
12214         * string/string.h: Likewise.
12215         * string/strings.h: Likewise.
12216         * sunrpc/rpc/auth.h: Likewise.
12217         * sunrpc/rpc/auth_des.h: Likewise.
12218         * sunrpc/rpc/clnt.h: Likewise.
12219         * sunrpc/rpc/netdb.h: Likewise.
12220         * sunrpc/rpc/pmap_clnt.h: Likewise.
12221         * sunrpc/rpc/xdr.h: Likewise.
12222         * sysdeps/generic/inttypes.h: Likewise.
12223         * sysdeps/generic/net/if.h: Likewise.
12224         * sysdeps/generic/sys/swap.h: Likewise.
12225         * sysdeps/gnu/net/if.h: Likewise.
12226         * sysdeps/gnu/utmpx.h: Likewise.
12227         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
12228         * sysdeps/i386/i486/bits/string.h: Likewise.
12229         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
12230         * sysdeps/s390/bits/string.h: Likewise.
12231         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
12232         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
12233         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
12234         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
12235         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
12236         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
12237         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
12238         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
12239         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
12240         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
12241         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
12242         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
12243         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
12244         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
12245         * sysdeps/unix/sysv/linux/readv.c: Likewise.
12246         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
12247         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
12248         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
12249         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
12250         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
12251         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12252         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
12253         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
12254         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
12255         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
12256         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
12257         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
12258         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12259         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
12260         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
12261         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
12262         * sysvipc/sys/ipc.h: Likewise.
12263         * sysvipc/sys/msg.h: Likewise.
12264         * sysvipc/sys/sem.h: Likewise.
12265         * sysvipc/sys/shm.h: Likewise.
12266         * termios/termios.h: Likewise.
12267         * time/sys/time.h: Likewise.
12268         * time/time.h: Likewise.
12269         * wcsmbs/bits/wchar2.h: Likewise.
12270         * wcsmbs/uchar.h: Likewise.
12271         * wcsmbs/wchar.h: Likewise.
12272         * wctype/wctype.h: Likewise.
12273
12274         [BZ #13551]
12275         * Makeconfig: Remove all but ELF support including AIX support.
12276         * Makerules: Likewise.
12277         * config.h.in: Likewise.
12278         * config.make.in: Likewise.
12279         * configure: Likewise.
12280         * configure.in: Likewise.
12281         * csu/Makefile: Likewise.
12282         * csu/version.c: Likewise.
12283         * debug/Makefile: Likewise.
12284         * dlfcn/Makefile: Likewise.
12285         * elf/Makefile: Likewise.
12286         * extra-lib.mk: Likewise.
12287         * iconv/Makefile: Likewise.
12288         * include/libc-symbols.h: Likewise.
12289         * include/shlib-compat.h: Likewise.
12290         * resolv/Makefile: Likewise.
12291         * resolv/res_libc.c: Likewise.
12292         * rt/Makefile: Likewise.
12293         * sysdeps/i386/asm-syntax.h: Likewise.
12294         * sysdeps/i386/sysdep.h: Likewise.
12295         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
12296         * sysdeps/mach/sysdep.h: Likewise.
12297         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
12298         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
12299         * sysdeps/s390/asm-syntax.h: Likewise.
12300         * sysdeps/s390/s390-32/sysdep.h: Likewise.
12301         * sysdeps/s390/s390-64/sysdep.h: Likewise.
12302         * sysdeps/sh/sysdep.h: Likewise.
12303         * sysdeps/unix/sparc/sysdep.h: Likewise.
12304         * sysdeps/wordsize-32/divdi3.c: Likewise.
12305         * sysdeps/x86_64/sysdep.h: Likewise.
12306
12307         * argp/Versions: Remove _argp_unlock_xxx.
12308
12309         [BZ #13559]
12310         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
12311         * abilist/libBrokenLocale.abilist: Likewise.
12312         * abilist/libanl.abilist: Likewise.
12313         * abilist/libc.abilist: Likewise.
12314         * abilist/libcrypt.abilist: Likewise.
12315         * abilist/libdl.abilist: Likewise.
12316         * abilist/libm.abilist: Likewise.
12317         * abilist/libnsl.abilist: Likewise.
12318         * abilist/libpthread.abilist: Likewise.
12319         * abilist/libresolv.abilist: Likewise.
12320         * abilist/librt.abilist: Likewise.
12321         * abilist/libthread_db.abilist: Likewise.
12322         * abilist/libutil.abilist: Likewise.
12323         * abilist/libnss_db.abilist: New file.
12324
12325         * scripts/abilist.awk: Add support for indirect functions.
12326
12327         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
12328
12329         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
12330
12331         * shlib-versions: Remove entries for ports architectures.
12332
12333         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
12334         files in ports.
12335         * elf/stackguard-macros.h: Remove support for IA-64.
12336         * elf/tst-auditmod1.c: Likewise.
12337         * sysdeps/generic/ldsodefs.h: Likewise.
12338
12339         * sysdeps/unix/sysv/linux/configure.in: Ports should define
12340         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
12341         configure files.
12342
12343         [BZ #13552]
12344         * configure.in: Remove --enable-omitfp support.
12345         * FAQ.in: Adjust.
12346         * config.make.in: Likewise.
12347         * Makeconfig: Likewise.
12348         * manual/install.texi: Likewise.
12349
12350         In case anyone cares, the IA-64 architecture could move to ports.
12351         * sysdeps/ia64/*: Removed.
12352         * sysdeps/unix/sysv/linux/ia64/*: Removed.
12353         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
12354
12355         [BZ #13555]
12356         * configure.in: Remove entries for unsupported architectures.
12357
12358         [BZ #13533]
12359         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
12360         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
12361         routines.
12362         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
12363         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
12364         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
12365         fall back to using wcrtomb.
12366         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
12367         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
12368         renaming.
12369         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
12370         * wcsmbs/tst-c16c32-1.c: New file.
12371
12372         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
12373         local variable.
12374
12375         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
12376
12377         * elf/tst-unique3.cc: Add explicit declaration of gets.
12378         * elf/tst-unique3lib.cc: Likewise.
12379         * elf/tst-unique3lib2.cc: Likewise.
12380         * elf/tst-unique4.cc: Likewise.
12381
12382         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
12383
12384 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
12385
12386         [BZ #13566]
12387         * assert/assert.h (static_assert): Don't define for C++.
12388         * libio/stdio.h (gets): Do declare for C++ <= C++11.
12389         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
12390
12391 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
12392
12393         * iconv/loop.c (single loop): Fix assertion in storing of
12394         remaining bytes.
12395
12396         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
12397
12398 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
12399
12400         * posix/getconf.c: Update copyright year.
12401         * nss/getent.c: Likewise.
12402         * nss/makedb.c: Likewise.
12403         * iconv/iconvconfig.c: Likewise.
12404         * iconv/iconv_prog.c: Likewise.
12405         * elf/ldconfig.c: Likewise.
12406         * elf/pldd.c: Likewise.
12407         * elf/sotruss.ksh: Likewise.
12408         * catgets/gencat.c: Likewise.
12409         * csu/version.c: Likewise.
12410         * elf/ldd.bash.in: Likewise.
12411         * elf/sprof.c (print_version): Likewise.
12412         * locale/programs/locale.c: Likewise.
12413         * locale/programs/localedef.c: Likewise.
12414         * login/programs/pt_chown.c: Likewise.
12415         * nscd/nscd.c (print_version): Likewise.
12416         * debug/xtrace.sh: Likewise.
12417         * malloc/memusage.sh: Likewise.
12418         * malloc/mtrace.pl: Likewise.
12419         * debug/catchsegv.sh: Likewise.
12420
12421 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
12422
12423         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
12424         pure attribute.
12425
12426 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
12427
12428         [BZ #13533]
12429         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
12430         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
12431         transformations.
12432         * iconv/gconv_int.h: Likewise.
12433         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
12434         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
12435         from libc for GLIBC_2.16.
12436         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
12437         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
12438         * wcsmbs/uchar.h: Really define mbstate_t.
12439         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
12440         * wcsmbs/c16rtomb.c: New file.
12441         * wcsmbs/mbrtoc16.c: New file.
12442         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
12443         for C/POSIX locale.
12444         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
12445         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
12446
12447         * wcsmbs/wchar.h: Add missing __restrict.
12448
12449 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12450
12451         [BZ #13532]
12452         * time/Makefile (routines): Add timespec_get.
12453         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
12454         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
12455         timespec for ISO C11.
12456         * time/timespec_get.c: New file.
12457         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
12458         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
12459
12460         [BZ #13531]
12461         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
12462         * stdlib/stdlib.h: Declare aligned_alloc.
12463         * Versions.def: Add GLIBC_2.16 for libc.
12464         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
12465
12466         [BZ 13527]
12467         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
12468         ISO C11.
12469
12470         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
12471         code.
12472
12473         [BZ #13528]
12474         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
12475
12476         [BZ #13529]
12477         * assert/assert.h (static_assert): Define.
12478
12479         * version.h: Update for 2.16 development version.
12480
12481         [BZ #13526]
12482         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
12483         _ISOC11_SOURCE.
12484
12485         * version.h (RELEASE): Bump for 2.15 release.
12486         * include/features.h (__GLIBC_MINOR__): Bump to 15.
12487
12488         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
12489         Patch by Marek Polacek <mpolacek@redhat.com>.
12490
12491         * bits/byteswap.h: Protect long long constants with __extension__.
12492         * sysdeps/i386/bits/byteswap.h: Likewise.
12493         * sysdeps/ia64/bits/byteswap.h: Likewise.
12494         * sysdeps/s390/bits/byteswap.h: Likewise.
12495         * sysdeps/x86_64/bits/byteswap.h: Likewise.
12496
12497 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12498
12499         [BZ #13540]
12500         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
12501         destination buffer.
12502         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
12503
12504 2011-12-23  Marek Polacek  <polacek@redhat.com>
12505
12506         * elf/dl-addr.c (determine_info): Add inline keyword.
12507         * elf/tst-auditmod4b.c (check_avx): Likewise.
12508         * elf/tst-auditmod6b.c (check_avx): Likewise.
12509         * elf/tst-auditmod6c.c (check_avx): Likewise.
12510         * elf/tst-auditmod7b.c (check_avx): Likewise.
12511
12512 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
12513
12514         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
12515         !__SSE_MATH__.
12516
12517 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12518
12519         [BZ #13540]
12520         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
12521         processing for last bytes.
12522
12523 2011-08-06  Bruno Haible  <bruno@clisp.org>
12524
12525         [BZ #13061]
12526         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
12527         U+0385, not to U+1FEE.
12528
12529         [BZ #13062]
12530         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
12531         entry for U+00A5 U+0301.
12532
12533 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12534
12535         [BZ #13166]
12536         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
12537         buffer for the output is too small.
12538
12539         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
12540         optimization.
12541
12542         [BZ #13185]
12543         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
12544         SSE flags if possible.
12545
12546 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12547
12548         [BZ #13540]
12549         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
12550         processing for last bytes.
12551
12552 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
12553
12554         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
12555         (syscall-list-default-options, syscall-list-default-condition)
12556         (syscall-list-includes): Define.
12557         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
12558         list of ABIs and options and #if conditions for each ABI.  Do not
12559         handle common syscalls between ABIs specially.
12560         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
12561         Remove.
12562         (syscall-list-variants, syscall-list-32bit-options)
12563         (syscall-list-32bit-condition, syscall-list-64bit-options)
12564         (syscall-list-64bit-condition): Define.
12565         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
12566         (syscall-list-variants, syscall-list-32bit-options)
12567         (syscall-list-32bit-condition, syscall-list-64bit-options)
12568         (syscall-list-64bit-condition): Define.
12569         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
12570         Remove.
12571         (syscall-list-variants, syscall-list-32bit-options)
12572         (syscall-list-32bit-condition, syscall-list-64bit-options)
12573         (syscall-list-64bit-condition): Define.
12574         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
12575         Remove.
12576         (syscall-list-variants, syscall-list-32bit-options)
12577         (syscall-list-32bit-condition, syscall-list-64bit-options)
12578         (syscall-list-64bit-condition): Define.
12579
12580 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
12581
12582         * locale/iso-639.def: Add brx entry.
12583
12584         [BZ #13328]
12585         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
12586         Proposed by Mariusz_Cukr <marcukr@op.pl>.
12587
12588         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
12589         __feraiseexcept_renamed.
12590
12591 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12592
12593         [BZ #13538]
12594         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
12595         EPOLLET with unsigned values.
12596         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
12597         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
12598
12599         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
12600         to large cancellation.
12601         * math/s_cacoshf.c: Likewise.
12602         * math/s_cacoshl.c: Likewise.
12603
12604 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
12605
12606         [BZ #13305]
12607         [BZ #12786]
12608         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
12609         * math/s_cacoshf.c: Likewise.
12610         * math/s_cacoshl.c: Likewise.
12611
12612 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
12613
12614         [BZ #13439]
12615         * iconv/gconv.h: Define __GCONV_SWAP.
12616         * iconvdata/unicode.c: The swap bit must be stored in __flags.
12617         * iconvdata/utf-16.c: Likewise.
12618         * iconvdata/utf-32.c: Likewise.
12619
12620 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
12621
12622         [BZ #13524]
12623         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
12624         numerator after shifting it by one limb.
12625
12626 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
12627
12628         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
12629         under [__USE_EXTERN_INLINES].
12630
12631 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12632
12633         [BZ #13446]
12634         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
12635
12636 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12637
12638         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
12639         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
12640         optimized code.
12641         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
12642         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
12643         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
12644         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
12645         for strncasecmp/strncasecmp_l compilation.
12646         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
12647         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
12648
12649 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
12650
12651         [BZ #13484]
12652         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
12653         of __asm__.
12654
12655 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
12656
12657         [BZ #13506]
12658         * time/tzfile.c (__tzfile_read): Check values from file header.
12659
12660 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
12661
12662         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
12663         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
12664         * powerpc/powerpc32/dl-start.S: Likewise.
12665         * powerpc/powerpc32/elf/start.S: Likewise.
12666         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
12667         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
12668         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
12669         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
12670         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
12671         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
12672         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
12673         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
12674         * powerpc/powerpc32/fpu/s_round.S: Likewise.
12675         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
12676         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
12677         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
12678         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
12679         * powerpc/powerpc32/memset.S: Likewise.
12680         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
12681         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
12682         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
12683         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
12684         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
12685         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
12686         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
12687         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
12688         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
12689         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
12690         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
12691         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
12692         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
12693
12694 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12695
12696         * math/libm-test.inc: Added more nearbyint tests.
12697         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
12698         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
12699         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
12700         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
12701
12702 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
12703
12704         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
12705         FD_CLOEXEC.
12706
12707 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12708
12709         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
12710         Add wcscpy-ssse3 wcscpy-c.
12711         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
12712         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
12713         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
12714         * sysdeps/x86_64/wcschr.S: New file.
12715         * sysdeps/x86_64/wcsrchr.S: New file.
12716         * string/test-strcmp.c: Remove checking of wcscmp function for
12717         wrong alignments.
12718         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
12719         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
12720         wcsrchr-sse2 wcsrchr-c.
12721         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
12722         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
12723         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
12724         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
12725         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
12726         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
12727         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
12728         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
12729         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
12730         * wcsmbc/wcschr.c (WCSCHR): New macro.
12731
12732 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12733
12734         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
12735         * wcsmbs/test-wcsrchr.c: New file.
12736         * string/test-strrchr.c: Add wcsrchr support.
12737         (WIDE): New macro.
12738         * wcsmbs/test-wcscpy.c: New file.
12739         * string/test-strcpy.c: Add wcscpy support.
12740         (WIDE): New macro.
12741
12742 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
12743
12744         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
12745         the inner loop.
12746
12747 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
12748
12749         [BZ #13472]
12750         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
12751
12752 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
12753
12754         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
12755         Minor optimizations.
12756
12757         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
12758         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
12759         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
12760
12761 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
12762
12763         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
12764         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
12765         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
12766         for gcc to avoid warnings.
12767         * inet/Makefile (tests): Add tst-checks.
12768         * inet/tst-checks.c: New file.
12769
12770         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
12771         warning.
12772
12773         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
12774         __wmemcmp_sse2.
12775
12776         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
12777         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
12778
12779         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
12780
12781 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
12782
12783         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
12784         problem.
12785
12786         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
12787
12788 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
12789
12790         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
12791         conditional on GCC version.
12792         (__arch_compare_and_exchange_val_8_acq)
12793         (__arch_compare_and_exchange_val_16_acq)
12794         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
12795         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
12796         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
12797
12798 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
12799
12800         * sysdeps/sh/backtrace.c: New file.
12801
12802 2011-12-02  Andreas Schwab  <schwab@redhat.com>
12803
12804         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
12805         parenthesis.
12806
12807 2011-12-01  Andreas Schwab  <schwab@redhat.com>
12808
12809         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
12810         falling back to utime.
12811
12812 2011-11-30  Andreas Schwab  <schwab@redhat.com>
12813
12814         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
12815         expectations for float.
12816
12817 2011-11-29  Andreas Schwab  <schwab@redhat.com>
12818
12819         * locale/weight.h (findidx): Add parameter len.
12820         * locale/weightwc.h (findidx): Likewise.
12821         * posix/fnmatch_loop.c (FCT): Adjust caller.
12822         * posix/regcomp.c (build_equiv_class): Likewise.
12823         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
12824         * posix/regexec.c (check_node_accept_bytes): Likewise.
12825         * string/strcoll_l.c (STRCOLL): Likewise.
12826         * string/strxfrm_l.c (STRXFRM): Likewise.
12827
12828 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
12829
12830         * Makefile.in: Remove CVSOPT handling.
12831         * configure.in: Remove use of AC_REVISION.
12832         * iconvdata/Makefile (distribute): No need to filter out CVS.
12833         * scripts/list-sources.sh: Remove CVS, subversion and monotone
12834         handling.
12835
12836 2011-11-16  Andreas Schwab  <schwab@redhat.com>
12837
12838         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
12839         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
12840         [USE_AS_STRNCASECMP_L]: Likewise.
12841         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
12842         NO_TLS_DIRECT_SEG_REFS.
12843         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
12844         Fix argument offsets for non-PIC.
12845         [USE_AS_STRNCASECMP_L]: Likewise.
12846         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
12847         NO_TLS_DIRECT_SEG_REFS.
12848
12849 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12850
12851         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
12852         O_CLOEXEC.
12853         * locale/loadlocale.c (_nl_load_locale): Likewise.
12854
12855 2011-11-15  Andreas Schwab  <schwab@redhat.com>
12856
12857         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
12858         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
12859         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
12860         (SYSCALL_GETTIME): Set errno on error.
12861
12862         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
12863         count references to noai6ai_cached.
12864
12865 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
12866
12867         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
12868
12869         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
12870         FD_CLOEXEC for /proc/self/maps.
12871
12872         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
12873         FD_CLOEXEC for /proc/meminfo.
12874
12875         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
12876         gai.conf.
12877
12878         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
12879         FD_CLOEXEC for given file.
12880
12881         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
12882
12883         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
12884         FD_CLOEXEC for /etc/hosts.
12885         (_gethtent): Likewise.
12886
12887         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
12888
12889         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
12890         cancellation and set FD_CLOEXEC for /etc/netgroup.
12891
12892         * nss/nss_files/files-key.c (search): Don't allow cancellation when
12893         reading /etc/publickey.
12894
12895         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
12896         allow cancellation when reading /etc/group.
12897
12898         * nss/nss_files/files-alias.c (internal_setent): Don't allow
12899         cancellation.
12900         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
12901
12902         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
12903         when using data file.
12904
12905         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
12906
12907         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
12908         (write_nis_obj): Use "c" and "e" in fopen.
12909
12910         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
12911
12912         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
12913
12914         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
12915
12916         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
12917
12918         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
12919         locale.alias.
12920
12921         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
12922
12923         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
12924
12925         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
12926
12927         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
12928         file parsing and set FD_CLOEXEC.
12929
12930 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12931
12932         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
12933
12934 2011-11-14  Andreas Schwab  <schwab@redhat.com>
12935
12936         * malloc/arena.c (arena_get2): Don't call reused_arena when
12937         _int_new_arena failed.
12938
12939 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
12940
12941         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
12942         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
12943         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
12944         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12945         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12946         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
12947         to compile strcasecmp and strncasecmp.
12948         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
12949         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
12950
12951         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
12952
12953 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
12954
12955         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
12956         locale-defines.sym to gen-as-const-headers.
12957         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
12958         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
12959         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
12960         to compile strcasecmp and strncasecmp.
12961         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
12962         strcasecmp_l and strncasecmp_l.
12963         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
12964         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
12965         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
12966         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
12967         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
12968         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
12969         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
12970         * sysdeps/i386/i686/multiarch/strncase.S: New file.
12971         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
12972         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
12973         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
12974
12975 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
12976
12977         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
12978         result of SYSDEP_GETTIME_CPU to retval.
12979         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
12980         parameter list to macro.  Remove trailing semicolon.  Adjust users.
12981
12982         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
12983         variable.
12984
12985         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
12986         mantissa words.
12987         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
12988
12989         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
12990         from unused variable.
12991
12992         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
12993         DWARF definitions.
12994         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
12995         for assembling.
12996
12997         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
12998         over namespaces.
12999
13000         * sunrpc/rpc_prot.c (rejected): Fix case value.
13001
13002         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
13003         unsigned long long int to avoid warnings in shift.
13004
13005         * posix/regex_internal.c (re_string_reconstruct): Actually use result
13006         of use of trans.
13007         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
13008         variable tmp.
13009
13010         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
13011         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
13012         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
13013
13014         * nis/nis_table.c (nis_list): Use variable of correct type for
13015         result of __follow_path call.
13016
13017 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13018
13019         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
13020         of math functions ceil, trunc, floor, round, and sqrt, when
13021         avaliable on the platform.
13022         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
13023         name clash.
13024         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
13025         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
13026         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
13027
13028 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
13029
13030         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
13031         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
13032
13033 2011-11-11  Roland McGrath  <roland@hack.frob.com>
13034
13035         * include/unistd.h: Fix __readlink return type.
13036         Reported by Chris Metcalf <cmetcalf@tilera.com>.
13037
13038 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
13039
13040         * stdlib/ucontext.h: Undo last change for makecontext.
13041
13042 2011-11-11  Andreas Schwab  <schwab@redhat.com>
13043
13044         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
13045
13046         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
13047         * setjmp/setjmp.h: Mark functions as non-leaf.
13048         * setjmp/bits/setjmp2.h: Likewise.
13049         * stdlib/ucontext.h: Likewise.
13050
13051 2011-11-10  Andreas Schwab  <schwab@redhat.com>
13052
13053         * malloc/arena.c (_int_new_arena): Don't increment narenas.
13054         (reused_arena): Don't check arena limit.
13055         (arena_get2): Atomically check arena limit.
13056
13057 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
13058
13059         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
13060         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
13061
13062         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
13063         instructions.
13064
13065 2011-11-07  Andreas Schwab  <schwab@redhat.com>
13066
13067         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
13068         handler when locking.
13069
13070         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
13071         Fix size of allocated buffer.
13072
13073 2011-11-04  Andreas Schwab  <schwab@redhat.com>
13074
13075         [BZ #10103]
13076         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
13077         declarations for long double functions.
13078         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
13079
13080         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
13081
13082 2011-11-03  Andreas Schwab  <schwab@redhat.com>
13083
13084         * nscd/nscd.c (main): Don't start AVC thread until credentials are
13085         installed.
13086
13087         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
13088         is disabled.
13089
13090 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13091
13092         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
13093
13094 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
13095
13096         * include/alloca.h (stackinfo_alloca_round): Define.
13097         (extend_alloca): Use it.
13098         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
13099         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
13100         here.
13101
13102         * scripts/check-local-headers.sh: Ignore libaudit.h.
13103
13104         * nscd/Makefile (extra-objs): Make recursively expanded.
13105
13106 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
13107
13108         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
13109         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
13110
13111         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
13112         * posix/tst-rfc3484-2.c: Likewise.
13113         * posix/tst-rfc3484-3.c: Likewise.
13114
13115         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
13116         process_vm_writev.
13117         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
13118         process_vm_writev.
13119         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
13120         process_vm_writev from libc using GLIBC_2.15 version.
13121
13122         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
13123
13124 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
13125
13126         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
13127         stack usage.
13128
13129 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
13130
13131         [BZ #13367]
13132         * nss/getent.c (initgroups_keys): Show error message in case no group
13133         names are given.
13134
13135         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
13136         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
13137         __bump_nl_timestamp.
13138         * nscd/connections (nscd_init): When host database is served open
13139         netlink socket and request notification about configuration changes.
13140         (main_loop_poll): Track netlink file descriptor and bump timestamp
13141         in case data becomes available.
13142         (main_loop_epoll): Likewise.
13143         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
13144         (database_pers_head): Add extra_data fileds.
13145         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
13146         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
13147         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
13148         Adjust caller.
13149         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
13150         in6ai data, call __free_in6ai.
13151         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
13152         Add -DHAVE_NETLINK.
13153         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
13154         interface information.  Reuse previous data if netlink timestamp
13155         is not changed.
13156         (__bump_nl_timestamp): New function.
13157         (__free_in6ai): New function.
13158
13159 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
13160
13161         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
13162         close_not_cancel_no_status here.
13163         (__check_pf): Reorganize code a bit to not call close twice if OOM.
13164
13165 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13166
13167         [BZ #13276]
13168         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
13169         return value.
13170
13171         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
13172         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
13173         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
13174
13175 2011-07-03  Andreas Jaeger  <aj@suse.de>
13176
13177         [BZ #10709]
13178         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
13179         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
13180         * math/libm-test.inc (sin_test): Add test case.
13181
13182 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
13183
13184         [BZ #13337]
13185         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
13186         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13187
13188         * elf/chroot_canon.c (chroot_canon): Cleanups.
13189
13190         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
13191
13192         [BZ #13335]
13193         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
13194         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
13195
13196         * string/test-strchr.c: Make usable for strchrnul testing.
13197         * string/test-strchrnul.c: New file.
13198         * string/Makefile (strop-tests): Add strchrnul.
13199
13200         * po/it.po: Update from translation team.
13201         * po/es.po: Likewise.
13202
13203 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
13204
13205         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
13206         the three constants needed as parameters.  Drop the others.
13207         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
13208         __m128i_strloadu_tolower.
13209         Create and initialize variable zero and use it in all the places
13210         where _mm_setzero_si128 was used.
13211
13212         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
13213         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
13214         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
13215         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
13216         anymore.
13217         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
13218         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
13219         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
13220         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
13221         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
13222         __mpranred, __mptan.
13223         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
13224         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
13225         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
13226         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
13227         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
13228         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
13229         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
13230         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
13231         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
13232
13233 2011-10-28  Andreas Schwab  <schwab@redhat.com>
13234
13235         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
13236         redefine if SHARED.
13237         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
13238
13239         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
13240         wide char related routines to wcsmbs subdir.
13241
13242 2011-10-27  Andreas Schwab  <schwab@redhat.com>
13243
13244         [BZ #13344]
13245         * misc/sys/cdefs.h (__THROWNL): Define.
13246         * posix/unistd.h: Use __THREADNL instead of __THREAD
13247         for memory synchronization functions.
13248
13249 2011-10-26  Roland McGrath  <roland@hack.frob.com>
13250
13251         [BZ #13349]
13252         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
13253         doesn't exist.
13254         * manual/stdio.texi (Obstack Streams): Node removed.
13255
13256 2011-10-26  Andreas Schwab  <schwab@redhat.com>
13257
13258         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
13259         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13260         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13261
13262         * math/math_private.h (math_force_eval): Allow non-addressable
13263         arguments.
13264         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
13265
13266 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13267
13268         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
13269         file is not needed.
13270
13271         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
13272         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
13273         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
13274         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
13275         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
13276         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
13277         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
13278         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
13279         Add AVX variants.
13280         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
13281         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
13282         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
13283         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
13284         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
13285         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
13286         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
13287         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
13288         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
13289         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
13290         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
13291         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
13292         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
13293         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
13294         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
13295         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
13296         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
13297         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
13298         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
13299
13300         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
13301         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
13302
13303         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
13304         place.  Use VEX encoding when compiling for AVX.
13305
13306 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13307
13308         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
13309         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
13310
13311         * string/test-strchr.c (do_test): Don't generate NUL bytes.
13312
13313 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13314
13315         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
13316         useless if() expression.
13317         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
13318         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
13319         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
13320         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13321         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
13322         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
13323         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13324         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13325         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
13326         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
13327         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
13328         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13329         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
13330         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13331         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
13332         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
13333         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
13334         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
13335         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
13336
13337         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
13338
13339 2011-10-25  Andreas Schwab  <schwab@redhat.com>
13340
13341         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
13342         condition.
13343         * elf/dl-fini.c (_dl_sort_fini): Likewise.
13344
13345 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
13346
13347         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
13348         .text section.  Avoid duplicate constants.
13349         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
13350         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13351         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
13352         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13353         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13354         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13355         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13356         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13357         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
13358         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
13359         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
13360         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
13361         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
13362         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
13363         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
13364         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
13365         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
13366         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
13367         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
13368         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13369         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
13370         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
13371         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
13372         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
13373         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
13374         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
13375         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
13376         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
13377         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
13378         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
13379         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
13380         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
13381         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
13382         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
13383         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
13384         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
13385         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
13386         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
13387         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
13388         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
13389         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
13390         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
13391         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
13392         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
13393         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
13394
13395 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
13396
13397         * sysdeps/x86_64/dla.h: Move to ...
13398         * sysdeps/x86_64/fpu/dla.h: ...here.
13399         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
13400         situations.  Use __builtin_fma only for gcc 4.6 and up.
13401
13402         * config.make.in: Add have-mfma4 entry.
13403         * configure.in: Substitute libc_cv_cc_fma4.
13404         * math/Makefile (dbl-only-routines): Add sincostab.
13405         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
13406         Use __sincostab not sincos.
13407         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
13408         name is a macro.
13409         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13410         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13411         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13412         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
13413         using __copysign.
13414         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
13415         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
13416         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
13417         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
13418         and __inv.
13419         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
13420         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
13421         __copysign.
13422         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
13423         define aliases when function name is a macro.
13424         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
13425         sysdeps/ieee754/dbl-64/sincos.tbl.
13426         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
13427         fma4-enabled routines.
13428         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
13429         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
13430         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
13431         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
13432         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
13433         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
13434         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
13435         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
13436         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
13437         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
13438         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
13439         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
13440         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
13441         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
13442         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
13443         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
13444         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
13445         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
13446         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
13447         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
13448         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
13449         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
13450         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
13451         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
13452         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
13453         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
13454         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
13455         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
13456         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
13457         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
13458
13459         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
13460         rename.
13461         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13462         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13463         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13464         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13465         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13466         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13467         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13468         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13469
13470 2011-10-24  Andreas Schwab  <schwab@redhat.com>
13471
13472         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
13473
13474 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13475
13476         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
13477
13478         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
13479         prediction.
13480         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
13481
13482         * string/strnlen.c: Don't define STRNLEN, reverse logic.
13483         Remove unused variable magic_bits.
13484         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
13485
13486         * string/strnlen.c: Define and use STRNLEN macro.
13487         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
13488         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
13489         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
13490         * wcsmbs/wcslen.c: Define and use WCSLEN.
13491         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
13492         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
13493         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
13494         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
13495         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
13496         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
13497         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
13498
13499 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13500
13501         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
13502         strnlen-sse2-no-bsf.
13503         Rename strlen-no-bsf to strlen-sse2-no-bsf.
13504         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
13505         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
13506         Add strnlen support.
13507         (USE_AS_STRNLEN): New macro.
13508         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
13509         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
13510         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
13511         * sysdeps/x86_64/wcslen.S: New file.
13512
13513 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
13514
13515         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
13516         XMM-moves are used for copying on small sizes.
13517
13518 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13519
13520         * wcsmbs/Makefile (strop-tests): Add wcschr.
13521         * wcsmbs/test-wcschr.c: New file.
13522         * string/test-strchr.c: Update.
13523         Add wcschr support.
13524         (WIDE): New macro.
13525
13526 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13527
13528         * wcsmbs/Makefile (strop-tests): Add wcslen.
13529         * wcsmbs/test-wcslen.c: New file.
13530         * string/test-strlen.c: Update.
13531         Add wcslen support.
13532         (WIDE): New macro.
13533
13534 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13535
13536         * po/it.po: Update from translation team.
13537
13538 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13539
13540         * sysdeps/x86_64/wcscmp.S: Update.
13541         Fix wrong comparison semantics.
13542         wcscmp shall use signed comparison not unsigned.
13543         Don't use substraction to avoid overflow bug.
13544         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
13545         * wcsmbc/wcscmp.c: Likewise.
13546         * string/test-strcmp.c: Likewise.
13547         Add new tests to check cases with negative values.
13548
13549 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
13550
13551         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
13552         * sysdeps/x86_64/dla.h: ...here.  New file.
13553         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
13554         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13555         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13556         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13557         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13558         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
13559         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13560         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13561         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13562
13563 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
13564
13565         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
13566         __ynl_finite aliases.
13567
13568 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13569
13570         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13571
13572         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
13573         define DLA_FMA.
13574         [DLA_FMA] (EMULV): Use DLA_FMA.
13575         [DLA_FMA] (MUL12): Use EMULV.
13576         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
13577         that are not needed.
13578         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
13579         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
13580         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
13581         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
13582         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
13583         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
13584         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
13585
13586 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
13587
13588         * math/s_nan.c: Undef __nan.
13589         * math/s_nanf.c: Undef __nanf.
13590         * math/s_nanl.c: Undef __nanl.
13591         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
13592         "math_private.h".
13593
13594 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
13595
13596         * math/s_catan.c: Add branch predictions.
13597         * math/s_catanf.c: Likewise.
13598         * math/s_catanh.c: Likewise.
13599         * math/s_catanhf.c: Likewise.
13600         * math/s_catanhl.c: Likewise.
13601         * math/s_catanl.c: Likewise.
13602         * math/s_cexp.c: Likewise.
13603         * math/s_cexpf.c: Likewise.
13604         * math/s_cexpl.c: Likewise.
13605         * math/s_clog.c: Likewise.
13606         * math/s_clog10.c: Likewise.
13607         * math/s_clog10f.c: Likewise.
13608         * math/s_clog10l.c: Likewise.
13609         * math/s_clogf.c: Likewise.
13610         * math/s_clogl.c: Likewise.
13611         * math/s_csqrt.c: Likewise.
13612         * math/s_csqrtf.c: Likewise.
13613         * math/s_csqrtl.c: Likewise.
13614         * math/s_ctanf.c: Likewise.
13615         * math/s_ctanh.c: Likewise.
13616         * math/s_ctanhf.c: Likewise.
13617         * math/s_ctanhl.c: Likewise.
13618         * math/s_ctanl.c: Likewise.
13619
13620         * math/math_private.h: Define __nan, __nanf, __nanl.
13621         * math/s_cacosh.c: Include <math_private.h>.
13622         * math/s_cacoshl.c: Likewise.
13623         * math/s_casinh.c: Likewise.
13624         * math/s_casinhf.c: Likewise.
13625         * math/s_casinhl.c: Likewise.
13626         * math/s_ccos.c: Rely entire on ccosh.
13627         * math/s_ccosf.c: Rely entire on ccoshf.
13628         * math/s_ccosl.c: Rely entirely on ccoshl.
13629         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
13630         Remove tests for FE_INVALID.
13631         * math/s_ccoshf.c: Likewise.
13632         * math/s_ccoshl.c: Likewise.
13633         * math/s_csin.c: Likewise.
13634         * math/s_csinf.c: Likewise.
13635         * math/s_csinh.c Likewise.
13636         * math/s_csinhf.c: Likewise.
13637         * math/s_csinhl.c: Likewise.
13638         * math/s_csinl.c: Likewise.
13639         * math/s_ctan.c: Likewise.
13640         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
13641         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
13642         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
13643
13644 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
13645
13646         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
13647         compilation problems.
13648
13649         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
13650         __builtin_expect.
13651
13652 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
13653
13654         * sysdeps/i386/configure.in: Test for -mfma4 option.
13655         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
13656         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
13657         COMMON_CPUID_INDEX_80000001.
13658         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
13659         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
13660         use it if FMA3 is not supported.
13661         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
13662
13663         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
13664         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
13665
13666 2011-10-20  Andreas Schwab  <schwab@redhat.com>
13667
13668         [BZ #12892]
13669         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
13670         it would create a cycle with a link time dependency.
13671
13672 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
13673
13674         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
13675         instruction.
13676         * string/Makefile (strop-tests): Add rawmemchr.
13677         * string/test-rawmemchr.c: New file.
13678
13679         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
13680         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
13681         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
13682         when compiling str{,n}casecmp and when AVX is available.  Hook up
13683         new optimized code in initializers.
13684
13685 2011-10-19  Andreas Schwab  <schwab@redhat.com>
13686
13687         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
13688         __feraiseexcept instead of feraiseexcept.
13689
13690 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
13691
13692         * math/math_private.h: Define defaults for libc_fetestexcept and
13693         libc_feupdateenv.
13694         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
13695         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
13696         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
13697         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13698         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
13699         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13700         libc_fetestexcept and libc_feupdateenv.
13701
13702         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
13703         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
13704         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
13705         * sysdeps/x86_64/fpu/math_private.h: Define special version of
13706         libc_feholdexcept_setround.
13707
13708         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
13709         Add s_nearbyint-c and s_nearbyintf-c.
13710         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
13711         nearbyintf inlines.
13712         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
13713         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
13714         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
13715         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
13716
13717         * math/math_private.h: Define defaults for libc_fegetround,
13718         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
13719         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
13720         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
13721         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
13722         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
13723         standard functions.
13724         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
13725         Remove comments and hacks for old compiler versions.
13726         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
13727         libc_fegetround, libc_fesetround, libc_feholdexcept, and
13728         libc_feholdexceptl.
13729
13730 2011-10-18  Andreas Schwab  <schwab@redhat.com>
13731
13732         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
13733         (__feraiseexcept_renamed): Add __NTH.
13734         (feraiseexcept): Add __NTH.  Rename local variables to fix
13735         namespace violations.
13736
13737 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
13738
13739         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
13740
13741         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
13742
13743         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
13744         recently added interfaces.
13745         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
13746
13747         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
13748         about macro parameter expansion.
13749
13750         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
13751         __NO_MATH_INLINES is defined.  Cleanups.
13752
13753         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
13754         and __floorf is target has SSE4.1.
13755         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
13756         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
13757         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
13758         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
13759
13760         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
13761         name.
13762         (floorf): Likewise.
13763
13764         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
13765
13766 2011-10-17  Andreas Schwab  <schwab@redhat.com>
13767
13768         * misc/sys/cdefs.h: Fix last change.
13769
13770         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
13771         database lookup.
13772
13773 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
13774
13775         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
13776
13777         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
13778         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
13779         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
13780         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
13781         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
13782         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
13783         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
13784         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
13785         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
13786         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
13787         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
13788         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
13789         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
13790         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
13791         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
13792         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
13793         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
13794         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
13795         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
13796         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
13797         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
13798         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
13799
13800         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
13801         ceil, ceilf, floor, floorf.
13802
13803         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
13804         Perform IRELATIVE relocations last.
13805
13806         * elf/do-rel.h: Add another parameter nrelative, replacing the
13807         local variable with the same name.  Change name of the function
13808         to end in Rel or Rela (uppercase).
13809         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
13810         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
13811         elf_dynamic_do_##reloc function.
13812
13813 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13814
13815         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
13816         is sufficient, at least on modern CPUs.
13817
13818         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
13819
13820         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
13821         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
13822
13823         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
13824         __expl_finite.
13825         * math/bits/math-finite.h: Add entries for exp.
13826         * math/e_expl.c: Add __*_finite alias.
13827         * sysdeps/i386/fpu/e_exp.S: Likewise.
13828         * sysdeps/i386/fpu/e_expf.S: Likewise.
13829         * sysdeps/i386/fpu/e_expl.c: Likewise.
13830         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
13831         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
13832         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
13833         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
13834         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
13835         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
13836         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
13837
13838         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
13839         is sufficient, at least on modern CPUs.
13840
13841         * ctype/ctype-info.c (__ctype_init): Define.
13842         * include/ctype.h (__ctype_init): Declare.
13843         (__ctype_b_loc): The variable is always initialized.
13844         (__ctype_toupper_loc): Likewise.
13845         (__ctype_tolower_loc): Likewise.
13846         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
13847         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
13848
13849 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
13850
13851         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
13852
13853         * configure.in: Also look in $cxxmachine/include for C++ system
13854         headers.
13855
13856 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13857
13858         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
13859         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
13860         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
13861         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
13862         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
13863         (USE_AS_WMEMCMP): New macro.
13864         Fixing indents.
13865         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
13866         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
13867         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
13868         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
13869         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13870         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
13871         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
13872         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
13873         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
13874         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
13875         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
13876         (USE_AS_WMEMCMP): New macro.
13877         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
13878         * sysdeps/string/test-memcmp.c: Update.
13879         Fix simple_wmemcmp.
13880         Add new tests.
13881         * wcsmbs/wmemcmp.c: Update.
13882         (WMEMCMP): New macro.
13883         Fix overflow bug.
13884
13885 2011-10-12  Andreas Jaeger  <aj@suse.de>
13886
13887         [BZ #13268]
13888         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
13889
13890 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
13891
13892         * libio/iofwide.c (do_length): Avoid warning.
13893
13894         * ctype/ctype.h (__isctype_f): Add missing __THROW.
13895
13896 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
13897
13898         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
13899
13900         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
13901         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
13902         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
13903         * sysdeps/i386/i686/fpu/e_log.S: New file.
13904         * sysdeps/i386/i686/fpu/e_logf.S: New file.
13905         * sysdeps/i386/i686/fpu/e_logl.S: New file.
13906
13907         * ctype/ctype.h: Add support for inlined isXXX functions when
13908         compiling C++ code.
13909
13910 2011-10-14  Andreas Schwab  <schwab@redhat.com>
13911
13912         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
13913
13914         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
13915
13916 2011-10-13  Roland McGrath  <roland@hack.frob.com>
13917
13918         [BZ #13291]
13919         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
13920
13921 2011-10-13  Andreas Schwab  <schwab@redhat.com>
13922
13923         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
13924         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
13925         feraiseexcept.
13926
13927         * sysdeps/x86_64/memrchr.S: Check for zero size.
13928
13929         * string/stratcliff.c: Add memrchr tests.
13930
13931 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13932
13933         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
13934         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
13935         rawmemchr-sse2 rawmemchr-sse2-bsf.
13936         * sysdeps/i386/i686/multiarch/memchr.S: New file.
13937         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
13938         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
13939         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
13940         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
13941         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
13942         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
13943         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
13944         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
13945         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
13946         * string/memrchr.c (MEMRCHR): New macro.
13947
13948 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
13949
13950         Add integration with gcc's -ffinite-math-only and optimize wrapper
13951         functions in libm.
13952         * Versions.def: Define GLIBC_2.15 version for libm.
13953         * math/Makefile (headers): Add bits/math-finite.h.
13954         * math/bits/math-finite.h: New file.
13955         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
13956         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
13957         * math/e_acoshl.c: Add __*_finite alias.
13958         * math/e_acosl.c: Likewise.
13959         * math/e_asinl.c: Likewise.
13960         * math/e_atan2l.c: Likewise.
13961         * math/e_atanhl.c: Likewise.
13962         * math/e_coshl.c: Likewise.
13963         * math/e_exp10.c: Likewise.
13964         * math/e_exp10f.c: Likewise.
13965         * math/e_exp10l.c: Likewise.
13966         * math/e_exp2l.c: Likewise.
13967         * math/e_fmodl.c: Likewise.
13968         * math/e_gammal_r.c: Likewise.
13969         * math/e_hypotl.c: Likewise.
13970         * math/e_j0l.c: Likewise.
13971         * math/e_j1l.c: Likewise.
13972         * math/e_jnl.c: Likewise.
13973         * math/e_lgammal_r.c: Likewise.
13974         * math/e_log10l.c: Likewise.
13975         * math/e_log2l.c: Likewise.
13976         * math/e_logl.c: Likewise.
13977         * math/e_powl.c: Likewise.
13978         * math/e_sinhl.c: Likewise.
13979         * math/e_sqrtl.c: Likewise.
13980         * math/e_scalb.c: Completely rewritten and optimized.
13981         * math/e_scalbf.c: Likewise.
13982         * math/e_scalbl.c: Likewise.
13983         * math/w_acos.c: Likewise.
13984         * math/w_acosf.c: Likewise.
13985         * math/w_acosl.c: Likewise.
13986         * math/w_acosh.c: Likewise.
13987         * math/w_acoshf.c: Likewise.
13988         * math/w_acoshl.c: Likewise.
13989         * math/w_asin.c: Likewise.
13990         * math/w_asinf.c: Likewise.
13991         * math/w_asinl.c: Likewise.
13992         * math/w_atan2.c: Likewise.
13993         * math/w_atan2f.c: Likewise.
13994         * math/w_atan2l.c: Likewise.
13995         * math/w_atanh.c: Likewise.
13996         * math/w_atanhf.c: Likewise.
13997         * math/w_atanhl.c: Likewise.
13998         * math/w_exp10.c: Likewise.
13999         * math/w_exp10f.c: Likewise.
14000         * math/w_exp10l.c: Likewise.
14001         * math/w_fmod.c: Likewise.
14002         * math/w_fmodf.c: Likewise.
14003         * math/w_fmodl.c: Likewise.
14004         * math/w_j0.c: Likewise.
14005         * math/w_j0f.c: Likewise.
14006         * math/w_j0l.c: Likewise.
14007         * math/w_j1.c: Likewise.
14008         * math/w_j1f.c: Likewise.
14009         * math/w_j1l.c: Likewise.
14010         * math/w_jn.c: Likewise.
14011         * math/w_jnf.c: Likewise.
14012         * math/w_log.c: Likewise.
14013         * math/w_logf.c: Likewise.
14014         * math/w_logl.c: Likewise.
14015         * math/w_log10.c: Likewise.
14016         * math/w_log10f.c: Likewise.
14017         * math/w_log10l.c: Likewise.
14018         * math/w_log2.c: Likewise.
14019         * math/w_log2f.c: Likewise.
14020         * math/w_log2l.c: Likewise.
14021         * math/w_pow.c: Likewise.
14022         * math/w_powf.c: Likewise.
14023         * math/w_powl.c: Likewise.
14024         * math/w_remainder.c: Likewise.
14025         * math/w_remainderf.c: Likewise.
14026         * math/w_remainderl.c: Likewise.
14027         * math/w_scalb.c: Likewise.
14028         * math/w_scalbf.c: Likewise.
14029         * math/w_scalbl.c: Likewise.
14030         * math/w_sqrt.c: Likewise.
14031         * math/w_sqrtf.c: Likewise.
14032         * math/w_sqrtl.c: Likewise.
14033         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
14034         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
14035         used.
14036         * math/math_private.h: Declare __kernel_standard_f.
14037         * math/w_cosh.c: Remove cruft and optimize a bit.
14038         * math/w_coshf.c: Likewise.
14039         * math/w_coshl.c: Likewise.
14040         * math/w_exp2.c: Likewise.
14041         * math/w_exp2f.c: Likewise.
14042         * math/w_exp2l.c: Likewise.
14043         * math/w_hypot.c: Likewise.
14044         * math/w_hypotf.c: Likewise.
14045         * math/w_hypotl.c: Likewise.
14046         * math/w_lgamma.c: Likewise.
14047         * math/w_lgamma_r.c: Likewise.
14048         * math/w_lgammaf.c: Likewise.
14049         * math/w_lgammaf_r.c: Likewise.
14050         * math/w_lgammal.c: Likewise.
14051         * math/w_lgammal_r.c: Likewise.
14052         * math/w_sinh.c: Likewise.
14053         * math/w_sinhf.c: Likewise.
14054         * math/w_sinhl.c: Likewise.
14055         * math/w_tgamma.c: Likewise.
14056         * math/w_tgammaf.c: Likewise.
14057         * math/w_tgammal.c: Likewise.
14058         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
14059         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
14060         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
14061         Minor optimizations.  Pretty printing.  Remove cruft.
14062         * sysdeps/i386/fpu/e_acosf.S: Likewise.
14063         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14064         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14065         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14066         * sysdeps/i386/fpu/e_acosl.c: Likewise.
14067         * sysdeps/i386/fpu/e_asin.S: Likewise.
14068         * sysdeps/i386/fpu/e_asinf.S: Likewise.
14069         * sysdeps/i386/fpu/e_atan2.S: Likewise.
14070         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
14071         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
14072         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14073         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14074         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14075         * sysdeps/i386/fpu/e_exp10.S: Likewise.
14076         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
14077         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
14078         * sysdeps/i386/fpu/e_exp2.S: Likewise.
14079         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
14080         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
14081         * sysdeps/i386/fpu/e_fmod.S: Likewise.
14082         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
14083         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
14084         * sysdeps/i386/fpu/e_hypot.S: Likewise.
14085         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
14086         * sysdeps/i386/fpu/e_log.S: Likewise.
14087         * sysdeps/i386/fpu/e_log10.S: Likewise.
14088         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14089         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14090         * sysdeps/i386/fpu/e_log2.S: Likewise.
14091         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14092         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14093         * sysdeps/i386/fpu/e_logf.S: Likewise.
14094         * sysdeps/i386/fpu/e_logl.S: Likewise.
14095         * sysdeps/i386/fpu/e_pow.S: Likewise.
14096         * sysdeps/i386/fpu/e_powf.S: Likewise.
14097         * sysdeps/i386/fpu/e_powl.S: Likewise.
14098         * sysdeps/i386/fpu/e_remainder.S: Likewise.
14099         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
14100         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
14101         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14102         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14103         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14104         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
14105         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
14106         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
14107         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
14108         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
14109         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
14110         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
14111         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
14112         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
14113         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
14114         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
14115         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
14116         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
14117         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
14118         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
14119         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
14120         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
14121         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
14122         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
14123         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
14124         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
14125         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
14126         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
14127         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
14128         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
14129         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
14130         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
14131         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
14132         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
14133         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
14134         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
14135         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
14136         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
14137         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
14138         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
14139         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14140         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
14141         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
14142         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
14143         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
14144         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
14145         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
14146         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
14147         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
14148         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
14149         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
14150         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
14151         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
14152         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
14153         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
14154         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
14155         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
14156         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
14157         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
14158         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
14159         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
14160         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14161         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
14162         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
14163         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
14164         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
14165         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
14166         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
14167         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
14168         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
14169         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
14170         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
14171         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
14172         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
14173         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
14174         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
14175         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
14176         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
14177         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
14178         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
14179         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
14180         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
14181         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
14182         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
14183         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
14184         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
14185         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
14186         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
14187         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
14188         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
14189         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
14190         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
14191         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
14192         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
14193         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14194         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
14195         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
14196         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
14197         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
14198         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
14199         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
14200         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
14201         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
14202         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
14203         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
14204         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
14205         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
14206         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
14207         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
14208         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
14209         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
14210         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
14211         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14212         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14213         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14214         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14215         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
14216         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14217         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
14218         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
14219         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
14220         (__isnanf): Likewise.
14221         (__isinf_ns): Likewise.
14222         (__isinf_nsf): Likewise.
14223         (__finite): Likewise.
14224         (__finitef): Likewise.
14225         (__ieee754_sqrt): Define as macro.
14226         (__ieee754_sqrtf): Define as macro.
14227         (__ieee754_sqrtl): Define as macro.
14228         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
14229         inlined copy.
14230         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
14231         __FINITE_MATH_ONLY__ consistent.
14232         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
14233
14234 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
14235
14236         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
14237         of rawmemchr.
14238
14239         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
14240
14241 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
14242
14243         * po/ja.po: Update from translation team.
14244
14245 2011-10-08  Roland McGrath  <roland@hack.frob.com>
14246
14247         * locale/programs/locarchive.c (prepare_address_space): New function.
14248         (create_archive, enlarge_archive, open_archive): Use it.
14249
14250         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
14251         inside [SHARED], where it is used.
14252
14253         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
14254
14255         * nss/getent.c (netgroup_keys): Remove unused variable.
14256         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
14257
14258 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
14259
14260         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
14261         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
14262         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
14263         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
14264         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
14265         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
14266         * math/Makefile (libm-calls): Add s_isinf_ns.
14267         * math/divtc3.c: Use __isinf_nsl instead of isinf.
14268         * math/multc3.c: Likewise.
14269         * math/s_casin.c: Likewise.
14270         * math/s_casinf.c: Likewise.
14271         * math/s_casinl.c: Likewise.
14272         * math/s_ccos.c: Likewise.
14273         * math/s_ccosf.c: Likewise.
14274         * math/s_ccosl.c: Likewise.
14275         * math/s_ctan.c: Likewise.
14276         * math/s_ctanf.c: Likewise.
14277         * math/s_ctanh.c: Likewise.
14278         * math/s_ctanhf.c: Likewise.
14279         * math/s_ctanhl.c: Likewise.
14280         * math/s_ctanl.c: Likewise.
14281         * math/w_fmod.c: Likewise.
14282         * math/w_fmodf.c: Likewise.
14283         * math/w_fmodl.c: Likewise.
14284         * math/w_remainder.c: Likewise.
14285         * math/w_remainderf.c: Likewise.
14286         * math/w_remainderl.c: Likewise.
14287         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
14288         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
14289         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
14290         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
14291         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
14292         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
14293         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
14294         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
14295
14296         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
14297         of the number.
14298         * stdio-common/printf_fphex.c: Likewise.
14299         * stdio-common/printf_size.c: Likewise.
14300
14301         * math/e_exp10.c: Include math_private.h using <...> not "...".
14302         * math/e_exp10f.c: Likewise.
14303         * math/e_exp10l.c: Likewise.
14304         * math/e_exp2l.c: Likewise.
14305         * math/e_j0l.c: Likewise.
14306         * math/e_j1l.c: Likewise.
14307         * math/e_jnl.c: Likewise.
14308         * math/e_lgammal_r.c: Likewise.
14309         * math/e_rem_pio2l.c: Likewise.
14310         * math/e_scalb.c: Likewise.
14311         * math/e_scalbf.c: Likewise.
14312         * math/e_scalbl.c: Likewise.
14313         * math/k_cosl.c: Likewise.
14314         * math/k_sinl.c: Likewise.
14315         * math/k_tanl.c: Likewise.
14316         * math/s_cacoshf.c: Likewise.
14317         * math/s_catan.c: Likewise.
14318         * math/s_catanf.c: Likewise.
14319         * math/s_catanh.c: Likewise.
14320         * math/s_catanhf.c: Likewise.
14321         * math/s_catanhl.c: Likewise.
14322         * math/s_catanl.c: Likewise.
14323         * math/s_ccosh.c: Likewise.
14324         * math/s_ccoshf.c: Likewise.
14325         * math/s_ccoshl.c: Likewise.
14326         * math/s_cexp.c: Likewise.
14327         * math/s_cexpf.c: Likewise.
14328         * math/s_cexpl.c: Likewise.
14329         * math/s_clog.c: Likewise.
14330         * math/s_clog10.c: Likewise.
14331         * math/s_clog10f.c: Likewise.
14332         * math/s_clog10l.c: Likewise.
14333         * math/s_clogf.c: Likewise.
14334         * math/s_clogl.c: Likewise.
14335         * math/s_csin.c: Likewise.
14336         * math/s_csinf.c: Likewise.
14337         * math/s_csinh.c: Likewise.
14338         * math/s_csinhf.c: Likewise.
14339         * math/s_csinhl.c: Likewise.
14340         * math/s_csinl.c: Likewise.
14341         * math/s_csqrt.c: Likewise.
14342         * math/s_csqrtf.c: Likewise.
14343         * math/s_csqrtl.c: Likewise.
14344         * math/s_ctan.c: Likewise.
14345         * math/s_ctanf.c: Likewise.
14346         * math/s_ctanh.c: Likewise.
14347         * math/s_ctanhf.c: Likewise.
14348         * math/s_ctanhl.c: Likewise.
14349         * math/s_ctanl.c: Likewise.
14350         * math/s_ldexp.c: Likewise.
14351         * math/s_ldexpf.c: Likewise.
14352         * math/s_ldexpl.c: Likewise.
14353         * math/s_significand.c: Likewise.
14354         * math/s_significandf.c: Likewise.
14355         * math/s_significandl.c: Likewise.
14356         * math/w_acos.c: Likewise.
14357         * math/w_acosf.c: Likewise.
14358         * math/w_acosh.c: Likewise.
14359         * math/w_acoshf.c: Likewise.
14360         * math/w_acoshl.c: Likewise.
14361         * math/w_acosl.c: Likewise.
14362         * math/w_asin.c: Likewise.
14363         * math/w_asinf.c: Likewise.
14364         * math/w_asinl.c: Likewise.
14365         * math/w_atan2.c: Likewise.
14366         * math/w_atan2f.c: Likewise.
14367         * math/w_atan2l.c: Likewise.
14368         * math/w_atanh.c: Likewise.
14369         * math/w_atanhf.c: Likewise.
14370         * math/w_atanhl.c: Likewise.
14371         * math/w_cosh.c: Likewise.
14372         * math/w_coshf.c: Likewise.
14373         * math/w_coshl.c: Likewise.
14374         * math/w_dremf.c: Likewise.
14375         * math/w_exp10.c: Likewise.
14376         * math/w_exp10f.c: Likewise.
14377         * math/w_exp10l.c: Likewise.
14378         * math/w_exp2.c: Likewise.
14379         * math/w_exp2f.c: Likewise.
14380         * math/w_fmod.c: Likewise.
14381         * math/w_fmodf.c: Likewise.
14382         * math/w_fmodl.c: Likewise.
14383         * math/w_hypot.c: Likewise.
14384         * math/w_hypotf.c: Likewise.
14385         * math/w_hypotl.c: Likewise.
14386         * math/w_j0.c: Likewise.
14387         * math/w_j0f.c: Likewise.
14388         * math/w_j0l.c: Likewise.
14389         * math/w_j1.c: Likewise.
14390         * math/w_j1f.c: Likewise.
14391         * math/w_j1l.c: Likewise.
14392         * math/w_jn.c: Likewise.
14393         * math/w_jnf.c: Likewise.
14394         * math/w_jnl.c: Likewise.
14395         * math/w_lgamma.c: Likewise.
14396         * math/w_lgamma_r.c: Likewise.
14397         * math/w_lgammaf.c: Likewise.
14398         * math/w_lgammaf_r.c: Likewise.
14399         * math/w_lgammal.c: Likewise.
14400         * math/w_lgammal_r.c: Likewise.
14401         * math/w_log.c: Likewise.
14402         * math/w_log10.c: Likewise.
14403         * math/w_log10f.c: Likewise.
14404         * math/w_log10l.c: Likewise.
14405         * math/w_log2.c: Likewise.
14406         * math/w_log2f.c: Likewise.
14407         * math/w_log2l.c: Likewise.
14408         * math/w_logf.c: Likewise.
14409         * math/w_logl.c: Likewise.
14410         * math/w_pow.c: Likewise.
14411         * math/w_powf.c: Likewise.
14412         * math/w_powl.c: Likewise.
14413         * math/w_remainder.c: Likewise.
14414         * math/w_remainderf.c: Likewise.
14415         * math/w_remainderl.c: Likewise.
14416         * math/w_scalb.c: Likewise.
14417         * math/w_scalbf.c: Likewise.
14418         * math/w_scalbl.c: Likewise.
14419         * math/w_sinh.c: Likewise.
14420         * math/w_sinhf.c: Likewise.
14421         * math/w_sinhl.c: Likewise.
14422         * math/w_sqrt.c: Likewise.
14423         * math/w_sqrtf.c: Likewise.
14424         * math/w_sqrtl.c: Likewise.
14425         * math/w_tgamma.c: Likewise.
14426         * math/w_tgammaf.c: Likewise.
14427         * math/w_tgammal.c: Likewise.
14428
14429         * po/ja.po: Update from translation team.
14430
14431 2011-09-29  Andreas Jaeger  <aj@suse.de>
14432
14433         [BZ #13179]
14434         * sunrpc/netname.c (netname2host): Fix logic.
14435
14436         [BZ #6779]
14437         [BZ #6783]
14438         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
14439         correctly.
14440         * math/w_remainder.c (__remainder): Likewise.
14441         * math/w_remainderf.c (__remainderf): Likewise.
14442         * math/libm-test.inc (remainder_test): Add test cases.
14443
14444 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14445
14446         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
14447         sdiv_qrnnd.
14448
14449 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14450
14451         * string/test-memcmp.c: Avoid unncessary #defines.
14452         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
14453
14454 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14455
14456         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
14457         Use new sse2 version for core i3 - i7 as it's faster
14458         than sse42 version.
14459         (bit_Prefer_PMINUB_for_stringop): New.
14460         * sysdeps/x86_64/rawmemchr.S: Update.
14461         Replace with faster SSE2 version.
14462         * sysdeps/x86_64/memrchr.S: New file.
14463         * sysdeps/x86_64/memchr.S: Update.
14464         Replace with faster SSE2 version.
14465
14466 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
14467
14468         * elf/dl-load.c (lose): Add cast to avoid warning.
14469
14470 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
14471
14472         * po/ca.po: Update from translation team.
14473
14474         * inet/getnetgrent_r.c: Hook up nscd.
14475         * nscd/Makefile (routines): Add nscd_netgroup.
14476         (nscd-modules): Add netgroupcache.
14477         (CFLAGS-netgroupcache.c): Define.
14478         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
14479         (cache_search): Add const to second parameter.
14480         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
14481         INNETGR.
14482         (dbs): Add netgrdb entry.
14483         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
14484         (verify_persistent_db): Handle netgrdb.
14485         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
14486         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
14487         GETFDNETGR.
14488         (netgroup_response_header): Define.
14489         (innetgroup_response_header): Define.
14490         (datahead): Add netgroup_response_header and innetgroup_response_header
14491         elements.
14492         * nscd/nscd.conf: Add entries for netgroup cache.
14493         * nscd/nscd.h (dbtype): Add netgrdb.
14494         (_PATH_NSCD_NETGROUP_DB): Define.
14495         (netgroup_iov_disabled): Declare.
14496         (xmalloc, xcalloc, xrealloc): Move declarations here.
14497         (cache_search): Adjust prototype.
14498         Add netgroup-related prototypes.
14499         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
14500         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
14501         (__nscd_innetgr): Declare.
14502         * nscd/selinux.c (perms): Use access_vector_t as element type and
14503         add netgroup-related initializers.
14504         * nscd/netgroupcache.c: New file.
14505         * nscd/nscd_netgroup.c: New file.
14506         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
14507         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
14508         For four parameters use innetgr.
14509         * nss/nss_files/files-init.c: Add definition and callback for netgr.
14510         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
14511         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
14512         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
14513
14514         * nscd/connections.c (register_traced_file): Don't register file
14515         for disabled databases.
14516
14517 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
14518
14519         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
14520
14521         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
14522         from tree and freeing node.
14523
14524 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
14525
14526         * nss/nsswitch.c (__nss_database_lookup): Handle
14527         nss_parse_service_list out of memory case.
14528
14529 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
14530
14531         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
14532         out of memory case.
14533
14534 2011-10-04  Andreas Schwab  <schwab@redhat.com>
14535
14536         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
14537         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
14538         pass it down.
14539         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
14540         elf_machine_rela, elf_machine_lazy_rel.
14541         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
14542         (ELF_DYNAMIC_DO_REL): Likewise.
14543         (ELF_DYNAMIC_DO_RELA): Likewise.
14544         (ELF_DYNAMIC_RELOCATE): Likewise.
14545         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
14546         to ELF_DYNAMIC_DO_REL.
14547         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
14548         (dl_main): In trace mode always set __RTLD_NOIFUNC.
14549         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
14550         elf_machine_rela.
14551         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
14552         skip_ifunc, don't call ifunc function if non-zero.
14553         (elf_machine_rela): Likewise.
14554         (elf_machine_lazy_rel): Likewise.
14555         (elf_machine_lazy_rela): Likewise.
14556         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
14557         (elf_machine_lazy_rel): Likewise.
14558         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
14559         Likewise.
14560         (elf_machine_lazy_rel): Likewise.
14561         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14562         Likewise.
14563         (elf_machine_lazy_rel): Likewise.
14564         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
14565         (elf_machine_lazy_rel): Likewise.
14566         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
14567         (elf_machine_lazy_rel): Likewise.
14568         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
14569         (elf_machine_lazy_rel): Likewise.
14570         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
14571         (elf_machine_lazy_rel): Likewise.
14572         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
14573         (elf_machine_lazy_rel): Likewise.
14574         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
14575         (elf_machine_lazy_rel): Likewise.
14576
14577 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
14578
14579         * nss/nss_files/files-init.c (_nss_files_init): Use static
14580         initialization for all the *_traced_file variables.
14581
14582 2011-09-28  Andreas Schwab  <schwab@redhat.com>
14583
14584         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14585
14586 2011-09-27  Roland McGrath  <roland@hack.frob.com>
14587
14588         [BZ #13226]
14589         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
14590
14591 2011-09-27  Andreas Schwab  <schwab@redhat.com>
14592
14593         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
14594         Reread the line before reparsing it.
14595
14596 2011-09-26  Andreas Schwab  <schwab@redhat.com>
14597
14598         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
14599
14600 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
14601             Maxim Kuvyrkov  <maxim@codesourcery.com>
14602             Joseph Myers  <joseph@codesourcery.com>
14603
14604         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
14605         if needed for __stack_chk_guard.
14606
14607 2011-09-19  Roland McGrath  <roland@hack.frob.com>
14608
14609         * sysdeps/posix/spawni.c (script_execute): Always define it.
14610         It will be optimized away if unused.
14611         (maybe_script_execute): New function.
14612         (__spawni): Call it.
14613
14614         * Makerules: Don't include tls.make.
14615         (config-tls): Always set to thread.
14616         * tls.make.c: File removed.
14617
14618 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
14619
14620         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
14621         * config.make.in (CPPFLAGS-config): New substituted variable.
14622
14623 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14624
14625         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
14626
14627         [BZ #13192]
14628         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
14629         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
14630
14631 2011-09-15  Roland McGrath  <roland@hack.frob.com>
14632
14633         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
14634         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
14635         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14636         (CALL_FAIL): Likewise.
14637         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
14638         (CALL_FAIL): Macro removed.
14639         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
14640
14641 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
14642
14643         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
14644         for __FINITE_MATH_ONLY__ == 1.
14645
14646 2011-09-15  Andreas Schwab  <schwab@redhat.com>
14647
14648         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
14649         __ieee754_sqrt instead of sqrt.
14650         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
14651         __ieee754_sqrtf instead of sqrtf.
14652         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
14653         __floorf instead of floorf.
14654         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
14655         __floorf, __truncf instead of floorf, truncf.
14656
14657 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
14658
14659         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
14660
14661         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
14662         __extern_always_inline.
14663         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
14664         32-bit.
14665
14666 2011-09-14  Andreas Schwab  <schwab@redhat.com>
14667
14668         * elf/rtld.c (dl_main): Also relocate in dependency order when
14669         doing symbol dependency testing.
14670
14671 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
14672
14673         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14674         Always define `refsym'.
14675
14676 2011-09-13  Andreas Schwab  <schwab@redhat.com>
14677
14678         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
14679         (__FD_ELT): Renamed from __FDELT.
14680         * misc/bits/select2.h (__FD_ELT): Likewise.
14681         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
14682         __FD_MASK instead of __FDELT, __FDMASK.
14683         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14684         Likewise.
14685         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
14686         Likewise.
14687
14688         * elf/Makefile (gen-ldd): Fix pattern.
14689
14690         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
14691         (init_tls): Likewise.
14692
14693 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
14694
14695         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
14696
14697 2011-09-12  Andreas Schwab  <schwab@redhat.com>
14698
14699         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
14700         `struct cmsghdr *' instead of `void *'.
14701         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
14702         Likewise.
14703
14704 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
14705
14706         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
14707         if non-absolute.
14708         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
14709         ldd_rewrite_script.
14710
14711 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
14712
14713         * configure.in: Remove --with-tls option.
14714         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
14715         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
14716         out in case it is missing.
14717         * sysdeps/ia64/elf/configure.in: Likewise.
14718         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
14719         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
14720         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
14721         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
14722         * sysdeps/sh/elf/configure.in: Likewise.
14723         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
14724         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
14725         * sysdeps/x86_64/elf/configure.in: Likewise.
14726         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
14727         * sysdeps/mach/hurd/tls.h: Likewise.
14728
14729         [BZ #13067]
14730         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
14731
14732         [BZ #13090]
14733         * configure.in: Fix use of AC_INIT.
14734
14735         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
14736
14737 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
14738
14739         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
14740         __set_errno.
14741         * malloc/hooks.c: Likewise.
14742
14743         [BZ #11929]
14744         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
14745         variables statically.
14746         (narenas): Initialize.
14747         (list_lock): Initialize.
14748         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
14749         initializtion of main_arena and list_lock.  Small cleanups.
14750         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
14751         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
14752         Add initializers to main_arena and mp_.
14753         (malloc_state): Remove pagesize member.  Change all users to use
14754         GLRO(dl_pagesize).
14755
14756         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
14757         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
14758         is always initialized.
14759
14760         * malloc/malloc.c: Removed unused configurations and dead code.
14761         * malloc/arena.c: Likewise.
14762         * malloc/hooks.c: Likewise.
14763         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
14764
14765         * include/tls.h: Removed.  USE___THREAD must always be defined.
14766         * bits/libc-tsd.h: Don't handle !USE___THREAD.
14767         * elf/dl-libc.c: Likewise.
14768         * elf/dl-tsd.c: Likewise.
14769         * include/errno.h: Likewise.
14770         * include/netdb.h: Likewise.
14771         * include/resolv.h: Likewise.
14772         * inet/herrno-loc.c: Likewise.
14773         * inet/herrno.c: Likewise.
14774         * malloc/arena.c: Likewise.
14775         * malloc/hooks.c: Likewise.
14776         * malloc/malloc.c: Likewise.
14777         * resolv/res-state.c: Likewise.
14778         * resolv/res_libc.c: Likewise.
14779         * sysdeps/i386/dl-machine.h: Likewise.
14780         * sysdeps/ia64/dl-machine.h: Likewise.
14781         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
14782         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
14783         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
14784         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
14785         * sysdeps/sh/dl-machine.h: Likewise.
14786         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
14787         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
14788         * sysdeps/unix/i386/sysdep.S: Likewise.
14789         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
14790         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
14791         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
14792         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
14793         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
14794         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
14795         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
14796         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
14797         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14798         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
14799         * sysdeps/unix/x86_64/sysdep.S: Likewise.
14800         * sysdeps/x86_64/dl-machine.h: Likewise.
14801         * tls.make.c: Likewise.
14802
14803         * configure.in: Remove --with-__thread option.  Make tests for
14804         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
14805         tls_model attribute fail if no support is available.  Remove
14806         USE_IN_LIBIO.
14807         * Makeconfig: Adjust for dropped configure option.  All features are
14808         now mandatory.
14809         * Makerules: Likewise.
14810         * Versions.def: Likewise.
14811         * argp/argp-fmtstream.c: Likewise.
14812         * argp/argp-fmtstream.h: Likewise.
14813         * argp/argp-help.c: Likewise.
14814         * assert/assert.c: Likewise.
14815         * config.h.in: Likewise.
14816         * config.make.in: Likewise.
14817         * configure: Likewise.
14818         * configure.in: Likewise.
14819         * csu/Versions: Likewise.
14820         * csu/init.c: Likewise.
14821         * elf/tst-audit2.c: Likewise.
14822         * elf/tst-tls10.c: Likewise.
14823         * elf/tst-tls10.h: Likewise.
14824         * elf/tst-tls11.c: Likewise.
14825         * elf/tst-tls12.c: Likewise.
14826         * elf/tst-tls14.c: Likewise.
14827         * elf/tst-tlsmod11.c: Likewise.
14828         * elf/tst-tlsmod12.c: Likewise.
14829         * elf/tst-tlsmod13.c: Likewise.
14830         * elf/tst-tlsmod13a.c: Likewise.
14831         * elf/tst-tlsmod14a.c: Likewise.
14832         * elf/tst-tlsmod15b.c: Likewise.
14833         * elf/tst-tlsmod16a.c: Likewise.
14834         * elf/tst-tlsmod16b.c: Likewise.
14835         * elf/tst-tlsmod7.c: Likewise.
14836         * elf/tst-tlsmod8.c: Likewise.
14837         * elf/tst-tlsmod9.c: Likewise.
14838         * gmon/gmon.c: Likewise.
14839         * grp/fgetgrent_r.c: Likewise.
14840         * grp/putgrent.c: Likewise.
14841         * hurd/fopenport.c: Likewise.
14842         * include/libc-symbols.h: Likewise.
14843         * include/tls.h: Likewise.
14844         * intl/gettextP.h: Likewise.
14845         * intl/loadinfo.h: Likewise.
14846         * locale/global-locale.c: Likewise.
14847         * locale/localeinfo.h: Likewise.
14848         * mach/devstream.c: Likewise.
14849         * malloc/arena.c: Likewise.
14850         * malloc/set-freeres.c: Likewise.
14851         * misc/err.c: Likewise.
14852         * misc/getttyent.c: Likewise.
14853         * misc/mntent_r.c: Likewise.
14854         * posix/getopt.c: Likewise.
14855         * posix/wordexp.c: Likewise.
14856         * pwd/fgetpwent_r.c: Likewise.
14857         * resolv/Versions: Likewise.
14858         * resolv/res_hconf.c: Likewise.
14859         * shadow/fgetspent_r.c: Likewise.
14860         * shadow/putspent.c: Likewise.
14861         * stdio-common/printf_fphex.c: Likewise.
14862         * stdio-common/tmpfile.c: Likewise.
14863         * stdlib/abort.c: Likewise.
14864         * stdlib/fmtmsg.c: Likewise.
14865         * sunrpc/auth_unix.c: Likewise.
14866         * sunrpc/clnt_perr.c: Likewise.
14867         * sunrpc/clnt_tcp.c: Likewise.
14868         * sunrpc/clnt_udp.c: Likewise.
14869         * sunrpc/clnt_unix.c: Likewise.
14870         * sunrpc/openchild.c: Likewise.
14871         * sunrpc/svc_simple.c: Likewise.
14872         * sunrpc/svc_tcp.c: Likewise.
14873         * sunrpc/svc_udp.c: Likewise.
14874         * sunrpc/svc_unix.c: Likewise.
14875         * sunrpc/xdr.c: Likewise.
14876         * sunrpc/xdr_array.c: Likewise.
14877         * sunrpc/xdr_rec.c: Likewise.
14878         * sunrpc/xdr_ref.c: Likewise.
14879         * sunrpc/xdr_stdio.c: Likewise.
14880
14881 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14882
14883         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
14884
14885 2011-07-03  Andreas Jaeger  <aj@suse.de>
14886
14887         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
14888         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
14889         regenerate with gen-libm-tests.pl.
14890
14891 2010-05-12  Petr Baudis  <pasky@suse.cz>
14892
14893         [BZ #11589]
14894         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
14895         around j0() zero points by switching to j1().
14896         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
14897         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
14898         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
14899         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
14900
14901 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14902
14903         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
14904         instead of 0.
14905         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
14906         instead of 0.                              .
14907         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14908         Patch in part by Pavel Roskin <proski@gnu.org>.
14909
14910         [BZ #13138]
14911         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
14912         realloc.
14913         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
14914         Free memory block if necessary.
14915
14916         [BZ #12847]
14917         * libio/genops.c (INTDEF): For string streams the _lock pointer can
14918         be NULL.  Don't lock in this case.
14919
14920 2011-09-09  Roland McGrath  <roland@hack.frob.com>
14921
14922         * elf/elf.h (ELFOSABI_GNU): New macro.
14923         (ELFOSABI_LINUX): Define to that.
14924
14925 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
14926
14927         * string/strncat.c (strncat): Undef the symbol in case it has been
14928         defined in bits/string.h.
14929
14930 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
14931
14932         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
14933
14934         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
14935         link map.
14936
14937 2011-08-17  Andreas Jaeger  <aj@suse.de>
14938
14939         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
14940
14941 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
14942             Ian Lance Taylor  <iant@google.com>
14943
14944         * math/libm-test.inc (lround_test): New testcase.
14945         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
14946
14947 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
14948
14949         * Makefile: Remove support for automatic cvs check-ins.
14950         * Makerules: Likewise.
14951         * config.make.in: Likewise.
14952         * configure.in: Likewise.
14953         * intl/Makefile: Likewise.
14954         * locale/Makefile: Likewise.
14955         * po/Makefile: Likewise.
14956         * posix/Makefile: Likewise.
14957         * sysdeps/gnu/Makefile: Likewise.
14958         * sysdeps/mach/hurd/Makefile: Likewise.
14959         * sysdeps/sparc/sparc32/Makefile: Likewise.
14960
14961         [BZ #13118]
14962         * posix/Makefile (bug-regex32-ENV): Define.
14963         Patch by John Stanley <jpsinthemix@verizon.net>.
14964
14965         * misc/Makefile (headers): Add bits/select2.h.
14966         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
14967         * misc/bits/select2.h: New file.
14968         * include/bits/select2.h: New file.
14969         * debug/Makefile (routines): Add fdelt_chk.
14970         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
14971         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
14972         FD_ISSET.
14973         * debug/fdelt_chk.c: New file.
14974
14975         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
14976         * wcsmbs/test-wmemcmp.c: Likewise.
14977         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
14978         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
14979
14980 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14981
14982         * string/Makefile (strop-tests): Add memcmp.
14983         * string/test-wmemcmp.c: New file.
14984         * string/test-memcmp.c: Add wmemcmp support.
14985
14986 2011-09-08  Roland McGrath  <roland@hack.frob.com>
14987
14988         [BZ #13153]
14989         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
14990         2011-07-19 change.
14991
14992         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
14993         garbage value in a __mach_port_mod_refs call in the cases of the
14994         task-self and thread-self ports.
14995
14996 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14997
14998         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
14999
15000 2011-09-08  Andreas Schwab  <schwab@redhat.com>
15001
15002         * elf/dl-load.c (lose): Check for non-null L.
15003
15004 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15005
15006         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
15007
15008         * elf/dl-libc.c (dlerror_run): Pass back error code from
15009         dl_catch_error.
15010
15011         [BZ #13123]
15012         * elf/dl-load.c (lose): Free l_origin if it is valid.
15013
15014         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
15015         names.
15016         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
15017         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15018         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15019         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15020         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
15021         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
15022
15023 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15024
15025         * sysdeps/powerpc/fpu/e_hypot.c: New file.
15026         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
15027         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
15028         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
15029         * sysdeps/powerpc/fpu/k_cosf.c: New file.
15030         * sysdeps/powerpc/fpu/k_sinf.c: New file.
15031         * sysdeps/powerpc/fpu/s_cosf.c: New file.
15032         * sysdeps/powerpc/fpu/s_sinf.c: New file.
15033         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
15034         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
15035
15036 2011-08-15  Alan Modra  <amodra@gmail.com>
15037
15038         [BZ #13092]
15039         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
15040         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
15041         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
15042         ppc_mcount to static-only-routines.
15043         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
15044         __mcount_internal.
15045         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
15046         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
15047
15048 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
15049
15050         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
15051         for finite and infinity parameters.
15052
15053 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
15054
15055         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
15056         and add nop instructions for throughput optimization.
15057         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
15058
15059 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
15060
15061         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
15062         aligned copy for power7 with vector-scalar instructions.
15063         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
15064
15065 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
15066
15067         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
15068         AVX check.
15069
15070 2011-09-07  Andreas Schwab  <schwab@redhat.com>
15071
15072         [BZ #13144]
15073         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
15074         last change.
15075
15076 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
15077
15078         * sysdeps/unix/sysv/linux/x86_64/init-first.c
15079         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
15080         syscall wrapper around clock_gettime in __vdso_clock_gettime.
15081         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
15082         clock_gettime.
15083
15084 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15085
15086         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
15087         Forgot to demangle the pointer.
15088
15089         * sysdeps/i386/sysdep.h: Define atom_text_section.
15090         * sysdeps/x86_64/sysdep.h: Likewise.
15091         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
15092         section with atom_text_section.
15093         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
15094         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
15095         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
15096         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15097         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
15098
15099         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
15100         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
15101         already be defined.  Change to take two parameters and don't assign
15102         result to variable.  Adjust all users.
15103         Define INTERNAL_GETTIME if not already defined.
15104         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
15105         call.
15106         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
15107         HAVE_CLOCK_GETTIME_VSYSCALL.
15108         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
15109
15110         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
15111         gettimeofday vsyscall, just use time.
15112
15113 2011-09-06  Andreas Schwab  <schwab@redhat.com>
15114
15115         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
15116         <errno.h>.
15117
15118 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
15119
15120         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
15121         syscall on x86-64.
15122         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
15123         syscall.
15124         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
15125         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
15126         syscall if possible.
15127
15128 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15129
15130         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
15131         e_ident.  Don't pass to find_mapsXX.
15132         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
15133
15134 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15135
15136         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15137         strchr-sse2-no-bsf strrchr-sse2-no-bsf
15138         * sysdeps/x86_64/multiarch/strchr.S: Update.
15139         Check bit_slow_BSF bit.
15140         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15141         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
15142         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
15143
15144 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15145
15146         [BZ #13134]
15147         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
15148         before glibc 2.15.
15149         (tryshell): Define.
15150         (__spawni): Change last parameter to be flag.  Test
15151         SPAWN_XFLAGS_USE_PATH flag to use path or not.
15152         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
15153         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
15154         * posix/spawni.c: Likewise.
15155         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
15156         * posix/spawnp.c: Likewise.  Change normal version to use
15157         SPAWN_XFLAGS_USE_PATH.
15158         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
15159         SPAWN_XFLAGS_TRY_SHELL.
15160
15161         [BZ #13150]
15162         * posix/glob.h: Remove gcc 1.x support.
15163
15164         [BZ #13068]
15165         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
15166
15167 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15168
15169         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15170         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
15171         strrchr-sse2-bsf
15172         * sysdeps/i386/i686/multiarch/strchr.S: New file.
15173         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
15174         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
15175         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
15176         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
15177         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
15178
15179 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15180
15181         * sysdeps/x86_64/wcscmp.S: New file.
15182
15183         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
15184         wcscmp-c wcscmp-sse2
15185         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
15186         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
15187         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
15188         * wcsmbs/wcscmp.c: Allow renaming.
15189
15190 2011-09-05  David S. Miller  <davem@davemloft.net>
15191
15192         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
15193         stack slot, rather than the struct return pointer slot.
15194         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
15195         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
15196         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
15197         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
15198
15199 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
15200
15201         * po/ja.po: Update from translation team.
15202
15203         [BZ #13144]
15204         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
15205         kernel in 64-bit binaries.
15206
15207 2011-09-01  David S. Miller  <davem@davemloft.net>
15208
15209         * elf/elf.h (HWCAP_SPARC_*): Move to..
15210         * sysdeps/sparc/sysdep.h: this new file and add new values.
15211         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
15212         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
15213         _DL_HWCAP_COUNT to 24.
15214         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
15215         entries.
15216         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
15217         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
15218         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
15219         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
15220         instead of magic constants.
15221         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
15222
15223 2011-08-31  David S. Miller  <davem@davemloft.net>
15224
15225         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
15226         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
15227         Reimplement to do errno handling inline.
15228         (SYSCALL_ERROR_HANDLER): New macro.
15229         (__SYSCALL_STRING): Do not do errno handling in asm.
15230         (__CLONE_SYSCALL_STRING): Delete.
15231         (__INTERNAL_SYSCALL_STRING): Delete.
15232         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
15233         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
15234         (PSEUDO): Reimplement to do errno handling inline.
15235         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
15236         (SYSCALL_ERROR_HANDLER): New macro.
15237         (__SYSCALL_STRING): Do not do errno handling in asm.
15238         (__CLONE_SYSCALL_STRING): Delete.
15239         (__INTERNAL_SYSCALL_STRING): Delete.
15240         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
15241         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
15242         i386.
15243         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
15244         (inline_syscall*): Add 'err' argument.
15245         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
15246         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
15247         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
15248         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
15249
15250         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
15251         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
15252
15253 2011-08-30  Andreas Schwab  <schwab@redhat.com>
15254
15255         * elf/rtld.c (dl_main): Relocate objects in dependency order.
15256
15257 2011-08-29  Jiri Olsa <jolsa@redhat.com>
15258
15259         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
15260         directive.
15261
15262 2011-08-24  David S. Miller  <davem@davemloft.net>
15263
15264         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
15265
15266 2011-08-24  Andreas Schwab  <schwab@redhat.com>
15267
15268         * elf/Makefile: Add rules to build and run unload8 test.
15269         * elf/unload8.c: New file.
15270         * elf/unload8mod1.c: New file.
15271         * elf/unload8mod1x.c: New file.
15272         * elf/unload8mod2.c: New file.
15273         * elf/unload8mod3.c: New file.
15274
15275         * elf/dl-close.c (_dl_close_worker): Reset private search list if
15276         it wasn't used.
15277
15278 2011-08-23  David S. Miller  <davem@davemloft.net>
15279
15280         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
15281         subtract stack bias.
15282         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
15283         %sp not %fp in calculations.
15284         (_JMPBUF_UNWINDS_ADJ): Likewise.
15285
15286         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
15287         (aio_suspend): Call it to force an exception region around the
15288         AIO_MISC_WAIT() invocation.
15289
15290 2011-08-23  Andreas Schwab  <schwab@redhat.com>
15291
15292         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
15293         backslash.
15294
15295 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
15296
15297         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
15298         protection macro.
15299         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
15300         and <dl-machine.h>.
15301         (Elf64_FuncDesc): Remove.
15302
15303 2011-08-22  David S. Miller  <davem@davemloft.net>
15304
15305         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
15306         sigaltstack check, add missing cfi directives.
15307         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
15308         missing cfi directives, and sigaltstack handling.
15309
15310 2011-08-16  Andreas Schwab  <schwab@redhat.com>
15311
15312         [BZ #11724]
15313         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
15314         object is seen twice.
15315         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15316
15317         * elf/Makefile (distribute): Add tst-initorder2.c.
15318         (tests): Add tst-initorder2.
15319         (modules-names): Add tst-initorder2a tst-initorder2b
15320         tst-initorder2c tst-initorder2d.  Add rules to build them.
15321         ($(objpfx)tst-initorder2.out): New rule.
15322         * elf/tst-initorder2.c: New file.
15323         * elf/tst-initorder2.exp: New file.
15324
15325 2011-08-22  Andreas Schwab  <schwab@redhat.com>
15326
15327         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
15328
15329         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
15330         dependencies back to end of function.
15331
15332         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15333         $(elfobjdir)/ld.so.
15334
15335 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
15336
15337         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
15338         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
15339         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
15340         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
15341         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
15342         of __vdso_gettimeofday.
15343         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
15344         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
15345         attribute_hidden.
15346         (_libc_vdso_platform_setup): Remove initialization of
15347         __vdso_gettimeofday and __vdso_time.
15348
15349 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15350
15351         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
15352         and fgetc_unlocked.
15353         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
15354         getc_unlocked.
15355
15356         * elf/dl-open.c (add_to_global): Report additions to the global scope
15357         for LD_DEBUG=scopes.
15358         (dl_open_worker): Also print scope of newly loaded dependencies.
15359         (_dl_show_scope): Indicate if there is no scope.
15360
15361         [BZ #13114]
15362         * stdio-common/Makefile (tests): Add bug24.
15363         * stdio-common/bug24.c: New file.
15364
15365 2011-08-19  Andreas Jaeger  <aj@suse.de>
15366
15367         [BZ #13114]
15368         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
15369         non-existant file when using close-on-exec mode.
15370
15371 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
15372
15373         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
15374         the very first instruction.
15375
15376         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
15377         the CFI state in the end.
15378         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
15379         inclusion of dl-trampoline.h.
15380         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
15381
15382 2011-08-19  Andreas Schwab  <schwab@redhat.com>
15383
15384         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
15385         expectations for long double.
15386
15387         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
15388         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
15389
15390 2011-08-14  David S. Miller  <davem@davemloft.net>
15391
15392         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
15393         artificual limit depends upon the system page size.
15394
15395 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15396
15397         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
15398         * resolv/Makefile: Define CFLAGS-libresolv.
15399
15400 2011-08-17  Andreas Schwab  <schwab@redhat.com>
15401
15402         * nss/makedb.c (compute_tables): Make variables used in nested
15403         function static.
15404
15405 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
15406
15407         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
15408         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
15409         if buffer was too small.
15410
15411         * elf/pldd.c (main): Attach to all threads in the process.
15412         Rewrite /proc handling to use *at functions.
15413
15414 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
15415
15416         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
15417         specifies first scope to show.
15418         (dl_open_worker): Update callers.  Move printing scope of new
15419         object to before the relocation.
15420         * elf/rtld.c (dl_main): Update _dl_show_scope call.
15421         * sysdeps/generic/ldsodefs.h: Update declaration.
15422
15423         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
15424         string for the scope number.
15425
15426 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
15427
15428         * nscd/servicescache.c (cache_addserv): Make sure written is always
15429         initialized.
15430
15431 2011-08-14  Roland McGrath  <roland@hack.frob.com>
15432
15433         * sysdeps/i386/i486/bits/atomic.h
15434         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
15435         statement expression, so as to suppress "set but not used" warning.
15436         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
15437
15438         * string/strncat.c (STRNCAT): Use prototype definition.
15439
15440         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
15441         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
15442         -Iprograms here.
15443         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
15444         (localedef-modules): Add localedef.
15445         (locale-modules): Add locale.
15446
15447         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
15448         * elf/rtld.c (dl_main): Invert order of assignment in last change,
15449         to avoid a warning.
15450
15451 2011-08-14  David S. Miller  <davem@davemloft.net>
15452
15453         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
15454         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
15455
15456 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
15457
15458         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
15459         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
15460         * elf/rtld.c (dl_main): Set l_name of vDSO.
15461         Call _dl_show_scope when DL_DEBUG_SCOPES.
15462         (process_dl_debug): Recognize scopes flag and also set it for all.
15463         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
15464         Declare _dl_show_scope.
15465
15466         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
15467         (do_dlopen): Pass caller_dlopen to dl_open.
15468         (__libc_dlopen_mode): Initialize caller_dlopen.
15469
15470         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
15471         of libc.  Make tolower call locale-independent.  Optimize a bit by
15472         using isdigit instead of isalnum.
15473         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
15474
15475 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
15476
15477         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
15478         was a dependency or dynamically loaded.
15479
15480 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
15481
15482         * intl/l10nflist.c: Allow architecture-specific pop function.
15483         * sysdeps/x86_64/l10nflist.c: New file.
15484
15485         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
15486         classification.
15487
15488 2011-08-10  Andreas Schwab  <schwab@redhat.com>
15489
15490         * include/dirent.h: Add libc_hidden_proto for scandirat and
15491         scandirat64.  Don't declare __scandirat64.
15492         * dirent/scandirat.c: Add libc_hidden_def.
15493         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
15494         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
15495
15496 2011-08-10  David S. Miller  <davem@davemloft.net>
15497
15498         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
15499         enum.
15500         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15501         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15502         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15503
15504 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
15505
15506         * Versions.def [libc]: Add GLIBC_2.15.
15507         * dirent/Makefile (routines): Add scandirat and scandirat64.
15508         * dirent/Versions [libc]: Export scandirat and scandirat64 for
15509         GLIBC_2.15.
15510         * dirent/dirent.h: Declare scandirat and scandirat64.
15511         * dirent/scandirat.c: New file.
15512         * dirent/scandirat64.c: New file.
15513         * sysdeps/wordsize-64/scandirat.c: New file.
15514         * sysdeps/wordsize-64/scandirat64.c: New file.
15515         * dirent/opendir.c: Define opendirat.
15516         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
15517         using scandirat.
15518         * dirent/scandir64.c: Adjust for scandir.c change.
15519         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
15520         __scandirat64, and __scandir_cancel_handler.
15521         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
15522         additional parameter and use openat instead of open (outside of ld.so).
15523         Add new __opendir as wrapper around __opendirat.
15524         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
15525         here without requiring old scandirat implementation.
15526
15527 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
15528
15529         * dirent/scandir.c (cancel_handler): Renamed to
15530         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
15531         defined.  Adjust users.
15532         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
15533         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
15534
15535 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
15536
15537         * string/test-string.h (IMPL): Use __STRING to expand name and then
15538         stringify it.
15539
15540         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
15541         of cleanups.
15542
15543 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15544
15545         * string/Makefile: Update.
15546         (strop-tests): Append strncat.
15547         * string/test-wcscmp.c: New file.
15548         New comprehensive test for wcscmp.
15549         * string/test-strcmp.c: Update.
15550         (WIDE): New define.
15551
15552 2011-07-22  Andreas Schwab  <schwab@redhat.com>
15553
15554         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
15555         line.
15556
15557 2011-07-26  Andreas Schwab  <schwab@redhat.com>
15558
15559         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
15560         encoding to ACE if AI_IDN.
15561
15562 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
15563
15564         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
15565         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
15566
15567 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15568
15569         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
15570         Fix overflow bug in strncat.
15571         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
15572
15573         * string/test-strncat.c: Update.
15574         Add new tests for checking overflow bugs.
15575
15576 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15577
15578         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15579         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
15580         * sysdeps/i386/i686/multiarch/strcat.S: New file.
15581         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
15582         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
15583         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
15584         * sysdeps/i386/i686/multiarch/strncat.S: New file.
15585         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
15586         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
15587
15588         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
15589         (USE_AS_STRCAT): Define.
15590         Add strcat and strncat support.
15591         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
15592
15593 2011-07-25  Andreas Schwab  <schwab@redhat.com>
15594
15595         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
15596         __n bigger than INT_MAX+1.
15597         (__strncmp_g): Likewise.
15598
15599 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
15600
15601         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
15602         * libio/stido.h: Likewise.
15603
15604         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
15605         (AF_NFC): Define.
15606         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
15607         (AF_NFC): Define.
15608
15609         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
15610         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
15611         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
15612         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
15613         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
15614
15615         [BZ #13021]
15616         * scripts/test-installation.pl: Don't expect libnss_test1 to be
15617         installed.
15618
15619         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
15620         typo.
15621         (_dl_x86_64_save_sse): Likewise.
15622
15623 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
15624
15625         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
15626         OSXSAVE.
15627         (_dl_x86_64_save_sse): Likewise.
15628
15629         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
15630
15631         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
15632
15633 2011-07-21  Andreas Schwab  <schwab@redhat.com>
15634
15635         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
15636         change.
15637         (_dl_x86_64_save_sse): Use correct AVX check.
15638
15639 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15640
15641         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
15642         bug in strncpy/strncat.
15643         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
15644
15645 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
15646
15647         * string/tester.c (test_strcat): Add tests for different alignments
15648         of source and destination.
15649         (test_strncat): Likewise.
15650
15651 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15652
15653         [BZ #12852]
15654         * posix/glob.c (glob): Check passed in values before using them in
15655         expressions to avoid some overflows.
15656         (glob_in_dir): Likewise.
15657
15658         [BZ #13007]
15659         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
15660         check for AVX enablement so that we don't crash with old kernels and
15661         new hardware.
15662         * elf/tst-audit4.c: Add same checks here.
15663         * elf/tst-audit6.c: Likewise.
15664
15665         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
15666
15667 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
15668
15669         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
15670
15671 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
15672
15673         * po/cs.po: Update from translation team.
15674         * po/bg.po: Likewise.
15675
15676 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
15677
15678         * misc/sys/cdefs.h: Add support for const attribute.
15679         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
15680         to gnu_dev_{major,minor,makedev} functions.
15681
15682 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
15683
15684         * intl/dcigettext.c (get_output_charset): Add missing bracket.
15685
15686 2011-07-20  Andreas Schwab  <schwab@redhat.com>
15687
15688         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
15689         strlen results.
15690
15691 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15692
15693         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
15694         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
15695         register in order to avoid conflicts with the soft frame pointer
15696         being held in r11 when necessary.
15697         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
15698         (INTERNAL_VSYSCALL_NCS): Likewise.
15699
15700 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
15701
15702         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
15703         * elf/dl-fini.c (_dl_fini): Adjust caller.
15704         * elf/dl-close.c (_dl_close_worker): Likewise.
15705         * sysdeps/generic/ldsodefs.h: Adjust declaration.
15706
15707 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15708
15709         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
15710         "aux_cache->nlibs < 0".
15711
15712         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
15713         in the reload-count case.
15714
15715 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
15716
15717         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15718         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
15719         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
15720         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
15721         * sysdeps/x86_64/multiarch/strcat.S: New file.
15722         * sysdeps/x86_64/multiarch/strncat.S: New file.
15723         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
15724         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
15725         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
15726         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
15727         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
15728         (USE_AS_STRCAT): Define.
15729         Add strcat and strncat support.
15730         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
15731         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
15732         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
15733         * string/strncat.c: Update.
15734         (USE_AS_STRNCAT): Define.
15735         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15736         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
15737         and i7.
15738         * sysdeps/x86_64/multiarch/init-arch.h
15739         (bit_Prefer_PMINUB_for_stringop): New.
15740         (index_Prefer_PMINUB_for_stringop): Likewise.
15741         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
15742         bit_Prefer_PMINUB_for_stringop.
15743
15744 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15745
15746         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
15747         buffer64.
15748         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
15749         of casting of buffer.
15750         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
15751         buffer32 and buffer64.
15752         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
15753         writes instead of casting of buffer.
15754         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
15755         buffer32.
15756         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
15757         casting of buffer.
15758
15759 2011-07-19  Andreas Schwab  <schwab@redhat.com>
15760
15761         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
15762
15763 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
15764
15765         * nscd/nscd.c (termination_handler): Don't do anything for a database
15766         if it has not yet been initialized.
15767
15768 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15769
15770         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15771
15772 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
15773
15774         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
15775
15776 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
15777
15778         * po/nl.po: Update from translation team.
15779         * po/sv.po: Likewise.
15780
15781 2011-07-16  Roland McGrath  <roland@hack.frob.com>
15782
15783         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
15784         now disallowed by GCC.
15785
15786         * configure.in (use-default-link): Default to yes if a test -shared
15787         link meets our qualifications.
15788         * configure: Regenerated.
15789
15790         * config.make.in (output-format): New variable.
15791         * configure.in: Check for ld --print-output-format support.
15792         * configure: Regenerated.
15793         * Makerules ($(common-objpfx)format.lds)
15794         [$(output-format) != unknown]: Just use $(output-format),
15795         instead of the linker-script munging.
15796
15797 2011-07-14  Roland McGrath  <roland@hack.frob.com>
15798
15799         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
15800         of $(common-objpfx)shlib.lds.
15801         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
15802
15803         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
15804         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
15805
15806         * configure.in (-z relro check): Adjust test code to add a large
15807         writable data section after it.
15808         * configure: Regenerated.
15809
15810 2011-07-11  Roland McGrath  <roland@hack.frob.com>
15811
15812         * configure.in (-z relro check): Fix test code to make the variable
15813         truly const.
15814         * configure: Regenerated.
15815
15816 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
15817
15818         * nscd/nscd.h (struct traced_file): Define.
15819         (struct database_dyn): Remove inotify_descr, reset_res, and filename
15820         elements.  Add traced_files.
15821         (inotify_fd): Declare.
15822         (register_traced_file): Declare.
15823         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
15824         (inotify_fd): Export.
15825         (resolv_conf_descr): Remove.
15826         (nscd_init): Move inotify descriptor creation to main.
15827         Don't register files for notification here.
15828         (register_traced_file): New function.
15829         (invalidate_cache): Don't use reset_res to determine whether to call
15830         res_init, go through the list of registered files.
15831         (main_loop_poll): The inotify descriptors are now stored in the
15832         structures for the traced files.
15833         (main_loop_epoll): Likewise
15834         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
15835         to __nss_disable_nscd.
15836         * nscd/cache.c (prune_cache): There is no single inotify descriptor
15837         for a database anymore.  Check the records for all the registered
15838         files instead.
15839         * nss/Makefile (libnss_files-routines): Add files-init.
15840         (libnss_db-routines): Add db-init.
15841         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
15842         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
15843         * nss/nss_db/db-init.c: New file.
15844         * nss/nss_files/files-init.c: New file.
15845         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
15846         __nss_lookup_function.
15847         (__nss_lookup_function): Call nss_load_library.
15848         (nss_load_all_libraries): New function.
15849         (__nss_disable_nscd): Take parameter with callback function for files
15850         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
15851         used for the cached services.
15852         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
15853         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
15854         options for features to all the files in nscd.
15855
15856         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
15857
15858 2011-07-10  Roland McGrath  <roland@hack.frob.com>
15859
15860         * csu/elf-init.c (__libc_csu_init): Comment typo.
15861
15862 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
15863
15864         * po/pl.po: Update from translation team.
15865         * po/ja.po: Likewise.
15866         * po/ru.po: Likewise.
15867         * po/ko.po: Likewise.
15868         * po/fr.po: Likewise.
15869
15870 2011-07-09  Roland McGrath  <roland@hack.frob.com>
15871
15872         * configure.in (.ctors/.dtors header and trailer check):
15873         Use an empirical test on a built program.
15874         * configure: Regenerated.
15875
15876         * configure.in (-z relro check): Use an empirical test on a built DSO.
15877         Detect, but do not require, on ia64.
15878         * configure: Regenerated.
15879
15880         * configure.in (READELF): Find it with AC_CHECK_TOOL.
15881         Update tests that use readelf to use $READELF instead.
15882         * configure: Regenerated.
15883
15884 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
15885
15886         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
15887         if the result is not used.
15888
15889 2011-07-05  Andreas Jaeger  <aj@suse.de>
15890
15891         [BZ#9696]
15892         * stdlib/tst-strtod.c: Add testcase.
15893
15894 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
15895
15896         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
15897         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
15898         The latter has a higher limit.  Take additional parameter to pass to
15899         the new function.
15900         (__pathconf): Pass file to __statfs_link_max.
15901         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
15902         __statfs_link_max.
15903         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
15904         __statfs_link_max.
15905
15906         [BZ #12868]
15907         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
15908         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15909         Handle Lustre.
15910         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
15911         (__statfs_filesize_max): Likewise.
15912         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
15913
15914 2011-07-05  Andreas Jaeger  <aj@suse.de>
15915
15916         * resolv/res_comp.c (dn_skipname): Remove unused variable.
15917
15918 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
15919
15920         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
15921         `status' variable.
15922         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
15923         Likewise.
15924
15925 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
15926
15927         * Makefile (strop-tests): Add strncat.
15928         * string/test-strncat.c: New file.
15929
15930 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
15931
15932         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
15933
15934 2011-06-21  Andreas Jaeger  <aj@suse.de>
15935
15936         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
15937         Copy rule from iconvdata/Makefile.
15938
15939 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15940
15941         [BZ #12922]
15942         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
15943         but no long options are defined, just return 'W'.
15944
15945 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
15946
15947         [BZ #9696]
15948         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
15949
15950 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
15951
15952         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
15953         netgroups to read.
15954         (innetgr): Likewise.
15955
15956 2011-07-05  Roland McGrath  <roland@hack.frob.com>
15957
15958         * config.make.in (install_root): Default to $(DESTDIR).
15959
15960 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
15961
15962         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
15963
15964 2011-07-02  Roland McGrath  <roland@hack.frob.com>
15965
15966         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
15967
15968         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
15969         containing directory rather than embedding absolute directory names.
15970
15971         * scripts/check-local-headers.sh: Rewritten using awk.
15972         Match by word, not by line.  Print error messages for matches.
15973         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
15974
15975         * Makerules [shlib-lds-flags empty]:
15976         ($(common-objpfx)libc_pic.opts): New target.
15977         ($(common-objpfx)libc_pic.os.clean): New target.
15978         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
15979
15980         * config.make.in (OBJCOPY): New variable.
15981         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
15982         * configure: Regenerated.
15983
15984         * config.make.in (use-default-link): New variable.
15985         * configure.in (use_default_link): Grok --with-default-link to set it.
15986         * configure: Regenerated.
15987         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
15988         (shlib-lds, shlib-lds-flags): Define to empty.
15989
15990         * Makerules (shlib-lds): New variable.
15991         (shlib-lds-flags): New variable.
15992         (build-shlib, build-moduile, build-module-asneeded): Use it.
15993         ($(common-objpfx)libc.so): Use $(shlib-lds).
15994         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
15995         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
15996
15997         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
15998         DT_FLAGS/DT_FLAGS_1 with zero flags.
15999
16000         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
16001         linker script munging.
16002
16003 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
16004
16005         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
16006         as 128-bit value.
16007         * crypt/sha512.c (sha512_process_block): Perform total addition using
16008         128-bit if possible.
16009         (__sha512_finish_ctx): Likewise.
16010         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
16011         as 64-bit value.
16012         * crypt/sha256.c (SWAP64): Define.
16013         (sha256_process_block): Perform total addition using 64-bit if
16014         possible.
16015         (__sha256_finish_ctx): Likewise.
16016
16017 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
16018
16019         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
16020         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16021         * nscd/hstcache.c (cache_addhst): Likewise.
16022         * nscd/grpcache.c (cache_addgr): Likewise.
16023         * nscd/aicache.c (addhstaiX): Likewise
16024         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
16025
16026 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
16027
16028         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
16029         * nscd/initgrcache.c (addinitgroupsX): Likewise.
16030         * nscd/hstcache.c (cache_addhst): Likewise.
16031         * nscd/grpcache.c (cache_addgr): Likewise.
16032         * nscd/aicache.c (addhstaiX): Likewise
16033
16034 2011-07-01  Andreas Schwab  <schwab@redhat.com>
16035
16036         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
16037         domain only when needed.
16038
16039 2011-06-30  Andreas Schwab  <schwab@redhat.com>
16040
16041         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
16042         is always restored.
16043
16044 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
16045
16046         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
16047         are re-adding the entry.
16048         * nscd/servicescache.c (cache_addserv): Likewise.
16049
16050 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
16051
16052         * sysdeps/generic/dl-irel.h: fix protection against multiple
16053         inclusions.
16054         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
16055
16056 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
16057
16058         [BZ #12935]
16059         * malloc/memusage.sh: Fix quoting in message.
16060         * debug/xtrace.sh: Likewise.
16061
16062         * configure.in: Remove support for --experimental-malloc option, make
16063         it the default.
16064         * config.make.in: Likewise.
16065         * malloc/Makefile: Likewise.
16066
16067 2011-06-27  Andreas Schwab  <schwab@redhat.com>
16068
16069         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
16070         two-byte characters.
16071
16072 2011-06-27  Roland McGrath  <roland@hack.frob.com>
16073
16074         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
16075         AC_CACHE_CHECK invocation.
16076         * configure: Regenerated.
16077
16078         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
16079
16080 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
16081
16082         [BZ #12350]
16083         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
16084         bit from old_res_options.
16085
16086         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
16087
16088         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
16089         value type for setfct.
16090
16091 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
16092
16093         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16094         __gettimeofday instead of gettimeofday.
16095
16096 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
16097
16098         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
16099
16100 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
16101
16102         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
16103
16104         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
16105         info.
16106
16107 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16108
16109         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
16110         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16111         strcpy-sse2-unaligned strncpy-sse2-unaligned
16112         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
16113         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
16114         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
16115         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
16116         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
16117         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
16118         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
16119         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
16120         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
16121         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
16122         (STRCPY): Support SSE2 and SSSE3 versions.
16123
16124 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
16125
16126         [BZ #12874]
16127         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
16128         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
16129         kernels which artificially limit size of requests.
16130
16131 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
16132
16133         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
16134         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
16135         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
16136         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
16137         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
16138         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
16139         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
16140         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
16141         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
16142         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
16143         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
16144         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
16145         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
16146         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
16147         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
16148         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16149         Enable unaligned load optimization for Intel Core i3, i5 and i7
16150         processors.
16151         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
16152         Define.
16153         (index_Fast_Unaligned_Load): Define.
16154         (HAS_FAST_UNALIGNED_LOAD): Define.
16155
16156 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
16157
16158         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
16159
16160 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16161
16162         [BZ #12907]
16163         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
16164         until it is clear that the information is realy needed.
16165         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
16166
16167 2011-06-22  Andreas Schwab  <schwab@redhat.com>
16168
16169         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
16170
16171 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
16172
16173         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
16174         /sys/devices/system/cpu/online if it is usable.
16175
16176         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
16177         reading the information from the /proc filesystem to once a second.
16178
16179 2011-06-21  Andreas Jaeger  <aj@suse.de>
16180
16181         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
16182         NULL after inclusion of kernel headers.
16183
16184 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
16185
16186         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
16187         calls to internal_setent.
16188
16189         [BZ #12885]
16190         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
16191         addresses using gethostbyname4_r ignore IPv4 addresses.
16192
16193         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
16194         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
16195
16196         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
16197
16198 2011-06-20  David S. Miller  <davem@davemloft.net>
16199
16200         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
16201         inclusions.
16202         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
16203
16204         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
16205         (elf_irel): Use it.
16206         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
16207         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
16208         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
16209         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
16210         * sysdeps/x86_64/dl-irel.h: Likewise.
16211
16212         * elf/dl-runtime.c: Use elf_ifunc_invoke.
16213         * elf/dl-sym.c: Likewise.
16214
16215 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16216
16217         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
16218         need to dereference resplen2.
16219
16220 2011-06-14  Andreas Schwab  <schwab@redhat.com>
16221
16222         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
16223
16224 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
16225
16226         * Makeconfig: Define vardbdir and inst_vardbdir.
16227         * nss/Makefile: Add rules to install db-Makefile.
16228
16229         * nss/nss_db/db-XXX.c: Cleanup.
16230
16231         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
16232         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
16233         GLIBC_PRIVATE.
16234         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
16235         * nss/makedb.c: Implement -g option to specify that value strings
16236         are generated and should not be added to table iterated over for
16237         get*ent calls.
16238         * nss/nss_db/db-initgroups.c: New file.
16239
16240         * nss/getent.c: Add support for initgroups lookups through getgrouplist
16241         interface.
16242
16243         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
16244         (internal_getgrouplist): Adjust to name change.
16245         Update use_initgroups_entry if this is not the first call.
16246         * nss/databases.def: Add initgroups entry.
16247
16248         * nss/makedb.c (compute_tables): Check result of multiple hash table
16249         sizes to minimize maximum chain length.
16250
16251 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
16252
16253         * Versions.def: Add entry for libnss_db.
16254         * shlib-versions: Likewise.
16255         * nss/Makefile: Add rules to build libnss_db.
16256         * nss/Versions: Add libnss_db information.  Organize libnss_files
16257         entries better.
16258         * nss/db-Makefile: Add gshadow support.  Change rules for the new
16259         makedb progra.  Some minor improvements to generate smaller files.
16260         * nss/nss_db/nss_db.h: Move NSS database header data structures to
16261         here from...
16262         * nss/makedb.c: ...here.
16263         Improve database format to be smaller and require less memory at
16264         runtime.
16265         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
16266         db anymore.
16267         * nss/nss_db/db-netgrp.c: Likewise.
16268         * nss/nss_db/db-open.c: Likewise.
16269         * nss/nss_files/flies-XXX.x: Adjust comments.
16270         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
16271         * nss/nss_files/files-grp.c: Likewise.
16272         * nss/nss_files/files-hosts.c: Likewise.
16273         * nss/nss_files/files-network.c: Likewise.
16274         * nss/nss_files/files-proto.c: Likewise.
16275         * nss/nss_files/files-pwd.c: Likewise.
16276         * nss/nss_files/files-rpc.c: Likewise.
16277         * nss/nss_files/files-service.c: Likewise.
16278         * nss/nss_files/files-sgrp.c: Likewise.
16279         * nss/nss_files/files-spwd.c: Likewise.
16280         * nss/nss_db/db-alias.c: Removed.
16281         * nss/nss_db/dummy-db.h: Removed.
16282
16283 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
16284
16285         * nss/makedb.c: Rewritten to not use database library.
16286         * nss/Makefile: Update to build new makedb program.
16287
16288 2011-06-14  Andreas Jaeger  <aj@suse.de>
16289
16290         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
16291         memset declaration.
16292
16293 2011-06-10  Andreas Schwab  <schwab@redhat.com>
16294
16295         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
16296         tmpbuf.
16297
16298 2011-06-10  Roland McGrath  <roland@hack.frob.com>
16299
16300         * Makerules (shlib.lds): Fail if the linker script comes out empty.
16301         * elf/Makefile ($(objpfx)ld.so): Likewise.
16302
16303         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
16304         Don't list ld.so twice in dependencies.
16305
16306         * posix/bug-regex31.c: Include <stdlib.h>.
16307
16308         * nscd/hstcache.c (cache_addhst): Remove unused variable.
16309
16310         * nis/nss_compat/compat-spwd.c
16311         (getspent_next_nss_netgr): Remove unused variable.
16312         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
16313
16314         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
16315         nonmembers" output to use the right array.
16316
16317         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
16318
16319         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
16320
16321         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
16322         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
16323         * catgets/gencat.c (read_input_file): Likewise.
16324         * locale/programs/locarchive.c (enlarge_archive): Likewise.
16325
16326         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
16327         variable definition inside #if's controlling its use.
16328
16329         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
16330
16331         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
16332
16333         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
16334
16335         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
16336         unreachable code.
16337
16338         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
16339
16340         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
16341         * configure: Regenerated.
16342
16343         * Makerules: Revert last change.
16344         * elf/Makefile: Likewise.
16345
16346 2011-06-09  Roland McGrath  <roland@hack.frob.com>
16347
16348         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
16349         * elf/Makefile ($(objpfx)librtld.os): Likewise.
16350         (reloc-link): Likewise.
16351
16352 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
16353
16354         * elf/Makefile: Add rules to build pldd.
16355         * elf/pldd.c: New file.
16356         * elf/pldd-xx.c: New file.
16357
16358 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
16359
16360         * version.h: Update for 2.15 development version.
16361
16362 2011-06-07  David S. Miller  <davem@davemloft.net>
16363
16364         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
16365         ifuncs.
16366         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
16367         elf_machine_lazy_rel): Likewise.
16368         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
16369         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
16370         elf_machine_lazy_rel): Likewise.
16371         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
16372         dl_hwcap via passed in argument.
16373         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
16374         Likewise.
16375
16376 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16377
16378         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
16379
16380 2011-06-06  Roland McGrath  <roland@hack.frob.com>
16381
16382         [BZ #12849]
16383         * manual/fdl-1.1.texi: New file, verbatim from:
16384         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
16385         * manual/lgpl-2.1.texi: New file, verbatim from:
16386         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
16387         * manual/Makefile (licenses): New variable, list those new file names.
16388         (texis): Use it.
16389         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
16390
16391         * manual/fdl.texi: File removed.
16392         * manual/lesser.texi: File removed.
16393         * manual/libc.texinfo (Copying, Documentation License):
16394         Use new @include file names, put @appendix directive before @include.
16395
16396 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
16397
16398         [BZ #12841]
16399         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
16400         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
16401         (mq_open): Add __NTH.
16402
16403 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
16404
16405         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
16406         Assume Intel Core i3/i5/i7 processor if AVX is available.
16407
16408 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16409
16410         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16411         typo.
16412
16413 2011-05-31  Andreas Schwab  <schwab@redhat.com>
16414
16415         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
16416         memory.  Use alloca_account.  Fix memory leak when retrying.
16417
16418 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
16419
16420         * version.h (RELEASE): Bump for 2.14 release.
16421         * include/features.h (__GLIBC_MINOR__): Bump to 14.
16422
16423         * config.make.in (RANLIB): Remove entry.
16424
16425 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
16426
16427         * po/Makefile (po-sed-cmd): Add ksh to extensions.
16428         (libc.pot): Work around missing support for .ksh extension in xgettext.
16429
16430         [BZ #12684]
16431         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
16432         if both request failed.
16433         (send_dg): In case of server errors clear resplen or *resplen2.
16434
16435         [BZ #12454]
16436         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
16437         when there are multiple maps.
16438         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
16439         (_dl_fini): Remove test here.
16440
16441         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
16442
16443 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
16444
16445         [BZ #12350]
16446         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
16447         bit from old_res_options.
16448         (gaih_inet): Likewise.
16449
16450         [BZ #11099]
16451         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
16452         as signed.
16453
16454         * resolv/res_init.c (res_setoptions): Make the code more compact.
16455
16456         [BZ #11558]
16457         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
16458         set RES_USEVC.
16459
16460         [BZ #11634]
16461         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
16462
16463         * malloc/malloc.h: Mark malloc hook variables as deprecated.
16464
16465         [BZ #11781]
16466         * malloc/malloc.h: Declare malloc hook variables as volatile.
16467
16468         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
16469         in last patch.
16470
16471         [BZ #11799]
16472         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
16473         raise in the comment.
16474         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
16475         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
16476         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
16477
16478 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
16479
16480         [BZ #12811]
16481         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
16482         grow the buffers more if it already has to be sufficient.
16483         (build_wcs_upper_buffer): Likewise.
16484         * posix/regexec.c (check_matching): Likewise.
16485         (clean_state_log_if_needed): Likewise.
16486         (extend_buffers): Don't enlarge buffers beyond size of the input
16487         buffer.
16488         Patches mostly by Emil Wojak <emil@wojak.eu>.
16489         * posix/bug-regex32.c: New file.
16490         * posix/Makefile (tests): Add bug-regex32.
16491
16492         * locale/findlocale.c (_nl_find_locale): Return right away if
16493         _nl_explode_name failed.
16494         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
16495
16496         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
16497
16498         * debug/xtrace.sh: Unify messages.
16499         * malloc/memusage.sh: Likewise.
16500
16501         [BZ #12813]
16502         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
16503         time symbol from vDSO.  Substitute with vsyscall if not available.
16504         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
16505         __vdso_time.
16506
16507         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
16508         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
16509         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
16510         Add sendmmsg and internal_sendmmsg.
16511         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
16512         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
16513         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
16514
16515         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
16516         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
16517         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
16518
16519 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
16520
16521         [BZ #12813]
16522         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
16523         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
16524         available.
16525         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
16526         __vdso_getcpu.
16527
16528         [BZ #12814]
16529         * iconvdata/Makefile (tests): Add bug-iconv9.
16530         * iconvdata/bug-iconv9.c: New file.
16531
16532 2011-05-27  Andreas Schwab  <schwab@redhat.com>
16533
16534         [BZ #12814]
16535         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
16536
16537 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
16538
16539         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16540         (struct user_regs_struct): Change intcs field back to cs.
16541
16542 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
16543
16544         * po/ja.po: Update from translation team.
16545
16546 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
16547
16548         [BZ #12795]
16549         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
16550         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
16551
16552 2011-05-20  Andreas Schwab  <schwab@redhat.com>
16553
16554         * stdlib/longlong.h: Update from GCC.
16555
16556 2011-05-23  Andreas Schwab  <schwab@redhat.com>
16557
16558         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
16559         parameter name.
16560         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
16561         Add parameter name.
16562         (__sysconf): Pass it down.
16563
16564 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
16565
16566         [BZ #12671]
16567         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
16568         some situations.
16569         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
16570         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
16571         add in in __libc_use_alloca calls.  Adjust callers.
16572         (glob): Use malloc in some situations.
16573
16574         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
16575         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
16576         pltexit.
16577
16578 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
16579
16580         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
16581         and CLOCK_BOOTTIME_ALARM.
16582
16583         [BZ #12782]
16584         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
16585         is returned.
16586
16587         * string/_strerror.c (__strerror_r): Print negative errors as signed
16588         numbers.
16589
16590         [BZ #12777]
16591         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
16592         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
16593         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
16594
16595         * configure.in: Fix typo in redirection and correct removal of test
16596         files in two cases.
16597
16598         [BZ #12788]
16599         * locale/setlocale.c (new_composite_name): Fix test to check for
16600         identical name of all categories.
16601
16602         [BZ #12792]
16603         * libio/filedoalloc.c (local_isatty): New function.
16604         (_IO_file_doallocate): Use local_isatty.
16605         * stdio-common/perror.c (perror): In case a new stream is used
16606         forward the stream error.
16607         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
16608         error flag.
16609
16610 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
16611
16612         [BZ #11869]
16613         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
16614         alloca.
16615         * include/alloca.h (extend_alloca_account): Define.
16616
16617         [BZ #11857]
16618         * posix/regex.h: Fix comments with documentation of user-accessible
16619         fields after compilation and describe correct free'ing of pattern
16620         after re_compile_pattern.
16621         Patch by Reuben Thomas <rrt@sc3d.org>.
16622
16623 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
16624
16625         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
16626         and -mno-altivec to prevent the compiler from using Altivec and/or
16627         VSX instructions when the corresponding registers are not available.
16628
16629 2011-05-19  Andreas Schwab  <schwab@redhat.com>
16630
16631         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
16632
16633 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
16634
16635         * libio/freopen.c (freopen): Use __dup2, not dup2.
16636         * libio/freopen64.c (freopen64): Likewise.
16637
16638 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16639
16640         [BZ #12775]
16641         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
16642         * math/Makefile (tests): Add test-powl.
16643         (CFLAGS-test-powl.c): Define.
16644         * math/test-powl.c: New file.
16645
16646 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
16647
16648         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
16649
16650 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
16651
16652         [BZ #11837]
16653         * iconvdata/gb18030.c: Update to GB18020-2005.
16654
16655 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
16656
16657         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
16658         RE_SYNTAX_POSIX_AWK): Update to match recent development.
16659         Patch by Aharon Robbins <arnold@skeeve.com>.
16660
16661         [BZ #11892]
16662         * stdlib/putenv.c (putenv): Don't always create copy of the variable
16663         on the stack.
16664
16665         [BZ #11895]
16666         * misc/pselect.c (__pselect): Handle timeout value errors hidden
16667         through underflows.
16668
16669         [BZ #12766]
16670         * misc/error.c (error_at_line): Ensure file_name and old_file_name
16671         point to strings before performing equality test for error_one_per_line
16672         mode.
16673
16674         [BZ #11697]
16675         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
16676
16677         [BZ #11820]
16678         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
16679         (struct user_fpregs_struct): Avoid __uint*_t types.
16680
16681         [BZ #6420]
16682         * malloc/mtrace.c (tr_where): Add additional parameter to point to
16683         symbol info.  Use it instead of calling _dl_addr locally.
16684         (lock_and_info): New function.
16685         (tr_freehook): Call lock_and_info and pass symbol info as additional
16686         parameter to tr_where.
16687         (tr_mallochook): Likewise.
16688         (tr_reallochook): Likewise.
16689         (tr_memalignhook): Likewise.
16690
16691         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
16692         used and couldn't be at all thread-safe.
16693
16694 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
16695
16696         * libio/freopen.c (freopen): Don't close old file descriptor
16697         before the new one is opened.  Instead dup the new file descriptor
16698         to the old one after the new stream is created.
16699         * libio/freopen64.c (freopen64): Likewise.
16700         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
16701         * libio/fileops.c (_IO_new_file_close_it): Handle new
16702         _IO_FLAGS2_NOCLOSE flag.
16703         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
16704         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
16705         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
16706         _IO_FLAGS2_NOCLOSE flag.
16707         * include/unistd.h: Add hidden_proto for dup3.
16708         Define __have_dup3.
16709         * io/dup3.c: Define hidden symbol.
16710         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
16711
16712         [BZ #7101]
16713         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
16714         when an incomplete long option is used.
16715         * posix/tst-getopt_long1.c: New file.
16716         * posix/Makefile (tests): Add tst-getopt_long1.
16717
16718         [BZ #10138]
16719         * scripts/config.guess: Update from autoconf-2.68.
16720         * scripts/config.sub: Likewise.
16721
16722         [BZ #10157]
16723         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
16724         tests into ...
16725         (has_cpuclock): ...this.  New function.
16726         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
16727         macro here based on has_cpuclock code.
16728
16729         [BZ #10149]
16730         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16731         First byte (not low byte) is now always NUL.
16732         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
16733
16734         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16735         Use non-cancelable interfaces.
16736
16737         [BZ #9809]
16738         * locale/iso-639.def: Add entry for Sorani.
16739
16740         [BZ #11901]
16741         * include/stdlib.h: Move include protection to the right place.
16742         Define abort_msg_s.  Declare __abort_msg with it.
16743         * stdlib/abort.c (__abort_msg): Adjust type.
16744         * assert/assert.c (__assert_fail_base): New function.  Majority
16745         of code from __assert_fail.  Allocate memory for __abort_msg with
16746         mmap.
16747         (__assert_fail): Now call __assert_fail_base.
16748         * assert/assert-perr.c: Remove bulk of implementation.  Use
16749         __assert_fail_base.
16750         * include/assert.hL Declare __assert_fail_base.
16751         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
16752         mmap.
16753         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
16754
16755 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
16756
16757         [BZ #11952]
16758         [BZ #12453]
16759         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
16760         until all modules are registered in the DTV.
16761         * elf/Makefile: Add rules to build and run tst-tls19.
16762         * elf/tst-tls19.c: New file.
16763         * elf/tst-tls19mod1.c: New file.
16764         * elf/tst-tls19mod2.c: New file.
16765         * elf/tst-tls19mod3.c: New file.
16766         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
16767
16768         [BZ #12083]
16769         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
16770         correctly.
16771
16772         [BZ #12601]
16773         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
16774         two-byte sequence errors.
16775         * iconvdata/Makefile (tests): Add bug-iconv8.
16776         * iconvdata/bug-iconv8.c: New file.
16777
16778         [BZ #12626]
16779         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
16780         buf2 definition.
16781
16782         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
16783
16784         [BZ #12432]
16785         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
16786         (dummy_getcfa): New function.
16787         (init): Get _Unwind_GetCFA address, use dummy if not found.
16788         (backtrace_helper): In recursion check, also check whether CFA changes.
16789         (__backtrace): Completely initialize arg.
16790
16791         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
16792         storing incomplete byte sequence in state object.  Avoid testing for
16793         guaranteed too small input if we know there is enough data available.
16794
16795 2011-05-11  Andreas Schwab  <schwab@redhat.com>
16796
16797         * Makeconfig (+link-pie): Indent.
16798         * Rules (binaries-pie): Define if $(have-fpie) and
16799         $(build-shared).
16800         (binaries-shared): Also filter out $(binaries-pie).
16801         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
16802         * nscd/Makefile (others-pie): Add nscd.
16803         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
16804         ($(objpfx)nscd): Remove command override.
16805         * login/Makefile (others-pie): Add pt_chown.
16806         ($(objpfx)pt_chown): Remove command override.
16807         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
16808         remove command overrides.
16809
16810 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
16811
16812         * libio/tst_putwc.c: Fix error messages.
16813
16814         [BZ #12724]
16815         * libio/fileops.c (_IO_new_file_close_it): Always flush when
16816         currently writing and seek to current position when not.
16817         * libio/Makefile (tests): Add bug-fclose1.
16818         * libio/bug-fclose1.c: New file.
16819
16820 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
16821
16822         [BZ #12511]
16823         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
16824         don't set DF_1_NODELETE here.
16825         (do_lookup_x): When entering new entry test for copy relocation
16826         and if necessary set DF_1_NODELETE flag.
16827         * elf/tst-unique4.cc: New file.
16828         * elf/tst-unique4.h: New file.
16829         * elf/tst-unique4lib.cc: New file.
16830         * elf/Makefile: Add rules to build and run tst-unique4.
16831         Patch by Piotr Bury <pbury@goahead.com>.
16832
16833 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
16834
16835         [BZ #12052]
16836         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
16837
16838         [BZ #12625]
16839         * misc/mntent_r.c (addmntent): Flush the stream after the output
16840
16841         [BZ #12393]
16842         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
16843         (is_trusted_path_normalize): Skip initial colon.  Append slash
16844         to empty buffer.  Duplicate is_trusted_path code but allow
16845         constructed patch to be prefix.
16846         (is_dst): Allow $ORIGIN followed by /.
16847         (_dl_dst_substitute): Correct clearing of check_for_trusted.
16848         Correct testing of result of is_trusted_path_normalize
16849         (decompose_rpath): Fix warning.
16850
16851 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
16852
16853         [BZ #11257]
16854         * grp/initgroups.c (internal_getgrouplist): When we found the service
16855         list through the initgroups entry in nsswitch.conf do not always
16856         continue on a successful lookup.  Don't always use the
16857         __nss_group_database value if it is set.
16858         * nss/nsswitch.conf (initgroups): Change action for successful db
16859         lookup to continue for compatibility.
16860
16861 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
16862
16863         [BZ #11532]
16864         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
16865         and CP774 modules.
16866         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
16867         and CP774 modules.
16868         * iconvdata/tst-tables.sh: Likewise.
16869         * iconvdata/cp770.c: New file.
16870         * iconvdata/cp771.c: New file.
16871         * iconvdata/cp772.c: New file.
16872         * iconvdata/cp773.c: New file.
16873         * iconvdata/cp774.c: New file.
16874         * iconvdata/testdata/CP770: New file.
16875         * iconvdata/testdata/CP770..UTF8: New file.
16876         * iconvdata/testdata/CP771: New file.
16877         * iconvdata/testdata/CP771..UTF8: New file.
16878         * iconvdata/testdata/CP772: New file.
16879         * iconvdata/testdata/CP772..UTF8: New file.
16880         * iconvdata/testdata/CP773: New file.
16881         * iconvdata/testdata/CP773..UTF8: New file.
16882         * iconvdata/testdata/CP774: New file.
16883         * iconvdata/testdata/CP774..UTF8: New file.
16884
16885         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
16886         END CHARMAP line.
16887         * iconvdata/gen-8bit-gap.sh: Likewise.
16888         * iconvdata/gen-8bit.sh: Likewise.
16889
16890         * locale/iso-639.def: Add ary entry.
16891
16892         [BZ #11258]
16893         * locale/C-translit.h.in: Add U20A1 transliteration.
16894
16895         [BZ #12178]
16896         * locale/iso-639.def: Add wae entry.
16897         Patch by Kevin Bortis <bortis@translate-wae.ch>.
16898
16899         [BZ #12545]
16900         * locale/programs/localedef.c (construct_output_path): Use ssize_t
16901         for n.
16902
16903         [BZ #12711]
16904         * locale/C-translit.h.in: Add entry for U20B9.
16905         Patch by pravin.d.s@gmail.com.
16906
16907 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
16908
16909         [BZ #12713]
16910         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
16911         ENAMETOOLONG use generic getcwd.
16912         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
16913         in rtld.  Use *stat64.
16914         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
16915         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
16916         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
16917         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
16918         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
16919         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
16920         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
16921         __fstatat64 macros.
16922         * include/dirent.h: Add libc_hidden_proto for rewinddir.
16923         * dirent/rewinddir.c: Add libc_hidden_def.
16924         * sysdeps/mach/hurd/rewinddir.c: Likewise.
16925         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
16926
16927         * include/dirent.h (__alloc_dir): Add flags parameter.
16928         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
16929         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
16930         __alloc_dir.
16931         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
16932         from fdopendir if O_CLOEXEC is already set.
16933
16934 2011-03-15  Alan Modra  <amodra@gmail.com>
16935
16936         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
16937         l_tls_firstbyte_offset non-zero.  Save padding offset in
16938         l_tls_firstbyte_offset for later use.
16939         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
16940         freeing static tls block.
16941
16942 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
16943
16944         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
16945         where #ifdef was intended.  The intent is to prevent ARG_MAX from
16946         being defined by the kernel headers.
16947
16948 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
16949
16950         [BZ #12734]
16951         * resolv/resolv.h: Define RES_NOTLDQUERY.
16952         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
16953         no-tld-query and set RES_NOTLDQUERY.
16954         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
16955         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
16956         modern BIND to search name as TLD unless forbidden.
16957
16958 2011-05-07  Petr Baudis  <pasky@suse.cz>
16959             Ulrich Drepper  <drepper@gmail.com>
16960
16961         [BZ #12393]
16962         * elf/dl-load.c (fillin_rpath): Move trusted path check...
16963         (is_trusted_path): ...to here.
16964         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
16965         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
16966         using is_trusted_path_normalize() in setuid scripts.
16967
16968 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
16969
16970         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
16971         __BEGIN/__END_DECLS.
16972
16973 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
16974
16975         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
16976         NSS_STATUS_NOTFOUND if no record was found.
16977
16978 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16979
16980         * sunrpc/Makefile (headers): Add rpc/netdb.h.
16981         (headers-not-in-tirpc): Remove rpc/netdb.h
16982         * resolv/netdb.h: Revert last change.
16983
16984 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
16985
16986         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
16987         circular dependency between libgcc.a and libc.a.
16988
16989 2011-05-05  Andreas Schwab  <schwab@redhat.com>
16990
16991         * resolv/netdb.h: Don't include <rpc/netdb.h>.
16992         * nis/Makefile: Don't install rpcsvc/*.
16993         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
16994         instead of <rpc/types.h>.
16995         (MAXHOSTNAMELEN): Define.
16996
16997 2011-05-03  Andreas Schwab  <schwab@redhat.com>
16998
16999         * elf/ldconfig.c (add_dir): Don't crash on empty path.
17000
17001 2011-04-28  Maciej Babinski  <mbabinski@google.com>
17002
17003         [BZ #12714]
17004         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
17005         gethostbyname4_r when IPv6 results are possible.
17006
17007 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
17008
17009         [BZ #12723]
17010         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
17011         _PC_PIPE_BUF handling.
17012
17013 2011-04-30  Bruno Haible  <bruno@clisp.org>
17014
17015         [BZ #12717]
17016         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
17017         * resolv/netdb.h (getnameinfo): Change type of flags parameter
17018         to 'int'.
17019         * inet/getnameinfo.c (getnameinfo): Likewise.
17020
17021 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
17022
17023         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
17024         to groups setting in database lookup.
17025         * nss/nsswitch.conf: Add initgroups entry.
17026
17027 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
17028
17029         [BZ #12685]
17030         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
17031         mode string.
17032         Patch by Eric Blake <eblake@redhat.com>.
17033
17034 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17035
17036         * sunrpc/Makefile (need-export-routines): Add svc_run.
17037         (routines): Remove svc_run.
17038         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
17039         * sunrpc/clnt_perr.c (clnt_perrno): Export.
17040         * sunrpc/svc_run.c (svc_run): Likewise.
17041         * sunrpc/svc_udp.c (svcudp_create): Likewise.
17042
17043 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
17044
17045         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
17046         problem in reallocation in last patch.
17047
17048 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
17049
17050         * sunrpc/Makefile: Move inclusion of Rules.
17051
17052 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17053
17054         * nss/nss_files/files-initgroups.c: New file.
17055         * nss/Makefile (libnss_files-routines): Add files-initgroups.
17056         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
17057         _nss_files_initgroups_dyn.
17058
17059 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
17060
17061         * elf/elf.h (R_ARM_IRELATIVE): Define.
17062
17063 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
17064
17065         * po/ru.po: Update from translation team.
17066
17067 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17068
17069         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
17070         dependencies.
17071
17072 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
17073
17074         [BZ #12653]
17075         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
17076         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
17077         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
17078         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
17079         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
17080
17081 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
17082
17083         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
17084         differing bytes.
17085         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
17086         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
17087         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
17088
17089 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
17090
17091         [BZ #12420]
17092         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
17093         storing it.
17094         * stdlib/bug-getcontext.c: New file.
17095         * stdlib/Makefile: Add rules to build and run bug-getcontext.
17096
17097 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17098
17099         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
17100         instructions into .machine "z9-109".
17101         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
17102         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
17103
17104 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17105
17106         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
17107         between environment variables and auxiliary vector.
17108
17109 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
17110
17111         * Makefile: Add rules to build linkobj/libc.so.
17112         * include/libc-symbols.h: Define libc_hidden_nolink.
17113         * include/rpc/auth.h: Mark functions which are to be hidden.
17114         * include/rpc/auth_des.h: Likewise.
17115         * include/rpc/auth_unix.h: Likewise.
17116         * include/rpc/clnt.h: Likewise.
17117         * include/rpc/des_crypt.h: Likewise.
17118         * include/rpc/key_prot.h: Likewise.
17119         * include/rpc/pmap_clnt.h: Likewise.
17120         * include/rpc/pmap_prot.h: Likewise.
17121         * include/rpc/pmap_rmt.h: Likewise.
17122         * include/rpc/rpc_msg.h: Likewise.
17123         * include/rpc/svc.h: Likewise.
17124         * include/rpc/svc_auth.h: Likewise.
17125         * include/rpc/xdr.h: Likewise.
17126         * nis/Makefile: Link all DSOs against linkobj/libc.so.
17127         * nss/Makefile: Likewise.
17128         * sunrpc/Makefile: Don't install headers.  Build library with normal
17129         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
17130         * sunrpc/auth_des.c: Hide exported symbols by default, export some
17131         for the compat linking library.  Remove use of INTDEF/INTUSE.
17132         * sunrpc/auth_none.c: Likewise.
17133         * sunrpc/auth_unix.c: Likewise.
17134         * sunrpc/authdes_prot.c: Likewise.
17135         * sunrpc/authuxprot.c: Likewise.
17136         * sunrpc/clnt_gen.c: Likewise.
17137         * sunrpc/clnt_perr.c: Likewise.
17138         * sunrpc/clnt_raw.c: Likewise.
17139         * sunrpc/clnt_simp.c: Likewise.
17140         * sunrpc/clnt_tcp.c: Likewise.
17141         * sunrpc/clnt_udp.c: Likewise.
17142         * sunrpc/clnt_unix.c: Likewise.
17143         * sunrpc/des_crypt.c: Likewise.
17144         * sunrpc/des_soft.c: Likewise.
17145         * sunrpc/get_myaddr.c: Likewise.
17146         * sunrpc/key_call.c: Likewise.
17147         * sunrpc/key_prot.c: Likewise.
17148         * sunrpc/netname.c: Likewise.
17149         * sunrpc/pm_getmaps.c: Likewise.
17150         * sunrpc/pm_getport.c: Likewise.
17151         * sunrpc/pmap_clnt.c: Likewise.
17152         * sunrpc/pmap_prot.c: Likewise.
17153         * sunrpc/pmap_prot2.c: Likewise.
17154         * sunrpc/pmap_rmt.c: Likewise.
17155         * sunrpc/publickey.c: Likewise.
17156         * sunrpc/rpc_cmsg.c: Likewise.
17157         * sunrpc/rpc_common.c: Likewise.
17158         * sunrpc/rpc_dtable.c: Likewise.
17159         * sunrpc/rpc_prot.c: Likewise.
17160         * sunrpc/rpc_thread.c: Likewise.
17161         * sunrpc/rtime.c: Likewise.
17162         * sunrpc/svc.c: Likewise.
17163         * sunrpc/svc_auth.c: Likewise.
17164         * sunrpc/svc_authux.c: Likewise.
17165         * sunrpc/svc_raw.c: Likewise.
17166         * sunrpc/svc_run.c: Likewise.
17167         * sunrpc/svc_simple.c: Likewise.
17168         * sunrpc/svc_tcp.c: Likewise.
17169         * sunrpc/svc_udp.c: Likewise.
17170         * sunrpc/svc_unix.c: Likewise.
17171         * sunrpc/svcauth_des.c: Likewise.
17172         * sunrpc/xcrypt.c: Likewise.
17173         * sunrpc/xdr.c: Likewise.
17174         * sunrpc/xdr_array.c: Likewise.
17175         * sunrpc/xdr_float.c: Likewise.
17176         * sunrpc/xdr_intXX_t.c: Likewise.
17177         * sunrpc/xdr_mem.c: Likewise.
17178         * sunrpc/xdr_rec.c: Likewise.
17179         * sunrpc/xdr_ref.c: Likewise.
17180         * sunrpc/xdr_sizeof.c: Likewise.
17181         * sunrpc/xdr_stdio.c: Likewise.
17182
17183 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
17184
17185         [BZ #12650]
17186         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
17187         * sysdeps/ia64/dl-tls.h: Likewise.
17188         * sysdeps/powerpc/dl-tls.h: Likewise.
17189         * sysdeps/s390/dl-tls.h: Likewise.
17190         * sysdeps/sh/dl-tls.h: Likewise.
17191         * sysdeps/sparc/dl-tls.h: Likewise.
17192         * sysdeps/x86_64/dl-tls.h: Likewise.
17193         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
17194
17195 2011-03-14  Andreas Schwab  <schwab@redhat.com>
17196
17197         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
17198         rpath element also skip the following colon.
17199         (expand_dynamic_string_token): Add is_path parameter and pass
17200         down to DL_DST_REQUIRED and _dl_dst_substitute.
17201         (decompose_rpath): Call expand_dynamic_string_token with
17202         non-zero is_path.  Ignore empty rpaths.
17203         (_dl_map_object_from_fd): Call expand_dynamic_string_token
17204         with zero is_path.
17205
17206 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
17207
17208         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
17209         Make cancelable.
17210
17211 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
17212
17213         [BZ #12655]
17214         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
17215         Patch by Filipe David Manana <fdmanana@apache.org>.
17216
17217 2011-04-07  Andreas Schwab  <schwab@redhat.com>
17218
17219         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
17220         Maintain aligned stack.
17221         (CHECK_RSP): Remove unused macro.
17222
17223 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
17224
17225         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
17226         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
17227
17228 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
17229
17230         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
17231
17232         * include/features.h: Mention __USE_XOPEN2K8 in comment.
17233
17234 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
17235
17236         [BZ #12518]
17237         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
17238         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
17239         * sysdeps/x86_64/memmove.c: New file.
17240         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
17241         (memcpy): Renamed to ...
17242         (__new_memcpy): This.
17243         (memcpy): Provide GLIBC_2_14 memcpy.
17244         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
17245         (memcpy): Provide GLIBC_2_2_5 memcpy.
17246
17247 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17248
17249         [BZ #12631]
17250         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
17251
17252 2011-03-30  Andreas Schwab  <schwab@redhat.com>
17253
17254         * misc/syncfs.c: New file.
17255         * misc/Makefile (routines): Add syncfs.
17256         * posix/unistd.h: Declare syncfs.
17257         * sysdeps/unix/syscalls.list: Add syncfs.
17258
17259 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17260
17261         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
17262         open_by_handle_at.
17263         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
17264         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17265         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17266         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17267         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17268         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
17269         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17270
17271 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17272
17273         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
17274         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17275         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
17276         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17277         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17278         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17279         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17280
17281         * io/Makefile: Compile fallocate.c, fallocate64.c, and
17282         sync_file_range.c with -fexceptions.
17283         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
17284         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
17285         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
17286         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
17287         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
17288         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
17289         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
17290         sync_file_range as cancellation point
17291         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
17292         now a wrapper around __call_sync_file_range with cancellation handling.
17293         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
17294         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
17295         function name to __call_sync_file_range.
17296         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
17297         Add call_sync_file_range.
17298
17299 2011-04-01  Andreas Schwab  <schwab@redhat.com>
17300
17301         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17302         bits/timex.h.
17303
17304 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
17305
17306         * iconv/iconv.h: Fix typo in comment.
17307         * io/fcntl.h: Likewise.
17308         * libio/stdio.h: Likewise.
17309         * posix/spawn.h: Likewise.
17310         * posix/unistd.h: Likewise.
17311         * stdlib/stdlib.h: Likewise.
17312         * time/time.h: Likewise.
17313         * wcsmbs/wchar.h: Likewise.
17314
17315         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
17316         open_by_handle): Add.
17317         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
17318         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
17319         Augment a few comments.
17320         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
17321         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
17322         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
17323         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
17324         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
17325         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
17326         open_by_handle.
17327
17328         * io/fcntl.h (AT_EMPTY_PATH): Define.
17329
17330 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
17331
17332         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
17333         * sysdeps/unix/sysv/linux/bits/time.h: New file.
17334         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
17335         to...
17336         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
17337         * Versions.def: Add GLIBC_2.14.
17338         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
17339         Export.
17340
17341 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
17342
17343         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
17344         round counter.
17345         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17346
17347 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
17348
17349         [BZ #12597]
17350         * string/test-strncmp.c (do_page_test): New function.
17351         (check2): Likewise.
17352         (test_main): Call check2.
17353         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
17354
17355 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
17356
17357         [BZ #12587]
17358         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
17359         Handle cache information in CPU leaf 4.
17360         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
17361
17362 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
17363
17364         [BZ #12583]
17365         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
17366         character representation.
17367         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
17368
17369 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
17370
17371         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
17372         END(__isnan) to END(__isnanf) to match function entry point/label
17373         EALIGN(__isnanf,...).
17374
17375 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
17376
17377         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
17378
17379 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
17380
17381         [BZ #12510]
17382         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
17383         copy from the symbol referenced in the relocation to initialize the
17384         used variable.
17385         Patch by Piotr Bury <pbury@goahead.com>.
17386         * elf/Makefile: Add rules to build and tst-unique3.
17387         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
17388         * elf/tst-unique3.cc: New file.
17389         * elf/tst-unique3.h: New file.
17390         * elf/tst-unique3lib.cc: New file.
17391         * elf/tst-unique3lib2.cc: New file.
17392
17393         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
17394
17395 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
17396
17397         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
17398         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
17399         to _start.
17400
17401 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
17402
17403         * elf/dl-load.c (_dl_map_object): If we are looking for the first
17404         to-be-loaded object along a path to loader is ld.so.
17405
17406 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17407             Ulrich Drepper  <drepper@gmail.com>
17408
17409         * sysdeps/x86_64/memset.S: After aligning destination, code
17410         branches to different locations depending on the value of
17411         misalignment, when multiarch is enabled. Fix this.
17412
17413 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
17414
17415         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
17416         Set _x86_64_preferred_memory_instruction for AMD processsors.
17417         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17418         Set bit_Prefer_SSE_for_memop for AMD processors.
17419
17420 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
17421
17422         * libio/fmemopen.c (fmemopen): Optimize a bit.
17423
17424 2011-03-03  Andreas Schwab  <schwab@redhat.com>
17425
17426         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
17427
17428 2011-03-03  Roland McGrath  <roland@redhat.com>
17429
17430         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
17431
17432 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
17433
17434         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
17435         __bzero_ultra1 instead of __memset_ultra1.
17436
17437 2011-02-23  Andreas Schwab  <schwab@redhat.com>
17438             Ulrich Drepper  <drepper@gmail.com>
17439
17440         [BZ #12509]
17441         * include/link.h (struct link_map): Add l_orig_initfini.
17442         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
17443         returning unsuccessfully.
17444         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
17445         close of a file loaded at startup, restore the original l_initfini
17446         list.
17447         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
17448         list, store the pointer.
17449         * elf/Makefile ($(objpfx)noload-mem): New rule.
17450         (noload-ENV): Define.
17451         (tests): Add $(objpfx)noload-mem.
17452         * elf/noload.c: Include <memcheck.h>.
17453         (main): Call mtrace.  Close all opened handles.
17454
17455 2011-02-17  Andreas Schwab  <schwab@redhat.com>
17456
17457         [BZ #12454]
17458         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
17459         dependencies are missing.
17460
17461 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17462
17463         Fix __if_freereq crash: Unlike the generic version which uses free,
17464         Hurd needs munmap.
17465         * sysdeps/mach/hurd/ifreq.h: New file.
17466
17467 2011-01-27  Petr Baudis  <pasky@suse.cz>
17468             Ulrich Drepper  <drepper@gmail.com>
17469
17470         [BZ 12445]#
17471         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
17472         to extend_alloca().
17473         * stdio-common/bug23.c: New file.
17474         * stdio-common/Makefile (tests): Add bug23.
17475
17476 2010-09-28  Andreas Schwab  <schwab@redhat.com>
17477             Ulrich Drepper  <drepper@gmail.com>
17478
17479         [BZ #12489]
17480         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
17481         before performing relro protection.  At old place add assertion
17482         to make sure nothing changed.
17483
17484 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
17485             Glauber de Oliveira Costa  <glommer@gmail.com>
17486
17487         * elf/elf.h: Add new ARM TLS relocs.
17488
17489 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
17490
17491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17492         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
17493         cast from r3.
17494         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
17495         'tests' variable.
17496         * sysdeps/wordsize-64/tst-writev.c: New file.
17497
17498 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
17499
17500         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
17501         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
17502         insns in _dl_start to prevent a TOC reference before relocs are
17503         resolved.
17504
17505 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
17506
17507         [BZ #12469]
17508         * Makeconfig: Remove RANLIB definition.
17509         * Makerules: Don't use RANLIB.
17510         * aclocal.m4: Remove ranlib test.
17511         * configure.in: No need to check for ranlib.
17512         * elf/rtld-Rules: Don't use RANLIB.
17513
17514 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17515
17516         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
17517         protection macro.
17518         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
17519         inclusion protection macro.
17520
17521         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
17522         SIGRTMIN and SIGRTMAX and print information in that case only when
17523         SIGRTMIN is defined.
17524
17525 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
17526
17527         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
17528         arginfo fn returning -1.
17529
17530         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
17531         and thousands string is zero terminated.
17532
17533 2011-02-03  Andreas Schwab  <schwab@redhat.com>
17534
17535         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
17536         sysdeps/unix/sysv/linux/bits/socket.h.
17537
17538 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
17539
17540         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
17541         (__CPU_COUNT): Remove old macros.
17542         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
17543         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
17544         (__CPU_ALLOC, __CPU_FREE): Add macros.
17545         (__sched_cpualloc, __sched_cpufree): Add declarations.
17546
17547 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
17548
17549         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
17550         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
17551         * nscd/aicache.c (addhstaiX): Return timeout of added value.
17552         (readdhstai): Return value of addhstaiX call.
17553         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
17554         (addgrbyX): Return value returned by cache_addgr.
17555         (readdgrbyname): Return value returned by addgrbyX.
17556         (readdgrbygid): Likewise.
17557         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
17558         (addpwbyX): Return value returned by cache_addpw.
17559         (readdpwbyname): Return value returned by addhstbyX.
17560         (readdpwbyuid): Likewise.
17561         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
17562         (addservbyX): Return value returned by cache_addserv.
17563         (readdservbyname): Return value returned by addservbyX:
17564         (readdservbyport): Likewise.
17565         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
17566         (addhstbyX): Return value returned by cache_addhst.
17567         (readdhstbyname): Return value returned by addhstbyX.
17568         (readdhstbyaddr): Likewise.
17569         (readdhstbynamev6): Likewise.
17570         (readdhstbyaddrv6): Likewise.
17571         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
17572         (readdinitgroups): Return value returned by addinitgroupsX.
17573         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
17574         (prune_cache): Keep track of timeout value of re-added entries.
17575         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
17576         * nscd/nscd.h: Adjust prototypes of readd* functions.
17577
17578 2011-02-04  Roland McGrath  <roland@redhat.com>
17579
17580         * nis/nis_server.c (nis_servstate): Use the right name for 0.
17581         (nis_stats): Likewise.
17582         * nis/nis_modify.c (nis_modify): Likewise.
17583         * nis/nis_remove.c (nis_remove): Likewise.
17584         * nis/nis_add.c (nis_add): Likewise.
17585
17586         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
17587
17588         * posix/fnmatch_loop.c: Add some consts.
17589
17590         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
17591
17592 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
17593
17594         [BZ #12460]
17595         * config.make.in (config-cflags-novzeroupper): Define.
17596         * configure.in: Substitute libc_cv_cc_novzeroupper.
17597         * elf/Makefile (AVX-CFLAGS): Define.
17598         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
17599         (CFLAGS-tst-auditmod4a.c): Likewise.
17600         (CFLAGS-tst-auditmod4b.c): Likewise.
17601         (CFLAGS-tst-auditmod6b.c): Likewise.
17602         (CFLAGS-tst-auditmod6c.c): Likewise.
17603         (CFLAGS-tst-auditmod7b.c): Likewise.
17604         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
17605
17606 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
17607
17608         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
17609         function to the callback.
17610         Patch partly by Jiri Olsa <jolsa@redhat.com>.
17611
17612 2011-02-02  Andreas Schwab  <schwab@redhat.com>
17613
17614         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
17615         of errno.
17616
17617 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
17618
17619         [BZ #11724]
17620         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
17621         of constructors.
17622         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
17623         of destructors.
17624         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
17625
17626         [BZ #11724]
17627         * elf/Makefile: Add rules to build and run new test.
17628         * elf/tst-initorder.c: New file.
17629         * elf/tst-initorder.exp: New file.
17630         * elf/tst-initordera1.c: New file.
17631         * elf/tst-initordera2.c: New file.
17632         * elf/tst-initordera3.c: New file.
17633         * elf/tst-initordera4.c: New file.
17634         * elf/tst-initorderb1.c: New file.
17635         * elf/tst-initorderb2.c: New file.
17636         * elf/tst-order-a1.c: New file.
17637         * elf/tst-order-a2.c: New file.
17638         * elf/tst-order-a3.c: New file.
17639         * elf/tst-order-a4.c: New file.
17640         * elf/tst-order-b1.c: New file.
17641         * elf/tst-order-b2.c: New file.
17642         * elf/tst-order-main.c: New file.
17643         New test case by George Gensure <werkt0@gmail.com>.
17644
17645 2010-10-01  Andreas Schwab  <schwab@redhat.com>
17646
17647         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
17648         decoding ACE if AI_CANONIDN.
17649
17650 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
17651
17652         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
17653
17654 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
17655
17656         * version.h (RELEASE): Bump for 2.13 release.
17657         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
17658
17659         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
17660
17661         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
17662         MADV_NOHUGEPAGE.
17663         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
17664         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
17665         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
17666         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
17667         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
17668         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17669
17670         * posix/getconf.c: Update copyright year.
17671         * catgets/gencat.c: Likewise.
17672         * csu/version.c: Likewise.
17673         * debug/catchsegv.sh: Likewise.
17674         * debug/xtrace.sh: Likewise.
17675         * elf/ldconfig.c: Likewise.
17676         * elf/ldd.bash.in: Likewise.
17677         * elf/sprof.c (print_version): Likewise.
17678         * iconv/iconv_prog.c: Likewise.
17679         * iconv/iconvconfig.c: Likewise.
17680         * locale/programs/locale.c: Likewise.
17681         * locale/programs/localedef.c: Likewise.
17682         * malloc/memusage.sh: Likewise.
17683         * malloc/mtrace.pl: Likewise.
17684         * nscd/nscd.c (print_version): Likewise.
17685         * nss/getent.c: Likewise.
17686
17687         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
17688         PF_CAIF, and PF_ALG.
17689         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
17690
17691 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
17692
17693         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
17694         (modules-names): Use them.
17695         (ifunc-test-modules, ifunc-pie-tests): Define.
17696         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
17697         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
17698         (test-extras): Likewise.
17699         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
17700         $(compile-command.c).
17701         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
17702         (all-built-dso): Define.
17703         (check-textrel.out, check-execstack.out): Depend on it.
17704
17705         * configure.in: Don't override --enable-multi-arch.
17706
17707 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
17708
17709         [BZ #6812]
17710         * nscd/hstcache.c (tryagain): Define.
17711         (cache_addhst): Return tryagain not notfound for temporary errors.
17712         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
17713         failed.
17714
17715 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
17716
17717         [BZ #10563]
17718         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
17719         to make the syscall.
17720         * sysdeps/unix/sysv/linux/setgroups.c: New file.
17721
17722         [BZ #12378]
17723         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
17724         and fall back to matching as normal character if the string ends before
17725         the matching ']' is found.  This is what POSIX requires.
17726         * posix/testfnm.c: Adjust test result.
17727         * posix/globtest.sh: Adjust test result.  Add new test.
17728         * posix/tst-fnmatch.input: Likewise.
17729         * posix/tst-fnmatch2.c: Add new test.
17730
17731 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
17732
17733         * elf/Makefile (check-execstack): Revert last change.  Depend on
17734         check-execstack.h.
17735         (check-execstack.h): New target.
17736         (generated): Add check-execstack.h.
17737         * elf/check-execstack.c: Include "check-execstack.h".
17738         (main): Revert last change.
17739         (handle_file): Return zero if GNU_STACK is absent and
17740         DEFAULT_STACK_PERMS doesn't include PF_X.
17741
17742 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
17743
17744         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
17745         in child fails because the descriptor is already closed.
17746         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
17747         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
17748         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
17749
17750         [BZ #12397]
17751         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
17752         syscall.
17753
17754         [BZ #10484]
17755         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
17756         temporary buffer used to handle multi lookups locally.
17757         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
17758
17759 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17760
17761         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
17762         loader is ld.so.
17763
17764 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
17765
17766         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
17767         alignment for SSE2.
17768
17769 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
17770
17771         [BZ #12394]
17772         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
17773         characters.  When rounding increased number of integer digits recompute
17774         number of groups.
17775         * stdio-common/tst-grouping.c: New file.
17776         * stdio-common/Makefile: Add rules to build and run tst-grouping.
17777
17778 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
17779
17780         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
17781         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
17782
17783         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
17784         void.
17785         * bits/select.h: Likewise.
17786
17787 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
17788
17789         * po/ja.po: Update from translation team.
17790
17791 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
17792
17793         [BZ #11155]
17794         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
17795         implementation just like for lxstat, fxstatat, et al.
17796
17797 2010-12-27  Jim Meyering  <meyering@redhat.com>
17798
17799         [BZ #12348]
17800         * posix/regexec.c (build_trtable): Return failure indication upon
17801         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
17802
17803 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
17804
17805         [BZ #12201]
17806         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
17807         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
17808         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
17809         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
17810
17811         [BZ #12207]
17812         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
17813
17814         [BZ #12204]
17815         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
17816         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
17817
17818 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
17819
17820         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
17821         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
17822         script has SORT_BY_INIT_PRIORITY.
17823         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
17824         NO_CTORS_DTORS_SECTIONS is defined.
17825         * elf/soinit.c: Likewise.
17826         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
17827         NO_CTORS_DTORS_SECTIONS is defined.
17828         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
17829         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
17830         * sysdeps/sh/init-first.c: Likewise.
17831         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
17832
17833 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
17834
17835         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
17836         always use the slow path.
17837
17838 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
17839
17840         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
17841         similar rule which adds the sysdep directories to the header search in
17842         order to pick up the correct platform stackinfo.h.
17843         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
17844         perform test if it is, otherwise return successfully without testing.
17845         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
17846         DEFAULT_STACK_PERMS define in stackinfo.h.
17847         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
17848         defined in stackinfo.h.
17849         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
17850         DEFAULT_STACK_PERMS defined in stackinfo.h.
17851         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
17852         * sysdeps/ia64/stackinfo.h: Likewise.
17853         * sysdeps/s390/stackinfo.h: Likewise.
17854         * sysdeps/sh/stackinfo.h: Likewise.
17855         * sysdeps/sparc/stackinfo.h: Likewise.
17856         * sysdeps/x86_64/stackinfo.h: Likewise.
17857         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
17858         PF_X for powerpc64.  Retain PF_X for powerpc32.
17859
17860 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
17861
17862         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
17863         accurately.
17864         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
17865         GETDENTS_64BIT_ALIGNED.
17866
17867 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
17868
17869         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
17870
17871 2010-12-10  Andreas Schwab  <schwab@redhat.com>
17872
17873         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
17874         _GNU_SOURCE.
17875
17876         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
17877         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
17878         Remove __restrict.
17879         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
17880         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
17881
17882 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
17883
17884         [BZ #11655]
17885         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
17886         are initialized.
17887
17888 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
17889
17890         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
17891
17892 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
17893
17894         * po/it.po: Update from translation team.
17895
17896 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
17897
17898         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
17899         unused codes.
17900
17901 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
17902
17903         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
17904
17905 2010-11-24  Andreas Schwab  <schwab@redhat.com>
17906
17907         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
17908         specially.
17909         (gaih_getanswer_slice): Likewise.
17910
17911 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
17912
17913         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
17914
17915 2010-05-31  Petr Baudis  <pasky@suse.cz>
17916
17917         [BZ #11149]
17918         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
17919         silently even in the chroot mode.
17920
17921 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
17922
17923         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
17924         last patch a bit.  Pretty printing
17925
17926 2010-05-31  Petr Baudis <pasky@suse.cz>
17927
17928         [BZ #10085]
17929         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
17930         initialization of skip_initgroups_dyn.
17931
17932 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
17933
17934         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
17935         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
17936
17937 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
17938
17939         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
17940
17941 2010-11-11  Andreas Schwab  <schwab@redhat.com>
17942
17943         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
17944         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
17945         (tst-fnmatch-ENV): Set MALLOC_TRACE.
17946         ($(objpfx)tst-fnmatch-mem): New rule.
17947         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
17948         * posix/tst-fnmatch.c (main): Call mtrace.
17949
17950 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
17951
17952         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17953         Support Intel processor model 6 and model 0x2c.
17954
17955 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
17956
17957         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
17958           signed comparison.
17959
17960 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
17961
17962         [BZ #12205]
17963         * string/test-strncasecmp.c (check_result): New function.
17964         (do_one_test): Use it.
17965         (check1): New function.
17966         (test_main): Use it.
17967         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
17968         Support strcasecmp and strncasecmp.
17969
17970 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
17971
17972         [BZ #12194]
17973         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
17974         * sysdeps/x86_64/bits/byteswap.h: Likewise.
17975
17976 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
17977
17978         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
17979         IFUNC support.
17980         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
17981         memset-x86-64.
17982         * sysdeps/x86_64/multiarch/bzero.S: New file.
17983         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
17984         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
17985         * sysdeps/x86_64/multiarch/memset.S: New file.
17986         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
17987         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17988         Set bit_Prefer_SSE_for_memop for Intel processors.
17989         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
17990         Define.
17991         (index_Prefer_SSE_for_memop): Define.
17992         (HAS_PREFER_SSE_FOR_MEMOP): Define.
17993
17994 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
17995
17996         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
17997         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
17998
17999 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
18000
18001         [BZ #12191]
18002         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18003         (__x86_64_raw_data_cache_size_half): Likewise.
18004         (__x86_64_raw_shared_cache_size): Likewise.
18005         (__x86_64_raw_shared_cache_size_half): Likewise.
18006
18007         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
18008         (__x86_64_raw_data_cache_size_half): Likewise.
18009         (__x86_64_raw_shared_cache_size): Likewise.
18010         (__x86_64_raw_shared_cache_size_half): Likewise.
18011         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
18012         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
18013         and __x86_64_raw_shared_cache_size_half.  Round
18014         __x86_64_data_cache_size_half, __x86_64_data_cache_size
18015         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
18016         to multiple of 256 bytes.
18017
18018 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
18019
18020         [BZ #12167]
18021         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
18022         of inacessible symlinks.  Verify result of symlink before returning it.
18023         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
18024         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
18025
18026 2010-10-28  Erich Ritz  <erichritz@gmail.com>
18027
18028         * math/math.h (isinf): Fix typo in comment.
18029
18030 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
18031
18032         * po/da.po: Update from translation team.
18033
18034 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
18035
18036         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
18037         is added to the list.
18038
18039 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18040             Ulrich Drepper  <drepper@gmail.com>
18041
18042         * elf/dl-object.c (_dl_new_object): Don't append the new object to
18043         the global list here.  Move code to...
18044         (_dl_add_to_namespace_list): ...here.  New function.
18045         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
18046         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
18047         * elf/dl-load.c (lose): Don't remove the element from the list.
18048         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
18049         (_dl_map_object): Likewise.
18050
18051 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
18052
18053         [BZ #12159]
18054         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
18055         into all bytes of SSE register.
18056         Patch by Richard Li <richardpku@gmail.com>.
18057
18058 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
18059
18060         [BZ #12140]
18061         * malloc/malloc.c (_int_free): Fill correct number of bytes when
18062         perturbing.
18063
18064 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
18065
18066         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
18067         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
18068         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
18069         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
18070         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
18071         submachine.
18072         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
18073
18074 2010-10-22  Andreas Schwab  <schwab@redhat.com>
18075
18076         * include/dlfcn.h (__RTLD_SECURE): Define.
18077         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
18078         mode & __RTLD_SECURE instead.
18079         (open_path): Rename preloaded parameter to secure.
18080         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
18081         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
18082         * elf/dl-deps.c (openaux): Likewise.
18083         * elf/rtld.c (struct map_args): Remove is_preloaded.
18084         (map_doit): Don't use it.
18085         (dl_main): Likewise.
18086         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
18087         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
18088
18089 2010-09-09  Andreas Schwab  <schwab@redhat.com>
18090
18091         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
18092         (sysd-rules-targets): Remove duplicates.
18093         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
18094         rtld-%.$o dependency.
18095
18096 2010-10-18  Andreas Schwab  <schwab@redhat.com>
18097
18098         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
18099         _dl_map_object do it.
18100
18101 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
18102
18103         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
18104         fast fma builtins, define the macros in the C99 standard.
18105         (FP_FAST_FMAF): Likewise.
18106         (FP_FAST_FMAL): Likewise.
18107         * sysdeps/x86_64/bits/mathdef.h: Likewise.
18108
18109         * bits/mathdef.h: Update copyright year.
18110         * sysdeps/powerpc/bits/mathdef.h: Likewise.
18111
18112 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
18113
18114         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
18115         builtins, define the macros in the C99 standard.
18116         (FP_FAST_FMAF): Likewise.
18117         (FP_FAST_FMAL): Likewise.
18118         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
18119         multiply/add.
18120         (FP_FAST_FMAF): Likewise.
18121
18122 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
18123
18124         [BZ #3268]
18125         * math/libm-test.inc (fma_test): Some new testcases.
18126         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
18127         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
18128         y and infinite z.  Do multiplication by C already in long double.
18129         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
18130         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
18131         y and infinite z.  Do bitwise or of inexact bit into u.d.
18132         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
18133         * sysdeps/i386/fpu/s_fmaf.S: Removed.
18134         * sysdeps/i386/fpu/s_fma.S: Removed.
18135         * sysdeps/i386/fpu/s_fmal.S: Removed.
18136
18137 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
18138
18139         [BZ #3268]
18140         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
18141         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
18142         computation is not scheduled after fetestexcept.  Fix value
18143         of minimum denormal long double.
18144
18145 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
18146
18147         [BZ #3268]
18148         * math/libm-test.inc (fma_test): Add some more tests.
18149         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
18150         correctly.
18151
18152 2010-10-15  Andreas Schwab  <schwab@redhat.com>
18153
18154         * scripts/data/localplt-s390-linux-gnu.data: New file.
18155         * scripts/data/localplt-s390x-linux-gnu.data: New file.
18156
18157 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
18158
18159         [BZ #3268]
18160         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
18161         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
18162         instead of dbl-64.
18163         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
18164         inlines.
18165         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
18166         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
18167         if one of x and y is very large and the other is subnormal.
18168         * sysdeps/s390/fpu/s_fmaf.c: New file.
18169         * sysdeps/s390/fpu/s_fma.c: New file.
18170         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
18171         * sysdeps/powerpc/fpu/s_fma.S: New file.
18172         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
18173         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
18174         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
18175
18176 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
18177
18178         [BZ #3268]
18179         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
18180         fma tests.
18181         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
18182         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
18183         * sysdeps/i386/i686/multiarch/s_fma.c: Include
18184         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
18185         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
18186         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
18187         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
18188
18189 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
18190
18191         [BZ #12078]
18192         * posix/regcomp.c (parse_branch): One more memory leak plugged.
18193         * posix/bug-regex31.input: Add test case.
18194
18195 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18196
18197         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
18198         * posix/bug-regex31.input: New file.
18199
18200         [BZ #12078]
18201         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
18202         (parse_sub_exp): Fix last change, use postorder.
18203
18204         * posix/bug-regex31.c: New file.
18205         * posix/Makefile: Add rules to build and run bug-regex31.
18206
18207         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
18208
18209         [BZ #12078]
18210         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
18211
18212         [BZ #12108]
18213         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
18214         to have entries in sys_siglist.
18215
18216         [BZ #12093]
18217         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
18218         be NULL.
18219
18220 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
18221
18222         [BZ #3268]
18223         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
18224         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
18225         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
18226         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
18227         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
18228         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
18229         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
18230         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
18231         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
18232         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
18233         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
18234         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
18235         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
18236         * math/ftestexcept.c (fetestexcept): Likewise.
18237         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
18238         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
18239         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
18240         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
18241         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
18242         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
18243         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
18244
18245 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
18246
18247         [BZ #12107]
18248         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
18249         newline.
18250
18251 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
18252
18253         * string/bug-strstr1.c: New file.
18254         * string/Makefile: Add rules to build and run bug-strstr1.
18255
18256 2010-10-05  Eric Blake  <eblake@redhat.com>
18257
18258         [BZ #12092]
18259         * string/str-two-way.h (two_way_long_needle): Always clear memory
18260         when skipping input due to the shift table.
18261
18262 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
18263
18264         [BZ #12005]
18265         * malloc/mcheck.c: Handle large requests.
18266
18267         [BZ #12077]
18268         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
18269         for strncmp and strncasecmp.
18270         * string/stratcliff.c: Add tests for strcmp and strncmp.
18271         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
18272
18273 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18274
18275         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
18276         __set_fpscr.
18277
18278 2010-09-30  Andreas Jaeger  <aj@suse.de>
18279
18280         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
18281         (CGROUP_SUPER_MAGIC): Define.
18282         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18283         Handle btrfs and cgroup file systems.
18284         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
18285         Likewise.
18286
18287 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
18288
18289         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
18290         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
18291
18292 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18293
18294         [BZ #12067]
18295         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
18296         trying to locate the ELF header.
18297
18298 2010-09-27  Andreas Schwab  <schwab@redhat.com>
18299
18300         [BZ #11611]
18301         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
18302         Mask out sign-bit copies when constructing f_fsid.
18303
18304 2010-09-24  Petr Baudis <pasky@suse.cz>
18305
18306         * debug/stack_chk_fail_local.c: Add missing licence exception.
18307         * debug/warning-nop.c: Likewise.
18308
18309 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
18310
18311         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
18312         implementing getdents64 using getdents syscall, set d_type if
18313         __ASSUME_GETDENTS32_D_TYPE.
18314
18315 2010-09-16  Andreas Schwab  <schwab@redhat.com>
18316
18317         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
18318         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
18319
18320 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
18321
18322         [BZ #12037]
18323         * posix/unistd.h: Undo change of feature selection for ftruncate from
18324         2010-01-11.
18325
18326 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
18327
18328         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
18329         detection.
18330
18331 2010-09-20  Andreas Schwab  <schwab@redhat.com>
18332
18333         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
18334         fanotify_mark.
18335         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18336
18337 2010-09-14  Andreas Schwab  <schwab@redhat.com>
18338
18339         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
18340         variables after CHECK_SP call.
18341         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
18342
18343 2010-09-13  Andreas Schwab  <schwab@redhat.com>
18344             Ulrich Drepper  <drepper@redhat.com>
18345
18346         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
18347         re-relocationg ld.so.
18348         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
18349         _dl_init_paths call.
18350         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
18351         here anymore.
18352
18353 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
18354
18355         * resolv/res_init.c (__res_vinit): Count the default server we added.
18356
18357 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
18358             Ulrich Drepper  <drepper@redhat.com>
18359
18360         [BZ #11968]
18361         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
18362         (____longjmp_chk): Use %ebx for saving value across system call.
18363         Add unwind info.
18364
18365 2010-09-06  Andreas Schwab  <schwab@redhat.com>
18366
18367         * manual/Makefile: Don't mix pattern rules with normal rules.
18368
18369 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
18370
18371         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
18372         operation.
18373         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
18374         * libio/iofopncook.c (_IO_cookie_init): Likewise.
18375         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
18376         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
18377         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
18378         Likewise.
18379
18380 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
18381
18382         [BZ #11979]
18383         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
18384         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
18385
18386 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
18387
18388         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
18389         * sysdeps/x86_64/addmul_1.S: Likewise.
18390         * sysdeps/x86_64/lshift.S: Likewise.
18391         * sysdeps/x86_64/mul_1.S: Likewise.
18392         * sysdeps/x86_64/rshift.S: Likewise.
18393         * sysdeps/x86_64/sub_n.S: Likewise.
18394         * sysdeps/x86_64/submul_1.S: Likewise.
18395
18396 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18397
18398         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
18399         Define __sched_param instead of SCHED_* and sched_param when
18400         <bits/sched.h> is included with __need_schedparam defined.
18401         * bits/sched.h [__need_schedparam]
18402         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
18403         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
18404         (__defined_schedparam): Define to 1.
18405         (__sched_param): New structure, identical to sched_param.
18406         (__need_schedparam): Undefine.
18407
18408 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
18409
18410         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
18411         (epoll_create1): Declare.
18412
18413         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
18414
18415 2010-08-31  Andreas Schwab  <schwab@redhat.com>
18416
18417         [BZ #7066]
18418         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
18419         shifting retval into place.
18420
18421 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
18422
18423         * nis/rpcsvc/nis.h: Update copyright notice.
18424         * nis/rpcsvc/nis.x: Likewise.
18425         * nis/rpcsvc/nis_callback.h: Likewise.
18426         * nis/rpcsvc/nis_callback.x: Likewise.
18427         * nis/rpcsvc/nis_object.x: Likewise.
18428         * nis/rpcsvc/nis_tags.h: Likewise.
18429         * nis/rpcsvc/yp.h: Likewise.
18430         * nis/rpcsvc/yp.x: Likewise.
18431         * nis/rpcsvc/ypupd.h: Likewise.
18432         * nis/yp_xdr.c: Likewise.
18433         * nis/ypupdate_xdr.c: Likewise.
18434
18435         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
18436         mainly the body of pmap_getport.  Add parameters to specify timeouts.
18437         (pmap_getport): Use __libc_rpc_getport.
18438         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
18439         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
18440         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
18441
18442 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
18443
18444         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
18445         fanotify_mark.
18446
18447 2010-08-27  Roland McGrath  <roland@redhat.com>
18448
18449         * sysdeps/i386/i686/multiarch/Makefile
18450         (CFLAGS-varshift.c): New variable.
18451
18452 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
18453
18454         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
18455         * sysdeps/i386/i686/multiarch/varshift.c: New file.
18456
18457         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
18458
18459         * sysdeps/x86_64/strlen.S: Minimal code improvement.
18460
18461 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
18462
18463         * sysdeps/x86_64/strlen.S: Unroll the loop.
18464         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
18465         strlen-sse2 strlen-sse2-bsf.
18466         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
18467         __strlen_no_bsf if bit_Slow_BSF is set.
18468         (__strlen_sse42): Removed.
18469         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
18470         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
18471
18472 2010-08-25  Roland McGrath  <roland@redhat.com>
18473
18474         * sysdeps/x86_64/multiarch/varshift.S: File removed.
18475         * sysdeps/x86_64/multiarch/varshift.c: New file.
18476         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
18477         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
18478         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
18479         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
18480
18481 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
18482
18483         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18484         strlen-sse2 strlen-sse2-bsf.
18485         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
18486         __strlen_sse2_bsf if bit_Slow_BSF is unset.
18487         (__strlen_sse2): Removed.
18488         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
18489         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
18490         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
18491         bit_Slow_BSF for Atom.
18492         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
18493         (index_Slow_BSF): Define.
18494         (HAS_SLOW_BSF): Define.
18495
18496 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
18497
18498         [BZ #10851]
18499         * resolv/res_init.c (__res_vinit): When no server address at all
18500         is given default to loopback.
18501
18502 2010-08-24  Roland McGrath  <roland@redhat.com>
18503
18504         * configure.in: Remove config-name.h generation.
18505         * configure: Regenerated.
18506         * config-name.in: File removed.
18507         * scripts/config-uname.sh: New file.
18508         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
18509         ($(objdir)config-name.h): New target.
18510
18511         * sunrpc/rpc_parse.h: Avoid nested comment.
18512
18513 2010-08-24  Richard Henderson  <rth@redhat.com>
18514             Ulrich Drepper  <drepper@redhat.com>
18515             H.J. Lu  <hongjiu.lu@intel.com>
18516
18517         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
18518         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
18519         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
18520         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
18521         _mm_alignr_epi8 with _mm_loadu_si128.
18522         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
18523         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
18524         (__m128i_shift_right): Removed.
18525         * sysdeps/i386/i686/multiarch/varshift.h: New file.
18526         * sysdeps/i386/i686/multiarch/varshift.S: New file.
18527         * sysdeps/x86_64/multiarch/varshift.h: New file.
18528         * sysdeps/x86_64/multiarch/varshift.S: New file.
18529
18530 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
18531
18532         * configure.in: Move assembler checks to before sysdep dir checking.
18533
18534 2010-08-20  Petr Baudis  <pasky@suse.cz>
18535
18536         * LICENSES: Sync the sunrpc license.
18537
18538 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
18539
18540         * sunrpc/auth_des.c: Update copyright notice once again.
18541         * sunrpc/auth_none.c: Likewise.
18542         * sunrpc/auth_unix.c: Likewise.
18543         * sunrpc/authdes_prot.c: Likewise.
18544         * sunrpc/authuxprot.c: Likewise.
18545         * sunrpc/bindrsvprt.c: Likewise.
18546         * sunrpc/clnt_gen.c: Likewise.
18547         * sunrpc/clnt_perr.c: Likewise.
18548         * sunrpc/clnt_raw.c: Likewise.
18549         * sunrpc/clnt_simp.c: Likewise.
18550         * sunrpc/clnt_tcp.c: Likewise.
18551         * sunrpc/clnt_udp.c: Likewise.
18552         * sunrpc/clnt_unix.c: Likewise.
18553         * sunrpc/des_crypt.c: Likewise.
18554         * sunrpc/des_soft.c: Likewise.
18555         * sunrpc/get_myaddr.c: Likewise.
18556         * sunrpc/getrpcport.c: Likewise.
18557         * sunrpc/key_call.c: Likewise.
18558         * sunrpc/key_prot.c: Likewise.
18559         * sunrpc/openchild.c: Likewise.
18560         * sunrpc/pm_getmaps.c: Likewise.
18561         * sunrpc/pm_getport.c: Likewise.
18562         * sunrpc/pmap_clnt.c: Likewise.
18563         * sunrpc/pmap_prot.c: Likewise.
18564         * sunrpc/pmap_prot2.c: Likewise.
18565         * sunrpc/pmap_rmt.c: Likewise.
18566         * sunrpc/rpc/auth.h: Likewise.
18567         * sunrpc/rpc/auth_unix.h: Likewise.
18568         * sunrpc/rpc/clnt.h: Likewise.
18569         * sunrpc/rpc/des_crypt.h: Likewise.
18570         * sunrpc/rpc/key_prot.h: Likewise.
18571         * sunrpc/rpc/netdb.h: Likewise.
18572         * sunrpc/rpc/pmap_clnt.h: Likewise.
18573         * sunrpc/rpc/pmap_prot.h: Likewise.
18574         * sunrpc/rpc/pmap_rmt.h: Likewise.
18575         * sunrpc/rpc/rpc.h: Likewise.
18576         * sunrpc/rpc/rpc_des.h: Likewise.
18577         * sunrpc/rpc/rpc_msg.h: Likewise.
18578         * sunrpc/rpc/svc.h: Likewise.
18579         * sunrpc/rpc/svc_auth.h: Likewise.
18580         * sunrpc/rpc/types.h: Likewise.
18581         * sunrpc/rpc/xdr.h: Likewise.
18582         * sunrpc/rpc_clntout.c: Likewise.
18583         * sunrpc/rpc_cmsg.c: Likewise.
18584         * sunrpc/rpc_common.c: Likewise.
18585         * sunrpc/rpc_cout.c: Likewise.
18586         * sunrpc/rpc_dtable.c: Likewise.
18587         * sunrpc/rpc_hout.c: Likewise.
18588         * sunrpc/rpc_main.c: Likewise.
18589         * sunrpc/rpc_parse.c: Likewise.
18590         * sunrpc/rpc_parse.h: Likewise.
18591         * sunrpc/rpc_prot.c: Likewise.
18592         * sunrpc/rpc_sample.c: Likewise.
18593         * sunrpc/rpc_scan.c: Likewise.
18594         * sunrpc/rpc_scan.h: Likewise.
18595         * sunrpc/rpc_svcout.c: Likewise.
18596         * sunrpc/rpc_tblout.c: Likewise.
18597         * sunrpc/rpc_util.c: Likewise.
18598         * sunrpc/rpc_util.h: Likewise.
18599         * sunrpc/rpcinfo.c: Likewise.
18600         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
18601         * sunrpc/rpcsvc/key_prot.x: Likewise.
18602         * sunrpc/rpcsvc/klm_prot.x: Likewise.
18603         * sunrpc/rpcsvc/mount.x: Likewise.
18604         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
18605         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
18606         * sunrpc/rpcsvc/rex.x: Likewise.
18607         * sunrpc/rpcsvc/rstat.x: Likewise.
18608         * sunrpc/rpcsvc/rusers.x: Likewise.
18609         * sunrpc/rpcsvc/sm_inter.x: Likewise.
18610         * sunrpc/rpcsvc/spray.x: Likewise.
18611         * sunrpc/rpcsvc/yppasswd.x: Likewise.
18612         * sunrpc/rtime.c: Likewise.
18613         * sunrpc/svc.c: Likewise.
18614         * sunrpc/svc_auth.c: Likewise.
18615         * sunrpc/svc_authux.c: Likewise.
18616         * sunrpc/svc_raw.c: Likewise.
18617         * sunrpc/svc_run.c: Likewise.
18618         * sunrpc/svc_simple.c: Likewise.
18619         * sunrpc/svc_tcp.c: Likewise.
18620         * sunrpc/svc_udp.c: Likewise.
18621         * sunrpc/svc_unix.c: Likewise.
18622         * sunrpc/svcauth_des.c: Likewise.
18623         * sunrpc/xcrypt.c: Likewise.
18624         * sunrpc/xdr.c: Likewise.
18625         * sunrpc/xdr_array.c: Likewise.
18626         * sunrpc/xdr_float.c: Likewise.
18627         * sunrpc/xdr_mem.c: Likewise.
18628         * sunrpc/xdr_rec.c: Likewise.
18629         * sunrpc/xdr_ref.c: Likewise.
18630         * sunrpc/xdr_sizeof.c: Likewise.
18631         * sunrpc/xdr_stdio.c: Likewise.
18632
18633         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
18634         handling.
18635
18636 2010-08-19  Andreas Schwab  <schwab@redhat.com>
18637
18638         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
18639
18640 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
18641
18642         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
18643         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
18644         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
18645         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
18646         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
18647         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
18648         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
18649         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
18650         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
18651         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
18652         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
18653         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
18654         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
18655         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
18656
18657 2010-07-26  Anton Blanchard  <anton@samba.org>
18658
18659         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
18660         * malloc/arena.c (heap_trim): Likewise.
18661
18662 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
18663
18664         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
18665         here.  Not...
18666         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
18667         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
18668
18669 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
18670
18671         * sysdeps/i386/elf/Makefile: New file.
18672
18673 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18674
18675         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
18676         from fanotify_init.
18677         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
18678         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18679
18680 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
18681
18682         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
18683         of strncasecmp_l.
18684         * sysdeps/multiarch/strcmp.S: Likewise.
18685
18686 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
18687
18688         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18689         strncase_l-nonascii.
18690         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18691         Add strncase_l-ssse3.
18692         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
18693         * sysdeps/x86_64/strcmp.S: Likewise.
18694         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
18695         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
18696         * sysdeps/x86_64/strncase.S: New file.
18697         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
18698         * sysdeps/x86_64/strncase_l.S: New file.
18699         * string/Makefile (strop-tests): Add strncasecmp.
18700         * string/test-strncasecmp.c: New file.
18701
18702         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
18703         warning.
18704
18705         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
18706         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
18707
18708 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
18709
18710         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
18711
18712 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
18713
18714         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
18715         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
18716         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
18717
18718 2010-05-01  Alan Modra  <amodra@gmail.com>
18719
18720         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
18721         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
18722         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
18723         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
18724         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
18725         tidying.  Don't tail-call __sigjmp_save for static lib.
18726         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
18727         save location.
18728         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
18729         (CALL_MCOUNT): Add eh info, and nop after bl.
18730         (TAIL_CALL_SYSCALL_ERROR): New macro.
18731         (PSEUDO_RET): Use it.
18732         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
18733         Correct save location of integer regs and cr.
18734         (_dl_profile_resolve): Correct cr save location.  Delete nops
18735         after bl when SHARED.  Reduce cfi size a little by better
18736         placement of cfi directives.
18737         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
18738         make a stack frame.  Instead use parm save area as a temp.
18739         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
18740         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
18741         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
18742         Don't make a stack frame for parent, use parm save area.
18743         Increase child stack frame to 112 bytes.  Don't save unused reg,
18744         and adjust reg usage.  Set up cfi on error recovery and
18745         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
18746         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18747         (__makecontext): Add dummy nop after jump to exit.
18748         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
18749         Use correct parm save area and cr save, reduce stack frame.
18750         Correct cfi for possible PSEUDO_RET frame setup.
18751         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
18752         Branch to local label emitted by PSEUDO_RET rather than
18753         __syscall_error.
18754
18755 2010-08-12  Andreas Schwab  <schwab@redhat.com>
18756
18757         [BZ #11904]
18758         * locale/programs/locale.c (print_assignment): New function.
18759         (show_locale_vars): Use it.
18760
18761 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
18762
18763         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
18764         field.
18765         (struct statfs64): Likewise.
18766         (_STATFS_F_FLAGS): Define.
18767         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
18768         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
18769         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
18770         (ST_VALID): Define locally.
18771         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
18772         __statvfs_getflags, use the provided value.
18773         * sysdeps/unix/sysv/linux/kernel-features.h: Define
18774         __ASSUME_STATFS_F_FLAGS.
18775
18776         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
18777
18778         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
18779         Add sys/fanotify.h.
18780         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
18781         fanotify_mask for GLIBC_2.13.
18782         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
18783         fanotify_init and fanotify_mark.
18784         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
18785         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
18786
18787         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
18788         Add prlimit.
18789         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
18790         prlimit64 for GLIBC_2.13.
18791         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
18792         prlimit64.
18793         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
18794         syscall.
18795         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
18796         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
18797         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
18798         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
18799         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
18800         add prlimit alias.
18801         * sysdeps/unix/sysv/linux/prlimit.c: New file.
18802
18803         [BZ #11903]
18804         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
18805         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
18806
18807         * nss/Makefile: Add rules to build and run tst-nss-test1.
18808         * shlib-versions: Add entry for libnss_test1.
18809         * nss/nss_test1.c: New file.
18810         * nss/tst-nss-test1.c: New file.
18811
18812         * nss/nsswitch.c (__nss_database_custom): Define new variable.
18813         (__nss_configure_lookup): Set appropriate entry in
18814         __nss_configure_lookup to true.
18815         * nss/nsswitch.h: Define enum with indeces of databases in
18816         databases and __nss_database_custom arrays.  Declare
18817         __nss_database_custom.
18818         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
18819         to avoid using nscd when custom rules are installed.
18820         * nss/getXXbyYY_r.c: Likewise.
18821         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
18822
18823         * nss/nss_files/files-parse.c: Whitespace fixes.
18824
18825 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
18826
18827         [BZ #11883]
18828         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
18829         * posix/fnmatch_loop.c: Likewise.
18830
18831 2010-07-17  Andi Kleen  <ak@linux.intel.com>
18832
18833         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
18834         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
18835         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
18836         * Versions.def [GLIBC_2.13]: Add.
18837
18838 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
18839
18840         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
18841         Also fail if tpwd after pwuid call is NULL.
18842
18843 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18844
18845         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
18846         when converting to ms.
18847
18848 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18849
18850         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
18851         EOPNOTSUPP errors with ENOTTY.
18852         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
18853         EOPNOTSUPP errors with ENOTTY.
18854
18855 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
18856
18857         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
18858         Add strcasecmp_l-ssse3.
18859         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
18860         strcasecmp.
18861         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
18862         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
18863         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
18864
18865 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
18866
18867         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
18868
18869         * string/Makefile (strop-tests): Add strcasecmp.
18870         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
18871         strcasecmp_l-nonascii.
18872         (gen-as-const-headers): Add locale-defines.sym.
18873         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
18874         * sysdeps/x86_64/strcasecmp.S: New file.
18875         * sysdeps/x86_64/strcasecmp_l.S: New file.
18876         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
18877         * sysdeps/x86_64/locale-defines.sym: New file.
18878         * string/test-strcasecmp.c: New file.
18879
18880         * string/test-strcasestr.c: Test both ends of the range of characters.
18881         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
18882
18883 2010-07-29  Roland McGrath  <roland@redhat.com>
18884
18885         [BZ #11856]
18886         * manual/locale.texi (Yes-or-No Questions): Fix example code.
18887
18888 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
18889
18890         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
18891         for ld.so.
18892
18893 2010-07-27  Andreas Schwab  <schwab@redhat.com>
18894
18895         * manual/memory.texi (Malloc Tunable Parameters): Document
18896         M_PERTURB.
18897
18898 2010-07-26  Roland McGrath  <roland@redhat.com>
18899
18900         [BZ #11840]
18901         * configure.in (-fgnu89-inline check): Set and substitute
18902         gnu89_inline, not libc_cv_gnu89_inline.
18903         * configure: Regenerated.
18904         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
18905
18906 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
18907
18908         * string/test-strnlen.c: New file.
18909         * string/Makefile (strop-tests): Add strnlen.
18910         * string/tester.c (test_strnlen): Add a few more test cases.
18911         * string/tst-strlen.c: Better error reporting.
18912
18913         * sysdeps/x86_64/strnlen.S: New file.
18914
18915 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
18916
18917         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
18918         lower-latency instructions.
18919
18920 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
18921
18922         * string/test-strcasestr.c: New file.
18923         * string/test-strstr.c: New file.
18924         * string/Makefile (strop-tests): Add strstr and strcasestr.
18925         * string/str-two-way.h: Don't undefine MAX.
18926         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
18927
18928 2010-07-21  Andreas Schwab  <schwab@redhat.com>
18929
18930         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
18931         strcasestr-nonascii.
18932         (CFLAGS-strcasestr-nonascii.c): Define.
18933         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
18934         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
18935         Remove unused attribute.
18936
18937 2010-07-20  Roland McGrath  <roland@redhat.com>
18938
18939         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
18940         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
18941         ld.so.cache was broken.  With it, there is no way to disable dsocaps
18942         like LD_HWCAP_MASK can disable hwcaps.
18943
18944 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
18945
18946         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
18947
18948 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
18949
18950         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
18951         call in strcasestr.
18952         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
18953         __strcasestr_sse42_nonascii.
18954         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
18955         strcasestr-nonascii.c.
18956         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
18957
18958 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
18959
18960         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
18961         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
18962         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
18963         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
18964
18965 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
18966
18967         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
18968         fcntl.
18969
18970 2010-07-06  Andreas Schwab  <schwab@redhat.com>
18971
18972         [BZ #11577]
18973         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
18974         dl_signal_cerror.
18975
18976 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
18977
18978         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
18979         _PC_PIPE_BUF using F_GETPIPE_SZ.
18980
18981 2010-07-05  Roland McGrath  <roland@redhat.com>
18982
18983         * manual/arith.texi (Rounding Functions): Fix rint description
18984         implicit in round description.
18985
18986 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
18987
18988         * elf/Makefile: Fix linking for a few tests to make recent linker
18989         happy.
18990
18991 2010-06-30  Andreas Schwab  <schwab@redhat.com>
18992
18993         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
18994         $(common-objpfx)libc_nonshared.a.
18995
18996 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
18997
18998         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
18999         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
19000         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19001         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19002         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
19003         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
19004         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19005         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19006         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
19007         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
19008         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
19009         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
19010         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
19011         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
19012         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
19013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
19014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
19015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
19016         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
19017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
19018         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
19019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
19020         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
19021         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
19022         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
19023         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
19024         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
19025         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
19026         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
19027         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
19028         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
19029         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
19030         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
19031         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
19032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
19033         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
19034         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
19035         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
19036         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
19037         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
19038         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
19039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
19040         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
19041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
19042         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
19043         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
19044         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
19045         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
19046
19047 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
19048
19049         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
19050         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
19051         * string/memmove.c (memmove): Renamed to ...
19052         (MEMMOVE): ...this.  Default to memmove.
19053         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
19054         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
19055         (END_CHK): Define.
19056         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
19057         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
19058         mempcpy-ssse3-back memmove-ssse3-back.
19059         * sysdeps/x86_64/multiarch/bcopy.S: New file .
19060         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
19061         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
19062         * sysdeps/x86_64/multiarch/memcpy.S: New file.
19063         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
19064         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
19065         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
19066         * sysdeps/x86_64/multiarch/memmove.c: New file.
19067         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
19068         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
19069         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
19070         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
19071         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
19072         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
19073         Define.
19074         (index_Fast_Copy_Backward): Define.
19075         (HAS_ARCH_FEATURE): Define.
19076         (HAS_FAST_REP_STRING): Define.
19077         (HAS_FAST_COPY_BACKWARD): Define.
19078
19079 2010-06-21  Andreas Schwab  <schwab@redhat.com>
19080
19081         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
19082         Restore proper fallback handling.
19083
19084 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
19085
19086         [BZ #11701]
19087         * posix/group_member.c (__group_member): Correct checking loop.
19088
19089         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
19090         OOM in getpwuid_r correctly.  Return error number when the caller
19091         should return, otherwise -1.
19092         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
19093         call returning > 0 value.
19094         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
19095
19096 2010-06-07  Andreas Schwab  <schwab@redhat.com>
19097
19098         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
19099         libc_nonshared.a from targets in modules-names.
19100
19101 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
19102
19103         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
19104         requires it.
19105
19106 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
19107
19108         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
19109         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
19110         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
19111         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
19112
19113 2010-06-02  Andreas Schwab  <schwab@redhat.com>
19114
19115         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
19116
19117 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
19118
19119         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
19120         and F_GETPIPE_SZ.
19121         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
19122         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
19123         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
19124         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
19125         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
19126         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
19127
19128 2010-06-14  Roland McGrath  <roland@redhat.com>
19129
19130         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
19131
19132 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
19133
19134         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
19135         __REDIRECT followed by __THROW.
19136         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
19137         * posix/getopt.h (getopt): Likewise.
19138
19139 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
19140
19141         * hurd/lookup-at.c (__file_name_lookup_at): Accept
19142         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
19143         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
19144         in AT_FLAGS.
19145         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
19146         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
19147
19148 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
19149
19150         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
19151
19152 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
19153
19154         [BZ #11640]
19155         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
19156         Properly check family and model.
19157
19158 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
19159
19160         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
19161
19162 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
19163
19164         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
19165
19166 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
19167
19168         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
19169         symbol reference.
19170
19171 2010-05-19  Andreas Schwab  <schwab@redhat.com>
19172
19173         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
19174         symbol reference.
19175
19176 2010-05-21  Andreas Schwab  <schwab@redhat.com>
19177
19178         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
19179         and internal_recvmmsg.
19180         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
19181         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
19182         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
19183         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
19184
19185         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
19186         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
19187         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
19188
19189 2010-05-20  Andreas Schwab  <schwab@redhat.com>
19190
19191         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
19192
19193 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
19194
19195         POWER7 optimizations.
19196         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
19197         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
19198
19199 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
19200
19201         * version.h: Update for 2.13 development version.
19202
19203 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
19204
19205         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
19206         exceptions.  Return 0.
19207
19208 2010-05-07  Roland McGrath  <roland@redhat.com>
19209
19210         * elf/ldconfig.c (main): Add a const.
19211
19212 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
19213
19214         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
19215         (args_options): Add no-idn option.
19216         (ahosts_keys_int): Add idn_flags to ai_flags.
19217         (parse_option): Handle 'i' option to clear idn_flags.
19218
19219         * malloc/malloc.c (_int_free): Possible race in the most recently
19220         added check.  Only act on the data if no current modification
19221         happened.
19222
19223 See ChangeLog.17 for earlier changes.