Add dependency tracking for preconfigure files.
[jlayton/glibc.git] / ChangeLog
1 2013-03-08  Roland McGrath  <roland@hack.frob.com>
2
3         * Makeconfig ($(common-objpfx)config.status): Depend on
4         sysdeps/*/preconfigure{,.in} too.
5
6 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
7
8         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
9         (__free_hook): Use void * instead of __malloc_ptr_t.
10         (__malloc_hook): Likewise.
11         (__realloc_hook): Likewise.
12         (__memalign_hook): Likewise.
13         (__after_morecore_hook): Likewise.
14         * malloc/arena.c (save_malloc_hook): Likewise.
15         (save_free_hook): Likewise.
16         * malloc/hooks.c (malloc_hook_ini): Likewise.
17         (realloc_hook_ini): Likewise.
18         (memalign_hook_ini): Likewise.
19         * malloc/malloc.c (malloc_hook_ini): Likewise.
20         (realloc_hook_ini): Likewise.
21         (memalign_hook_ini): Likewise.
22         (__free_hook): Likewise.
23         (__malloc_hook): Likewise.
24         (__realloc_hook): Likewise.
25         (__memalign_hook): Likewise.
26         (__libc_malloc): Likewise.
27         (__libc_free): Likewise.
28         (__libc_realloc): Likewise.
29         (__libc_memalign): Likewise.
30         (__libc_valloc): Likewise.
31         (__libc_pvalloc): Likewise.
32         (__libc_calloc): Likewise.
33         (__posix_memalign): Likewise.
34         * malloc/morecore.c (__sbrk): Likewise.
35         (__default_morecore): Likewise.
36
37         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
38
39         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
40         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
41         __malloc_ptrdiff_t.
42
43         * malloc/malloc.h (__malloc_size_t): Remove macro.
44         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
45         __malloc_size_t.
46         (old_memalign_hook): Likewise.
47         (old_realloc_hook): Likewise.
48         (struct hdr): Likewise.
49         (flood): Likewise.
50         (mallochook): Likewise.
51         (memalignhook): Likewise.
52         (reallochook): Likewise.
53         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
54         (tr_old_realloc_hook): Likewise.
55         (tr_old_memalign_hook): Likewise.
56         (tr_mallochook): Likewise.
57         (tr_reallochook): Likewise.
58         (tr_memalignhook): Likewise.
59
60 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
61
62         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
63         default_ldbl_pack and using as default implementation.
64         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
65         implementation.
66         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
67         redundant definition.
68         (ldbl_insert_mantissa): Likewise.
69         (ldbl_canonicalize): Likewise.
70         (ldbl_nearbyint): Likewise.
71         (ldbl_pack): Rename to ldbl_pack_ppc.
72         (ldbl_unpack): Rename to ldbl_unpack_ppc.
73         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
74         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
75
76 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
77
78         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
79         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
80         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
81         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
82         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
83         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
84         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
85         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
86
87 2013-03-07  Andreas Jaeger  <aj@suse.de>
88
89         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
90         bits/mman-linux.h.
91
92 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
93
94         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
95         Include mpa.h and declare __MPEXP.
96         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
97         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
98         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
99         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
100         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
101         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
102         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
103
104         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
105         (__slowpow): Use long double EXPL and LOGL functions to
106         compute POW.
107         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
108         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
109         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
110         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
111         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
112         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
113
114         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
115         intermediate variable to calculate exponent.
116         (__sqr): Likewise.
117         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
118         Likewise.
119         (__sqr): Likewise.
120
121         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
122         [!NO__SQR]: Define __sqr.
123         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
124         and NO__SQR.  Remove all code except __mul and __sqr.  Include
125         sysdeps/ieee754/dbl-64/mpa.c.
126         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
127
128         [BZ #12723]
129         * posix/Makefile (tests): Add tst-pathconf.
130         * posix/tst-pathconf.c: New test case.
131         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
132         _PC_PIPE_BUF.
133         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
134
135 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
136
137         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
138
139 2013-03-06  Andreas Jaeger  <aj@suse.de>
140
141         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
142         definition via __MAP_ANONYMOUS.
143
144         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
145         it's not part of Linux headers.
146
147         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
148         (MAP_HUGE_MASK): Define.
149
150         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
151         Define.
152         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
153         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
154         Define.
155         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
156         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
157         Define.
158         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
159         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
160         Define.
161         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
162
163         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
164         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
165         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
166         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
167         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
168         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
169
170         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
171         Handle f2fs.
172
173         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
174         Handle f2fs and efivarfs.
175
176         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
177         f2fs.
178
179         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
180         (EFIVARFS_MAGIC): Add.
181         (F2FS_LINK_MAX): Add.
182
183 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
184
185         * stdio-common/vfprintf.c: Replace __builtin_expect with
186         __glibc_unlikely.
187
188 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
189
190         [BZ #13550]
191         * sysdeps/generic/bp-sym.h: Remove file.
192         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
193         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
194         <bp-sym.h> and <bp-asm.h>.
195         (__longjmp): Don't use BP_SYM.
196         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
197         and <bp-asm.h>.
198         (memcpy): Don't use BP_SYM.
199         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
200         <bp-sym.h> and <bp-asm.h>.
201         (memcpy): Don't use BP_SYM.
202         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
203         <bp-asm.h>.
204         (memcpy): Don't use BP_SYM.
205         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
206         <bp-asm.h>.
207         (memset): Don't use BP_SYM.
208         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
209         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
210         (__bzero): Don't use BP_SYM.
211         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
212         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
213         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
214         <bp-sym.h> and <bp-asm.h>.
215         (memcmp): Don't use BP_SYM.  Remove comment about bounded
216         pointers.
217         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
218         <bp-sym.h> and <bp-asm.h>.
219         (memcpy): Don't use BP_SYM.
220         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
221         <bp-sym.h> and <bp-asm.h>.
222         (memset): Don't use BP_SYM.
223         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
224         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
225         (__bzero): Don't use BP_SYM.
226         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
227         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
228         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
229         <bp-sym.h> and <bp-asm.h>.
230         (strncmp): Don't use BP_SYM.  Remove comment about bounded
231         pointers.
232         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
233         <bp-sym.h> and <bp-asm.h>.
234         (memcpy): Don't use BP_SYM.
235         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
236         <bp-sym.h> and <bp-asm.h>.
237         (memset): Don't use BP_SYM.
238         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
239         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
240         (__bzero): Don't use BP_SYM.
241         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
242         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
243         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
244         <bp-sym.h> and <bp-asm.h>.
245         (__memchr): Don't use BP_SYM.
246         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
247         <bp-sym.h> and <bp-asm.h>.
248         (memcmp): Don't use BP_SYM.  Remove comment about bounded
249         pointers.
250         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
251         <bp-sym.h> and <bp-asm.h>.
252         (memcpy): Don't use BP_SYM.
253         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
254         <bp-sym.h> and <bp-asm.h>.
255         (__mempcpy): Don't use BP_SYM.
256         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
257         <bp-sym.h> and <bp-asm.h>.
258         (__memrchr): Don't use BP_SYM.
259         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
260         <bp-sym.h> and <bp-asm.h>.
261         (memset): Don't use BP_SYM.
262         (__bzero): Likewise.
263         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
264         <bp-sym.h> and <bp-asm.h>.
265         (__rawmemchr): Don't use BP_SYM.
266         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
267         <bp-sym.h> and <bp-asm.h>.
268         (__STRCMP): Don't use BP_SYM.
269         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
270         <bp-sym.h> and <bp-asm.h>.
271         (strchr): Don't use BP_SYM.
272         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
273         <bp-sym.h> and <bp-asm.h>.
274         (__strchrnul): Don't use BP_SYM.
275         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
276         <bp-sym.h> and <bp-asm.h>.
277         (strlen): Don't use BP_SYM.
278         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
279         <bp-sym.h> and <bp-asm.h>.
280         (strncmp): Don't use BP_SYM.  Remove comment about bounded
281         pointers.
282         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
283         <bp-sym.h> and <bp-asm.h>.
284         (__strnlen): Don't use BP_SYM.
285         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
286         <bp-sym.h> and <bp-asm.h>.
287         (__GI__setjmp): Don't use BP_SYM.
288         (_setjmp): Likewise.
289         (__sigsetjmp): Likewise.
290         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
291         (L(start_addresses)): Don't use BP_SYM.
292         (_start): Likewise.
293         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
294         <bp-asm.h>.
295         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
296         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
297         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
298         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
299         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
300         <bp-asm.h>.
301         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
302         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
303         about bounded pointers.
304         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
305         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
306         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
307         <bp-asm.h>.
308         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
309         about bounded pointers.  Remove GKM FIXME comments.
310         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
311         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
312         <bp-asm.h>.
313         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
314         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
315         Remove GKM FIXME comments.
316         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
317         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
318         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
319         <bp-asm.h>.
320         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
321         about bounded pointers.  Remove GKM FIXME comment.
322         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
323         and <bp-asm.h>.
324         (strncmp): Don't use BP_SYM.  Remove comment about bounded
325         pointers.
326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
327         <bp-sym.h> and <bp-asm.h>.
328         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
330         <bp-sym.h> and <bp-asm.h>.
331         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
332         comment.
333
334 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
335
336         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
337         call free(NULL).
338
339 2013-03-05  David S. Miller  <davem@davemloft.net>
340
341         * po/es.po: Update from translation team.
342
343 2013-03-05  Andreas Jaeger  <aj@suse.de>
344
345         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
346         <bits/mman-linux.h>.
347         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
348         is fine.
349         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
350         <bits/mman-linux.h> to end of file.
351         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
352         is fine.
353         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
354         <bits/mman-linux.h> to end of file.
355         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
356         is fine.
357         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
358         <bits/mman-linux.h> to end of file.
359
360         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
361         (MCL_CURRENT, MCL_FUTURE): Define here.
362
363 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
364
365         [BZ #15232]
366         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
367         attribute_hidden.
368         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
369
370 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
371
372         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
373         fourth parameter needed for rt_sigprocmask syscall.
374         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
375         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
376         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
377         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
378         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
379         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
380
381 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
382
383         [BZ #13550]
384         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
385         comment about bounded pointers.
386         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
387         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
388
389 2013-03-04  Andreas Jaeger  <aj@suse.de>
390
391         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
392         common definitions.
393
394         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
395         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
396         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
397         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
398         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
399         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
400
401 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
402
403         [BZ #15055]
404         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
405         __ieee754_sqrl instead of __sqrl.
406
407 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
408
409         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
410         * sysdeps/powerpc/fpu_control.h: ... here.
411         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
412         * sysdeps/powerpc/bits/fenvinline.h: ... here.
413         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
414         * sysdeps/powerpc/bits/mathinline.h: ... here.
415
416 2013-03-01  Roland McGrath  <roland@hack.frob.com>
417
418         * elf/dl-hwcaps.c (_dl_important_hwcaps):
419         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
420         to just [NEED_DL_SYSINFO_DSO].
421         * elf/dl-support.c: Likewise.
422         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
423         * elf/rtld.c (dl_main): Likewise.
424         * elf/setup-vdso.h (setup_vdso): Likewise.
425         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
426         * sysdeps/unix/sysv/linux/dl-sysdep.c
427         (_dl_discover_osversion): Likewise.
428
429 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
430
431         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
432         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
433
434 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
435
436         * NEWS: Mention libm performance improvements and non-x86 PI
437         futex support.
438
439         * csu/libc-start.c (__pthread_initialize_minimal): Change
440         function arguments.
441         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
442
443 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
444
445         [BZ #13550]
446         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
447         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
448         <bp-sym.h> and <bp-asm.h>.
449         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
450         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
451         and <bp-asm.h>.
452         (memcpy): Don't use BP_SYM.
453         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
454         <bp-asm.h>.
455         (__mpn_add_n): Don't use BP_SYM.
456         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
457         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
458         and <bp-asm.h>.
459         (__mpn_addmul_1): Don't use BP_SYM.
460         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
461         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
462         <bp-sym.h>.
463         (_setjmp): Don't use BP_SYM.
464         (__novmx_setjmp): Likewise.
465         (__GI__setjmp): Likewise.
466         (__vmx_setjmp): Likewise.
467         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
468         <bp-sym.h>.
469         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
470         (__bzero): Don't use BP_SYM.
471         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
472         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
473         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
474         <bp-sym.h> and <bp-asm.h>.
475         (memcpy): Don't use BP_SYM.
476         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
477         <bp-sym.h> and <bp-asm.h>.
478         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
479         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
480         <bp-sym.h> and <bp-asm.h>.
481         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
482         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
483         <bp-asm.h>.
484         (__mpn_lshift): Don't use BP_SYM.
485         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
486         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
487         <bp-asm.h>.
488         (memset): Don't use BP_SYM.
489         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
490         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
491         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
492         <bp-asm.h>.
493         (__mpn_mul_1): Don't use BP_SYM.
494         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
495         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
496         <bp-sym.h> and <bp-asm.h>.
497         (memcmp): Don't use BP_SYM.
498         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
499         <bp-sym.h> and <bp-asm.h>.
500         (memcpy): Don't use BP_SYM.
501         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
502         <bp-sym.h> and <bp-asm.h>.
503         (memset): Don't use BP_SYM.
504         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
505         <bp-sym.h> and <bp-asm.h>.
506         (strncmp): Don't use BP_SYM.
507         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
508         <bp-sym.h> and <bp-asm.h>.
509         (memcpy): Don't use BP_SYM.
510         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
511         <bp-sym.h> and <bp-asm.h>.
512         (memset): Don't use BP_SYM.
513         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
514         <bp-sym.h> and <bp-asm.h>.
515         (__memchr): Don't use BP_SYM.
516         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
517         <bp-sym.h> and <bp-asm.h>.
518         (memcmp): Don't use BP_SYM.
519         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
520         <bp-sym.h> and <bp-asm.h>.
521         (memcpy): Don't use BP_SYM.
522         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
523         <bp-sym.h> and <bp-asm.h>.
524         (__mempcpy): Don't use BP_SYM.
525         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
526         <bp-sym.h> and <bp-asm.h>.
527         (__memrchr): Don't use BP_SYM.
528         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
529         <bp-sym.h> and <bp-asm.h>.
530         (memset): Don't use BP_SYM.
531         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
532         <bp-sym.h> and <bp-asm.h>.
533         (__rawmemchr): Don't use BP_SYM.
534         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
535         <bp-sym.h> and <bp-asm.h>.
536         (__STRCMP): Don't use BP_SYM.
537         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
538         <bp-sym.h> and <bp-asm.h>.
539         (strchr): Don't use BP_SYM.
540         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
541         <bp-sym.h> and <bp-asm.h>.
542         (__strchrnul): Don't use BP_SYM.
543         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
544         <bp-sym.h> and <bp-asm.h>.
545         (strlen): Don't use BP_SYM.
546         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
547         <bp-sym.h> and <bp-asm.h>.
548         (strncmp): Don't use BP_SYM.
549         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
550         <bp-sym.h> and <bp-asm.h>.
551         (__strnlen): Don't use BP_SYM.
552         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
553         <bp-asm.h>.
554         (__mpn_rshift): Don't use BP_SYM.
555         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
556         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
557         <bp-sym.h> and <bp-asm.h>.
558         (__sigsetjmp): Don't use BP_SYM.
559         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
560         (L(start_addresses)): Don't use BP_SYM.
561         (_start): Likewise.
562         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
563         <bp-asm.h>.
564         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
565         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
566         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
567         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
568         <bp-asm.h>.
569         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
570         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
571         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
572         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
573         <bp-asm.h>.
574         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
575         comments.
576         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
577         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
578         <bp-asm.h>.
579         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
580         FIXME comments.
581         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
582         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
583         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
584         <bp-asm.h>.
585         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
586         comment.
587         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
588         and <bp-asm.h>.
589         (strncmp): Don't use BP_SYM,
590         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
591         <bp-asm.h>.
592         (__mpn_sub_n): Don't use BP_SYM.
593         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
594         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
595         and <bp-asm.h>.
596         (__mpn_submul_1): Don't use BP_SYM.
597         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
599         <bp-sym.h> and <bp-asm.h>.
600         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
601         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
602         <bp-sym.h> and <bp-asm.h>.
603         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
604         comment.
605
606 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
607
608         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
609         Use ZK to minimize writes to Z.
610         (sub_magnitudes): Simplify code a bit.
611         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
612         Use ZK to minimize writes to Z.
613         (sub_magnitudes): Simplify code a bit.
614
615 2013-02-27  Roland McGrath  <roland@hack.frob.com>
616
617         * csu/gmon-start.c: Add special exception to license text.
618
619 2013-02-27  Richard Henderson  <rth@redhat.com>
620
621         * scripts/config.guess: Update from config.git.
622         * scripts/config.sub: Likewise.
623
624 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
625
626         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
627
628         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
629
630         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
631
632         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
633
634         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
635
636 2013-02-26  Roland McGrath  <roland@hack.frob.com>
637
638         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
639         [$(build-shared = yes].
640
641 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
642
643         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
644         (__mul): Reduce iterations for calculating mantissa.
645
646         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
647         MPTWO.
648         (__mpranred): Likewise.
649
650         [BZ #15160]
651         * malloc/memusagestat.c (main): Draw graphs for heap and stack
652         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
653
654 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
655
656         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
657         Define __attribute__.
658
659 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
660
661         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
662         unused.
663         * posix/regex_internal.h (__attribute): Remove.
664         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
665         (re_string_context_at): Likewise.
666         (bitset_not): Use __attribute__ and mark function as possibly
667         unused.
668         (bitset_merge): Likewise.
669         (bitset_mask): Likewise.
670         (re_string_char_size_at): Likewise.
671         (re_string_wchar_at): Likewise.
672         (re_string_elem_size_at): Likewise.
673
674 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
675
676         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
677         code.
678         (cc32): Likewise.
679
680         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
681         (__acr): Likewise.
682         (__cpy): Likewise.
683         (norm): Likewise.
684         (denorm): Likewise.
685         (__dbl_mp): Likewise.
686         (add_magnitudes): Likewise.
687         (sub_magnitudes): Likewise.
688         (__mul): Likewise.
689         (__inv): Likewise.
690
691         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
692         style.
693
694         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
695         style.
696
697         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
698         code.
699
700         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
701         up changes with default code.
702         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
703         Likewise.
704
705 2013-02-24  Allan McRae  <allan@archlinux.org>
706
707         * manual/socket.texi (The Internet Namespace): Order menu items
708         to match that in the file.
709
710         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
711         node listing of the info page menu.
712
713 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
714
715         [BZ #13550]
716         * sysdeps/i386/bp-asm.h: Remove file.
717         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
718         (PARMS): Do not use macros from bp-asm.h.
719         (S1): Likewise.
720         (S2): Likewise.
721         (SIZE): Likewise.
722         (__mpn_add_n): Do not use BP_SYM
723         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
724         "bp-asm.h".
725         (PARMS): Do not use macros from bp-asm.h.
726         (S1): Likewise.
727         (SIZE): Likewise.
728         (__mpn_addmul_1): Do not use BP_SYM
729         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
730         "bp-asm.h".
731         (PARMS): Do not use macros from bp-asm.h.
732         (SIGMSK): Likewise.
733         (_setjmp): Likewise.  Do not use BP_SYM.
734         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
735         "bp-asm.h".
736         (PARMS): Do not use macros from bp-asm.h.
737         (SIGMSK): Likewise.
738         (setjmp): Likewise.  Do not use BP_SYM.
739         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
740         "bp-asm.h".
741         (PARMS): Do not use macros from bp-asm.h.
742         (__frexp): Do not use BP_SYM.
743         (frexp): Likewise.
744         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
745         "bp-asm.h".
746         (PARMS): Do not use macros from bp-asm.h.
747         (__frexpf): Do not use BP_SYM.
748         (frexpf): Likewise.
749         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
750         "bp-asm.h".
751         (PARMS): Do not use macros from bp-asm.h.
752         (__frexpl): Do not use BP_SYM.
753         (frexpl): Likewise.
754         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
755         "bp-asm.h".
756         (PARMS): Do not use macros from bp-asm.h.
757         (__remquo): Do not use BP_SYM.
758         (remquo): Likewise.
759         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
760         "bp-asm.h".
761         (PARMS): Do not use macros from bp-asm.h.
762         (__remquof): Do not use BP_SYM.
763         (remquof): Likewise.
764         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
765         "bp-asm.h".
766         (PARMS): Do not use macros from bp-asm.h.
767         (__remquol): Do not use BP_SYM.
768         (remquol): Likewise.
769         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
770         "bp-asm.h".
771         (PARMS): Do not use macros from bp-asm.h.
772         (DEST): Likewise.
773         (SRC): Likewise.
774         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
775         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
776         "bp-asm.h".
777         (PARMS): Do not use macros from bp-asm.h.
778         (strlen): Do not use BP_SYM.
779         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
780         "bp-asm.h".
781         (PARMS): Do not use macros from bp-asm.h.
782         (S1): Likewise.
783         (S2): Likewise.
784         (SIZE): Likewise.
785         (__mpn_add_n): Do not use BP_SYM.
786         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
787         "bp-asm.h".
788         (PARMS): Do not use macros from bp-asm.h.
789         (S1): Likewise.
790         (SIZE): Likewise.
791         (__mpn_addmul_1): Do not use BP_SYM.
792         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
793         weak_alias.
794         (bzero): Likewise.
795         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
796         "bp-asm.h".
797         (PARMS): Do not use macros from bp-asm.h.
798         (S): Likewise.
799         (SIZE): Likewise.
800         (__mpn_lshift): Do not use BP_SYM.
801         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
802         "bp-asm.h".
803         (PARMS): Do not use macros from bp-asm.h.
804         (DEST): Likewise.
805         (SRC): Likewise.
806         (LEN): Likewise.
807         (memcpy): Likewise.  Do not use BP_SYM.
808         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
809         libc_hidden_def and weak_alias.
810         (mempcpy): Do not use BP_SYM in weak_alias.
811         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
812         "bp-asm.h".
813         (PARMS): Do not use macros from bp-asm.h.
814         (DEST): Likewise.
815         (LEN): Likewise.
816         [!BZERO_P] (CHR): Likewise.
817         (memset): Likewise.  Do not use BP_SYM.
818         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
819         "bp-asm.h".
820         (PARMS): Do not use macros from bp-asm.h.
821         (S1): Likewise.
822         (SIZE): Likewise.
823         (__mpn_mul_1): Do not use BP_SYM.
824         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
825         "bp-asm.h".
826         (PARMS): Do not use macros from bp-asm.h.
827         (S): Likewise.
828         (SIZE): Likewise.
829         (__mpn_rshift): Do not use BP_SYM.
830         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
831         "bp-asm.h".
832         (PARMS): Do not use macros from bp-asm.h.
833         (STR): Likewise.
834         (CHR): Likewise.
835         (strchr): Likewise.  Do not use BP_SYM.
836         (index): Do not use BP_SYM in weak_alias.
837         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
838         "bp-asm.h".
839         (PARMS): Do not use macros from bp-asm.h.
840         (DEST): Likewise.
841         (SRC): Likewise.
842         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
843         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
844         "bp-asm.h".
845         (PARMS): Do not use macros from bp-asm.h.
846         (strlen): Do not use BP_SYM.
847         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
848         "bp-asm.h".
849         (PARMS): Do not use macros from bp-asm.h.
850         (S1): Likewise.
851         (S2): Likewise.
852         (SIZE): Likewise.
853         (__mpn_sub_n): Do not use BP_SYM.
854         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
855         "bp-asm.h".
856         (PARMS): Do not use macros from bp-asm.h.
857         (S1): Likewise.
858         (SIZE): Likewise.
859         (__mpn_submul_1): Do not use BP_SYM.
860         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
861         "bp-asm.h".
862         (PARMS): Do not use macros from bp-asm.h.
863         (S1): Likewise.
864         (S2): Likewise.
865         (SIZE): Likewise.
866         (__mpn_add_n): Do not use BP_SYM.
867         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
868         weak_alias.
869         (bzero): Likewise.
870         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
871         "bp-asm.h".
872         (PARMS): Do not use macros from bp-asm.h.
873         (BLK2): Likewise.
874         (LEN): Likewise.
875         (memcmp): Do not use BP_SYM.
876         (bcmp): Do not use BP_SYM in weak_alias.
877         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
878         "bp-asm.h".
879         (PARMS): Do not use macros from bp-asm.h.
880         (DEST): Likewise.
881         (SRC): Likewise.
882         (LEN): Likewise.
883         (memcpy): Likewise.  Do not use BP_SYM.
884         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
885         "bp-asm.h".
886         (PARMS): Do not use macros from bp-asm.h.
887         (DEST): Likewise.
888         (SRC): Likewise.
889         (LEN): Likewise.
890         (memmove): Likewise.  Do not use BP_SYM.
891         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
892         "bp-asm.h".
893         (PARMS): Do not use macros from bp-asm.h.
894         (DEST): Likewise.
895         (SRC): Likewise.
896         (LEN): Likewise.
897         (__mempcpy): Likewise.  Do not use BP_SYM.
898         (mempcpy): Do not use BP_SYM in weak_alias.
899         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
900         "bp-asm.h".
901         (PARMS): Do not use macros from bp-asm.h.
902         (DEST): Likewise.
903         (LEN): Likewise.
904         [!BZERO_P] (CHR): Likewise.
905         (memset): Likewise.  Do not use BP_SYM.
906         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
907         "bp-asm.h".
908         (PARMS): Do not use macros from bp-asm.h.
909         (STR2): Likewise.
910         (strcmp): Do not use BP_SYM.
911         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
912         "bp-asm.h".
913         (PARMS): Do not use macros from bp-asm.h.
914         (STR): Likewise.
915         (DELIM): Likewise.
916         [USE_AS_STRTOK_R] (SAVE): Likewise.
917         (FUNCTION): Likewise.  Do not use BP_SYM.
918         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
919         aliases.
920         (strtok_r): Likewise.
921         (__GI___strtok_r): Likewise.
922         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
923         (PARMS): Do not use macros from bp-asm.h.
924         (S): Likewise.
925         (SIZE): Likewise.
926         (__mpn_lshift): Do not use BP_SYM.
927         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
928         (PARMS): Do not use macros from bp-asm.h.
929         (STR): Likewise.
930         (CHR): Likewise.
931         (__memchr): Do not use BP_SYM.
932         (memchr): Do not use BP_SYM in weak_alias.
933         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
934         (PARMS): Do not use macros from bp-asm.h.
935         (BLK2): Likewise.
936         (LEN): Likewise.
937         (memcmp): Do not use BP_SYM.
938         (bcmp): Do not use BP_SYM in weak_alias.
939         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
940         (PARMS): Do not use macros from bp-asm.h.
941         (S1): Likewise.
942         (SIZE): Likewise.
943         (__mpn_mul_1): Do not use BP_SYM.
944         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
945         "bp-asm.h".
946         (PARMS): Do not use macros from bp-asm.h.
947         (STR): Likewise.
948         (CHR): Likewise.
949         (__rawmemchr): Do not use BP_SYM.
950         (rawmemchr): Do not use BP_SYM in weak_alias.
951         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
952         (PARMS): Do not use macros from bp-asm.h.
953         (S): Likewise.
954         (SIZE): Likewise.
955         (__mpn_rshift): Do not use BP_SYM.
956         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
957         (PARMS): Do not use macros from bp-asm.h.
958         (SIGMSK): Likewise.
959         (__sigsetjmp): Likewise.  Do not use BP_SYM.
960         * sysdeps/i386/start.S: Do not include "bp-sym.h".
961         (_start): Do not use BP_SYM.
962         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
963         (PARMS): Do not use macros from bp-asm.h.
964         (DEST): Likewise.
965         (SRC): Likewise.
966         (__stpcpy): Likewise.  Do not use BP_SYM.
967         (stpcpy): Do not use BP_SYM in weak_alias.
968         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
969         "bp-asm.h".
970         (PARMS): Do not use macros from bp-asm.h.
971         (DEST): Likewise.
972         (SRC): Likewise.
973         (LEN): Likewise.
974         (__stpncpy): Likewise.  Do not use BP_SYM.
975         (stpncpy): Do not use BP_SYM in weak_alias.
976         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
977         (PARMS): Do not use macros from bp-asm.h.
978         (STR): Likewise.
979         (CHR): Likewise.
980         (strchr): Likewise.  Do not use BP_SYM.
981         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
982         "bp-asm.h".
983         (PARMS): Do not use macros from bp-asm.h.
984         (STR): Likewise.
985         (CHR): Likewise.
986         (__strchrnul): Likewise.  Do not use BP_SYM.
987         (strchrnul): Do not use BP_SYM in weak_alias.
988         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
989         "bp-asm.h".
990         (PARMS): Do not use macros from bp-asm.h.
991         (STOP): Likewise.
992         (strcspn): Do not use BP_SYM.
993         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
994         "bp-asm.h".
995         (PARMS): Do not use macros from bp-asm.h.
996         (STR): Likewise.
997         (STOP): Likewise.
998         (strpbrk): Likewise.  Do not use BP_SYM.
999         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
1000         "bp-asm.h".
1001         (PARMS): Do not use macros from bp-asm.h.
1002         (STR): Likewise.
1003         (CHR): Likewise.
1004         (strrchr): Likewise.  Do not use BP_SYM.
1005         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
1006         (PARMS): Do not use macros from bp-asm.h.
1007         (SKIP): Likewise.
1008         (strspn): Do not use BP_SYM.
1009         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
1010         (PARMS): Do not use macros from bp-asm.h.
1011         (STR): Likewise.
1012         (DELIM): Likewise.
1013         (SAVE): Likewise.
1014         (FUNCTION): Likewise.  Do not use BP_SYM.
1015         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
1016         aliases.
1017         (strtok_r): Likewise.
1018         (__GI___strtok_r): Likewise.
1019         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
1020         (PARMS): Do not use macros from bp-asm.h.
1021         (S1): Likewise.
1022         (S2): Likewise.
1023         (SIZE): Likewise.
1024         (__mpn_sub_n): Do not use BP_SYM.
1025         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
1026         "bp-asm.h".
1027         (PARMS): Do not use macros from bp-asm.h.
1028         (S1): Likewise.
1029         (SIZE): Likewise.
1030         (__mpn_submul_1): Do not use BP_SYM.
1031         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
1032         <bp-sym.h>.
1033         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
1034         and <bp-asm.h>.
1035         (PARMS): Do not use macros from bp-asm.h.
1036         (FLAGS): Likewise.
1037         (PTID): Likewise.
1038         (TLS): Likewise.
1039         (CTID): Likewise.
1040         (__clone): Do not use BP_SYM.
1041         (clone): Do not use BP_SYM in weak_alias.
1042         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
1043         and <bp-asm.h>.
1044         (PARMS): Do not use macros from bp-asm.h.
1045         (LEN): Likewise.
1046         (__mmap64): Do not use BP_SYM.
1047         (mmap64): Do not use BP_SYM in weak_alias.
1048         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
1049         <bp-sym.h> and <bp-asm.h>.
1050         (PARMS): Do not use macros from bp-asm.h.
1051         (__posix_fadvise64_l64): Do not use BP_SYM.
1052         * sysdeps/unix/sysv/linux/i386/semtimedop.S
1053         (PARMS): Do not use macros from bp-asm.h.
1054         (NSOPS): Likewise.
1055         (semtimedop): Do not use BP_SYM.
1056         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
1057         and <bp-asm.h>.
1058
1059 2013-02-21  Allan McRae  <allan@archlinux.org>
1060
1061         * manual/message.texi (Charset conversion in gettext):
1062         Move @end statement to beginning of line.
1063
1064 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1065
1066         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
1067         static.
1068         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
1069         Likewise.
1070
1071         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
1072         (denorm): Likewise.
1073         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
1074         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
1075
1076 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1077
1078         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
1079         tail-call to the resolved function if pltexit isn't needed.
1080
1081 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1082
1083         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
1084         or Y being zero as being unlikely.
1085         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
1086         Likewise.
1087
1088 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
1089
1090         * manual/nss.texi (System Databases and Name Service Switch):
1091         Remove frobnicate @pxref.
1092
1093 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
1094
1095         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
1096         __attribute__ ((unused)) to __attribute__ ((__unused__)).
1097
1098 2013-02-20  Petr Machata  <pmachata@redhat.com>
1099
1100         * elf/elf.h (R_ARM_TARGET1): New macro.
1101         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
1102         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
1103         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
1104         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
1105         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
1106         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
1107         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
1108         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
1109         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
1110         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
1111         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
1112         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
1113         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
1114         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
1115         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
1116         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
1117         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
1118         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
1119         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
1120         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
1121         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
1122         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
1123         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
1124         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
1125         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
1126         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
1127         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
1128         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
1129         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
1130         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
1131         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
1132         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
1133         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
1134         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
1135         (R_ARM_THM_GOT_BREL12): Likewise.
1136         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
1137         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
1138         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
1139         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
1140         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
1141         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
1142         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
1143         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
1144         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
1145
1146 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
1147
1148         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
1149         __attribute_used__ to __attribute__ ((unused)).
1150
1151 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1152
1153         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
1154         powerpc mpa.c.
1155         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
1156         comment formatting.
1157         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
1158
1159 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
1160
1161         [BZ #13550]
1162         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
1163         Remove macro.
1164         (ENTER): Remove both macro definitions.
1165         (LEAVE): Likewise.
1166         (CHECK_BOUNDS_LOW): Likewise.
1167         (CHECK_BOUNDS_HIGH): Likewise.
1168         (CHECK_BOUNDS_BOTH): Likewise.
1169         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
1170         (RETURN_BOUNDED_POINTER): Likewise.
1171         (RETURN_NULL_BOUNDED_POINTER): Likewise.
1172         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
1173         (POP_ERRNO_LOCATION_RETURN): Likewise.
1174         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
1175         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1176         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
1177         macros.
1178         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1179         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
1180         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
1181         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
1182         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
1183         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
1184         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
1185         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
1186         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
1187         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1188         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1189         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
1190         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1191         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
1192         removed macros.
1193         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1194         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
1195         macros.
1196         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1197         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
1198         * sysdeps/i386/i586/memset.S (memset): Likewise.
1199         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
1200         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1201         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
1202         macros.
1203         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1204         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
1205         Change uses of L(2) to L(out).
1206         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
1207         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1208         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
1209         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1210         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
1211         removed macros.
1212         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1213         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
1214         macros.
1215         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1216         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
1217         (RETURN): Do not use macro LEAVE.
1218         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
1219         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1220         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
1221         * sysdeps/i386/i686/memset.S (memset): Likewise.
1222         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1223         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
1224         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1225         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
1226         Likewise.
1227         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1228         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
1229         L(1_2) and L(1_3) into L(1).
1230         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
1231         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
1232         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1233         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
1234         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1235         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
1236         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
1237         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1238         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
1239         macros.
1240         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
1241         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1242         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
1243         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
1244         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1245         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1246         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
1247         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
1248         * sysdeps/i386/strcspn.S (strcspn): Likewise.
1249         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1250         * sysdeps/i386/strrchr.S (strrchr): Likewise.
1251         * sysdeps/i386/strspn.S (strspn): Likewise.
1252         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
1253         conditional code.
1254         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1255         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
1256         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
1257         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
1258         L(1_3) into L(1_1).
1259         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
1260         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1261         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
1262         macros.
1263         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1264
1265 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
1266
1267         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
1268         macro.
1269
1270 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1271
1272         * math/atest-exp.c (exp_mpn): Remove ROUND.
1273         * math/atest-exp2.c (exp_mpn): Likewise.
1274         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
1275
1276         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
1277         * stdlib/tst-tls-atexit-lib.c: Likewise.
1278         * stdlib/tst-tls-atexit.c: Likewise.
1279
1280 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
1281
1282         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
1283         and __attribute_alloc_size__.
1284
1285 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
1286
1287         * include/programs/xmalloc.h: Change __attribute_alloc_size to
1288         __attribute_alloc_size__.
1289         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
1290         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
1291
1292 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
1293
1294         * include/programs/xmalloc.h: New file.
1295         * catgets/gencat.c: Include it.
1296         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
1297         * elf/pldd.c: Likewise.
1298         * iconv/iconv_charmap.c: Likewise.
1299         * iconv/iconvconfig.c: Likewise.
1300         * iconv/strtab.c: Likewise.
1301         * locale/programs/locale.c: Likewise.
1302         * locale/programs/localedef.h: Likewise.
1303         * locale/programs/simple-hash.c: Likewise.
1304         * nscd/nscd.h: Likewise.
1305         * nss/makedb.c: Likewise.
1306         * sysdeps/generic/ldconfig.h: Likewise.
1307
1308 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1309
1310         * Versions.def: Add GLIBC_2.18.
1311         * include/link.h (struct link_map): New member l_tls_dtor_count.
1312         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
1313         (__call_tls_dtors): Likewise.
1314         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
1315         __cxa_thread_atexit_impl.
1316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1317         Likewise.
1318         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1319         Likewise.
1320         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
1321         Likewise.
1322         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
1323         Likewise.
1324         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1325         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
1326         Likewise.
1327         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
1328         Likewise.
1329         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1330         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1331         Likewise.
1332         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
1333         (tests): Add test case tst-tls-atexit.
1334         (modules-names): Add shared library for tst-tls-atexit.
1335         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
1336         (GLIBC_PRIVATE): Add __call_tls_dtors.
1337         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
1338         for libstdc++.
1339         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
1340         * stdlib/tst-tls-atexit.c: New test case.
1341         * stdlib/tst-tls-atexit-lib.c: New test case.
1342
1343         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
1344
1345         * elf/Versions (ld): Add _dl_find_dso_for_object.
1346         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
1347         * elf/dl-open.c (_dl_find_dso_for_object): New function.
1348         (dl_open_worker): Use _dl_find_dso_for_object.
1349         * elf/dl-sym.c (do_sym): Likewise.
1350         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
1351
1352 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1353
1354         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
1355         Syntactic changes only.
1356         (_dl_runtime_profile): Do a tail-call to the resolved function.
1357
1358 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
1359
1360         [BZ #13550]
1361         * sysdeps/x86_64/bp-asm.h: Remove file.
1362         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
1363         <bp-sym.h> and <bp-asm.h>.
1364         (__clone): Do not use BP_SYM.
1365         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
1366         <bp-sym.h> and <bp-asm.h>.
1367         * sysdeps/unix/x86_64/sysdep.S: Likewise.
1368         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
1369         "bp-asm.h".
1370         (_setjmp): Do not use BP_SYM.
1371         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
1372         "bp-asm.h".
1373         (setjmp): Do not use BP_SYM.
1374         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
1375         libc_hidden_def.
1376         (mempcpy): Do not use BP_SYM in weak_alias.
1377         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
1378         "bp-asm.h".
1379         (strchr): Do not use BP_SYM.
1380         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
1381         "bp-asm.h".
1382         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
1383         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
1384         (_start): Do not use BP_SYM.
1385         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
1386         "bp-asm.h".
1387         (strcat): Do not use BP_SYM.
1388         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
1389         "bp-asm.h".
1390         (STRCMP): Do not use BP_SYM.
1391         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
1392         "bp-asm.h".
1393         (STRCPY): Do not use BP_SYM.
1394         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
1395         "bp-asm.h".
1396         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
1397         "bp-asm.h".
1398         (FUNCTION): Do not use BP_SYM.
1399         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
1400         weak_alias.
1401         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
1402
1403 2013-02-17  Andreas Jaeger  <aj@suse.de>
1404
1405         * time/Versions: Sort entries.
1406         * string/Versions: Likewise.
1407         * resolv/Versions: Likewise.
1408         * posix/Versions: Likewise.
1409         * iconv/Versions: Likewise.
1410         * elf/Versions: Likewise.
1411         * wcsmbs/Versions: Likewise.
1412
1413 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1414
1415         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
1416         loop termination condition.
1417
1418         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
1419         variable to calculate EZ.
1420         (__sqr): Likewise.
1421
1422         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
1423         the lower precision input.
1424
1425 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
1426
1427         [BZ #13550]
1428         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
1429         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
1430         (run-via-rtld-prefix): Do not handle %-bp tests.
1431         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
1432         (all-object-suffixes): Remove .ob.
1433         (bppfx): Remove variable.
1434         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
1435         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
1436         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
1437         [$(build-bounded) = yes] (libtype.ob): Likewise.
1438         * Makerules (elide-routines.ob): Remove variable.
1439         (do-tests-clean): Do not handle *-bp.out.
1440         (common-mostlyclean): Do not handle *-bp and *-bp.out.
1441         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
1442         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
1443         (tests): Do not include $(tests-bp.out).
1444         (xtests): Do not include $(xtests-bp.out).
1445         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
1446         [$(build-bounded) = yes] ($(addprefix
1447         $(objpfx),$(binaries-bounded))): Remove rule.
1448         ($(objpfx)%-bp.out): Remove rule.
1449         * config.make.in (build-bounded): Remove variable.
1450         * crypt/Makefile [$(build-bounded) = yes]
1451         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
1452         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
1453         append to variable.
1454         [$(build-bounded) = yes] (install-lib): Likewise.
1455         [$(build-bounded) = yes] (generated): Likewise.
1456         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
1457         Remove rule.
1458         * intl/Makefile [$(build-bounded) = yes]
1459         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
1460         * math/Makefile [$(build-bounded) = yes]
1461         ($(tests:%=$(objpfx)%-bp): Likewise.
1462         * misc/Makefile [$(build-bounded) = yes]
1463         ($(objpfx)tst-tsearch-bp): Likewise.
1464         * nptl/Makeconfig (bounded-thread-library): Remove variable.
1465         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
1466         Remove dependency.
1467         * string/Makefile (o-objects.ob): Remove variable.
1468         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
1469         (CFLAGS-.ob): Remove variable.
1470         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
1471         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
1472         both definitions of variable.
1473         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
1474         (ASFLAGS-.ob): Remove variable.
1475
1476 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
1477
1478         [BZ #13550]
1479         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
1480         Remove __BOUNDED_POINTERS__ from condition.
1481         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
1482         * string/bits/string2.h [!__NO_STRING_INLINES &&
1483         !__BOUNDED_POINTERS__]: Likewise.
1484         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
1485         Likewise.
1486         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
1487         Remove conditional code.
1488         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
1489         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
1490         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
1491         condition.
1492
1493         [BZ #13550]
1494         * csu/libc-start.c: Do not include <bp-sym.h>.
1495         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
1496         * elf/dl-open.c: Do not include <bp-sym.h>.
1497         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
1498         * math/fegetenv.c: Do not include <bp-sym.h>.
1499         (fegetenv): Do not use BP_SYM in versioned symbols.
1500         * nptl/sysdeps/pthread/bits/libc-lockP.h
1501         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
1502         <bp-sym.h>.
1503         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1504         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
1505         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1506         (__pthread_mutex_destroy): Likewise.
1507         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1508         (__pthread_mutex_lock): Likewise.
1509         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1510         (__pthread_mutex_trylock): Likewise.
1511         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1512         (__pthread_mutex_unlock): Likewise.
1513         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1514         (__pthread_mutexattr_init): Likewise.
1515         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1516         (__pthread_mutexattr_destroy): Likewise.
1517         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1518         (__pthread_mutexattr_settype): Likewise.
1519         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1520         (__pthread_rwlock_init): Likewise.
1521         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1522         (__pthread_rwlock_destroy): Likewise.
1523         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1524         (__pthread_rwlock_rdlock): Likewise.
1525         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1526         (__pthread_rwlock_tryrdlock): Likewise.
1527         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1528         (__pthread_rwlock_wrlock): Likewise.
1529         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1530         (__pthread_rwlock_trywrlock): Likewise.
1531         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1532         (__pthread_rwlock_unlock): Likewise.
1533         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1534         (__pthread_key_create): Likewise.
1535         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1536         (__pthread_setspecific): Likewise.
1537         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1538         (__pthread_getspecific): Likewise.
1539         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
1540         Likewise.
1541         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1542         (_pthread_cleanup_push_defer): Likewise.
1543         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1544         (_pthread_cleanup_pop_restore): Likewise.
1545         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1546         (pthread_setcancelstate): Likewise.
1547         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
1548         <bp-sym.h>.
1549         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
1550         (memchr): Do not use BP_SYM in weak_alias.
1551         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
1552         (fegetenv): Do not use BP_SYM in versioned symbols.
1553         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
1554         (fesetenv): Do not use BP_SYM in versioned symbols.
1555         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
1556         (feupdateenv): Do not use BP_SYM in versioned symbols.
1557         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
1558         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
1559         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
1560         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
1561         (open64): Do not use BP_SYM in weak_alias.
1562         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
1563         (fegetenv): Do not use BP_SYM in versioned symbols.
1564         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
1565         (fesetenv): Do not use BP_SYM in versioned symbols.
1566         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
1567         (feupdateenv): Do not use BP_SYM in versioned symbols.
1568         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
1569         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
1570         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
1571         (feraiseexcept): Do not use BP_SYM in versioned symbols.
1572         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
1573         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
1574         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
1575         <bp-sym.h>.
1576         (__libc_start_main): Do not use BP_SYM.
1577
1578 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1579
1580         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
1581         redundant return line.
1582         (norm): Likewise.
1583         (denorm): Likewise.
1584         (dbl_mp): Likewise.
1585         (sub_magnitudes): Likewise.
1586         (__add): Likewise.
1587         (__sub): Likewise.
1588         (__mul): Likewise.
1589         (__inv): Likewise.
1590         (__dvd): Likewise.
1591         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
1592         (norm): Likewise.
1593         (denorm): Likewise.
1594         (dbl_mp): Likewise.
1595         (sub_magnitudes): Likewise.
1596         (__add): Likewise.
1597         (__sub): Likewise.
1598         (__mul): Likewise.
1599         (__inv): Likewise.
1600         (__dvd): Likewise.
1601
1602         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
1603         instead of __mul.
1604         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
1605         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
1606         (cc32): Likewise.
1607
1608         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
1609         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
1610         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
1611         of __mul for squares.
1612         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
1613         function
1614         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
1615         Likewise.
1616         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
1617         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
1618
1619 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
1620
1621         [BZ #13550]
1622         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
1623         code.
1624         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
1625         prototype or function definition.  Rename ubp_* variables and
1626         parameters.  Remove argv definitions conditional on
1627         [__BOUNDED_POINTERS__].
1628         * debug/backtrace.c (__backtrace): Do not use __unbounded.
1629         * elf/dl-runtime.c (_dl_fixup): Likewise.
1630         * include/set-hooks.h (RUN_HOOK): Likewise.
1631         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
1632         definition.
1633         * string/strcpy.c (strcpy): Do not use __unbounded.
1634         * sysdeps/generic/frame.h (struct layout): Likewise.
1635         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
1636         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
1637         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
1638         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
1639         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
1640         (__backtrace): Likewise.
1641         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
1642         use __ptrvalue.
1643         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1644         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
1645         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
1646         Likewise.
1647         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
1648         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1649         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
1650         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1651         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
1652         Do not use __unbounded.
1653         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
1654         Rename __unboundedrlimits parameter to rlimits in prototype.
1655         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
1656         Do not use __unbounded.
1657         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
1658         not use __ptrvalue.
1659         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1660         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
1661         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1662         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
1663         __ptrvalue or __unbounded.
1664         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
1665         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
1666         use __unbounded.
1667         (__new_msgctl): Do not use __ptrvalue.
1668         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
1669         __unbounded.
1670         (__libc_msgrcv): Do not use __ptrvalue.
1671         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
1672         startup_info): Do not use __unbounded.
1673         (__libc_start_main): Likewise.  Rename ubp_* variables and
1674         parameters.  Remove argv definitions conditional on
1675         [__BOUNDED_POINTERS__].
1676         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
1677         __ptrvalue.
1678         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
1679         use __unbounded.
1680         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
1681         or __ptrvalue.
1682         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
1683         use __unbounded.
1684         (__new_shmctl): Do not use __ptrvalue.
1685         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
1686         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
1687         Likewise.
1688         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
1689         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
1690         (__libc_sigaction): Likewise.
1691         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1692         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
1693         Likewise.
1694         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1695
1696 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
1697
1698         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
1699
1700         * string/mempcpy.c: Implement by calling memcpy.
1701
1702 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1703
1704         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
1705
1706         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
1707         evaluation.
1708
1709         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
1710         values in the mantissa.
1711
1712         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
1713         minimize writes to Z.
1714         (sub_magnitudes): Simplify code a bit.
1715
1716 2013-02-12  Roland McGrath  <roland@hack.frob.com>
1717
1718         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
1719         from the message.  The linker prefixes all warnings with that already.
1720
1721 2013-02-12  Andreas Schwab  <schwab@suse.de>
1722
1723         [BZ #15078]
1724         * posix/regexec.c (extend_buffers): Add parameter min_len.
1725         (check_matching): Pass minimum needed length.
1726         (clean_state_log_if_needed): Likewise.
1727         (get_subexp): Likewise.
1728         * posix/Makefile (tests): Add bug-regex34.
1729         (bug-regex34-ENV): Define.
1730         * posix/bug-regex34.c: New file.
1731
1732         [BZ #11561]
1733         * posix/regcomp.c (parse_bracket_exp): When looking up collating
1734         elements compare against the byte sequence of it, not its name.
1735         * posix/Makefile (tests): Add bug-regex35.
1736         (bug-regex35-ENV): Define.
1737         * posix/bug-regex35.c: New file.
1738
1739 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1740
1741         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
1742         comment.
1743         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
1744         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
1745         (CHECK_EOL): Add undef.
1746
1747 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
1748
1749         * bits/stdlib-bsearch.h: New file.
1750         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
1751         * stdlib/stdlib.h: Likewise.
1752
1753 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1754
1755         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
1756         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
1757         declaration.
1758         * manual/search.texi (Array Search Function): Add missing const in
1759         lfind prototype.
1760         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
1761         declaration to use rlim_t.
1762         (Basic Scheduling Functions): Remove erroneous const from
1763         sched_getparam prototype.  Remove erroneous * from
1764         sched_get_priority_max and sched_get_priority_min prototypes.
1765         (Resource Usage): Fix summary @comment on vtimes to refer to
1766         sys/vtimes.h rather than vtimes.h.
1767         Add missing *s in vtimes prototype.
1768         (Limits on Resources): Fix ulimit prototype to return long int.
1769         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
1770         prototypes to use long int rather than double.
1771         (BSD Random): Fix initstate and setstate to use char *, not void *.
1772         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
1773         prototype to make second argument 'struct aiocb64 *const[]'.
1774         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
1775         (Status of AIO Operations): Remove erroneous const in aio_return and
1776         aio_return64 prototypes.
1777         (Synchronizing I/O): Fix sync prototype to return void.
1778         * manual/startup.texi (Suboptions): Remove an erroneous const in
1779         getsubopt prototype.
1780         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
1781         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
1782         use size_t rather than int.
1783         (Scanning All Users): Likewise for getpwent_r.
1784         (Setting Groups): Add missing const to setgroups prototype.
1785         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
1786         * manual/socket.texi (Host Names): Fix gethostbyaddr and
1787         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
1788         'const void *' rather than 'const char *'.
1789         (Host Address Functions): Likewise for inet_ntop.
1790         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
1791         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
1792         ssize_t for return value.
1793         (Sending Data): Likewise for send, sendto, sendmsg.
1794         (Socket Option Functions): Add a missing const in setsockopt prototype.
1795         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
1796         use wchar_t for the argument.
1797         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
1798         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
1799         take no arguments.
1800         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
1801         double/float/long double for second argument.
1802         Fix return types of significand, significandf, significandl.
1803         * manual/filesys.texi (Setting Permissions): Use mode_t for second
1804         argument in fchmod prototype.
1805         (File Owner): Use uid_t and gid_t in fchown prototype.
1806         (File Times): Add const to utimes, futimes, and lutimes prototypes.
1807         (Making Special Files): Use mode_t and dev_t in mknod prototype.
1808         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
1809         use 'const struct dirent **' as argument types to CMP function pointer
1810         argument.
1811         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
1812         (File Times): Fix summary magic @comment for struct utimbuf and utime
1813         to refer to utime.h, not time.h.
1814         * manual/string.texi (Argz Functions): Add missing const in
1815         argz_extract and argz_next prototypes.
1816         (Finding Tokens in a String): Likewise for basename.
1817         (String/Array Comparison): Fix typo in wcscasecmp prototype.
1818         (Copying and Concatenation): Fix typo in wmemmove prototype.
1819         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
1820         (Signal Stack): Remove erroneous const in sigstack prototype.
1821         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
1822         prototype.
1823         (Simple Calendar Time): Likewise for stime.
1824         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
1825         prototype.
1826         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
1827         say sys/sysctl.h instead.
1828         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
1829         and vsyslog prototypes.
1830
1831 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1832
1833         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
1834         Remove.
1835
1836 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1837
1838         * misc/sys/mman.h: Fix typo in mremap comment.
1839
1840 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1841
1842         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
1843         the '\0' terminator.
1844
1845 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1846
1847         [BZ #13550]
1848         * debug/segfault.c: Don't include <bp-checks.h>.
1849         * sysdeps/generic/bp-checks.h: Remove file.
1850         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
1851         (__GETDENTS): Don't use CHECK_N.
1852         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
1853         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1854         (__getgroups): Don't use CHECK_N.
1855         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1856         (setgroups): Don't use CHECK_N.
1857         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
1858         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1859         (__libc_msgrcv): Don't use CHECK_N.
1860         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
1861         (__libc_msgsnd): Don't use CHECK_N.
1862         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
1863         <bp-checks.h>.
1864         (__libc_pread): Don't use CHECK_N.
1865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
1866         include <bp-checks.h>.
1867         (__libc_pread64): Don't use CHECK_N.
1868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
1869         include <bp-checks.h>.
1870         (__libc_pwrite): Don't use CHECK_N.
1871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
1872         include <bp-checks.h>.
1873         (__libc_pwrite64): Don't use CHECK_N.
1874         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
1875         <bp-checks.h>.
1876         (__libc_pread): Don't use CHECK_N.
1877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
1878         include <bp-checks.h>.
1879         (__libc_pread64): Don't use CHECK_N.
1880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
1881         include <bp-checks.h>.
1882         (__libc_pwrite): Don't use CHECK_N.
1883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
1884         include <bp-checks.h>.
1885         (__libc_pwrite64): Don't use CHECK_N.
1886         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
1887         (do_pread): Don't use CHECK_N.
1888         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
1889         (do_pread64): Don't use CHECK_N.
1890         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
1891         (do_pwrite): Don't use CHECK_N.
1892         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
1893         (do_pwrite64): Don't use CHECK_N.
1894         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
1895         (__libc_readv): Don't use CHECK_N.
1896         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
1897         (semop): Don't use CHECK_N.
1898         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
1899         <bp-checks.h>.
1900         (semtimedop): Don't use CHECK_N.
1901         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
1902         (__libc_pread): Don't use CHECK_N.
1903         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
1904         <bp-checks.h>.
1905         (__libc_pread64): Don't use CHECK_N.
1906         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
1907         <bp-checks.h>.
1908         (__libc_pwrite): Don't use CHECK_N.
1909         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
1910         <bp-checks.h>.
1911         (__libc_pwrite64): Don't use CHECK_N.
1912         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
1913         <bp-checks.h>.
1914         (__libc_msgrcv): Don't use CHECK_N.
1915         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
1916         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
1917         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
1918         (__libc_writev): Don't use CHECK_N.
1919
1920 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1921
1922         * string/strcpy.c: Removed unused variable.
1923
1924         * Makeconfig (+sysdep-includes): Define with := rather than =.
1925         Use an existing include/ subdir of each sysdeps dir before it.
1926
1927 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1928
1929         * nscd/connection.c (register_traced_file): Comment function.
1930         [HAVE_INOTIFY] (union __inev): Define.
1931         [HAVE_INOTIFY] (inotify_check_files): New function.
1932         [HAVE_INOTIFY] (clear_db_cache): Likewise.
1933         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
1934         clear_db_cache.
1935         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
1936
1937 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1938
1939         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
1940         loaded if not already and that a failure is permanent.
1941
1942 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1943
1944         [BZ #15006]
1945         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
1946         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
1947
1948 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1949
1950         [BZ #13550]
1951         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
1952         (CHECK_1_NULL_OK): Likewise.
1953         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
1954         (__fxstat): Do not use CHECK_1.
1955         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
1956         <bp-checks.h>.
1957         (___fxstat64): Do not use CHECK_1.
1958         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
1959         <bp-checks.h>.
1960         (__fxstatat): Do not use CHECK_1.
1961         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
1962         <bp-checks.h>.
1963         (__fxstatat64): Do not use CHECK_1.
1964         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
1965         <bp-checks.h>.
1966         (__fxstat): Do not use CHECK_1.
1967         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
1968         <bp-checks.h>.
1969         (__fxstatat): Do not use CHECK_1.
1970         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1971         <bp-checks.h>.
1972         (__getresgid): Do not use CHECK_1.
1973         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1974         <bp-checks.h>.
1975         (__getresuid): Do not use CHECK_1.
1976         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
1977         <bp-checks.h>.
1978         (__lxstat): Do not use CHECK_1.
1979         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1980         <bp-checks.h>.
1981         (__old_msgctl): Do not use CHECK_1.
1982         (__new_msgctl): Likewise.
1983         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
1984         <bp-checks.h>.
1985         (__new_setrlimit): Do not use CHECK_1.
1986         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
1987         <bp-checks.h>.
1988         (__old_shmctl): Do not use CHECK_1.
1989         (__new_shmctl): Likewise.
1990         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
1991         <bp-checks.h>.
1992         (__xstat): Do not use CHECK_1.
1993         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
1994         (__lxstat): Do not use CHECK_1.
1995         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
1996         <bp-checks.h>.
1997         (___lxstat64): Do not use CHECK_1.
1998         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
1999         (__old_msgctl): Do not use CHECK_1.
2000         (__new_msgctl): Likewise.
2001         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
2002         <bp-checks.h>.
2003         (__gettimeofday): Do not use CHECK_1.
2004         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
2005         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
2006         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
2007         <bp-checks.h>.
2008         (__gettimeofday): Do not use CHECK_1.
2009         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
2010         (__old_shmctl): Do not use CHECK_1_NULL_OK.
2011         (__new_shmctl): Do not use CHECK_1.
2012         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
2013         <bp-checks.h>.
2014         (do_sigtimedwait): Do not use CHECK_1.
2015         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
2016         <bp-checks.h>.
2017         (do_sigwaitinfo): Do not use CHECK_1.
2018         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
2019         <bp-checks.h>.
2020         (msgctl): Do not use CHECK_1.
2021         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
2022         <bp-checks.h>.
2023         (shmctl): Do not use CHECK_1.
2024         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
2025         (ustat): Do not use CHECK_1.
2026         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
2027         <bp-checks.h>.
2028         (__fxstat): Do not use CHECK_1.
2029         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
2030         <bp-checks.h>.
2031         (__fxstatat): Do not use CHECK_1.
2032         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
2033         <bp-checks.h>.
2034         (__lxstat): Do not use CHECK_1.
2035         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
2036         <bp-checks.h>.
2037         (__xstat): Do not use CHECK_1.
2038         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
2039         (__xstat): Do not use CHECK_1.
2040         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
2041         (___xstat64): Do not use CHECK_1.
2042
2043         [BZ #13550]
2044         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
2045         definitions.
2046         (CHECK_BOUNDS_HIGH): Likewise.
2047         * string/strcpy.c: Do not include <bp-checks.h>.
2048         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
2049
2050 2013-02-07  Roland McGrath  <roland@hack.frob.com>
2051
2052         * nscd/nscd-client.h (__nscd_drop_map_ref):
2053         Add __attribute__ ((unused)).
2054         * nis/nss-nisplus.h (niserr2nss): Likewise.
2055
2056         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
2057         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
2058
2059         * csu/libc-tls.c (init_static_tls, init_slotinfo):
2060         Remove inline keyword.
2061         * include/rounding-mode.h (round_away): Likewise.
2062         * libio/wfileops.c (adjust_wide_data): Likewise.
2063         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
2064         (__m128i_strloadu_tolower): Likewise.
2065         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
2066         (__m128i_strloadu_tolower): Likewise.
2067         * time/mktime.c (ydhms_diff): Likewise.
2068         * locale/elem-hash.h (elem_hash): Likewise.
2069         * locale/setlocale.c (setdata): Likewise.
2070         * posix/regex_internal.h (re_string_char_size_at): Likewise.
2071         (re_string_wchar_at): Likewise.
2072         (bitset_not, bitset_merge, bitset_mask): Likewise.
2073         [!(__GNUC__ > 3)] (inline): Remove macro.
2074         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
2075         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
2076         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
2077         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
2078         * string/memcmp.c (memcmp_bytes): Likewise.
2079         * locale/programs/locarchive.c (compute_hashval): Likewise.
2080         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
2081         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
2082         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
2083         * nss/getent.c (print_rpc, print_protocols): Likewise.
2084         (print_passwd, print_group, print_aliases): Likewise.
2085         * nis/nss-nisplus.h (niserr2nss): Likewise.
2086         * nscd/connections.c (restart_p): Likewise.
2087         Change return type to bool.
2088
2089 2013-02-05  Roland McGrath  <roland@hack.frob.com>
2090
2091         * Makeconfig (all-Depend-files): Add existing
2092         $(sorted-subdirs:=/Depend) files.
2093         (all-subdirs): Remove nss.
2094         * sysdeps/unix/inet/Subdirs: Add it here instead.
2095         * hesiod/Depend: New file.
2096
2097         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
2098         instead of calling alloca.
2099
2100         * io/lseek.c (__lseek): Rename to __libc_lseek.
2101         Define __lseek as an alias.
2102
2103         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
2104
2105 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
2106
2107         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
2108         else clause and remove check for non-standard endianness.
2109
2110 2013-02-04  David S. Miller  <davem@davemloft.net>
2111
2112         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2113
2114 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
2115
2116         [BZ #13550]
2117         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
2118         (__ubp_memchr): Remove prototype.
2119         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
2120         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
2121         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
2122         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
2123         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
2124         Remove alias.
2125         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
2126         (__ubp_memchr): Likewise.
2127         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
2128         (__ubp_memchr): Likewise.
2129         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
2130         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
2131         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
2132         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
2133         CHECK_STRING.
2134         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
2135         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
2136         (__getcwd): Do not use CHECK_STRING.
2137         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2138         <bp-checks.h>.
2139         (__real_chown): Do not use CHECK_STRING.
2140         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
2141         <bp-checks.h>.
2142         (fchownat): Do not use CHECK_STRING.
2143         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
2144         CHECK_STRING.
2145         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2146         <bp-checks.h>.
2147         (__lchown): Do not use CHECK_STRING.
2148         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2149         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2150         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2151         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
2152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2153         include <bp-checks.h>.
2154         (truncate64): Do not use CHECK_STRING.
2155         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2156         <bp-checks.h>.
2157         (__real_chown): Do not use CHECK_STRING.
2158         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2159         <bp-checks.h>.
2160         (__lchown): Do not use CHECK_STRING.
2161         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2162         <bp-checks.h>.
2163         (__chown): Do not use CHECK_STRING.
2164         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
2165         <bp-checks.h>.
2166         (truncate64): Do not use CHECK_STRING.
2167         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
2168         Likewise.
2169         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
2170         (__xmknod): Do not use CHECK_STRING.
2171         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
2172         <bp-checks.h>.
2173         (__xmknodat): Do not use CHECK_STRING.
2174         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2175         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
2176
2177 2013-02-04  Andreas Schwab  <schwab@suse.de>
2178
2179         [BZ #14142]
2180         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
2181         * include/netdb.h: Likewise for h_errno.
2182         * elf/tst-stackguard1.c: Include <tls.h>.
2183
2184 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2185
2186         * elf/link.h (struct link_map): Extend the l_addr comment.
2187         * include/link.h (struct link_map): Likewise.
2188
2189 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
2190
2191         [BZ #13550]
2192         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
2193         (BOUNDED_1): Remove macro.
2194         * debug/backtrace.c: Don't include <bp-checks.h>.
2195         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
2196         (__backtrace): Likewise.
2197         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
2198         <bp-checks.h>.
2199         (__backtrace): Don't use BOUNDED_1.
2200         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
2201         <bp-checks.h>.
2202         (__backtrace): Don't use BOUNDED_1.
2203         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
2204         (__backtrace): Don't use BOUNDED_1.
2205         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
2206         (shmat): Don't use BOUNDED_N.
2207
2208 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
2209
2210         [BZ #13550]
2211         * sysdeps/generic/bp-start.h: Remove file.
2212         * csu/libc-start.c: Don't include <bp-start.h>.
2213         (LIBC_START_MAIN): Set up __environ directly instead of using
2214         INIT_ARGV_and_ENVIRON.
2215         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
2216         <bp-start.h>.
2217
2218         [BZ #13550]
2219         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
2220         definitions.
2221         (CHECK_FCNTL): Likewise.
2222         (CHECK_N_PAGES): Likewise.
2223
2224         [BZ #13550]
2225         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
2226         definitions.
2227         (CHECK_SIGSET_NULL_OK): Likewise.
2228         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
2229         <bp-checks.h>.
2230         (sigpending): Don't use CHECK_SIGSET.
2231         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
2232         <bp-checks.h>.
2233         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2234         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
2235         <bp-checks.h>.
2236         (do_sigsuspend): Don't use CHECK_SIGSET.
2237         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
2238         use CHECK_SIGSET.
2239         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
2240         (do_sigwait): Don't use CHECK_SIGSET.
2241         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
2242         use CHECK_SIGSET.
2243         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
2244         include <bp-checks.h>.
2245         (sigpending): Don't use CHECK_SIGSET.
2246         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
2247         include <bp-checks.h>.
2248         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2249         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
2250         <bp-checks.h>.
2251         (sigpending): Don't use CHECK_SIGSET.
2252         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
2253         <bp-checks.h>.
2254         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2255
2256         [BZ #13550]
2257         * sysdeps/generic/bp-semctl.h: Remove file.
2258         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
2259         <bp-checks.h> and <bp-semctl.h>.
2260         (__old_semctl): Don't use CHECK_SEMCTL.
2261         (__new_semctl): Likewise.
2262         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
2263         and <bp-semctl.h>.
2264         (__old_semctl): Don't use CHECK_SEMCTL.
2265         (__new_semctl): Likewise.
2266         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
2267         <bp-checks.h> and <bp-semctl.h>.
2268         (__old_semctl): Don't use CHECK_SEMCTL.
2269         (__new_semctl): Likewise.
2270         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
2271         <bp-checks.h> and <bp-semctl.h>.
2272         (semctl): Don't use CHECK_SEMCTL.
2273
2274         [BZ #13550]
2275         * Makerules (elide-bp-thunks): Remove variable.
2276         (elide-routines.oS): Don't use $(elide-bp-thunks).
2277         (elide-routines.os): Likewise.
2278         (elide-routines.o): Likewise.
2279         (elide-routines.op): Likewise.
2280         (elide-routines.og): Likewise.
2281         (objects): Don't use $(bp-thunks).
2282         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
2283         include.
2284         (common-generated): Do not add s-proto-bp.d.
2285         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
2286         (int): Likewise.
2287         (typ): Likewise.
2288         Do not generate makefile rules for bounded-pointer thunks.
2289         * sysdeps/generic/bp-thunks.h: Remove file.
2290         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2291         * sysdeps/unix/s-proto-bp.S: Likewise.
2292
2293         [BZ #15062]
2294         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
2295         parts of result separately when argument is not close to line from
2296         -i to i and one part of argument is small.
2297         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2298         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2299         * math/libm-test.inc (cacos_test): Add more tests.
2300         (casin_test): Likewise.
2301         (casinh_test): Likewise.
2302         * sysdeps/i386/fpu/libm-test-ulps: Update.
2303         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2304
2305 2013-01-31  David S. Miller  <davem@davemloft.net>
2306
2307         * po/de.po: Update from translation team.
2308
2309 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2310
2311         * time/tzfile.c: Include stdint.h for SIZE_MAX.
2312
2313 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
2314
2315         * configure.in (_AC_PROG_CC_C89): New definition.
2316         * configure: Regenerate.
2317
2318         * configure.in (AC_PROG_CPP): New definition.
2319         * configure: Regenerate.
2320
2321 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
2322
2323         * debug/tst-backtrace.h: New file.
2324         * debug/tst-backtrace2.c: Include tst-backtrace.h.
2325         (ret): Remove variable.
2326         (x): Likewise.
2327         (FAIL): Remove macro.
2328         (NO_INLINE): Likewise.
2329         (fn1): Use match function instead of strstr.
2330         * debug/tst-backtrace3.c: Include tst-backtrace.h.
2331         (ret): Remove variable.
2332         (x): Likewise.
2333         (FAIL): Remove macro.
2334         (NO_INLINE): Likewise.
2335         (fn): Use match function instead of strstr.
2336         * debug/tst-backtrace4.c: Include tst-backtrace.h.
2337         (ret): Remove variable.
2338         (x): Likewise.
2339         (FAIL): Remove macro.
2340         (NO_INLINE): Likewise.
2341         (handle_signal): Use match function instead of strstr.
2342         * debug/tst-backtrace5.c: Include tst-backtrace.h.
2343         (ret): Remove variable.
2344         (x): Likewise.
2345         (FAIL): Remove macro.
2346         (NO_INLINE): Likewise.
2347         (handle_signal): Use match function instead of strstr.
2348
2349 2013-01-23  Roland McGrath  <roland@hack.frob.com>
2350
2351         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
2352
2353 2013-01-23  David S. Miller  <davem@davemloft.net>
2354
2355         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2356         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
2357         argument of CAS if possible.
2358         * sysdeps/sparc/sparc64/bits/atomic.h
2359         (__arch_compare_and_exchange_val_32_acq): Likewise.
2360         (__arch_compare_and_exchange_val_64_acq): Likewise.
2361
2362 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
2363
2364         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
2365         * sysdeps/posix/ulimit.c: ... this.
2366         Include <limits.h>.
2367         * sysdeps/unix/bsd/ulimit.c: Remove file.
2368
2369 2013-01-23  Adam Conrad  <adconrad@0c3.net>
2370
2371         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
2372         (LDFLAGS-tst-array5): Likewise.
2373
2374 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
2375
2376         [BZ #15036]
2377         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
2378         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
2379         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
2380         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
2381
2382 2013-01-21  David S. Miller  <davem@davemloft.net>
2383
2384         * sysdeps/sparc/backtrace.c: New file.
2385         * sysdeps/sparc/sparc32/backtrace.h: New file.
2386         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
2387         * sysdeps/sparc/sparc64/backtrace.h: New file.
2388         * sysdeps/sparc/sparc64/backtrace.c: Delete.
2389         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
2390         -funwind-tables.
2391
2392 2013-01-21  Andreas Schwab  <schwab@suse.de>
2393
2394         [BZ #15020]
2395         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
2396         closed its stdout.
2397
2398 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
2399
2400         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
2401         "mpa2.h".
2402         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2403
2404 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
2405             Mark Mitchell  <mark@codesourcery.com>
2406             Tom de Vries  <tom@codesourcery.com>
2407             Paul Pluzhnikov  <ppluzhnikov@google.com>
2408
2409         * debug/tst-backtrace2.c: New file.
2410         * debug/tst-backtrace3.c: Likewise.
2411         * debug/tst-backtrace4.c: Likewise.
2412         * debug/tst-backtrace5.c: Likewise.
2413         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
2414         (CFLAGS-tst-backtrace3.c): Likewise.
2415         (CFLAGS-tst-backtrace4.c): Likewise.
2416         (CFLAGS-tst-backtrace5.c): Likewise.
2417         (LDFLAGS-tst-backtrace2): Likewise.
2418         (LDFLAGS-tst-backtrace3): Likewise.
2419         (LDFLAGS-tst-backtrace4): Likewise.
2420         (LDFLAGS-tst-backtrace5): Likewise.
2421         (tests): Add new tests tst-backtrace2, tst-backtrace3,
2422         tst-backtrace4 and tst-backtrace5.
2423
2424 2013-01-18  Anton Blanchard  <anton@samba.org>
2425             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2426
2427         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
2428         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
2429         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
2430         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
2431         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2432         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
2433         "+r" and remove output regs list as redundant.  Add explicit inline
2434         asm to specify register of return val to work around compiler codegen
2435         bug.  Remove (int) cast on return value.  Add return type parameter to
2436         use in macro so that this macro does not truncate return value for
2437         64-bit values.
2438         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
2439         pass to INTERNAL_VSYSCALL_NCS.
2440         (INLINE_VSYSCALL): Add 'long int' as return type to
2441         INTERNAL_VSYSCALL_NCS macro invocation.
2442         (INTERNAL_VSYSCALL): Add 'long int' as return type to
2443         INTERNAL_VSYSCALL_NCS macro invocation.
2444         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2445
2446 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2447
2448         [BZ #14496]
2449         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
2450         Fix application of SIMD FP exception mask.
2451
2452         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
2453         mp_no from a power of two.
2454         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
2455         __mpexp_twomm1.  Use __pow_mp.
2456
2457         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
2458         multiplication.
2459
2460 2013-01-17  David S. Miller  <davem@davemloft.net>
2461
2462         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2463
2464 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
2465
2466         [BZ #15023]
2467         * include/complex.h: Condition contents on [!_COMPLEX_H].
2468         (__kernel_casinhf): New prototype.
2469         (__kernel_casinh): Likewise.
2470         (__kernel_casinhl): Likewise.
2471         * math/Makefile (libm_calls): Add k_casinh.
2472         * math/k_casinh.c: New file.
2473         * math/k_casinhf.c: Likewise.
2474         * math/k_casinhl.c: Likewise.
2475         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
2476         finite nonzero arguments.
2477         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
2478         finite nonzero arguments.
2479         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
2480         finite nonzero arguments.
2481         * math/s_casinh.c: Do not include <float.h>.
2482         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
2483         * math/s_casinhf.c: Do not include <float.h>.
2484         (__casinhf): Move code for finite nonzero arguments to
2485         k_casinhf.c.
2486         * math/s_casinhl.c: Do not include <float.h>.
2487         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
2488         redefine.
2489         (__casinhl): Move code for finite nonzero arguments to
2490         k_casinhl.c.
2491         * math/libm-test.inc (cacos_test): Add more tests.
2492         * sysdeps/i386/fpu/libm-test-ulps: Update.
2493         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2494
2495 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
2496
2497         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
2498         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
2499         [!HAVE_MREMAP]: Remove [defined linux] case.
2500         * malloc/arena.c: Do not include <malloc-sysdep.h>.
2501
2502 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2503
2504         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
2505
2506 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
2507
2508         * elf/elf.h (R_386_SIZE32): New relocation.
2509         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
2510         R_386_SIZE32.
2511         (elf_machine_rela): Likewise.
2512         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2513         R_X86_64_SIZE64 and R_X86_64_SIZE32.
2514
2515 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
2516
2517         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
2518         (FP_FAST_FMA): Do not define.
2519         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
2520         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
2521         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
2522         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
2523         !_SOFT_FLOAT]: Likewise.
2524         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
2525         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
2526         value.
2527         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
2528         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
2529         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
2530         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
2531         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
2532         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
2533         file.
2534
2535 2013-01-16  Andreas Schwab  <schwab@suse.de>
2536
2537         [BZ #14327]
2538         * include/stdlib.h (__mktemp): Add declaration.
2539         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
2540         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
2541
2542 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2543
2544         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
2545         definitions.
2546         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2547         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
2548         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
2549         definitions here.
2550         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
2551         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
2552         definitions.
2553         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
2554         and ONE.
2555         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
2556         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
2557         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
2558         definitions.
2559         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
2560         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
2561         definitions.
2562         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2563
2564         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
2565
2566 2013-01-15  David S. Miller  <davem@davemloft.net>
2567
2568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2569         trunc{,f} to libm-sysdep_routes.
2570         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
2572         file.
2573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
2574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
2575         file.
2576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
2577         file.
2578         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
2579         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
2580         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
2581         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
2582         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
2583         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
2584         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
2585         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
2586
2587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2588         nearbyint{,f} to libm-sysdep_routes.
2589         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2590         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
2591         New file.
2592         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
2593         file.
2594         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
2595         New file.
2596         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
2597         file.
2598         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
2599         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
2600         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
2601         file.
2602         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
2603         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
2604         file.
2605         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
2606         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
2607         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
2608
2609         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2610         libc_feholdexcept and libc_fesetenv.
2611
2612 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
2613
2614         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
2615
2616 2013-01-14  David S. Miller  <davem@davemloft.net>
2617
2618         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
2619         (SPARC_ASM_VIS2_IFUNC): Likewise.
2620         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
2621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
2622         use of 'siam' instruction.
2623         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
2624         Likewise.
2625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
2626         Likewise.
2627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
2628         Likewise.
2629         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
2630         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
2631         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
2632         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
2633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
2634         file.
2635         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
2636         file.
2637         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
2638         file.
2639         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
2640         file.
2641         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
2642         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
2643         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
2644         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
2645         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
2646         new VIS2 routines.
2647         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
2648         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
2650         Likewise.
2651         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
2652         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
2653         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
2654         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
2655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
2656         routines to libm-sysdep_routines.
2657         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2658
2659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2660         fdim/fdimf to libm-sysdep_routines.
2661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
2662         file.
2663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
2664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
2665         file.
2666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
2667         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
2668         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
2669         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
2670         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
2671         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
2672         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
2673
2674 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2675
2676         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
2677         to optimize copies.
2678
2679         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
2680         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2681         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2682
2683         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
2684         local variable MPTWO.
2685         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2686         Likewise.
2687
2688 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2689
2690         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
2691         GLOB_NOESCAPE.
2692
2693 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2694
2695         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
2696
2697 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2698
2699         * manual/pattern.texi (glob_t): Document gl_flags.
2700         (glob64_t): Likewise.
2701
2702 2013-01-11  David S. Miller  <davem@davemloft.net>
2703
2704         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
2705         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
2706         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
2707         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
2708         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
2709         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
2710         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
2711         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
2712         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
2713         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
2714         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
2715         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
2716         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
2717
2718         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2719         sparc V9 rather than using V8 code.
2720         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2721         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2722
2723         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2724         Move to...
2725         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
2726         Here.
2727
2728 2013-01-11  Roland McGrath  <roland@hack.frob.com>
2729
2730         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
2731         not in the main loop.
2732         * configure: Regenerated.
2733
2734 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
2735
2736         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
2737         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
2738         to just #else.
2739         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
2740         [!__GLIBC_HAVE_LONG_LONG] case.
2741         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
2742         condition to just #else.
2743         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
2744         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
2745         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
2746         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
2747         unconditional.
2748         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
2749         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2750         #elif condition to just #else.
2751         * sysdeps/unix/sysv/linux/sys/sysmacros.h
2752         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
2753         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2754         #elif condition to just #else.
2755
2756 2013-01-11  Steve Ellcey  <sellcey@mips.com>
2757
2758         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
2759         (EF_MIPS_ARCH_64): Fix value.
2760         (EF_MIPS_ARCH_32R2): New.
2761         (EF_MIPS_ARCH_64R2): New.
2762
2763 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
2764
2765         * Makeconfig (+link-pie-before-libc): New.
2766         (+link-pie-after-libc): Likewise.
2767         (+link-pie-tests): Likewise.
2768         (+link-pie): Rewritten.
2769         (link-before-libc): Remove $(config-LDFLAGS).
2770         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
2771         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
2772         (config-LDFLAGS): Renamed to ...
2773         (rtld-LDFLAGS): This.
2774         (rtld-tests-LDFLAGS): New macro.
2775         (link-libc-rpath-link): Likewise.
2776         (link-libc-tests-rpath-link): Likewise.
2777         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
2778         (link-libc): Prepand $(link-libc-rpath-link).
2779         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
2780         (test-program-prefix): New macro.
2781         (test-via-rtld-prefix): Likewise.
2782         (test-program-cmd): Likewise.
2783         (host-test-program-cmd): Likewise.
2784         * Makefile ($(common-objpfx)testrun.sh): Replace
2785         $(run-program-prefix) with $(test-program-prefix).
2786         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
2787         $(rtld-LDFLAGS).
2788         ($(common-objpfx)shlib.lds): Likewise.
2789         (build-module-helper): Likewise.
2790         ($(common-objpfx)format.lds): Likewise.
2791         * Rules (binaries-pie-tests): New.
2792         (binaries-pie-notests): Likewise.
2793         (binaries-pie): Rewritten.
2794         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
2795         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
2796         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
2797         (make-test-out): Replace $(host-built-program-cmd) with
2798         $(host-test-program-cmd).
2799         * config.make.in (build-hardcoded-path-in-tests): New variable.
2800         * configure.in (--enable-hardcoded-path-in-tests): New configure
2801         option.
2802         (hardcoded_path_in_tests): New AC_SUBST.
2803         * configure: Regenerated.
2804         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
2805         $(built-program-cmd) with $(test-program-cmd).
2806         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
2807         (test_program_cmd): This.
2808         * elf/Makefile ($(objpfx)order.out): Run test with
2809         $(test-program-prefix).
2810         ($(objpfx)order2.out): Likewise.
2811         ($(objpfx)tst-initorder.out): Likewise.
2812         ($(objpfx)tst-initorder2.out): Likewise.
2813         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
2814         $(test-program-cmd).
2815         ($(objpfx)tst-array1-static.out): Likewise.
2816         ($(objpfx)tst-array2.out): Likewise.
2817         ($(objpfx)tst-array3.out): Likewise.
2818         ($(objpfx)tst-array4.out): Likewise.
2819         ($(objpfx)tst-array5.out): Likewise.
2820         ($(objpfx)tst-array5-static.out): Likewise.
2821         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
2822         $(test-program-cmd).
2823         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
2824         $(run-program-prefix) with $(test-program-prefix).
2825         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
2826         (test_program_prefix): This.
2827         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
2828         $(run-program-prefix) with $(test-program-prefix).
2829         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
2830         (test_program_prefix): This.
2831         * iconvdata/tst-tables.sh: Likewise.
2832         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
2833         $(run-program-prefix) with $(test-program-prefix).
2834         ($(objpfx)tst-translit.out): Likewise.
2835         ($(objpfx)tst-gettext2.out): Likewise.
2836         ($(objpfx)tst-gettext4.out): Likewise.
2837         ($(objpfx)tst-gettext6.out): Likewise.
2838         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
2839         (test_program_prefix): This.
2840         * intl/tst-gettext2.sh: Likewise.
2841         * intl/tst-gettext4.sh  Likewise.
2842         * intl/tst-gettext6.sh: Likewise.
2843         * intl/tst-translit.sh: Likewise.
2844         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
2845         with $(test-program-cmd).
2846         * libio/Makefile ($(objpfx)test-freopen.out): Replace
2847         $(run-program-prefix) with $(test-program-prefix).
2848         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
2849         (test_program_prefix): This.
2850         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
2851         $(run-program-prefix) with $(test-program-prefix).
2852         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
2853         (test_program_prefix): This.
2854         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
2855         * posix/Makefile ($(objpfx)globtest.out): Replace
2856         $(run-via-rtld-prefix) and $(test-wrapper) with
2857         $(test-program-prefix) and $(test-via-rtld-prefix).
2858         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
2859         $(test-program-prefix).
2860         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
2861         $(host-test-program-cmd).
2862         (tst-spawn-ARGS): Likewise.
2863         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
2864         $(test-program-prefix).
2865         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
2866         (test_via_rtld_prefix): This.
2867         (test_wrapper): Renamed to ...
2868         (test_program_prefix): This.
2869         (run_program_prefix): Replaced by test_program_prefix.
2870         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
2871         (test_program_prefix): This.
2872         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
2873         with $(host-test-program-cmd).
2874         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
2875         $(run-program-prefix) with $(test-program-prefix).
2876         ($(objpfx)tst-printf.out): Likewise.
2877         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
2878         $(test-program-cmd).
2879         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
2880         (test_program_prefix): This.
2881         * stdio-common/tst-unbputc.sh: Likewise.
2882         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
2883         $(run-program-prefix) with $(test-program-prefix).
2884         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
2885         (test_program_prefix): This.
2886         * string/Makefile ($(objpfx)tst-svc.out):  Replace
2887         $(built-program-cmd) with $(test-program-cmd).
2888
2889 2013-01-11  Andreas Jaeger  <aj@suse.de>
2890
2891         [BZ #15003]
2892         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
2893         value. Sync with Linux 3.7.
2894
2895 2013-01-10  David S. Miller  <davem@davemloft.net>
2896
2897         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
2898         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2899         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2900
2901 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2902
2903         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
2904         never set.
2905         * configure: Regenerated.
2906
2907 2013-01-10  David S. Miller  <davem@davemloft.net>
2908
2909         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2910         sparc V9 rather than using V8 code.
2911         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2912         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2913
2914 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2915
2916         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
2917         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
2918         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
2919         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
2920         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
2921         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
2922         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
2923         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
2924         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
2925         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
2926         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
2927         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
2928         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
2929         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
2930         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
2931         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
2932         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
2933         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
2934         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
2935         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
2936         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
2937         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
2938         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
2939         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
2940         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
2941         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
2942         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
2943
2944 2013-01-10  David S. Miller  <davem@davemloft.net>
2945
2946         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2947
2948 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2949
2950         * posix/Makefile (tests-static): New variable.
2951         (tests): Add $(tests-static).
2952         (tst-exec-static-ARGS): New variable.
2953         (tst-spawn-static-ARGS): Likewise.
2954         * posix/tst-exec-static.c: New file.
2955         * posix/tst-spawn-static.c: Likewise.
2956         * posix/tst-exec.c: Support run directly.
2957         * posix/tst-spawn.c: Likewise.
2958
2959 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
2960
2961         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
2962         long.
2963         * math/bits/mathcalls.h (llrint): Likewise.
2964         (llround): Likewise.
2965         * stdlib/stdlib.h (struct drand48_data): Likewise.
2966         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
2967         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
2968         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
2969         Likewise.
2970         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
2971         Likewise.
2972         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
2973         (elf_greg_t): Likewise.
2974         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
2975         (__jmp_buf): Likewise.
2976         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
2977         definitions.
2978         (llrint): Likewise, for all definitions.
2979         (llrintl): Likewise.
2980
2981         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
2982         Remove [__GNUC__] condition.
2983         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
2984         condition to just [__USE_ISOC99].
2985         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
2986
2987 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2988
2989         [BZ #14200]
2990         * sysdeps/unix/sysv/linux/x86/bits/environments.h
2991         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
2992         defined.
2993         (_POSIX_V6_ILP32_OFF32): Likewise.
2994         (_XBS5_ILP32_OFF32): Likewise.
2995         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
2996         (__ILP32_OFFBIG_LDFLAGS): Likewise.
2997
2998 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2999
3000         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
3001
3002         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
3003         doubles __mpexp_twomm1.  Adjust usage.
3004         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
3005         Remove.
3006
3007 2013-01-10  Andreas Schwab  <schwab@suse.de>
3008
3009         [BZ #14964]
3010         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
3011         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
3012
3013 2013-01-09  David S. Miller  <davem@davemloft.net>
3014
3015         [BZ #15003]
3016         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
3017         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
3018         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
3019         TCP_FASTOPEN): Define.
3020         (tcp_repair_opt): New structure.
3021         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
3022         enum values.
3023         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
3024         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
3025         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
3026         (tcp_cookie_transactions): New structure.
3027
3028 2013-01-09  Anton Blanchard  <anton@samba.org>
3029
3030         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
3031         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
3032         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
3033         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
3034
3035 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
3036
3037         * include/features.h (__USE_ANSI): Remove.
3038
3039 2013-01-09  Roland McGrath  <roland@hack.frob.com>
3040
3041         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
3042
3043         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
3044
3045 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
3046
3047         * sysdeps/s390/fpu/libm-test-ulps: Update.
3048
3049         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3050
3051         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
3052         (__acr): Likewise.
3053         (__cpy): Likewise.
3054         (norm): Likewise.
3055         (denorm): Likewise.
3056         (__mp_dbl): Likewise.
3057         (__dbl_mp): Likewise.
3058         (add_magnitudes): Likewise.
3059         (sub_magnitudes): Likewise.
3060         (__add): Likewise.
3061         (__sub): Likewise.
3062         (__mul): Likewise.
3063         (__inv): Likewise.
3064         (__dvd): Likewise.
3065         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
3066         (__acr): Likewise.
3067         (__cpy): Likewise.
3068         (norm): Likewise.
3069         (denorm): Likewise.
3070         (__mp_dbl): Likewise.
3071         (__dbl_mp): Likewise.
3072         (add_magnitudes): Likewise.
3073         (sub_magnitudes): Likewise.
3074         (__add): Likewise.
3075         (__sub): Likewise.
3076         (__mul): Likewise.
3077         (__inv): Likewise.
3078         (__dvd): Likewise.
3079         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
3080         (__acr): Likewise.
3081         (__cpy): Likewise.
3082         (norm): Likewise.
3083         (denorm): Likewise.
3084         (__mp_dbl): Likewise.
3085         (__dbl_mp): Likewise.
3086         (add_magnitudes): Likewise.
3087         (sub_magnitudes): Likewise.
3088         (__add): Likewise.
3089         (__sub): Likewise.
3090         (__mul): Likewise.
3091         (__inv): Likewise.
3092         (__dvd): Likewise.
3093
3094 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
3095
3096         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
3097         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
3098         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
3099         2 && __USE_EXTERN_INLINES]: Likewise.
3100
3101 2013-01-08  Andreas Jaeger  <aj@suse.de>
3102
3103         [BZ# 14985]
3104         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
3105         Remove.
3106         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
3107         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
3108
3109 2013-01-07  Anton Blanchard  <anton@samba.org>
3110
3111         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
3112         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
3113         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
3114         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
3115         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
3116         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
3117         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
3118         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
3119         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3120         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3121         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
3122         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
3123         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
3124         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3125         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
3126         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3127         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3128         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3129         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
3130         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
3131         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
3132         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
3133         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
3134         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
3135         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
3136         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
3137         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
3138         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3139         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
3140         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
3141         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
3142         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3143         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3144         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3145         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3146         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
3147         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3148         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3149         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
3150         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
3151         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
3152         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3153         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3154
3155 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
3156
3157         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
3158         (__MALLOC_PMT): Likewise.
3159         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
3160         [__GNUC__], only on [_LIBC].
3161         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
3162         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
3163         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
3164         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
3165         forward declaration.
3166         (realloc_hook_ini): Likewise.
3167         (memalign_hook_ini): Likewise.
3168         (__libc_memalign): Do not use __MALLOC_PMT in variable
3169         declaration.
3170         (__libc_valloc): Likewise.
3171         (__libc_pvalloc): Likewise.
3172         (__libc_calloc): Likewise.
3173         (__posix_memalign): Likewise.
3174
3175         [BZ #14996]
3176         * math/s_casinh.c: Include <float.h>.
3177         (__casinh): Do not do computation with squaring and square root
3178         for large arguments.
3179         * math/s_casinhf.c: Include <float.h>.
3180         (__casinhf): Do not do computation with squaring and square root
3181         for large arguments.
3182         * math/s_casinhl.c: Include <float.h>.
3183         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
3184         (__casinhl): Do not do computation with squaring and square root
3185         for large arguments.
3186         * math/libm-test.inc (casin_test): Add more tests.
3187         (casinh_test): Likewise.
3188         * sysdeps/i386/fpu/libm-test-ulps: Update.
3189         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3190
3191 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
3192
3193         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
3194         (__x86_64_raw_data_cache_size): Likewise.
3195         (__x86_64_data_cache_size_half): Likewise.
3196         (__x86_64_raw_data_cache_size_half): Likewise.
3197         (__x86_64_shared_cache_size): Likewise.
3198         (__x86_64_raw_shared_cache_size): Likewise.
3199         (__x86_64_shared_cache_size_half): Likewise.
3200         (__x86_64_raw_shared_cache_size_half): Likewise.
3201         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
3202         to ...
3203         (__x86_data_cache_size): This.
3204         (__x86_64_raw_data_cache_size): Renamed to ...
3205         (__x86_raw_data_cache_size): This.
3206         (__x86_64_data_cache_size_half): Renamed to ...
3207         (__x86_data_cache_size_half): This.
3208         (__x86_64_raw_data_cache_size_half): Renamed to ...
3209         (__x86_raw_data_cache_size_half): This.
3210         (__x86_64_shared_cache_size): Renamed to ...
3211         (__x86_shared_cache_size): This.
3212         (__x86_64_raw_shared_cache_size): Renamed to ...
3213         (__x86_raw_shared_cache_size): This.
3214         (__x86_64_shared_cache_size_half): Renamed to ...
3215         (__x86_shared_cache_size_half): This.
3216         (__x86_64_raw_shared_cache_size_half): Renamed to ...
3217         (__x86_raw_shared_cache_size_half): This.
3218         * sysdeps/x86_64/memcpy.S: Updated.
3219         * sysdeps/x86_64/memset.S: Likewise.
3220         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3221         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
3222         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3223
3224 2013-01-04  David S. Miller  <davem@davemloft.net>
3225
3226         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3227
3228 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
3229
3230         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
3231         1 to avoid redefinition warning.
3232         (__USE_GNU): Don't define.
3233         (init_signaling_nan): Protoize.
3234
3235         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3236
3237 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3238
3239         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
3240         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
3241         (__cpymn): Likewise.
3242         (norm): Remove commented code.
3243         (denorm): Likewise.
3244         (__mp_dbl): Likewise.
3245         (__inv): Likewise.
3246         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
3247         (__cpymn): Likewise.
3248         (norm): Remove commented code.
3249         (denorm): Likewise.
3250         (__mp_dbl): Likewise.
3251         (__inv): Likewise.
3252
3253         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
3254         mp_no value for 1.0 and 2.0.
3255         (norm): Use RADIXI instead of radixi.d.
3256         (denorm): Likewise.
3257         (__mul): Use 0.0 instead of zero.d.
3258         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
3259         mp_no value for 1.0 and 2.0.
3260         (norm): Use RADIXI instead of radixi.d.
3261         (denorm): Likewise.
3262         (__mul): Use 0.0 instead of zero.d.
3263
3264 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
3265
3266         [BZ #14994]
3267         * math/s_casinh.c (__casinh): Reduce finite argument to first
3268         quadrant then set signs of results at the end.
3269         * math/s_casinhf.c (__casinhf): Likewise.
3270         * math/s_casinhl.c (__casinhl): Likewise.
3271         * math/libm-test.inc (casin_test): Add more tests.
3272         (casinh_test): Likewise.
3273         * sysdeps/i386/fpu/libm-test-ulps: Update.
3274         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3275
3276 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3277
3278         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
3279
3280         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
3281
3282         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
3283         declarations.
3284         (denorm): Likewise.
3285         (__mp_dbl): Likewise.
3286         (__inv): Likewise.
3287
3288         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
3289         and adjust the header comment.
3290
3291         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
3292         variable name from declaration.
3293
3294 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
3295
3296         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3297         Initialize COMMON_CPUID_INDEX_7 element.
3298         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
3299         (CPUID_RTM): Likewise.
3300         (HAS_RTM): Likewise.
3301         (COMMON_CPUID_INDEX_7): New enum.
3302
3303 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
3304
3305         [BZ #14981]
3306         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
3307         size is zero, record memory as freed.
3308
3309 2013-01-03  Andreas Jaeger  <aj@suse.de>
3310
3311         * po/ia.po: Add new Interlingua translation.
3312
3313 2012-01-03  Allan McRae  <allan@archlinux.org>
3314
3315         * locale/programs/localedef.c: Fix description of '--posix' flag.
3316
3317 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
3318
3319         * NEWS: Update dates in second copyright notice.
3320         * README: Update copyright dates in example.
3321         * manual/libc.texinfo: Update copyright dates.
3322         * scripts/test-installation.pl: Update copyright date in --version
3323         output.
3324
3325         * hurd/ctty-input.c: Fix copyright notice formatting.
3326         * hurd/ctty-output.c: Likewise.
3327         * hurd/dtable.c: Likewise.
3328         * hurd/hurd-raise.c: Likewise.
3329         * hurd/hurdprio.c: Likewise.
3330         * hurd/msgportdemux.c: Likewise.
3331         * misc/sys/file.h: Likewise.
3332         * misc/sys/ioctl.h: Likewise.
3333         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3334         * sysdeps/mach/hurd/chdir.c: Likewise.
3335         * sysdeps/mach/hurd/fchdir.c: Likewise.
3336         * sysdeps/mach/hurd/rename.c: Likewise.
3337         * sysdeps/mach/hurd/rmdir.c: Likewise.
3338         * sysdeps/mach/hurd/seekdir.c: Likewise.
3339         * sysdeps/mach/hurd/setsid.c: Likewise.
3340         * sysdeps/posix/wait3.c: Likewise.
3341
3342         * All files with FSF copyright notices: Update copyright dates
3343         using scripts/update-copyrights.
3344         * intl/plural.c: Regenerated.
3345         * locale/programs/charmap-kw.h: Likewise.
3346         * locale/programs/locfile-kw.h: Likewise.
3347
3348 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
3349
3350         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
3351         four values.
3352
3353         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
3354         calculation loop and add branch prediction.
3355
3356         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
3357         check access beyond bounds of m1np.
3358
3359         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
3360         MPTWO.
3361         (__inv): Remove local variable MPTWO to use the global
3362         constant.
3363         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
3364         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
3365         variable MPTWO.
3366         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
3367         MP3HALFS static const.
3368
3369 2013-01-01  David S. Miller  <davem@davemloft.net>
3370
3371         * po/ca.po: Update from translation team.
3372
3373 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
3374
3375         * scripts/update-copyrights: New file.
3376         * Makeconfig: Reformat copyright notice.
3377         * ctype/ctype.h: Likewise.
3378         * debug/swprintf_chk.c: Likewise.
3379         * elf/dl-cache.c: Likewise.
3380         * elf/dl-debug.c: Likewise.
3381         * elf/dl-object.c: Likewise.
3382         * grp/initgroups.c: Likewise.
3383         * hurd/Makefile: Likewise.
3384         * hurd/hurd/signal.h: Likewise.
3385         * hurd/hurdfault.c: Likewise.
3386         * hurd/hurdioctl.c: Likewise.
3387         * hurd/hurdlookup.c: Likewise.
3388         * hurd/intr-msg.c: Likewise.
3389         * iconv/gconv_open.c: Likewise.
3390         * libio/swprintf.c: Likewise.
3391         * locale/lc-ctype.c: Likewise.
3392         * locale/nl_langinfo.c: Likewise.
3393         * mach/Machrules: Likewise.
3394         * mach/Makefile: Likewise.
3395         * malloc/obstack.h: Likewise.
3396         * manual/Makefile: Likewise.
3397         * manual/tsort.awk: Likewise.
3398         * misc/bits/stab.def: Likewise.
3399         * nis/nis_print_group_entry.c: Likewise.
3400         * nis/nis_table.c: Likewise.
3401         * nis/nss_compat/compat-pwd.c: Likewise.
3402         * nis/nss_compat/compat-spwd.c: Likewise.
3403         * po/Makefile: Likewise.
3404         * posix/fnmatch.c: Likewise.
3405         * posix/regex.h: Likewise.
3406         * resolv/Makefile: Likewise.
3407         * resolv/nss_dns/dns-network.c: Likewise.
3408         * resolv/res_hconf.c: Likewise.
3409         * scripts/gen-sorted.awk: Likewise.
3410         * soft-fp/soft-fp.h: Likewise.
3411         * stdio-common/printf.h: Likewise.
3412         * stdlib/monetary.h: Likewise.
3413         * stdlib/random.c: Likewise.
3414         * stdlib/random_r.c: Likewise.
3415         * sysdeps/generic/Makefile: Likewise.
3416         * sysdeps/gnu/Makefile: Likewise.
3417         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3418         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3419         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3420         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3421         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3422         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3423         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3424         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3425         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3426         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3427         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3428         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3429         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3430         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3431         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3432         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3433         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3434         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3435         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3436         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3437         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3438         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3439         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3440         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3441         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
3442         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
3443         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
3444         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
3445         * sysdeps/mach/hurd/errnos.awk: Likewise.
3446         * sysdeps/mach/hurd/fork.c: Likewise.
3447         * sysdeps/mach/hurd/getcwd.c: Likewise.
3448         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
3449         * sysdeps/mach/hurd/mmap.c: Likewise.
3450         * sysdeps/mach/hurd/utimes.c: Likewise.
3451         * sysdeps/mach/hurd/xmknod.c: Likewise.
3452         * sysdeps/posix/profil.c: Likewise.
3453         * sysdeps/posix/readdir_r.c: Likewise.
3454         * sysdeps/powerpc/bits/mathdef.h: Likewise.
3455         * sysdeps/powerpc/bits/setjmp.h: Likewise.
3456         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
3457         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
3458         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3459         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
3460         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3461         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3462         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3463         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
3464         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3465         * sysdeps/pthread/lio_listio.c: Likewise.
3466         * sysdeps/sparc/dl-procinfo.h: Likewise.
3467         * sysdeps/unix/i386/sysdep.S: Likewise.
3468         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3469         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
3470         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3471         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3472         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3473         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3474         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3475         * sysdeps/unix/sysv/linux/speed.c: Likewise.
3476         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
3477         * sysdeps/wordsize-32/divdi3.c: Likewise.
3478         * time/sys/time.h: Likewise.
3479         * wcsmbs/Makefile: Likewise.
3480
3481 2013-01-01  David S. Miller  <davem@davemloft.net>
3482
3483         * po/fr.po: Update from translation team.
3484
3485         * catgets/gencat.c: Update copyright year.
3486         * csu/version.c: Likewise.
3487         * debug/catchsegv.sh: Likewise.
3488         * debug/pcprofiledump.c: Likewise.
3489         * debug/xtrace.sh: Likewise.
3490         * elf/ldconfig.c: Likewise.
3491         * elf/ldd.bash.in: Likewise.
3492         * elf/pldd.c: Likewise.
3493         * elf/sotruss.ksh: Likewise.
3494         * elf/sprof.c: Likewise.
3495         * iconv/iconv_prog.c: Likewise.
3496         * iconv/iconvconfig.c: Likewise.
3497         * locale/programs/locale.c: Likewise.
3498         * locale/programs/localedef.c: Likewise.
3499         * login/programs/pt_chown.c: Likewise.
3500         * malloc/memusage.sh: Likewise.
3501         * malloc/memusagestat.c: Likewise.
3502         * malloc/mtrace.pl: Likewise.
3503         * nscd/nscd.c: Likewise.
3504         * nss/getent.c: Likewise.
3505         * nss/makedb.c: Likewise.
3506         * posix/getconf.c: Likewise.
3507
3508 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3509
3510         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
3511         numbers.
3512
3513 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
3514
3515         * math/bits/mathcalls.h (modf): Use __nonnull.
3516
3517 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3518
3519         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
3520         (split): Use macro CN instead of the bare value.
3521         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
3522         could be used.
3523         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
3524         instead of the bare value.
3525         (power1): Likewise.
3526
3527 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3528
3529         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
3530         __ATAN_TWOM.
3531         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3532
3533         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
3534         their values.
3535         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3536         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
3537         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3538         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3539
3540 2012-12-28  Andreas Jaeger  <aj@suse.de>
3541
3542         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
3543         values are from Linux 3.7.
3544
3545         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
3546         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
3547
3548 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3549
3550         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
3551         TRUE case.
3552
3553         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
3554         (norm): Likewise.
3555         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
3556         variables with preprocessor constants.
3557         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3558         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3559         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3560
3561 2012-12-27  Bruno Haible  <bruno@clisp.org>
3562
3563         [BZ #14317]
3564         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
3565         only if needed.
3566
3567 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3568
3569         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
3570         and use variable directly.
3571         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
3572
3573         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
3574         MPONE.
3575         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
3576         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
3577         variable MPONE.
3578         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
3579         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
3580         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
3581         include directive.  Remove local variable MPONE.
3582         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
3583         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
3584         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3585
3586 2012-12-25  David S. Miller  <davem@davemloft.net>
3587
3588         * version.h (RELEASE): Set to "development".
3589         (VERSION): Set to "2.17.90".
3590         * NEWS: Add 2.18 section.
3591
3592 2012-12-21  David S. Miller  <davem@davemloft.net>
3593
3594         * po/hr.po: Update from translation team.
3595
3596 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3597
3598         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
3599
3600 2012-12-19  Steve Ellcey  <sellcey@mips.com>
3601
3602         * NEWS:  Mention new memcpy for MIPS.
3603
3604 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3605
3606         * manual/contrib.texi (Contributors): Spelling correction.
3607
3608 2012-12-15  David S. Miller  <davem@davemloft.net>
3609
3610         * po/ru.po: Update from translation team.
3611
3612 2012-12-13  David S. Miller  <davem@davemloft.net>
3613
3614         * NEWS: Mention IFUNC testsuite enhancements.
3615
3616         * po/pl.po: Update from translation team.
3617         * po/bg.po: Likewise.
3618
3619         * manual/contrib.texi (Contributors): Update entries for Hongjiu
3620         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
3621
3622 2012-12-11  David S. Miller  <davem@davemloft.net>
3623
3624         * po/sv.po: Update from translation team.
3625
3626         * po/vi.po: Update from translation team.
3627
3628         * po/cs.po: Update from translation team.
3629
3630         * po/de.po: Update from translation team.
3631         * po/eo.po: Likewise.
3632         * po/nl.po: Likewise.
3633
3634 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3635
3636         [BZ #14246]
3637         * manual/argp.texi (Argp Helper Functions): Move node to follow
3638         Argp Parsing State.
3639
3640         [BZ #14872]
3641         * manual/conf.texi (Limits on File System Capacity): Mention if
3642         terminating null is included in the max size.
3643
3644 2012-12-10  Andreas Jaeger  <aj@suse.de>
3645
3646         * po/cs.po: Update from translation team.
3647
3648 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3649
3650         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
3651         void pointer and cast to uintptr_t.
3652         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
3653         path.
3654         * sysdeps/s390/s390-64/memcpy.S: Likewise.
3655         * sysdeps/s390/s390-64/memset.S: Likewise.
3656
3657 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
3658
3659         [BZ #14833]
3660         * menual/message.texi (Message Translation): Fix typos.
3661         (Helper programs for gettext): Likewise.
3662
3663 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
3664
3665         [BZ #14898]
3666         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
3667         Change to -1.
3668
3669 2012-12-07  David S. Miller  <davem@davemloft.net>
3670
3671         * po/libc.pot: Update.
3672
3673 2012-12-07  Richard Henderson  <rth@redhat.com>
3674
3675         [BZ #10114]
3676         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
3677         normal/normal case to before the switch.
3678         (_FP_DIV): Likewise.
3679
3680 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
3681             Mike Frysinger  <vapier@gentoo.org>
3682
3683         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
3684         check for __NR_fadvise64_64.
3685
3686 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
3687
3688         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
3689         0, not just to plain "0" as a statement.
3690         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
3691         with cw.
3692
3693 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
3694
3695         * NEWS: Use sourceware.org in Bugzilla URL.
3696
3697 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3698
3699         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3700         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3701
3702         * stdio-common/tst-put-error.c (do_test): Add newline to the
3703         padded test to ensure flush.
3704
3705 2012-12-05  Jeff Law  <law@redhat.com>
3706
3707         * sunrpc/etc.rpc (fedfs_admin): Add entry.
3708
3709 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
3710
3711         * README: Don't refer to ports add-on as distributed separately.
3712         Mention AArch64 in list of systems supported in the ports add-on.
3713
3714         * LICENSES: Add more non-FSF copyright and license notices.
3715
3716         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
3717         ((unused)).
3718
3719         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
3720
3721         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
3722         10000 as width of padded output.
3723
3724 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3725
3726         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
3727
3728         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
3729         variable LX with __attribute__ ((unused)).
3730         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3731         Likewise.
3732         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
3733         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3734         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
3735         with __attribute__ ((unused)).
3736
3737 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
3738
3739         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
3740
3741 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3742
3743         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
3744         (CFLAGS-nldbl-acos.c): New variable.
3745         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
3746         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
3747         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
3748         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
3749         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
3750         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
3751         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
3752         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
3753         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
3754         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
3755         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
3756         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
3757         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
3758         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
3759         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
3760         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
3761         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
3762         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
3763         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
3764         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
3765         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
3766         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
3767         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
3768         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
3769         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
3770         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
3771         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
3772         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
3773         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
3774         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
3775         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
3776         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
3777         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
3778         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
3779         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
3780         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
3781         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
3782         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
3783         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
3784         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
3785         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
3786         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
3787         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
3788         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
3789         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
3790         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
3791         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
3792         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
3793         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
3794         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
3795         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
3796         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
3797         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
3798         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
3799         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
3800         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
3801         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
3802         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
3803         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
3804         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
3805         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
3806         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
3807         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
3808         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
3809         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
3810         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
3811         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
3812         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
3813         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
3814         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
3815         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
3816         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
3817         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
3818         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
3819         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
3820         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
3821         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
3822         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
3823         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
3824         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
3825         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
3826         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
3827         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
3828         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
3829         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
3830         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
3831         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
3832         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
3833         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
3834         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
3835         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
3836         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
3837         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
3838         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
3839         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
3840         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
3841         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
3842
3843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3844         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3845
3846         [BZ #14914]
3847         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
3848         whole low double instead of just low 47 bits when splitting values
3849         into two parts.
3850
3851 2012-12-03  Allan McRae  <allan@archlinux.org>
3852
3853         * manual/stdio.texi (Predefined Printf Handlers): Remove
3854         @hsep and @vsep usage.
3855
3856 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
3857
3858         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
3859         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
3860
3861 2012-12-03  Jeff Law  <law@redhat.com>
3862
3863         * time/sys/time.h (settimeofday): Do not mark TV argument
3864         as __nonnull.
3865
3866 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
3867
3868         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
3869         when currently writing and seek to current position when not.
3870         * libio/Makefile (tests): Remove bug-fclose1.
3871         * libio/bug-fclose1.c: Delete.
3872
3873 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
3874
3875         * manual/arith.texi (feenableexcept): Fix typo.
3876         (fedisableexcept): Likewise.
3877
3878 2012-11-30  Roland McGrath  <roland@hack.frob.com>
3879
3880         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
3881         second, differently-typed declaration, rather than a cast.
3882
3883 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3884
3885         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
3886         * include/rpc/svc.h: ... here.
3887
3888 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
3889
3890         [BZ #13013]
3891         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
3892         depending n and resplen2 to catch cases where answer
3893         equals answerp2.
3894
3895 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
3896
3897         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
3898         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
3899
3900 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
3901
3902         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
3903
3904 2012-11-29  Roland McGrath  <roland@hack.frob.com>
3905
3906         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
3907
3908 2012-11-28  Jeff Law  <law@redhat.com>
3909
3910         [BZ #13761]
3911         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
3912         dataset_temporary.  Track alloca usage into alloca_used.
3913         If dataset is large allocate and release it via malloc/free.
3914
3915 2012-06-04  Florian Weimer  <fweimer@redhat.com>
3916
3917         [BZ #14197]
3918         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
3919
3920 2012-11-28  David S. Miller  <davem@davemloft.net>
3921
3922         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3923
3924 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3925
3926         [BZ #14803]
3927         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
3928         of pi/2 rounded to nearest to 64 bits.
3929         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
3930         nearest to 64 bits.
3931         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
3932         bits.
3933
3934 2012-11-28  Jeff Law <law@redhat.com>
3935             Martin Osvald <mosvald@redhat.com>
3936
3937         [BZ #14889]
3938         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
3939         * sunrpc/svc.c: Include time.h.
3940         (__svc_accept_failed): New function.
3941         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
3942         any reason other than EINTR, call __svc_accept_failed.
3943         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
3944         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
3945
3946 2012-11-28  Andreas Schwab  <schwab@suse.de>
3947
3948         * scripts/abilist.awk: Also handle indirect functions in .opd
3949         section.
3950
3951 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3952
3953         [BZ #13881]
3954         * sysdeps/x86/fpu/powl_helper.c: New file.
3955         * sysdeps/x86/fpu/Makefile: Likewise.
3956         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
3957         (p3): New object.
3958         (__ieee754_powl): Use __powl_helper for finite arguments except
3959         integer exponents below 8.
3960         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
3961         (p3): New object.
3962         (__ieee754_powl): Use __powl_helper for finite arguments except
3963         integer exponents below 8.
3964         * math/libm-test.inc (pow_test): Add more tests and enable some
3965         previously disabled tests.
3966         * sysdeps/i386/fpu/libm-test-ulps: Update.
3967         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3968
3969 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3970             Carlos O'Donell  <carlos_odonell@mentor.com>
3971
3972         * nss/makedb.c (is_prime): Assert that input is odd and greater
3973         than 4.  Note that fact in a comment too.
3974         (next_prime): Add 4 to input.
3975
3976 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3977
3978         [BZ #11741]
3979         * libio/Makefile (tests): Add test case tst-fwrite-error.
3980         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
3981         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3982         * libio/tst-fwrite-error.c: New test case.
3983
3984 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
3985
3986         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
3987         before casting to void *.
3988         * include/libc-internal.h (__pointer_type): New macro.
3989         (__integer_if_pointer_type_sub): Likewise.
3990         (__integer_if_pointer_type): Likewise.
3991         (cast_to_integer): Likewise.
3992         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
3993         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
3994         before casting to atomic64_t.
3995         (atomic_exchange_acq): Likewise.
3996         (__arch_exchange_and_add_body): Likewise.
3997         (__arch_add_body): Likewise.
3998         (atomic_add_negative): Likewise.
3999         (atomic_add_zero): Likewise.
4000
4001 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
4002
4003         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
4004         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
4005         (add_fdes): Likewise.
4006         (linear_search_fdes): Likewise.
4007         (binary_search_unencoded_fdes): Likewise.
4008
4009 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
4010
4011         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
4012
4013 2012-11-24  Adam Conrad  <adconrad@0c3.net>
4014
4015         * configure.in: Autodetect C++ header directories.
4016         * configure: Regenerated.
4017
4018 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
4019
4020         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
4021
4022 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
4023
4024         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4025
4026 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
4027
4028         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
4029         LDBL_MANT_DIG == 106]: Disable some tests.
4030         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
4031         Likewise.
4032         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
4033         Likewise.
4034
4035         [BZ #14871]
4036         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
4037         input for small inputs.  Return +/- pi/2 for large inputs.
4038         * math/libm-test.inc (atan_test): Add more tests.
4039
4040         * sysdeps/generic/unwind-dw2-fde-glibc.c
4041         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
4042         __attribute__ ((unused)).
4043
4044         [BZ #14645]
4045         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
4046         x * y if x and y are nonzero and z is zero.
4047
4048         [BZ #14811]
4049         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
4050         nonzero exponents with absolute value below 0x1p-117 to +/-
4051         0x1p-117.
4052
4053         [BZ #14869]
4054         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
4055         up arguments below 2**-450, not just those below 2**-500.
4056         * math/libm-test.inc (hypot_test): Add another test.
4057
4058         [BZ #14868]
4059         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
4060         Return a+b for ratio over 2**120, not 2**60.
4061         * math/libm-test.inc (hypot_test): Add another test.
4062
4063         * math/libm-test.inc (clog_test): Use
4064         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
4065         (clog10_test): Likewise.
4066
4067         [BZ #6778]
4068         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
4069
4070 2012-11-22  Andreas Schwab  <schwab@suse.de>
4071
4072         * sysdeps/i386/fpu/libm-test-ulps: Update.
4073
4074 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
4075
4076         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
4077         printf output with newline.
4078
4079 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
4080
4081         [BZ #14865]
4082         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
4083         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
4084         -z nodlopen, -z initfirst and -z execstack support.
4085         * configure: Regenerated.
4086
4087         * elf/elf.h (DF_1_NODIRECT): New macro.
4088         (DF_1_IGNMULDEF): Likewise.
4089         (DF_1_NOKSYMS): Likewise.
4090         (DF_1_NOHDR): Likewise.
4091         (DF_1_EDITED): Likewise.
4092         (DF_1_NORELOC): Likewise.
4093         (DF_1_SYMINTPOSE): Likewise.
4094         (DF_1_GLOBAUDIT): Likewise.
4095         (DF_1_SINGLETON): Likewise.
4096         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
4097         DT_1_SUPPORTED_MASK bits.
4098         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
4099
4100 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
4101
4102         * sysdeps/unix/make-syscalls.sh: Document prefixes.
4103
4104 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
4105
4106         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
4107         macro.
4108
4109         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
4110         (sendmmsg): Move declarations...
4111         * socket/sys/socket.h: ... here.
4112         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
4113         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
4114         include it from...
4115         * socket/recvmmsg.c: ... this new file.
4116         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
4117         (sendmmsg): Rename to __sendmmsg, create weak alias and make
4118         definition of __sendmmsg hidden.
4119         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
4120         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
4121         Move ENOSYS stub into and include it from...
4122         * socket/sendmmsg.c: ... this new file.
4123         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
4124         (sysdep_routines): Move recvmmsg and sendmmsg...
4125         * socket/Makefile (routines): ... here.
4126         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
4127         (GLIBC_PRIVATE): Add __sendmmsg.
4128         * include/sys/socket.h (__sendmmsg): Add declarations.
4129         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
4130         sendmmsg.
4131
4132 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
4133
4134         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
4135         variable I1 with __attribute__ ((unused)).
4136         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4137
4138 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
4139
4140         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
4141         DUMMY variables with __attribute__ ((unused)).
4142
4143         * bits/byteswap.h: Include <bits/types.h>.
4144         (__bswap_64): Use __uint64_t instead of unsigned long long int.
4145
4146 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
4147
4148         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
4149         string_t.  Do not manually set errno.
4150         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
4151         length with __strnlen.  Make sure to both set errno and return it on
4152         failure.
4153
4154 2012-11-19  David S. Miller  <davem@davemloft.net>
4155
4156         With help from Joseph Myers.
4157         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
4158         very large arguments properly.
4159         * math/libm-test.inc (atan_test): New tests.
4160         (atan2_test): New tests.
4161         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4162         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4163
4164 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
4165
4166         [BZ #14856]
4167         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
4168         Define to 3.
4169
4170         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
4171         [POSIX] (EADDRNOTAVAIL): Likewise.
4172         [POSIX] (EAFNOSUPPORT): Likewise.
4173         [POSIX] (EALREADY): Likewise.
4174         [POSIX] (ECONNABORTED): Likewise.
4175         [POSIX] (ECONNREFUSED): Likewise.
4176         [POSIX] (ECONNRESET): Likewise.
4177         [POSIX] (EDESTADDRREQ): Likewise.
4178         [POSIX] (EDQUOT): Likewise.
4179         [POSIX] (EHOSTUNREACH): Likewise.
4180         [POSIX] (EIDRM): Likewise.
4181         [POSIX] (EISCONN): Likewise.
4182         [POSIX] (ELOOP): Likewise.
4183         [POSIX] (EMULTIHOP): Likewise.
4184         [POSIX] (ENETDOWN): Likewise.
4185         [POSIX] (ENETUNREACH): Likewise.
4186         [POSIX] (ENOBUFS): Likewise.
4187         [POSIX] (ENODATA): Likewise.
4188         [POSIX] (ENOLINK): Likewise.
4189         [POSIX] (ENOMSG): Likewise.
4190         [POSIX] (ENOPROTOOPT): Likewise.
4191         [POSIX] (ENOSR): Likewise.
4192         [POSIX] (ENOSTR): Likewise.
4193         [POSIX] (ENOTCONN): Likewise.
4194         [POSIX] (ENOTSOCK): Likewise.
4195         [POSIX] (EOPNOTSUPP): Likewise.
4196         [POSIX] (EOVERFLOW): Likewise.
4197         [POSIX] (EPROTO): Likewise.
4198         [POSIX] (EPROTONOSUPPORT): Likewise.
4199         [POSIX] (EPROTOTYPE): Likewise.
4200         [POSIX] (ESTALE): Likewise.
4201         [POSIX] (ETIME): Likewise.
4202         [POSIX] (ETXTBSY): Likewise.
4203         [POSIX] (EWOULDBLOCK): Likewise.
4204         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
4205         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
4206         [POSIX] (SEEK_CUR): Likewise.
4207         [POSIX] (SEEK_END): Likewise.
4208         [POSIX || UNIX98] (mode_t): Do not require.
4209         [POSIX] (off_t): Likewise.
4210         [POSIX] (pid_t): Likewise.
4211         [POSIX] (sys/stat.h): Do not allow header.
4212         [POSIX] (unistd.h): Likewise.
4213         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
4214         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
4215         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
4216         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
4217         require.
4218         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
4219         sigevent): Specify elements.
4220         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
4221         entry.
4222         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
4223         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
4224
4225         * conform/data/cpio.h-data [POSIX]: Disable whole file.
4226         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
4227         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
4228         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
4229         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
4230         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
4231         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
4232         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
4233         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
4234         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
4235         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
4236         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
4237         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
4238         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
4239         Likewise.
4240         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
4241         Likewise.
4242         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
4243         Likewise.
4244         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
4245         Likewise.
4246         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
4247         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
4248         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
4249         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
4250         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
4251         Specify lower bound on value.
4252         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
4253         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
4254         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
4255         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
4256         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
4257         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
4258         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
4259         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
4260         value.
4261         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
4262         as optional.
4263         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
4264         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
4265         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
4266         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
4267         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
4268         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
4269         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
4270         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
4271         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
4272         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
4273         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
4274         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
4275         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
4276         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
4277         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
4278         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
4279         entry.
4280         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
4281         optional.
4282         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
4283         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
4284         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
4285         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
4286         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
4287         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
4288         Likewise.
4289         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
4290         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
4291         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
4292         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
4293         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
4294         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
4295         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
4296         as optional.
4297         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
4298         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
4299         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
4300         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
4301         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
4302         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
4303         specify as optional.
4304         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
4305         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
4306         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
4307         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
4308         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
4309         [XPG3] (NL_LANGMAX): Likewise.
4310         [POSIX || XPG3] (NL_MSGMAX): Likewise.
4311         [POSIX || XPG3] (NL_NMAX): Likewise.
4312         [POSIX || XPG3] (NL_SETMAX): Likewise.
4313         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
4314         [XPG3] (NZERO): Likewise.
4315         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
4316         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
4317         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
4318         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
4319         (REG_ERANGE): Expect.
4320         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
4321         optional-constant.
4322         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
4323         Use (void) in prototype.
4324         [POSIX] (*_t): Allow.
4325         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
4326         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
4327         (WRDE_BADVAL): Expect.
4328
4329         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
4330         expect.
4331         [XPG3 || XPG4] (O_RSYNC): Likewise.
4332         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
4333         Likewise.
4334         [XPG3 || XPG4] (pthread_sigmask): Likewise.
4335         [XPG3 || XPG4] (sigqueue): Likewise.
4336         [XPG3 || XPG4] (sigtimedwait): Likewise.
4337         [XPG3 || XPG4] (sigwaitinfo): Likewise.
4338         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
4339         [XPG3 || XPG4] (vsnprintf): Likewise.
4340         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
4341         Likewise.
4342         [XPG3 || XPG4] (blksize_t): Likewise.
4343         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
4344         Likewise.
4345         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
4346         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
4347         [XPG3 || XPG4] (struct itimerspec): Likewise.
4348         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
4349         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
4350         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
4351         [XPG3 || XPG4] (clockid_t): Likewise.
4352         [XPG3 || XPG4] (timer_t): Likewise.
4353         [XPG3 || XPG4] (clock_getres): Likewise.
4354         [XPG3 || XPG4] (clock_gettime): Likewise.
4355         [XPG3 || XPG4] (clock_settime): Likewise.
4356         [XPG3 || XPG4] (nanosleep): Likewise.
4357         [XPG3 || XPG4] (timer_create): Likewise.
4358         [XPG3 || XPG4] (timer_delete): Likewise.
4359         [XPG3 || XPG4] (timer_gettime): Likewise.
4360         [XPG3 || XPG4] (timer_getoverrun): Likewise.
4361         [XPG3 || XPG4] (timer_settime): Likewise.
4362         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
4363         [XPG3 || XPG4] (getlogin_r): Likewise.
4364         [XPG3 || XPG4] (pread): Likewise.
4365         [XPG3 || XPG4] (pthread_atfork): Likewise.
4366         [XPG3 || XPG4] (pwrite): Likewise.
4367
4368         [BZ #14835]
4369         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
4370         <bits/siginfo.h>.
4371
4372 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
4373
4374         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
4375         finalizing MALLSTREAM.
4376
4377         * sysdeps/mach/hurd/syncfs.c: New file.
4378
4379 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4380
4381         [BZ #14719]
4382         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
4383         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
4384         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
4385         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
4386         (_nss_dns_gethostbyname4_r): Likewise.
4387         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
4388         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
4389
4390 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
4391
4392         [BZ #13763]
4393         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
4394
4395 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
4396
4397         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
4398         * elf/cache.c (print_entry): Print ",AArch64" for
4399         FLAG_AARCH64_LIB64
4400
4401         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
4402         * elf/cache.c (print_entry): Print ",hard-float" for
4403         FLAG_ARM_LIBHF.
4404
4405 2012-11-18  David S. Miller  <davem@davemloft.net>
4406
4407         With help from Joseph Myers.
4408         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
4409         cutoff to 2**-13.
4410         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
4411         cutoff to 2**-25.
4412         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
4413         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
4414         small.
4415         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
4416         * math/libm-test.inc (y0_test): New tests.
4417         (y1_test): New tests.
4418         * sysdeps/i386/fpu/libm-test-ulps: Update.
4419         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4420         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4421
4422 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
4423
4424         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
4425         64-bit targets.
4426         * configure: Regenerated.
4427
4428 2012-11-17  David S. Miller  <davem@davemloft.net>
4429
4430         [BZ #14811]
4431         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
4432         nonzero exponents with absolute value below 0x1p-128 to +/-
4433         0x1p-128.
4434
4435 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
4436
4437         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
4438
4439         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
4440
4441         * posix/getconf-speclist.c: New file.
4442         * posix/posix-envs.def: Likewise.
4443         * posix/confstr.c (START_ENV_GROUP): New macro.
4444         (END_ENV_GROUP): Likewise.
4445         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
4446         (KNOWN_PRESENT_ENV_STRING): Likewise.
4447         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
4448         (UNKNOWN_ENVIRONMENT): Likewise.
4449         (confstr): Include posix-envs.def instead of handling
4450         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
4451         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
4452         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
4453         (END_ENV_GROUP): Likewise.
4454         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
4455         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
4456         (UNKNOWN_ENVIRONMENT): Likewise.
4457         (__sysconf): Include posix-envs.def instead of handling associated
4458         cases directly here.
4459         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
4460         preprocessing getconf-speclist.c rather than running getconf or
4461         generating empty file.
4462
4463 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
4464
4465         * scripts/check-local-headers.sh: Ignore 'mach' headers.
4466
4467 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
4468
4469         [BZ #14672]
4470         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
4471
4472 2012-11-16  David S. Miller  <davem@davemloft.net>
4473
4474         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
4475         smaller than LDBL_EPSILON/2.0L, just return xm1.
4476
4477 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
4478
4479         * elf/tst-array1.c (init): Set constructor priority to 1000.
4480         (fini): Set destructor priority to 1000.
4481         * elf/tst-array2dep.c: Likewise.
4482
4483 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4484
4485         [BZ #11741]
4486         * libio/fileops.c (_IO_new_file_write): Correctly return error.
4487         (_IO_new_file_xsputn): Also return EOF if none of the input
4488         data was written when overflow failed.
4489         * libio/iopadn.c (_IO_padn): Likewise.
4490         * libio/iowpadn.c (_IO_wpadn): Likewise.
4491         * stdio-common/tst-put-error.c: Add copyright notice.
4492         (do_test): Add case for printing padded string.
4493         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
4494         _IO_padn returned error.
4495         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
4496         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
4497         return EOF.
4498
4499 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4500
4501         * libio/libioP.h: Add comment note that the references to C++
4502         bits are now obsolete.
4503
4504 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4505
4506         * math/libm-test.inc (check_complex): Use asprintf.
4507
4508 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
4509
4510         * debug/pcprofiledump.c (print_version): Update copyright year.
4511         * malloc/memusagestat.c (print_version): Likewise.
4512
4513 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
4514
4515         [BZ #14831]
4516         * elf/Makefile (tests): Add tst-audit8.
4517         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
4518         ($(objpfx)tst-audit8.out): New target.
4519         (tst-audit8-ENV): New variable.
4520         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
4521         audit if l_reloc_result is NULL.
4522         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
4523         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
4524         * elf/tst-audit8.c: New file.
4525
4526 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4527
4528         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
4529         * misc/Makefile (CFLAGS-select.c): Define.
4530         * posix/Makefile (CFLAGS-pause.c): Define.
4531
4532 2012-11-13  David S. Miller  <davem@davemloft.net>
4533
4534         * crypt/Makefile: Move test targets after toplevel Rules
4535         inclusion.  Grab any necessary sysdep routines when linking.
4536         * crypt/md5.c (md5_process_block): Remove define, we will always
4537         name it __md5_process_block.
4538         (md5_finish_ctx): Update md5_process_block call.
4539         (md5_stream): Likewise.
4540         (md5_process_bytes): Likewise.
4541         (md5_process_block): Rename to __md5_process_block and move to ...
4542         * crypt/md5-block.c: ... here.
4543         * crypt/sha256.c (sha256_process_block): Move to ...
4544         * crypt/sha256-block.c: ... here.
4545         * crypt/sha512.c (sha512_process_block): Move to ...
4546         * crypt/sha512-block.c: ... here.
4547         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
4548         path.
4549         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
4550         * sysdeps/sparc/sparc64/multiarch/Makefile
4551         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
4552         crypt subdir.
4553         (localedef-aux): Add md5 crypto assembler when in locale subdir.
4554         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
4555         multiarch changes.
4556         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
4557         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
4558         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
4559         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
4560         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
4561         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
4562         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
4563         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
4564         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
4565         file.
4566         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
4567         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
4568         file.
4569         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
4570
4571 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
4572
4573         * timezone/tzselect.ksh: Update from tzcode git revision
4574         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
4575         * timezone/zdump.c: Likewise.
4576         * timezone/zic.c: Likewise.
4577         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
4578         in TZVERSION setting, not $(PKGVERSION).
4579         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
4580         REPORT_BUGS_TO settings.
4581
4582         [BZ #14838]
4583         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
4584         macro.
4585
4586 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4587
4588         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
4589         detection to immediately after _FP_ROUND().
4590         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
4591         bits are 0.
4592
4593 2012-11-11  David S. Miller  <davem@davemloft.net>
4594
4595         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
4596         inttypes.h
4597         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
4598         __close rather than their public counterparts.
4599
4600 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
4601
4602         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
4603         file.
4604         [UNIX98] (sem_timedwait): Do not expect.
4605         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
4606         [XPG4 || UNIX98] (sockatmark): Do not expect.
4607         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
4608         (clock_getcpuclockid): Do not expect.
4609         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
4610         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
4611         Do not expect.
4612         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
4613         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
4614         [UNIX98] (vwscanf): Likewise.
4615         [UNIX98] (vswscanf): Likewise.
4616
4617 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
4618
4619         * timezone/version.h: Remove file.
4620         * timezone/README: Do not refer to version.h.
4621         * timezone/Makefile ($(objpfx)zic.o): New dependency on
4622         $(objpfx)version.h.
4623         ($(objpfx)zdump.o): Likewise.
4624         ($(objpfx)version.h): New target.
4625
4626         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
4627         2012i.
4628         * timezone/README: Don't mention modification to tzselect.ksh.
4629         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
4630         work on unmodified tzselect.ksh.  Substitute version numbers in
4631         tzselect.ksh.
4632
4633         * Makefile (format-me): Remove.
4634         (INSTALL): Adjust indentation.  Use commands directly instead of
4635         using $(format-me).
4636
4637         * aclocal.m4 (ACX_PKGVERSION): New macro.
4638         (ACX_BUGURL): Likewise.
4639         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
4640         (PKGVERSION): New AC_DEFINE_UNQUOTED.
4641         (REPORT_BUGS_TO): Likewise.
4642         * configure: Regenerated.
4643         * config.h.in (PKGVERSION): New macro.
4644         (REPORT_BUGS_TO): Likewise.
4645         * config.make.in (PKGVERSION): New variable.
4646         (PKGVERSION_TEXI): Likewise.
4647         (REPORT_BUGS_TO): Likewise.
4648         (REPORT_BUGS_TEXI): Likewise.
4649         * Makefile (format-me): Use -I$(common-objpfx)manual.
4650         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
4651         ($(common-objpfx)manual/%): New target.
4652         (manual/%): Remove target.
4653         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
4654         (print_version): Use PKGVERSION.
4655         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
4656         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
4657         and REPORT_BUGS_TO.
4658         ($(objpfx)xtrace): Likewise.
4659         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
4660         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
4661         (print_version): Use PKGVERSION.
4662         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
4663         (do_version): Use PKGVERSION.
4664         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
4665         REPORT_BUGS_TO.
4666         (common-ldd-rewrite): Likewise.
4667         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
4668         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
4669         (print_version): Use PKGVERSION.
4670         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
4671         * elf/pldd.c (argp_program_bug_address): Remove variable.
4672         (more_help): New function.
4673         (argp): Use more_help.
4674         (print_version): Use PKGVERSION.
4675         * elf/sln.c (main): Use PKGVERSION.
4676         (usage): Use REPORT_BUGS_TO.
4677         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
4678         (top level): Use PKGVERSION.
4679         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
4680         (print_version): Use PKGVERSION.
4681         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
4682         (print_version): Use PKGVERSION.
4683         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
4684         (print_version): Use PKGVERSION.
4685         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
4686         (print_version): Use PKGVERSION.
4687         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
4688         (print_version): Use PKGVERSION.
4689         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
4690         (print_version): Use PKGVERSION.
4691         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
4692         and BUGURL.
4693         ($(objpfx)memusage): Likewise.
4694         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
4695         (do_version): Use PKGVERSION.
4696         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
4697         (print_version): Use PKGVERSION.
4698         * malloc/mtrace.pl ($PACKAGE): Remove variable.
4699         ($PKGVERSION): New variable.
4700         ($REPORT_BUGS_TO): Likewise.
4701         (usage): Use $REPORT_BUGS_TO.
4702         (top level): Use $PKGVERSION.
4703         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
4704         ($(objpfx)pkgvers.texi): New rule.
4705         ($(objpfx)stamp-pkgvers): Likewise.
4706         * manual/install.texi: Include pkgvers.texi.
4707         (--with-pkgversion): Document new configure option.
4708         (--with-bugurl): Likewise.
4709         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
4710         than necessarily for this particular distribution.  Use
4711         REPORT_BUGS_TO for where to report bugs.
4712         * INSTALL: Regenerated.
4713         * manual/libc.texinfo: Include pkgvers.texi.
4714         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
4715         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
4716         (print_version): Use PKGVERSION.
4717         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
4718         (print_version): Use PKGVERSION.
4719         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
4720         (print_version): Use PKGVERSION.
4721         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
4722         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
4723         macro.
4724         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
4725         (print_version): Use PKGVERSION.
4726         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
4727         (print_version): Use PKGVERSION.
4728         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
4729         and PKGVERSION.
4730
4731         * timezone/checktab.awk: Update from tzcode 2012i.
4732         * timezone/ialloc.c: Likewise.
4733         * timezone/private.h: Likewise.
4734         * timezone/scheck.c: Likewise.
4735         * timezone/tzfile.h: Likewise.
4736         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
4737         (TZVERSION): Hardcode tzcode version number.
4738         * timezone/zdump.c: Update from tzcode 2012i.
4739         * timezone/zic.c: Likewise.
4740         * timezone/version.h: New file.
4741         * timezone/README: Describe version.h.  Update upstream location.
4742
4743         [BZ #14824]
4744         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
4745         (mktemp): Enable declaration.
4746         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
4747         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
4748         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
4749         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
4750         Likewise.
4751         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
4752         Likewise.
4753         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
4754         Likewise.
4755         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
4756         Likewise.
4757         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
4758         Likewise.
4759         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
4760         Likewise.
4761
4762         [BZ #14821]
4763         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
4764         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
4765         for copies of such integer values.
4766         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
4767         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
4768
4769 2012-11-09  Andreas Jaeger  <aj@suse.de>
4770
4771         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
4772         definitions and declarations that are provided by
4773         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
4774
4775 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4776
4777         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
4778         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
4779         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
4780         definition.
4781
4782 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4783
4784         * elf/elf.h: Update comment before AArch64 relocations.
4785
4786 2012-11-07  David S. Miller  <davem@davemloft.net>
4787
4788         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
4789         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4790         (__start_context): Declare.
4791         (__makecontext_ret): Delete.
4792         (__makecontext): Hook up __start_context instead of
4793         __makecontext_ret.
4794         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4795         (sysdep_routines): Add __start_context when in stdlib.
4796
4797 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4798
4799         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
4800         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
4801         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
4802         hardcoded "nm".
4803         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
4804         (READELF): New variable.  Use it instead of hardcoded "readelf".
4805
4806 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4807
4808         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
4809         * sysdeps/x86/Makefile: Here.
4810         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
4811         * sysdeps/x86/tst-xmmymm.sh: This.
4812
4813 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4814
4815         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
4816         expectations.
4817         [UNIX98] (pthread_barrier_t): Do not expect.
4818         [UNIX98] (pthread_barrierattr_t): Likewise.
4819         [UNIX98] (pthread_spinlock_t): Likewise.
4820         [UNIX98] (pthread_barrier_destroy): Likewise.
4821         [UNIX98] (pthread_barrier_init): Likewise.
4822         [UNIX98] (pthread_barrier_wait): Likewise.
4823         [UNIX98] (pthread_barrierattr_destroy): Likewise.
4824         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
4825         [UNIX98] (pthread_barrierattr_init): Likewise.
4826         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
4827         [UNIX98] (pthread_getcpuclockid): Likewise.
4828         [UNIX98] (pthread_mutex_timedlock): Likewise.
4829         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
4830         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
4831         [UNIX98] (pthread_sigmask): Likewise.
4832         [UNIX98] (pthread_spin_destroy): Likewise.
4833         [UNIX98] (pthread_spin_init): Likewise.
4834         [UNIX98] (pthread_spin_lock): Likewise.
4835         [UNIX98] (pthread_spin_trylock): Likewise.
4836         [UNIX98] (pthread_spin_unlock): Likewise.
4837         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
4838         Do not expect.
4839         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
4840         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
4841         [XPG3 || XPG4] (pthread_cond_t): Likewise.
4842         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
4843         [XPG3 || XPG4] (pthread_key_t): Likewise.
4844         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
4845         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
4846         [XPG3 || XPG4] (pthread_once_t): Likewise.
4847         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
4848         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
4849         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
4850         [XPG3 || XPG4] (pthread_t): Likewise.
4851
4852         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
4853         not expect.
4854         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
4855
4856         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
4857         Change function return type to int.
4858
4859         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
4860         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
4861         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
4862         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
4863         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
4864         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
4865         [!POSIX] (posix_madvise): Likewise.
4866         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
4867         && !UNIX98].
4868         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
4869         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
4870         (mode_t): Likewise.
4871         (posix_mem_offset): Likewise.
4872         (posix_typed_mem_get_info): Likewise.
4873         (posix_typed_mem_open): Likewise.
4874
4875         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
4876         Change condition to [XOPEN2K8].
4877
4878         * conform/conformtest.pl: Preprocess allow-header data with -x c
4879         instead of from stdin.
4880         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
4881         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
4882         [C99-based standards] (cerfc): Likewise.
4883         [C99-based standards] (cexp2): Likewise.
4884         [C99-based standards] (cexpm1): Likewise.
4885         [C99-based standards] (clog10): Likewise.
4886         [C99-based standards] (clog1p): Likewise.
4887         [C99-based standards] (clog2): Likewise.
4888         [C99-based standards] (clgamma): Likewise.
4889         [C99-based standards] (ctgamma): Likewise.
4890         [C99-based standards] (cerff): Likewise.
4891         [C99-based standards] (cerfcf): Likewise.
4892         [C99-based standards] (cexp2f): Likewise.
4893         [C99-based standards] (cexpm1f): Likewise.
4894         [C99-based standards] (clog10f): Likewise.
4895         [C99-based standards] (clog1pf): Likewise.
4896         [C99-based standards] (clog2f): Likewise.
4897         [C99-based standards] (clgammaf): Likewise.
4898         [C99-based standards] (ctgammaf): Likewise.
4899         [C99-based standards] (cerfl): Likewise.
4900         [C99-based standards] (cerfcl): Likewise.
4901         [C99-based standards] (cexp2l): Likewise.
4902         [C99-based standards] (cexpm1l): Likewise.
4903         [C99-based standards] (clog10l): Likewise.
4904         [C99-based standards] (clog1pl): Likewise.
4905         [C99-based standards] (clog2l): Likewise.
4906         [C99-based standards] (clgammal): Likewise.
4907         [C99-based standards] (ctgammal): Likewise.
4908         * conform/data/inttypes.h-data [C99-based standards]: Include
4909         stdint.h-data.  Remove all expectations for stdint.h contents.
4910         [C99-based standards] (PRI*): Do not allow.
4911         [C99-based standards] (SCN*): Likewise.
4912         [C99-based standards] (*_t): Likewise.
4913         [C99-based-standards] (PRId8): Expect macro.
4914         [C99-based-standards] (PRIi8): Likewise.
4915         [C99-based-standards] (PRIo8): Likewise.
4916         [C99-based-standards] (PRIu8): Likewise.
4917         [C99-based-standards] (PRIx8): Likewise.
4918         [C99-based-standards] (PRIX8): Likewise.
4919         [C99-based-standards] (SCNd8): Likewise.
4920         [C99-based-standards] (SCNi8): Likewise.
4921         [C99-based-standards] (SCNo8): Likewise.
4922         [C99-based-standards] (SCNu8): Likewise.
4923         [C99-based-standards] (SCNx8): Likewise.
4924         [C99-based-standards] (PRIdLEAST8): Likewise.
4925         [C99-based-standards] (PRIiLEAST8): Likewise.
4926         [C99-based-standards] (PRIoLEAST8): Likewise.
4927         [C99-based-standards] (PRIuLEAST8): Likewise.
4928         [C99-based-standards] (PRIxLEAST8): Likewise.
4929         [C99-based-standards] (PRIXLEAST8): Likewise.
4930         [C99-based-standards] (SCNdLEAST8): Likewise.
4931         [C99-based-standards] (SCNiLEAST8): Likewise.
4932         [C99-based-standards] (SCNoLEAST8): Likewise.
4933         [C99-based-standards] (SCNuLEAST8): Likewise.
4934         [C99-based-standards] (SCNxLEAST8): Likewise.
4935         [C99-based-standards] (PRIdFAST8): Likewise.
4936         [C99-based-standards] (PRIiFAST8): Likewise.
4937         [C99-based-standards] (PRIoFAST8): Likewise.
4938         [C99-based-standards] (PRIuFAST8): Likewise.
4939         [C99-based-standards] (PRIxFAST8): Likewise.
4940         [C99-based-standards] (PRIXFAST8): Likewise.
4941         [C99-based-standards] (SCNdFAST8): Likewise.
4942         [C99-based-standards] (SCNiFAST8): Likewise.
4943         [C99-based-standards] (SCNoFAST8): Likewise.
4944         [C99-based-standards] (SCNuFAST8): Likewise.
4945         [C99-based-standards] (SCNxFAST8): Likewise.
4946         [C99-based-standards] (PRId16): Likewise.
4947         [C99-based-standards] (PRIi16): Likewise.
4948         [C99-based-standards] (PRIo16): Likewise.
4949         [C99-based-standards] (PRIu16): Likewise.
4950         [C99-based-standards] (PRIx16): Likewise.
4951         [C99-based-standards] (PRIX16): Likewise.
4952         [C99-based-standards] (SCNd16): Likewise.
4953         [C99-based-standards] (SCNi16): Likewise.
4954         [C99-based-standards] (SCNo16): Likewise.
4955         [C99-based-standards] (SCNu16): Likewise.
4956         [C99-based-standards] (SCNx16): Likewise.
4957         [C99-based-standards] (PRIdLEAST16): Likewise.
4958         [C99-based-standards] (PRIiLEAST16): Likewise.
4959         [C99-based-standards] (PRIoLEAST16): Likewise.
4960         [C99-based-standards] (PRIuLEAST16): Likewise.
4961         [C99-based-standards] (PRIxLEAST16): Likewise.
4962         [C99-based-standards] (PRIXLEAST16): Likewise.
4963         [C99-based-standards] (SCNdLEAST16): Likewise.
4964         [C99-based-standards] (SCNiLEAST16): Likewise.
4965         [C99-based-standards] (SCNoLEAST16): Likewise.
4966         [C99-based-standards] (SCNuLEAST16): Likewise.
4967         [C99-based-standards] (SCNxLEAST16): Likewise.
4968         [C99-based-standards] (PRIdFAST16): Likewise.
4969         [C99-based-standards] (PRIiFAST16): Likewise.
4970         [C99-based-standards] (PRIoFAST16): Likewise.
4971         [C99-based-standards] (PRIuFAST16): Likewise.
4972         [C99-based-standards] (PRIxFAST16): Likewise.
4973         [C99-based-standards] (PRIXFAST16): Likewise.
4974         [C99-based-standards] (SCNdFAST16): Likewise.
4975         [C99-based-standards] (SCNiFAST16): Likewise.
4976         [C99-based-standards] (SCNoFAST16): Likewise.
4977         [C99-based-standards] (SCNuFAST16): Likewise.
4978         [C99-based-standards] (SCNxFAST16): Likewise.
4979         [C99-based-standards] (PRId32): Likewise.
4980         [C99-based-standards] (PRIi32): Likewise.
4981         [C99-based-standards] (PRIo32): Likewise.
4982         [C99-based-standards] (PRIu32): Likewise.
4983         [C99-based-standards] (PRIx32): Likewise.
4984         [C99-based-standards] (PRIX32): Likewise.
4985         [C99-based-standards] (SCNd32): Likewise.
4986         [C99-based-standards] (SCNi32): Likewise.
4987         [C99-based-standards] (SCNo32): Likewise.
4988         [C99-based-standards] (SCNu32): Likewise.
4989         [C99-based-standards] (SCNx32): Likewise.
4990         [C99-based-standards] (PRIdLEAST32): Likewise.
4991         [C99-based-standards] (PRIiLEAST32): Likewise.
4992         [C99-based-standards] (PRIoLEAST32): Likewise.
4993         [C99-based-standards] (PRIuLEAST32): Likewise.
4994         [C99-based-standards] (PRIxLEAST32): Likewise.
4995         [C99-based-standards] (PRIXLEAST32): Likewise.
4996         [C99-based-standards] (SCNdLEAST32): Likewise.
4997         [C99-based-standards] (SCNiLEAST32): Likewise.
4998         [C99-based-standards] (SCNoLEAST32): Likewise.
4999         [C99-based-standards] (SCNuLEAST32): Likewise.
5000         [C99-based-standards] (SCNxLEAST32): Likewise.
5001         [C99-based-standards] (PRIdFAST32): Likewise.
5002         [C99-based-standards] (PRIiFAST32): Likewise.
5003         [C99-based-standards] (PRIoFAST32): Likewise.
5004         [C99-based-standards] (PRIuFAST32): Likewise.
5005         [C99-based-standards] (PRIxFAST32): Likewise.
5006         [C99-based-standards] (PRIXFAST32): Likewise.
5007         [C99-based-standards] (SCNdFAST32): Likewise.
5008         [C99-based-standards] (SCNiFAST32): Likewise.
5009         [C99-based-standards] (SCNoFAST32): Likewise.
5010         [C99-based-standards] (SCNuFAST32): Likewise.
5011         [C99-based-standards] (SCNxFAST32): Likewise.
5012         [C99-based-standards] (PRId64): Likewise.
5013         [C99-based-standards] (PRIi64): Likewise.
5014         [C99-based-standards] (PRIo64): Likewise.
5015         [C99-based-standards] (PRIu64): Likewise.
5016         [C99-based-standards] (PRIx64): Likewise.
5017         [C99-based-standards] (PRIX64): Likewise.
5018         [C99-based-standards] (SCNd64): Likewise.
5019         [C99-based-standards] (SCNi64): Likewise.
5020         [C99-based-standards] (SCNo64): Likewise.
5021         [C99-based-standards] (SCNu64): Likewise.
5022         [C99-based-standards] (SCNx64): Likewise.
5023         [C99-based-standards] (PRIdLEAST64): Likewise.
5024         [C99-based-standards] (PRIiLEAST64): Likewise.
5025         [C99-based-standards] (PRIoLEAST64): Likewise.
5026         [C99-based-standards] (PRIuLEAST64): Likewise.
5027         [C99-based-standards] (PRIxLEAST64): Likewise.
5028         [C99-based-standards] (PRIXLEAST64): Likewise.
5029         [C99-based-standards] (SCNdLEAST64): Likewise.
5030         [C99-based-standards] (SCNiLEAST64): Likewise.
5031         [C99-based-standards] (SCNoLEAST64): Likewise.
5032         [C99-based-standards] (SCNuLEAST64): Likewise.
5033         [C99-based-standards] (SCNxLEAST64): Likewise.
5034         [C99-based-standards] (PRIdFAST64): Likewise.
5035         [C99-based-standards] (PRIiFAST64): Likewise.
5036         [C99-based-standards] (PRIoFAST64): Likewise.
5037         [C99-based-standards] (PRIuFAST64): Likewise.
5038         [C99-based-standards] (PRIxFAST64): Likewise.
5039         [C99-based-standards] (PRIXFAST64): Likewise.
5040         [C99-based-standards] (SCNdFAST64): Likewise.
5041         [C99-based-standards] (SCNiFAST64): Likewise.
5042         [C99-based-standards] (SCNoFAST64): Likewise.
5043         [C99-based-standards] (SCNuFAST64): Likewise.
5044         [C99-based-standards] (SCNxFAST64): Likewise.
5045         [C99-based-standards] (PRIdMAX): Likewise.
5046         [C99-based-standards] (PRIiMAX): Likewise.
5047         [C99-based-standards] (PRIoMAX): Likewise.
5048         [C99-based-standards] (PRIuMAX): Likewise.
5049         [C99-based-standards] (PRIxMAX): Likewise.
5050         [C99-based-standards] (PRIXMAX): Likewise.
5051         [C99-based-standards] (SCNdMAX): Likewise.
5052         [C99-based-standards] (SCNiMAX): Likewise.
5053         [C99-based-standards] (SCNoMAX): Likewise.
5054         [C99-based-standards] (SCNuMAX): Likewise.
5055         [C99-based-standards] (SCNxMAX): Likewise.
5056         [C99-based-standards] (PRIdPTR): Likewise.
5057         [C99-based-standards] (PRIiPTR): Likewise.
5058         [C99-based-standards] (PRIoPTR): Likewise.
5059         [C99-based-standards] (PRIuPTR): Likewise.
5060         [C99-based-standards] (PRIxPTR): Likewise.
5061         [C99-based-standards] (PRIXPTR): Likewise.
5062         [C99-based-standards] (SCNdPTR): Likewise.
5063         [C99-based-standards] (SCNiPTR): Likewise.
5064         [C99-based-standards] (SCNoPTR): Likewise.
5065         [C99-based-standards] (SCNuPTR): Likewise.
5066         [C99-based-standards] (SCNxPTR): Likewise.
5067         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
5068         allow.
5069         * conform/data/stdint.h-data: Update comments to clarify
5070         requirements.
5071         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
5072         type.
5073         [C99-based standards] (INT8_MAX): Likewise.
5074         [C99-based standards] (INT16_MIN): Likewise.
5075         [C99-based standards] (INT16_MAX): Likewise.
5076         [C99-based standards] (INT32_MIN): Likewise.
5077         [C99-based standards] (INT32_MAX): Likewise.
5078         [C99-based standards] (INT64_MIN): Likewise.
5079         [C99-based standards] (INT64_MAX): Likewise.
5080         [C99-based standards] (UINT8_MAX): Likewise.
5081         [C99-based standards] (UINT16_MAX): Likewise.
5082         [C99-based standards] (UINT32_MAX): Likewise.
5083         [C99-based standards] (UINT64_MAX): Likewise.
5084         [C99-based standards] (INT_LEAST8_MIN): Likewise.
5085         [C99-based standards] (INT_LEAST8_MAX): Likewise.
5086         [C99-based standards] (INT_LEAST16_MIN): Likewise.
5087         [C99-based standards] (INT_LEAST16_MAX): Likewise.
5088         [C99-based standards] (INT_LEAST32_MIN): Likewise.
5089         [C99-based standards] (INT_LEAST32_MAX): Likewise.
5090         [C99-based standards] (INT_LEAST64_MIN): Likewise.
5091         [C99-based standards] (INT_LEAST64_MAX): Likewise.
5092         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
5093         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
5094         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
5095         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
5096         [C99-based standards] (INT_FAST8_MIN): Likewise.
5097         [C99-based standards] (INT_FAST8_MAX): Likewise.
5098         [C99-based standards] (INT_FAST16_MIN): Likewise.
5099         [C99-based standards] (INT_FAST16_MAX): Likewise.
5100         [C99-based standards] (INT_FAST32_MIN): Likewise.
5101         [C99-based standards] (INT_FAST32_MAX): Likewise.
5102         [C99-based standards] (INT_FAST64_MIN): Likewise.
5103         [C99-based standards] (INT_FAST64_MAX): Likewise.
5104         [C99-based standards] (UINT_FAST8_MAX): Likewise.
5105         [C99-based standards] (UINT_FAST16_MAX): Likewise.
5106         [C99-based standards] (UINT_FAST32_MAX): Likewise.
5107         [C99-based standards] (UINT_FAST64_MAX): Likewise.
5108         [C99-based standards] (INTPTR_MIN): Likewise.
5109         [C99-based standards] (INTPTR_MAX): Likewise.
5110         [C99-based standards] (UINTPTR_MAX): Likewise.
5111         [C99-based standards] (INTMAX_MIN): Likewise.
5112         [C99-based standards] (INTMAX_MAX): Likewise.
5113         [C99-based standards] (UINTMAX_MAX): Likewise.
5114         [C99-based standards] (PTRDIFF_MIN): Likewise.
5115         [C99-based standards] (PTRDIFF_MAX): Likewise.
5116         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
5117         [C99-based standards] (SIZE_MAX): Likewise.
5118         [C99-based standards] (WCHAR_MAX): Likewise.
5119         [C99-based standards] (WINT_MAX): Likewise.
5120         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
5121         constraint on value.
5122         [C99-based standards] (WCHAR_MIN): Likewise.
5123         [C99-based standards] (WINT_MIN): Likewise.
5124         [C99-based standards] (*_t): Allow.
5125         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
5126         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
5127         Include math.h-data and complex.h-data.  Remove all expectations
5128         of math.h and complex.h contents.
5129         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
5130         at end of line.
5131         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
5132         (struct tm): Expect tag.
5133         [C99-based-standards] (wcstof): Expect function.
5134         [C99-based-standards] (wcstold): Likewise.
5135         [C99-based-standards] (wcstoll): Likewise.
5136         [C99-based-standards] (wcstoull): Likewise.
5137         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
5138         macro-int-constant.  Specify type.
5139         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
5140         constraint on value.
5141         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
5142         Specify type.
5143         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
5144         Specify value.
5145         [ISO C standards]: Do not allow headers.
5146         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
5147         wcs[abcdefghijklmnopqrstuvwxyz]*.
5148         [ISO C standards] (*_t): Do not allow.
5149         * conform/data/wctype.h-data [C99-based standards] (iswblank):
5150         Expect function.
5151         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
5152         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
5153         Specify type.
5154         [ISO C standards]: Do not allow headers.
5155         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
5156         is[abcdefghijklmnopqrstuvwxyz]*.
5157         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
5158         to[abcdefghijklmnopqrstuvwxyz]*.
5159         [ISO C standards] (*_t): Do not allow.
5160         * conform/data/stdalign.h-data: New file.
5161         * conform/data/stdbool.h-data: Likewise.
5162         * conform/data/stdnoreturn.h-data: Likewise.
5163
5164 2012-11-07  Roland McGrath  <roland@hack.frob.com>
5165
5166         [BZ #14815]
5167         * manual/filesys.texi (Directory Entries): Typo fix.
5168         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
5169
5170 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5171
5172         * elf/elf.h (EM_AARCH64): New macro.
5173         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
5174         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
5175         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
5176         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
5177         (R_AARCH64_TLSDESC): Likewise.
5178         (NT_ARM_TLS): Likewise.
5179         (NT_ARM_HW_BREAK): Likewise.
5180         (NT_ARM_HW_WATCH): Likewise.
5181
5182 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5183
5184         [BZ #14811]
5185         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
5186         (__ieee754_powl): Saturate nonzero exponents with absolute value
5187         below 0x1p-79 to +/- 0x1p-79.
5188         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
5189         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
5190         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
5191         nonzero exponents with absolute value below 0x1p-32 to +/-
5192         0x1p-32.
5193         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
5194         (__ieee754_powl): Saturate nonzero exponents with absolute value
5195         below 0x1p-79 to +/- 0x1p-79.
5196         * math/libm-test.inc (pow_test): Add more tests.
5197
5198 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5199
5200         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
5201         _dl_s390_cap_flags with kernel. Increase string length.
5202         (_dl_s390_platforms): Add z196 and zEC12.
5203
5204 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5205
5206         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
5207         Change XOPEN21K to XOPEN2K.
5208
5209 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5210
5211         * string/memmove.c: Use memcpy when possible.
5212
5213 2012-11-06  Andreas Jaeger  <aj@suse.de>
5214
5215         * po/eo.po: Update from translation team.
5216
5217 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
5218
5219         [BZ #14793]
5220         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
5221         exponent and small x and y exponents, scale x or y up.  Increase
5222         by 2 the exponent used in scaling up.
5223         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5224         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5225         * math/libm-test.inc (fma_test): Add more tests.
5226         (fma_test_towardzero): Likewise.
5227         (fma_test_downward): Likewise.
5228         (fma_test_upward): Likewise.
5229
5230 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
5231
5232         [BZ #14805]
5233         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
5234         fenv_t *.
5235
5236         [BZ #14801]
5237         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
5238         namespace for names of struct fields.
5239         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
5240         fenv_t fields.
5241         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
5242         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
5243
5244 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5245
5246         [BZ #3665]
5247         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5248
5249 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
5250
5251         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
5252         PTR_DEMANGLE.
5253
5254         [BZ #5246]
5255         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
5256         PTR_DEMANGLE.
5257
5258 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
5259
5260         [BZ #14797]
5261         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
5262         definitely overflow as x * y not x * y + z.
5263         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5264         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5265         * math/libm-test.inc (fma_test): Add more tests.
5266         (fma_test_towardzero): Likewise.
5267         (fma_test_downward): Likewise.
5268         (fma_test_upward): Likewise.
5269
5270 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
5271
5272         [BZ #157]
5273
5274         * include/stub-tag.h: Remove file.
5275         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
5276         '#include' of it.
5277         * manual/maint.texi (Porting): Don't reference it.
5278         * Makerules ($(objpfx)stubs): Likewise.
5279         * dirent/closedir.c: Don't include <stub-tag.h>.
5280         * dirent/dirfd.c: Likewise.
5281         * dirent/fdopendir.c: Likewise.
5282         * dirent/getdents.c: Likewise.
5283         * dirent/getdents64.c: Likewise.
5284         * dirent/opendir.c: Likewise.
5285         * dirent/readdir.c: Likewise.
5286         * dirent/readdir64.c: Likewise.
5287         * dirent/readdir64_r.c: Likewise.
5288         * dirent/readdir_r.c: Likewise.
5289         * dirent/rewinddir.c: Likewise.
5290         * dirent/seekdir.c: Likewise.
5291         * dirent/telldir.c: Likewise.
5292         * gmon/profil.c: Likewise.
5293         * grp/setgroups.c: Likewise.
5294         * inet/if_index.c: Likewise.
5295         * io/access.c: Likewise.
5296         * io/chdir.c: Likewise.
5297         * io/chmod.c: Likewise.
5298         * io/chown.c: Likewise.
5299         * io/close.c: Likewise.
5300         * io/dup.c: Likewise.
5301         * io/dup2.c: Likewise.
5302         * io/dup3.c: Likewise.
5303         * io/euidaccess.c: Likewise.
5304         * io/faccessat.c: Likewise.
5305         * io/fchdir.c: Likewise.
5306         * io/fchmod.c: Likewise.
5307         * io/fchmodat.c: Likewise.
5308         * io/fchown.c: Likewise.
5309         * io/fchownat.c: Likewise.
5310         * io/fcntl.c: Likewise.
5311         * io/flock.c: Likewise.
5312         * io/fstatfs.c: Likewise.
5313         * io/fstatfs64.c: Likewise.
5314         * io/fstatvfs.c: Likewise.
5315         * io/fstatvfs64.c: Likewise.
5316         * io/futimens.c: Likewise.
5317         * io/fxstat.c: Likewise.
5318         * io/fxstat64.c: Likewise.
5319         * io/fxstatat.c: Likewise.
5320         * io/fxstatat64.c: Likewise.
5321         * io/getcwd.c: Likewise.
5322         * io/isatty.c: Likewise.
5323         * io/lchmod.c: Likewise.
5324         * io/lchown.c: Likewise.
5325         * io/link.c: Likewise.
5326         * io/linkat.c: Likewise.
5327         * io/lseek.c: Likewise.
5328         * io/lseek64.c: Likewise.
5329         * io/lxstat64.c: Likewise.
5330         * io/mkdir.c: Likewise.
5331         * io/mkdirat.c: Likewise.
5332         * io/mkfifo.c: Likewise.
5333         * io/mkfifoat.c: Likewise.
5334         * io/open.c: Likewise.
5335         * io/open64.c: Likewise.
5336         * io/openat.c: Likewise.
5337         * io/openat64.c: Likewise.
5338         * io/pipe.c: Likewise.
5339         * io/pipe2.c: Likewise.
5340         * io/poll.c: Likewise.
5341         * io/posix_fadvise.c: Likewise.
5342         * io/posix_fadvise64.c: Likewise.
5343         * io/posix_fallocate.c: Likewise.
5344         * io/posix_fallocate64.c: Likewise.
5345         * io/read.c: Likewise.
5346         * io/readlink.c: Likewise.
5347         * io/readlinkat.c: Likewise.
5348         * io/rmdir.c: Likewise.
5349         * io/sendfile.c: Likewise.
5350         * io/sendfile64.c: Likewise.
5351         * io/statfs.c: Likewise.
5352         * io/statfs64.c: Likewise.
5353         * io/statvfs.c: Likewise.
5354         * io/statvfs64.c: Likewise.
5355         * io/symlink.c: Likewise.
5356         * io/symlinkat.c: Likewise.
5357         * io/ttyname.c: Likewise.
5358         * io/ttyname_r.c: Likewise.
5359         * io/umask.c: Likewise.
5360         * io/unlink.c: Likewise.
5361         * io/unlinkat.c: Likewise.
5362         * io/utime.c: Likewise.
5363         * io/utimensat.c: Likewise.
5364         * io/write.c: Likewise.
5365         * io/xmknod.c: Likewise.
5366         * io/xmknodat.c: Likewise.
5367         * io/xstat.c: Likewise.
5368         * io/xstat64.c: Likewise.
5369         * login/getpt.c: Likewise.
5370         * login/grantpt.c: Likewise.
5371         * login/unlockpt.c: Likewise.
5372         * math/e_acoshl.c: Likewise.
5373         * math/e_acosl.c: Likewise.
5374         * math/e_asinl.c: Likewise.
5375         * math/e_atan2l.c: Likewise.
5376         * math/e_atanhl.c: Likewise.
5377         * math/e_coshl.c: Likewise.
5378         * math/e_expl.c: Likewise.
5379         * math/e_fmodl.c: Likewise.
5380         * math/e_gammal_r.c: Likewise.
5381         * math/e_hypotl.c: Likewise.
5382         * math/e_j0l.c: Likewise.
5383         * math/e_j1l.c: Likewise.
5384         * math/e_jnl.c: Likewise.
5385         * math/e_lgammal_r.c: Likewise.
5386         * math/e_log10l.c: Likewise.
5387         * math/e_log2l.c: Likewise.
5388         * math/e_logl.c: Likewise.
5389         * math/e_powl.c: Likewise.
5390         * math/e_rem_pio2l.c: Likewise.
5391         * math/e_sinhl.c: Likewise.
5392         * math/e_sqrtl.c: Likewise.
5393         * math/fclrexcpt.c: Likewise.
5394         * math/fedisblxcpt.c: Likewise.
5395         * math/feenablxcpt.c: Likewise.
5396         * math/fegetenv.c: Likewise.
5397         * math/fegetexcept.c: Likewise.
5398         * math/fegetround.c: Likewise.
5399         * math/feholdexcpt.c: Likewise.
5400         * math/fesetenv.c: Likewise.
5401         * math/fesetround.c: Likewise.
5402         * math/feupdateenv.c: Likewise.
5403         * math/fgetexcptflg.c: Likewise.
5404         * math/fraiseexcpt.c: Likewise.
5405         * math/fsetexcptflg.c: Likewise.
5406         * math/ftestexcept.c: Likewise.
5407         * math/k_cosl.c: Likewise.
5408         * math/k_rem_pio2l.c: Likewise.
5409         * math/k_sinl.c: Likewise.
5410         * math/k_tanl.c: Likewise.
5411         * math/s_asinhl.c: Likewise.
5412         * math/s_atanl.c: Likewise.
5413         * math/s_cbrtl.c: Likewise.
5414         * math/s_erfl.c: Likewise.
5415         * math/s_expm1l.c: Likewise.
5416         * math/s_log1pl.c: Likewise.
5417         * math/s_tanhl.c: Likewise.
5418         * misc/acct.c: Likewise.
5419         * misc/brk.c: Likewise.
5420         * misc/chflags.c: Likewise.
5421         * misc/chroot.c: Likewise.
5422         * misc/fchflags.c: Likewise.
5423         * misc/fgetxattr.c: Likewise.
5424         * misc/flistxattr.c: Likewise.
5425         * misc/fremovexattr.c: Likewise.
5426         * misc/fsetxattr.c: Likewise.
5427         * misc/fsync.c: Likewise.
5428         * misc/ftruncate.c: Likewise.
5429         * misc/futimes.c: Likewise.
5430         * misc/futimesat.c: Likewise.
5431         * misc/getdomain.c: Likewise.
5432         * misc/getdtsz.c: Likewise.
5433         * misc/gethostid.c: Likewise.
5434         * misc/gethostname.c: Likewise.
5435         * misc/getloadavg.c: Likewise.
5436         * misc/getpagesize.c: Likewise.
5437         * misc/getsysstats.c: Likewise.
5438         * misc/getxattr.c: Likewise.
5439         * misc/gtty.c: Likewise.
5440         * misc/ioctl.c: Likewise.
5441         * misc/lgetxattr.c: Likewise.
5442         * misc/listxattr.c: Likewise.
5443         * misc/llistxattr.c: Likewise.
5444         * misc/lremovexattr.c: Likewise.
5445         * misc/lsetxattr.c: Likewise.
5446         * misc/lutimes.c: Likewise.
5447         * misc/madvise.c: Likewise.
5448         * misc/mincore.c: Likewise.
5449         * misc/mlock.c: Likewise.
5450         * misc/mlockall.c: Likewise.
5451         * misc/mmap.c: Likewise.
5452         * misc/mprotect.c: Likewise.
5453         * misc/msync.c: Likewise.
5454         * misc/munlock.c: Likewise.
5455         * misc/munlockall.c: Likewise.
5456         * misc/munmap.c: Likewise.
5457         * misc/preadv.c: Likewise.
5458         * misc/preadv64.c: Likewise.
5459         * misc/ptrace.c: Likewise.
5460         * misc/pwritev.c: Likewise.
5461         * misc/pwritev64.c: Likewise.
5462         * misc/readv.c: Likewise.
5463         * misc/reboot.c: Likewise.
5464         * misc/remap_file_pages.c: Likewise.
5465         * misc/removexattr.c: Likewise.
5466         * misc/revoke.c: Likewise.
5467         * misc/select.c: Likewise.
5468         * misc/setdomain.c: Likewise.
5469         * misc/setegid.c: Likewise.
5470         * misc/seteuid.c: Likewise.
5471         * misc/sethostid.c: Likewise.
5472         * misc/sethostname.c: Likewise.
5473         * misc/setregid.c: Likewise.
5474         * misc/setreuid.c: Likewise.
5475         * misc/setxattr.c: Likewise.
5476         * misc/sstk.c: Likewise.
5477         * misc/stty.c: Likewise.
5478         * misc/swapoff.c: Likewise.
5479         * misc/swapon.c: Likewise.
5480         * misc/sync.c: Likewise.
5481         * misc/syncfs.c: Likewise.
5482         * misc/syscall.c: Likewise.
5483         * misc/truncate.c: Likewise.
5484         * misc/ualarm.c: Likewise.
5485         * misc/usleep.c: Likewise.
5486         * misc/ustat.c: Likewise.
5487         * misc/utimes.c: Likewise.
5488         * misc/vhangup.c: Likewise.
5489         * misc/writev.c: Likewise.
5490         * posix/_exit.c: Likewise.
5491         * posix/alarm.c: Likewise.
5492         * posix/execve.c: Likewise.
5493         * posix/fexecve.c: Likewise.
5494         * posix/fork.c: Likewise.
5495         * posix/fpathconf.c: Likewise.
5496         * posix/getaddrinfo.c: Likewise.
5497         * posix/getegid.c: Likewise.
5498         * posix/geteuid.c: Likewise.
5499         * posix/getgid.c: Likewise.
5500         * posix/getgroups.c: Likewise.
5501         * posix/getlogin.c: Likewise.
5502         * posix/getlogin_r.c: Likewise.
5503         * posix/getpgid.c: Likewise.
5504         * posix/getpid.c: Likewise.
5505         * posix/getppid.c: Likewise.
5506         * posix/getresgid.c: Likewise.
5507         * posix/getresuid.c: Likewise.
5508         * posix/getsid.c: Likewise.
5509         * posix/getuid.c: Likewise.
5510         * posix/glob64.c: Likewise.
5511         * posix/nanosleep.c: Likewise.
5512         * posix/pathconf.c: Likewise.
5513         * posix/pause.c: Likewise.
5514         * posix/posix_madvise.c: Likewise.
5515         * posix/pread.c: Likewise.
5516         * posix/pread64.c: Likewise.
5517         * posix/pwrite.c: Likewise.
5518         * posix/pwrite64.c: Likewise.
5519         * posix/sched_getaffinity.c: Likewise.
5520         * posix/sched_getp.c: Likewise.
5521         * posix/sched_gets.c: Likewise.
5522         * posix/sched_primax.c: Likewise.
5523         * posix/sched_primin.c: Likewise.
5524         * posix/sched_rr_gi.c: Likewise.
5525         * posix/sched_setaffinity.c: Likewise.
5526         * posix/sched_setp.c: Likewise.
5527         * posix/sched_sets.c: Likewise.
5528         * posix/sched_yield.c: Likewise.
5529         * posix/setgid.c: Likewise.
5530         * posix/setlogin.c: Likewise.
5531         * posix/setpgid.c: Likewise.
5532         * posix/setresgid.c: Likewise.
5533         * posix/setresuid.c: Likewise.
5534         * posix/setsid.c: Likewise.
5535         * posix/setuid.c: Likewise.
5536         * posix/sleep.c: Likewise.
5537         * posix/spawni.c: Likewise.
5538         * posix/sysconf.c: Likewise.
5539         * posix/times.c: Likewise.
5540         * posix/wait.c: Likewise.
5541         * posix/wait3.c: Likewise.
5542         * posix/wait4.c: Likewise.
5543         * posix/waitpid.c: Likewise.
5544         * resolv/gai_sigqueue.c: Likewise.
5545         * resource/getpriority.c: Likewise.
5546         * resource/getrlimit.c: Likewise.
5547         * resource/getrusage.c: Likewise.
5548         * resource/nice.c: Likewise.
5549         * resource/setpriority.c: Likewise.
5550         * resource/setrlimit.c: Likewise.
5551         * resource/ulimit.c: Likewise.
5552         * rt/aio_cancel.c: Likewise.
5553         * rt/aio_fsync.c: Likewise.
5554         * rt/aio_read.c: Likewise.
5555         * rt/aio_sigqueue.c: Likewise.
5556         * rt/aio_suspend.c: Likewise.
5557         * rt/aio_write.c: Likewise.
5558         * rt/clock_getres.c: Likewise.
5559         * rt/clock_gettime.c: Likewise.
5560         * rt/clock_nanosleep.c: Likewise.
5561         * rt/clock_settime.c: Likewise.
5562         * rt/lio_listio.c: Likewise.
5563         * rt/mq_close.c: Likewise.
5564         * rt/mq_getattr.c: Likewise.
5565         * rt/mq_notify.c: Likewise.
5566         * rt/mq_open.c: Likewise.
5567         * rt/mq_receive.c: Likewise.
5568         * rt/mq_send.c: Likewise.
5569         * rt/mq_setattr.c: Likewise.
5570         * rt/mq_timedreceive.c: Likewise.
5571         * rt/mq_timedsend.c: Likewise.
5572         * rt/mq_unlink.c: Likewise.
5573         * rt/shm_open.c: Likewise.
5574         * rt/shm_unlink.c: Likewise.
5575         * rt/timer_create.c: Likewise.
5576         * rt/timer_delete.c: Likewise.
5577         * rt/timer_getoverr.c: Likewise.
5578         * rt/timer_gettime.c: Likewise.
5579         * rt/timer_settime.c: Likewise.
5580         * setjmp/__longjmp.c: Likewise.
5581         * setjmp/setjmp.c: Likewise.
5582         * signal/kill.c: Likewise.
5583         * signal/killpg.c: Likewise.
5584         * signal/raise.c: Likewise.
5585         * signal/sigaction.c: Likewise.
5586         * signal/sigaltstack.c: Likewise.
5587         * signal/sigblock.c: Likewise.
5588         * signal/sigignore.c: Likewise.
5589         * signal/sigintr.c: Likewise.
5590         * signal/signal.c: Likewise.
5591         * signal/sigpause.c: Likewise.
5592         * signal/sigpending.c: Likewise.
5593         * signal/sigqueue.c: Likewise.
5594         * signal/sigreturn.c: Likewise.
5595         * signal/sigset.c: Likewise.
5596         * signal/sigsetmask.c: Likewise.
5597         * signal/sigstack.c: Likewise.
5598         * signal/sigsuspend.c: Likewise.
5599         * signal/sigtimedwait.c: Likewise.
5600         * signal/sigvec.c: Likewise.
5601         * signal/sigwait.c: Likewise.
5602         * signal/sigwaitinfo.c: Likewise.
5603         * signal/sysv_signal.c: Likewise.
5604         * socket/accept.c: Likewise.
5605         * socket/accept4.c: Likewise.
5606         * socket/bind.c: Likewise.
5607         * socket/connect.c: Likewise.
5608         * socket/getpeername.c: Likewise.
5609         * socket/getsockname.c: Likewise.
5610         * socket/getsockopt.c: Likewise.
5611         * socket/isfdtype.c: Likewise.
5612         * socket/listen.c: Likewise.
5613         * socket/recv.c: Likewise.
5614         * socket/recvfrom.c: Likewise.
5615         * socket/recvmsg.c: Likewise.
5616         * socket/send.c: Likewise.
5617         * socket/sendmsg.c: Likewise.
5618         * socket/sendto.c: Likewise.
5619         * socket/setsockopt.c: Likewise.
5620         * socket/shutdown.c: Likewise.
5621         * socket/sockatmark.c: Likewise.
5622         * socket/socket.c: Likewise.
5623         * socket/socketpair.c: Likewise.
5624         * stdio-common/ctermid.c: Likewise.
5625         * stdio-common/cuserid.c: Likewise.
5626         * stdio-common/remove.c: Likewise.
5627         * stdio-common/rename.c: Likewise.
5628         * stdio-common/renameat.c: Likewise.
5629         * stdio-common/tempname.c: Likewise.
5630         * stdlib/getcontext.c: Likewise.
5631         * stdlib/makecontext.c: Likewise.
5632         * stdlib/setcontext.c: Likewise.
5633         * stdlib/swapcontext.c: Likewise.
5634         * stdlib/system.c: Likewise.
5635         * streams/fattach.c: Likewise.
5636         * streams/fdetach.c: Likewise.
5637         * streams/getmsg.c: Likewise.
5638         * streams/getpmsg.c: Likewise.
5639         * streams/putmsg.c: Likewise.
5640         * streams/putpmsg.c: Likewise.
5641         * sysdeps/unix/bsd/getpt.c: Likewise.
5642         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
5643         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
5644         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
5645         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
5646         Likewise.
5647         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
5648         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
5649         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
5650         * sysvipc/msgctl.c: Likewise.
5651         * sysvipc/msgget.c: Likewise.
5652         * sysvipc/msgrcv.c: Likewise.
5653         * sysvipc/msgsnd.c: Likewise.
5654         * sysvipc/semctl.c: Likewise.
5655         * sysvipc/semget.c: Likewise.
5656         * sysvipc/semop.c: Likewise.
5657         * sysvipc/semtimedop.c: Likewise.
5658         * sysvipc/shmat.c: Likewise.
5659         * sysvipc/shmctl.c: Likewise.
5660         * sysvipc/shmdt.c: Likewise.
5661         * sysvipc/shmget.c: Likewise.
5662         * termios/tcdrain.c: Likewise.
5663         * termios/tcflow.c: Likewise.
5664         * termios/tcflush.c: Likewise.
5665         * termios/tcgetattr.c: Likewise.
5666         * termios/tcgetpgrp.c: Likewise.
5667         * termios/tcsendbrk.c: Likewise.
5668         * termios/tcsetattr.c: Likewise.
5669         * termios/tcsetpgrp.c: Likewise.
5670         * time/adjtime.c: Likewise.
5671         * time/clock.c: Likewise.
5672         * time/getitimer.c: Likewise.
5673         * time/gettimeofday.c: Likewise.
5674         * time/setitimer.c: Likewise.
5675         * time/settimeofday.c: Likewise.
5676         * time/stime.c: Likewise.
5677         * time/time.c: Likewise.
5678
5679 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
5680
5681         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
5682         /usr/old/bin.
5683
5684         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
5685         instead of spaces.
5686         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
5687
5688 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
5689
5690         [BZ #14796]
5691         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
5692         FE_TONEAREST before applying Dekker multiplication and Knuth
5693         addition.  Clear inexact exceptions and check for exact zero
5694         results afterwards.
5695         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5696         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5697         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5698         * math/libm-test.inc (fma_test): Add more tests.
5699         (fma_test_towardzero): Likewise.
5700         (fma_test_downward): Likewise.
5701         (fma_test_upward): Likewise.
5702         * sysdeps/generic/math_private.h (default_libc_fesetround): New
5703         function.
5704         (libc_fesetround): New macro.
5705         (libc_fesetroundf): Likewise.
5706         (libc_fesetroundl): Likewise.
5707         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
5708         function.
5709         (libc_fesetround_387): Likewise.
5710         (libc_fesetroundf): New macro.
5711         (libc_fesetround): Likewise.
5712         (libc_fesetroundl): Likewise.
5713         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
5714         function.
5715         (libc_fesetroundf): New macro.
5716         (libc_fesetround): Likewise.
5717         (libc_fesetroundl): Likewise.
5718         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
5719         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
5720         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
5721         libm_hidden_ver.
5722         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
5723         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
5724         libm_hidden_def.
5725         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
5726         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
5727         libm_hidden_ver.
5728         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
5729         libm_hidden_def.
5730
5731         [BZ #3439]
5732         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
5733         integer constant usable in #if and use that to give value to enum
5734         constant.
5735         (FE_DIVBYZERO): Likewise.
5736         (FE_UNDERFLOW): Likewise.
5737         (FE_OVERFLOW): Likewise.
5738         (FE_INVALID): Likewise.
5739         (FE_INVALID_SNAN): Likewise.
5740         (FE_INVALID_ISI): Likewise.
5741         (FE_INVALID_IDI): Likewise.
5742         (FE_INVALID_ZDZ): Likewise.
5743         (FE_INVALID_IMZ): Likewise.
5744         (FE_INVALID_COMPARE): Likewise.
5745         (FE_INVALID_SOFTWARE): Likewise.
5746         (FE_INVALID_SQRT): Likewise.
5747         (FE_INVALID_INTEGER_CONVERSION): Likewise.
5748         (FE_TONEAREST): Likewise.
5749         (FE_TOWARDZERO): Likewise.
5750         (FE_UPWARD): Likewise.
5751         (FE_DOWNWARD): Likewise.
5752         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
5753         (FE_DIVBYZERO): Likewise.
5754         (FE_OVERFLOW): Likewise.
5755         (FE_UNDERFLOW): Likewise.
5756         (FE_INEXACT): Likewise.
5757         (FE_TONEAREST): Likewise.
5758         (FE_DOWNWARD): Likewise.
5759         (FE_UPWARD): Likewise.
5760         (FE_TOWARDZERO): Likewise.
5761         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
5762         (FE_UNDERFLOW): Likewise.
5763         (FE_OVERFLOW): Likewise.
5764         (FE_DIVBYZERO): Likewise.
5765         (FE_INVALID): Likewise.
5766         (FE_TONEAREST): Likewise.
5767         (FE_TOWARDZERO): Likewise.
5768         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
5769         (FE_OVERFLOW): Likewise.
5770         (FE_UNDERFLOW): Likewise.
5771         (FE_DIVBYZERO): Likewise.
5772         (FE_INEXACT): Likewise.
5773         (FE_TONEAREST): Likewise.
5774         (FE_TOWARDZERO): Likewise.
5775         (FE_UPWARD): Likewise.
5776         (FE_DOWNWARD): Likewise.
5777         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
5778         (FE_DIVBYZERO): Likewise.
5779         (FE_OVERFLOW): Likewise.
5780         (FE_UNDERFLOW): Likewise.
5781         (FE_INEXACT): Likewise.
5782         (FE_TONEAREST): Likewise.
5783         (FE_DOWNWARD): Likewise.
5784         (FE_UPWARD): Likewise.
5785         (FE_TOWARDZERO): Likewise.
5786
5787 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
5788
5789         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
5790
5791 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
5792
5793         * scripts/cross-test-ssh.sh (command): Use newlines to separate
5794         commands.  Quote $PWD.
5795         (blacklist_exports): Don't use remove_newlines.  Replace "declare
5796         -x" by "export".
5797         (remove_newlines): Remove.
5798
5799 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5800
5801         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
5802         * stdlib/stdlib.h (atof): Moved to ...
5803         * include/bits/stdlib-float.h: Here.  New file.
5804         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
5805         * stdlib/bits/stdlib-float.h: New file.
5806         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
5807         -mno-sse -mno-mmx.
5808         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
5809         <xmmintrin.h>.
5810
5811 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5812
5813         * conform/conformtest.pl (@headers): Add fenv.h.
5814         * conform/data/fenv.h-data: New file.
5815         * include/fenv.h [_ISOMAC]: Disable all contents of file except
5816         include of <math/fenv.h>.
5817
5818         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
5819         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
5820         && !UNIX98].  Enables tests for XOPEN2K8.
5821         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
5822         POSIX2008]: Likewise.
5823
5824         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
5825         (struct rusage): Do not expect type or its members.
5826
5827         [BZ #3439]
5828         * math/math.h (FP_NAN): Define macro to integer constant usable in
5829         #if and use that to give value to enum constant.
5830         (FP_INFINITE): Likewise.
5831         (FP_ZERO): Likewise.
5832         (FP_SUBNORMAL): Likewise.
5833         (FP_NORMAL): Likewise.
5834
5835 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
5836
5837         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
5838         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
5839         arguments.
5840
5841 2012-11-02  Roland McGrath  <roland@hack.frob.com>
5842
5843         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
5844         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
5845         autoconf-time if not.
5846         * configure.in: Remove AC_PREREQ.
5847
5848 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5849
5850         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
5851         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
5852         of the internal implementation.
5853
5854 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5855
5856         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
5857         except include of <misc/sys/syslog.h>.
5858
5859 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5860
5861         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
5862         function returns with a NULL context exit with zero.
5863
5864 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5865
5866         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
5867
5868 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
5869
5870         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
5871         (run_program_cmd): This.
5872         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
5873         (tst_langinfo): New variable.  Use it.
5874
5875 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
5876
5877         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
5878         floating point opcodes.
5879
5880 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5881
5882         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
5883         variable.
5884
5885         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
5886
5887         * sysdeps/mach/hurd/powerpc: Remove directory.
5888         * sysdeps/mach/powerpc: Likewise.
5889
5890 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5891
5892         * scripts/check-local-headers.sh: Ignore c++ headers.
5893
5894 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5895
5896         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
5897         __libc_cleanup_region_start argument.
5898
5899 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
5900
5901         [BZ #14784]
5902         [BZ #14785]
5903         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
5904         x * y using scaling, not as x * y + z.
5905         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5906         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5907         * math/libm-test.inc (fma_test): Add more tests.
5908         (fma_test_towardzero): Likewise.
5909         (fma_test_downward): Likewise.
5910         (fma_test_upward): Likewise.
5911
5912 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5913
5914         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
5915
5916 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5917
5918         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
5919         New variable.
5920
5921 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
5922
5923         * rt/tst-shm.c (worker): Correct checking for mmap failure.
5924
5925 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5926
5927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5928         Fix sort order.
5929         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5930         Likewise.
5931
5932 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5933
5934         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5935         Fix the order of the list for glibc 2.17.
5936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5937         Likewise.
5938
5939 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5940
5941         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5942
5943 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5944
5945         [BZ #14610]
5946         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
5947         for low part of x being zero before using __atanl (y).
5948         * math/libm-test.inc (atan2_test): Add another test.
5949
5950         * manual/install.texi (Configuring and compiling): Document
5951         general use of test-wrapper and test-wrapper-env.
5952         * INSTALL: Regenerated.
5953
5954         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
5955         (__fma): Do not extract and scale down low bits on after-rounding
5956         systems when result rounded to normal precision would have normal
5957         exponent.
5958         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
5959         (__fmal): Do not extract and scale down low bits on after-rounding
5960         systems when result rounded to normal precision would have normal
5961         exponent.
5962         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
5963         (__fmal): Do not extract and scale down low bits on after-rounding
5964         systems when result rounded to normal precision would have normal
5965         exponent.
5966         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
5967         macro.
5968         (fma_test): Add more tests.
5969         (fma_test_towardzero): Likewise.
5970         (fma_test_downward): Likewise.
5971         (fma_test_upward): Likewise.
5972
5973 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5974
5975         * sysdeps/i386/tininess.h: Renamed to ...
5976         * sysdeps/x86/tininess.h: This.
5977         * sysdeps/x86_64/tininess.h: Removed.
5978
5979 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
5980
5981         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
5982         input.  Use $(build-program-cmd).
5983         ($(objpfx)tst-array1-static.out): Likewise.
5984         ($(objpfx)tst-array2.out): Likewise.
5985         ($(objpfx)tst-array3.out): Likewise.
5986         ($(objpfx)tst-array4.out): Likewise.
5987         ($(objpfx)tst-array5.out): Likewise.
5988         ($(objpfx)tst-array5-static.out): Likewise.
5989
5990 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
5991
5992         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
5993         if defined.
5994
5995         * nss/nsswitch.h (nss_interface_function): Provide new
5996         macro for use with NSS functions.
5997         * grp/initgroups.c: Use new macro.
5998         * nss/getXXbyYY.c: Likewise.
5999         * nss/getXXbyYY_r.c: Likewise.
6000         * nss/getXXent.c: Likewise.
6001         * nss/getXXent_r.c: Likewise.
6002         * sysdeps/posix/getaddrinfo.c: Likewise.
6003
6004 2012-10-30  Andreas Jaeger  <aj@suse.de>
6005
6006         * po/ru.po: Update Russion translation from translation project.
6007
6008 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
6009
6010         [BZ #14152]
6011         [BZ #14783]
6012         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
6013         result and shift together with sticky bit instead of replicating
6014         round-to-nearest rounding.
6015         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6016         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6017         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
6018         missing underflow exceptions.
6019         (fma_test_towardzero): Add more tests.
6020         (fma_test_downward): Likewise.
6021         (fma_test_upward): Likewise.
6022
6023         [BZ #14047]
6024         * sysdeps/generic/tininess.h: New file.
6025         * sysdeps/i386/tininess.h: Likewise.
6026         * sysdeps/sh/tininess.h: Likewise.
6027         * sysdeps/x86_64/tininess.h: Likewise.
6028         * stdlib/tst-strtod-underflow.c: Likewise.
6029         * stdlib/tst-tininess.c: Likewise.
6030         * stdlib/strtod_l.c: Include <tininess.h>.
6031         (round_and_return): Do not set errno for exact underflow cases.
6032         Force an underflow exception when setting errno for underflow.
6033         Determine underflow based on rounding to normal precision if
6034         TININESS_AFTER_ROUNDING.
6035         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
6036         ERANGE for exact underflow cases.
6037         * stdlib/Makefile (tests): Add tst-tininess and
6038         tst-strtod-underflow.
6039         ($(objpfx)tst-tininess): Use $(link-libm).
6040         ($(objpfx)tst-strtod-underflow): Likewise.
6041
6042 2012-10-30  Andreas Jaeger  <aj@suse.de>
6043
6044         [BZ#14767]
6045         * elf/Makefile (tests): Remove conditional for have-initfini-array
6046         since this is now always required and the variable does not exist
6047         anymore.
6048         (tests-static): Likewise.
6049         (modules-names): Likewise.
6050
6051         * po/eo.po: Add Esperanto translation from translation project.
6052
6053         * elf/tst-array1.c (fini_array): Make writeable so that it can be
6054         merged with constructor/destructor.
6055         (init_array): Likewise.
6056         * elf/tst-array2dep.c (fini_array): Likewise.
6057         (init_array): Likewise.
6058
6059 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
6060
6061         * manual/message.texi: Delete @cartouche tags.
6062
6063 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
6064
6065         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
6066         EOPNOTSUPP.
6067         * sysdeps/mach/hurd/fsync.c: Likewise.
6068
6069         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
6070         [_POSIX_REALTIME_SIGNALS]: Change condition to
6071         [_POSIX_REALTIME_SIGNALS > 0].
6072
6073 2012-10-27  Andreas Jaeger  <aj@suse.de>
6074
6075         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
6076         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
6077         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
6078         [__WORDSIZE != 64]: Likewise.
6079
6080 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
6081
6082         *  iconvdata/tst-table.sh: Remove ${SHELL}.
6083         *  iconvdata/tst-tables.sh: Likewise.
6084
6085 2012-10-25  David S. Miller  <davem@davemloft.net>
6086
6087         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6088         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
6089         of strtoull.
6090
6091         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
6092         ifunc-impl-list.c
6093         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
6094         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
6095         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
6096         file.
6097
6098 2012-10-25  Roland McGrath  <roland@hack.frob.com>
6099
6100         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6101         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
6102         __getdirentries.
6103
6104 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
6105             Jim Blandy  <jimb@codesourcery.com>
6106
6107         * scripts/cross-test-ssh.sh: New file.
6108         * manual/install.texi (Configuring and compiling): Document use of
6109         cross-test-ssh.sh.
6110         * INSTALL: Regenerated.
6111
6112 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
6113
6114         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
6115         EOPNOTSUPP.
6116
6117 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
6118
6119         * Makeconfig (run-program-prefix): Fix comment.
6120
6121 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
6122             Jim Blandy  <jimb@codesourcery.com>
6123
6124         * Makeconfig (test-wrapper): New variable,
6125         (test-wrapper-env): Likewise.
6126         [$(cross-compiling) = yes && $(test-wrapper) != ""]
6127         (run-built-tests): Define to yes.
6128         (run-program-prefix): Use $(test-wrapper).
6129         (built-program-cmd): Likewise.
6130         * Rules (make-test-out): Use $(test-wrapper-env) and
6131         $(host-built-program-cmd).
6132         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
6133         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
6134         tst-pathopt.sh.
6135         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
6136         $(test-wrapper-env) to tst-rtld-load-self.sh.
6137         ($(objpfx)order2.out): Use $(test-wrapper).
6138         ($(objpfx)tst-initorder.out): Likewise.
6139         ($(objpfx)tst-initorder2.out): Likewise.
6140         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
6141         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
6142         (test_wrapper_env): New variable.  Use it to run ld.so.
6143         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
6144         Use it to run ld.so.
6145         (test_wrapper_env): Likewise.
6146         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
6147         $(test-wrapper) to run-iconv-test.sh.
6148         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
6149         (ICONV): Use $test_wrapper.
6150         * posix/Makefile ($(objpfx)globtest.out): Pass
6151         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
6152         globtest.sh, not $(run-program-prefix).
6153         * posix/globtest.sh (run_via_rtld_prefix): New variable.
6154         (test_wrapper): Likewise.
6155         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
6156         set together with run_via_rtld_prefix.
6157         (run_program_prefix): Define in terms of test_wrapper and
6158         run_via_rtld_prefix.
6159
6160 2012-10-24  Roland McGrath  <roland@hack.frob.com>
6161
6162         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
6163         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
6164         Targets removed.
6165
6166         [BZ #14743]
6167         * include/time.h: Remove librt_hidden_proto (clock_gettime).
6168         Declare __clock_getres, __clock_gettime, __clock_settime,
6169         __clock_nanosleep, and __clock_getcpuclockid.
6170         * rt/clock_gettime.c: Define __clock_gettime as an alias.
6171         Remove librt_hidden_def (clock_gettime).
6172         * sysdeps/unix/clock_gettime.c: Likewise.
6173         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
6174         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
6175         * rt/clock_getres.c: Define __clock_getres as an alias.
6176         * sysdeps/posix/clock_getres.c: Likewise.
6177         * rt/clock_settime.c: Define __clock_settime as an alias.
6178         * sysdeps/unix/clock_settime.c: Likewise.
6179         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
6180         * sysdeps/unix/clock_nanosleep.c: Likewise.
6181         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
6182         * rt/clock-compat.c: New file.
6183         * rt/Makefile (librt-routines): Add clock-compat and move
6184         $(clock-routines) to ...
6185         (routines): ... here, new variable.
6186         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
6187         Don't add get_clockfreq here.
6188         * rt/Versions (libc: GLIBC_2.17): New version set.
6189         Add clock_* symbols here.
6190         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
6191         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
6192         (GLIBC_2.17): Add clock_* symbols.
6193         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
6194         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
6195         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
6196         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6197         Likewise.
6198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6199         Likewise.
6200         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
6201         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
6202         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
6203         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
6204         * NEWS: Mention the move.
6205
6206         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
6207         Use __open, __read, __close rather than their public counterparts.
6208         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6209         (__get_clockfreq_via_cpuinfo): Likewise.
6210         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
6211         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
6212
6213         * config.h.in (HAVE_IFUNC): New #undef.
6214         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
6215         was successful.
6216         * configure: Regenerated.
6217
6218 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
6219
6220         * configure.in: Move READELF check to start of file.
6221         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
6222         libc_cv_asm_gnu_indirect_function in the process.
6223         * configure: Regenerated.
6224
6225 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
6226
6227         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
6228         send the output to /dev/null.
6229         (libc_cv_cc_with_libunwind): Likewise.
6230         (libc_cv_as_noexecstack): Likewise.
6231         * configure: Regenerate.
6232
6233 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
6234
6235         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
6236
6237         * posix/globtest.sh (TMPDIR): Do not set.
6238         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
6239         (testout): Likewise.
6240
6241 2012-10-24  Andreas Jaeger  <aj@suse.de>
6242
6243         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
6244         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
6245         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
6246         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
6247         posix_fadvise64, posix_fallocate64.
6248
6249         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
6250         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
6251         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
6252         Likewise.
6253         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
6254         Likewise.
6255         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
6256
6257         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
6258         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
6259         <bits/fcntl-linux.h>.
6260         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
6261
6262         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
6263         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
6264         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
6265         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
6266         [__WORDSIZE != 64]: Likewise.
6267
6268 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6269
6270         * Makeconfig (run-built-tests): New variable.
6271         * Rules [$(cross-compiling) = yes]: Change condition to
6272         [$(run-built-tests) = no].
6273         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
6274         to [$(run-built-tests) = yes].
6275         * elf/Makefile [$(cross-compiling) = no]: Likewise
6276         * grp/Makefile [$(cross-compiling) = no]: Likewise.
6277         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
6278         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
6279         * intl/Makefile [$(cross-compiling) = no]: Likewise.
6280         * io/Makefile [$(cross-compiling) = no]: Likewise.
6281         * libio/Makefile [$(cross-compiling) = no]: Likewise.
6282         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
6283         * misc/Makefile [$(cross-compiling) = no]: Likewise.
6284         * posix/Makefile [$(cross-compiling) = no]: Likewise.
6285         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
6286         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
6287         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
6288         * string/Makefile [$(cross-compiling) = no]: Likewise.
6289
6290         * posix/Makefile ($(objpfx)globtest.out): Pass
6291         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
6292         $(rtld-installed-name).
6293         * posix/globtest.sh (elf_objpfx): Remove variable.
6294         (rtld_installed_name): Likewise.
6295         (library_path): Likewise.
6296         (run_program_prefix): New variable.  Use for running globtest
6297         binary.
6298
6299 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
6300             Joseph Myers  <joseph@codesourcery.com>
6301
6302         * Makeconfig (host-built-program-cmd): New variable.
6303         * elf/Makefile (tst-stackguard1-ARGS): Use
6304         $(host-built-program-cmd).
6305         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
6306         (tst-spawn-ARGS): Likewise.
6307         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
6308
6309 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6310             Jim Blandy  <jimb@codesourcery.com>
6311
6312         * Makeconfig (run-via-rtld-prefix): New variable.
6313         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
6314         (built-program-cmd): Likewise.
6315
6316 2012-10-22  Andreas Jaeger  <aj@suse.de>
6317
6318         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
6319         __O_RSYNC if it exists, otherwise to O_SYNC.
6320
6321 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
6322             Joseph Myers  <joseph@codesourcery.com>
6323
6324         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
6325         /dev/null.
6326         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
6327         from /dev/null
6328         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
6329         /dev/null.
6330
6331 2012-10-22  Andreas Jaeger  <aj@suse.de>
6332
6333         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
6334         Define always.
6335         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
6336
6337         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6338         bits/fcntl-linux.h.
6339
6340         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
6341         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
6342
6343         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
6344         to __O_LARGEFILE.
6345         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
6346         to __O_LARGEFILE.
6347
6348 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
6349             Joseph Myers  <joseph@codesourcery.com>
6350
6351         * config.make.in (NM): New variable.
6352
6353 2012-10-21  Andreas Jaeger  <aj@suse.de>
6354
6355         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
6356         definitions and declarations that are provided by
6357         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6358
6359 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6360
6361         [BZ #14683]
6362         * elf/Makefile (tests-static): Add tst-leaks1-static.
6363         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
6364         ($(objpfx)tst-leaks1-static): New rule.
6365         ($(objpfx)tst-leaks1-static-mem): Likewise.
6366         (tst-leaks1-static-ENV): New macro.
6367         * elf/dl-open.c (dl_open_worker): Check the main application
6368         only if SHARED is defined.
6369         * elf/tst-leaks1-static.c: New file.
6370
6371 2012-10-20  Andreas Jaeger  <aj@suse.de>
6372
6373         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
6374         generic values for Linux.
6375         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
6376         and declarations that are provided by <bits/fcntl-linux.h> and
6377         include <bits/fcntl-linux.h>.
6378         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6379         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6380
6381 2012-10-20  Roland McGrath  <roland@hack.frob.com>
6382
6383         * io/fcntl.h: Move include of <bits/types.h> to the top and
6384         include it unconditionally.
6385
6386 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6387
6388         * wcsmbs/Makefile (tests-ifunc): New variable.
6389         (tests): Add $(tests-ifunc).
6390         * wcsmbs/test-wcschr-ifunc.c: New file.
6391         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
6392         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
6393         * wcsmbs/test-wcslen-ifunc.c: Likewise.
6394         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
6395         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
6396
6397         * string/Makefile (tests-ifunc): New variable.
6398         (tests): Add $(tests-ifunc).
6399         * string/test-memccpy.c (TEST_NAME): New macro.
6400         * string/test-memchr.c (TEST_NAME): Likewise.
6401         * string/test-memcmp.c (TEST_NAME): Likewise.
6402         * string/test-memcpy.c (TEST_NAME): Likewise.
6403         * string/test-memmem.c (TEST_NAME): Likewise.
6404         * string/test-memmove.c (TEST_NAME): Likewise.
6405         * string/test-memset.c (TEST_NAME): Likewise.
6406         * string/test-rawmemchr.c (TEST_NAME): Likewise.
6407         * string/test-stpcpy.c (TEST_NAME): Likewise.
6408         * string/test-stpncpy.c (TEST_NAME): Likewise.
6409         * string/test-strcasecmp.c (TEST_NAME): Likewise.
6410         * string/test-strcasestr.c (TEST_NAME): Likewise.
6411         * string/test-strcat.c (TEST_NAME): Likewise.
6412         * string/test-strchr.c (TEST_NAME): Likewise.
6413         * string/test-strcmp.c(TEST_NAME): Likewise.
6414         * string/test-strcpy.c (TEST_NAME): Likewise.
6415         * string/test-strcspn.c (TEST_NAME): Likewise.
6416         * string/test-strlen.c (TEST_NAME): Likewise.
6417         * string/test-strncasecmp.c (TEST_NAME): Likewise.
6418         * string/test-strncmp.c (TEST_NAME): Likewise.
6419         * string/test-strncpy.c (TEST_NAME): Likewise.
6420         * string/test-strnlen.c (TEST_NAME): Likewise.
6421         * string/test-strpbrk.c (TEST_NAME): Likewise.
6422         * string/test-strrchr.c (TEST_NAME): Likewise.
6423         * string/test-strspn.c (TEST_NAME): Likewise.
6424         * string/test-strstr.c (TEST_NAME): Likewise.
6425         * string/test-bcopy-ifunc.c: New file.
6426         * string/test-bzero-ifunc.c: Likewise.
6427         * string/test-memccpy-ifunc.c: Likewise.
6428         * string/test-memchr-ifunc.c: Likewise.
6429         * string/test-memcmp-ifunc.c: Likewise.
6430         * string/test-memcpy-ifunc.c: Likewise.
6431         * string/test-memmem-ifunc.c: Likewise.
6432         * string/test-memmove-ifunc.c: Likewise.
6433         * string/test-mempcpy-ifunc.c: Likewise.
6434         * string/test-memset-ifunc.c: Likewise.
6435         * string/test-rawmemchr-ifunc.c: Likewise.
6436         * string/test-stpcpy-ifunc.c: Likewise.
6437         * string/test-stpncpy-ifunc.c: Likewise.
6438         * string/test-strcasecmp-ifunc.c: Likewise.
6439         * string/test-strcasestr-ifunc.c: Likewise.
6440         * string/test-strcat-ifunc.c: Likewise.
6441         * string/test-strchr-ifunc.c: Likewise.
6442         * string/test-strchrnul-ifunc.c: Likewise.
6443         * string/test-strcmp-ifunc.c: Likewise.
6444         * string/test-strcpy-ifunc.c: Likewise.
6445         * string/test-strcspn-ifunc.c: Likewise.
6446         * string/test-strlen-ifunc.c: Likewise.
6447         * string/test-strncasecmp-ifunc.c: Likewise.
6448         * string/test-strncat-ifunc.c: Likewise.
6449         * string/test-strncmp-ifunc.c: Likewise.
6450         * string/test-strncpy-ifunc.c: Likewise.
6451         * string/test-strnlen-ifunc.c: Likewise.
6452         * string/test-strpbrk-ifunc.c: Likewise.
6453         * string/test-strrchr-ifunc.c: Likewise.
6454         * string/test-strspn-ifunc.c: Likewise.
6455         * string/test-strstr-ifunc.c: Likewise.
6456
6457         * debug/Makefile (tests-ifunc): New variable.
6458         (tests): Add $(tests-ifunc).
6459         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
6460         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
6461         * debug/test-stpcpy_chk-ifunc.c: New file.
6462         * debug/test-strcpy_chk-ifunc.c: Likewise.
6463
6464 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6465
6466         [BZ #13601]
6467         * elf/dl-load.c (open_verify): Retry read if the entire ELF
6468         header is not read in.
6469
6470 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
6471
6472         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
6473         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
6474         directly.  Pass built executable to script as
6475         $(built-program-cmd).
6476         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
6477         $testprogram without using LD_LIBRARY_PATH and $ldso.
6478
6479         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
6480         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
6481         $(rtld-installed-name).
6482         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
6483         (rtld_installed_name): Likewise.
6484         (library_path): Likewise.
6485         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
6486         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
6487         $(run-program-prefix) to tst-tables.sh.
6488         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
6489         it to run tst-table-from and tst-table-to.
6490         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
6491         Pass it to tst-table.sh.
6492         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
6493         $(run-program-prefix) to tst-gettext.sh.
6494         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
6495         tst-translit.sh.
6496         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
6497         tst-gettext2.sh.
6498         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
6499         to run tst-gettext.
6500         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
6501         to run tst-gettext2.
6502         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
6503         to run tst-translit.
6504         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
6505         $(run-program-prefix) to tst-mtrace.sh.
6506         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
6507         to run tst-mtrace.
6508         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
6509         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
6510         $(rtld-installed-name).
6511         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
6512         (rtld_installed_name): Likewise.
6513         (run_program_prefix): New variable.  Use it to run wordexp-test.
6514
6515         * Makeconfig (ARCH): Remove all definitions.
6516         (machine): Likewise.
6517         [ARCH]: Remove conditional code.
6518         [!objdir]: Give error.
6519         [!objdir] (objpfx): Remove.
6520         [!objdir] (common-objpfx): Likewise.
6521         [!objdir] (common-objdir): Likewise.
6522         * configure.in (config_makefile): Remove.  Hardcode Makefile in
6523         AC_CONFIG_FILES call.
6524         * configure: Regenerated.
6525
6526         [BZ #13888]
6527         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
6528         or TMPDIR.
6529         (testout): Likewise.
6530
6531         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
6532         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
6533         $(rtld-installed-name).
6534         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
6535         (rtld_installed_name): Likwise.
6536         (runit): Remove function.
6537         (run_getconf): New variable,  Use it for running getconf binary.
6538
6539 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
6540
6541         [BZ #14716]
6542         * string/test-memmem.c (check_result): New function.
6543         (do_one_test): Use it.
6544         (check1): New function.
6545         (test_main): Use it.
6546
6547 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6548
6549         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
6550
6551 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
6552
6553         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
6554         (_G_LSEEK64): Likewise.
6555         (_G_MMAP64): Likewise.
6556         (_G_FSTAT64): Likewise.
6557         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
6558         (_G_LSEEK64): Likewise.
6559         (_G_MMAP64): Likewise.
6560         (_G_FSTAT64): Likewise.
6561         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
6562         unconditional.  Call __mmap64 directly.
6563         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
6564         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
6565         __lseek64 directly.
6566         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
6567         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
6568         __mmap64 directly.
6569         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
6570         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
6571         __lseek64 directly.
6572         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
6573         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
6574         __lseek64 directly.
6575         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
6576         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
6577         __lseek64 directly.
6578         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
6579         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
6580         __fxstat64 directly.
6581         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
6582         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
6583         unconditional.
6584         (freopen64) [!_G_OPEN64]: Remove conditional code.
6585         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
6586         unconditional.
6587         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
6588         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
6589         unconditional.
6590         (ftello64) [!_G_LSEEK64]: Remove conditional code.
6591         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
6592         unconditional.
6593         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
6594         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
6595         unconditional.
6596         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
6597         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
6598         unconditional.
6599         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
6600         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
6601         unconditional.
6602         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
6603         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
6604         unconditional.
6605         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
6606
6607 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6608
6609         [BZ #12140]
6610         * manual/memory.texi (Malloc Tunable Parameters): Add note
6611         about free list pointers overwriting some perturb bytes.
6612         Wording suggested by Roland McGrath.
6613
6614 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
6615
6616         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
6617         (lgamma_test): Likewise.
6618         (tgamma_test): Likewise.
6619
6620 2012-10-16  Florian Weimer  <fweimer@redhat.com>
6621
6622         [BZ #14700]
6623         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
6624         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
6625
6626 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
6627
6628         * NEWS: Mention BZ #14716.
6629         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
6630         when removing AVAILABLE1_USES_J macro.
6631
6632 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
6633
6634         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
6635         (__bswap_64): __uint64_t for unsigned 64-bit int.
6636
6637 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
6638
6639         * include/string.h (memmem): Declare libc hidden alias.
6640         * string/memmem.c (memmem): Define libc hidden alias.
6641         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
6642         __read, __close instead of open, read, close.
6643
6644 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
6645
6646         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
6647         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
6648         global and hidden.
6649         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
6650         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
6651         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
6652         Likewise.
6653         (__rawmemchr_sse2): Likewise.
6654         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
6655         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
6656         (__strchr_sse2): Likewise.
6657         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
6658         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
6659         (__strcasecmp_sse2): Likewise.
6660         (__strncasecmp_sse2): Likewise.
6661         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
6662         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
6663         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
6664         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
6665         (__strrchr_sse2): Likewise.
6666         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
6667         ifunc-impl-list.c.
6668         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6669         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6670         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
6671         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
6672         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6673         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6674         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6675         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6676         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
6677         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
6678         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
6679         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
6680         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
6681         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
6682         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
6683         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6684         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
6685         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
6686         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
6687         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
6688         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
6689         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
6690         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
6691         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
6692         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
6693         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6694         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
6695         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
6696         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
6697         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
6698
6699         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
6700         global and hidden.
6701         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
6702         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
6703         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
6704         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
6705         Likewise.
6706         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
6707         Likewise.
6708         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
6709         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
6710         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
6711         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
6712         ifunc-impl-list.c.
6713         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6714         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6715         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6716         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6717         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6718         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6719         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6720         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6721         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6722         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6723         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6724         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6725         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6726         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
6727         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
6728         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6729         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
6730         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
6731         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6732         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
6733         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6734         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6735         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6736         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6737         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6738         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
6739         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
6740         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
6741         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
6742         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6743         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
6744         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6745         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6746         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
6747         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6748         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6749         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6750         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6751         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6752         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6753         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
6754
6755         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
6756         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
6757         * include/ifunc-impl-list.h: New file.
6758         * misc/ifunc-impl-list.c: Likewise.
6759         * misc/Makefile (routines): Add ifunc-impl-list.
6760         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
6761         * string/test-string.h: Include <ifunc-impl-list.h>.
6762         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
6763         impl_array): New variables.
6764         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
6765         are defined.
6766         (test_init): Call __libc_ifunc_impl_list to initialize
6767         func_list if TEST_IFUNC and TEST_NAME are defined.
6768
6769         * string/Makefile (strop-tests): Add bcopy and bzero.
6770         * string/test-bcopy.c: New file.
6771         * string/test-bzero.c: Likewise.
6772         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
6773         defined.
6774         * string/test-memset.c: Support bzero test if TEST_BZERO is
6775         defined.
6776         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
6777         __libc_memmove.
6778         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
6779         __libc_memset.
6780         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
6781         of memset.
6782
6783 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
6784
6785         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
6786         * configure: Regenerated.
6787
6788         * Makeconfig (+link-static-before-libc): Don't include
6789         $(link-static-libc).
6790
6791         * libio/libio.h (_IO_pos_t): Remove.
6792
6793 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6794
6795         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
6796         McGrath.
6797
6798 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6799
6800         * crypt/crypt-entry.c: Include fips-private.h.
6801         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
6802         * crypt/md5c-test.c (main): Tolerate disabled MD5.
6803         * sysdeps/unix/sysv/linux/fips-private.h: New file.
6804         * sysdeps/generic/fips-private.h: New file, dummy fallback.
6805
6806 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6807
6808         * crypt/crypt-private.h: Include stdbool.h.
6809         (_ufc_setup_salt_r): Return bool.
6810         * crypt/crypt-entry.c: Include errno.h.
6811         (__crypt_r): Return NULL with EINVAL for bad salt.
6812         * crypt/crypt_util.c (bad_for_salt): New.
6813         (_ufc_setup_salt_r): Check that salt is long enough and within
6814         the specified alphabet.
6815         * crypt/badsalttest.c: New file.
6816         * crypt/Makefile (tests): Add it.
6817         ($(objpfx)badsalttest): New.
6818
6819 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6820
6821         * NEWS: Add entry for BZ #14602.
6822
6823 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6824
6825         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
6826         type-generic.
6827         * math/libm-test.inc: Update comment listing what functions and
6828         macros are tested.
6829         (isgreater_test): New function.
6830         (isgreaterequal_test): Likewise.
6831         (isless_test): Likewise.
6832         (islessequal_test): Likewise.
6833         (islessgreater_test): Likewise.
6834         (isunordered_test): Likewise.
6835         (main): Call the new functions.
6836
6837 2012-10-09  Roland McGrath  <roland@hack.frob.com>
6838
6839         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
6840         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
6841         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
6842         * sysdeps/i386/configure: Regenerated.
6843         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
6844         * sysdeps/mach/configure: Regenerated.
6845         * sysdeps/mach/hurd/configure: Regenerated.
6846         * sysdeps/powerpc/configure: Regenerated.
6847         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6848         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6849         * sysdeps/s390/s390-32/configure: Regenerated.
6850         * sysdeps/s390/s390-64/configure: Regenerated.
6851         * sysdeps/sh/configure: Regenerated.
6852         * sysdeps/sparc/configure: Regenerated.
6853         * sysdeps/unix/sysv/linux/configure: Regenerated.
6854         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
6855         * sysdeps/x86_64/configure: Regenerated.
6856
6857         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
6858         defined.  Don't check if MAP is NULL.
6859
6860 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6861
6862         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
6863         (_G_stat64): Likewise.
6864         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
6865         (_G_stat64): Likewise.
6866         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
6867         instead of struct _G_stat64.
6868         * libio/fileops.c (mmap_remap_check): Likewise.
6869         (decide_maybe_mmap): Likewise.
6870         (_IO_new_file_seekoff): Likewise.
6871         (_IO_file_stat): Likewise.
6872         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
6873         _G_off64_t.
6874         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
6875         instead of struct _G_stat64.
6876         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
6877
6878 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
6879
6880         [BZ #14602]
6881         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6882         Replace with ...
6883         (CHECK_EOL): New macro.
6884         (two_way_short_needle): Check beginning of haystack for EOL.  Use
6885         CHECK_EOL.
6886         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6887         Replace with CHECK_EOL.
6888         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6889         Replace with CHECK_EOL.
6890
6891 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
6892
6893         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
6894         type-generic.
6895         * math/libm-test.inc: Update comment listing what functions and
6896         macros are tested.
6897         (finite_test): New function.
6898         (isinf_test): Likewise.
6899         (isnan_test): Likewise.
6900         (fpclassify_test): Test subnormal input.
6901         (isfinite_test): Likewise.
6902         (isnormal_test): Likewise.
6903         (main): Call the new functions.
6904
6905 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
6906
6907         [BZ #14660]
6908         * Makerules (%.dynsym): Force C locale when running
6909         $(OBJDUMP) --dynamic-syms.
6910
6911 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
6912
6913         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
6914         <stdint.h>.
6915
6916 2012-10-06  David S. Miller  <davem@davemloft.net>
6917
6918         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
6919         upper 32-bits of the length value in %o2 since we use branch-on-register
6920         tests which consider the entire 64-bit register.
6921
6922 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
6923
6924         * string/test-strstr.c (check2): Add a test for page boundary.
6925
6926 2012-10-05  David S. Miller  <davem@davemloft.net>
6927
6928         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
6929         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
6930         file.
6931         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
6932         sysdep_routines.
6933         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
6934         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
6935         and bzero when HWCAP_SPARC_CRYPTO is present.
6936
6937 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
6938
6939         [BZ #14602]
6940         * string/test-strstr.c (check2): New function.
6941         (test_main): Call check2.
6942
6943         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
6944         and bug-strchr1.
6945         * string/bug-strcasestr1.c (do_test): Moved to ...
6946         * string/test-strcasestr.c (check1): Here.  New function.
6947         (do_one_test): Break out result checking code into ...
6948         (check_result): This.  New function.
6949         (do_one_test): Call check_result.
6950         (test_main): Call check1.
6951         * string/bug-strchr1.c (do_test): Moved to ...
6952         * string/test-strchr.c (check1): Here.  New function.
6953         (do_one_test): Break out result checking code into ...
6954         (check_result): This.  New function.
6955         (do_one_test): Call check_result.
6956         (test_main): Call check1.
6957         * string/bug-strstr1.c (main): Moved to ...
6958         * string/test-strstr.c (check1): Here.  New function.
6959         (do_one_test): Break out result checking code into ...
6960         (check_result): This.  New function.
6961         (do_one_test): Call check_result.
6962         (test_main): Call check1.
6963         * string/bug-strcasestr1.c: Removed.
6964         * string/bug-strchr1.c: Likewise.
6965         * string/bug-strstr1.c: Likewise.
6966
6967         * elf/Makefile (dl-routines): Add hwcaps.
6968         * elf/dl-support.c (_dl_important_hwcaps): Removed.
6969         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
6970         (_dl_important_hwcaps): Moved to ...
6971         * elf/dl-hwcaps.c: Here.  New file.
6972         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
6973
6974         [BZ #14557]
6975         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
6976         if IS_IN_rtld isn't defined.
6977
6978         * elf/dl-support.c (_dl_sysinfo_map): New.
6979         Include "get-dynamic-info.h" and "setup-vdso.h".
6980         (_dl_non_dynamic_init): Call setup_vdso.
6981         * elf/dynamic-link.h: Don't include <assert.h>.
6982         (elf_get_dynamic_info): Moved to ...
6983         * elf/get-dynamic-info.h: Here.  New file.
6984         * elf/dynamic-link.h: Include "get-dynamic-info.h".
6985         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
6986         * elf/setup-vdso.h: Here.  New file.
6987         * elf/rtld.c: Include "setup-vdso.h".
6988         (dl_main): Call setup_vdso.
6989
6990 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
6991
6992         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
6993         creal in comment listing functions tested.  List finite, isinf,
6994         isnan, isless, islessequal, isgreater, isgreaterequal,
6995         islessgreater, isunordered, lgamma_r and pow10 as functions and
6996         macros not tested.  Mention which functions not tested are aliases
6997         for other functions.  Fix typo.  Note that signs of NaNs are not
6998         tested.
6999
7000         * scripts/config.guess: Update from config.git.
7001         * scripts/config.sub: Likewise.
7002
7003 2012-10-04  Roland McGrath  <roland@hack.frob.com>
7004
7005         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
7006         * misc/madvise.c (madvise): Renamed to __madvise.
7007         Make madvise a weak alias.
7008         * include/sys/mman.h: Declare __madvise.
7009         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
7010         * sysdeps/unix/syscalls.list
7011         (madvise): Make __madvise the strong name, and madvise a weak alias.
7012         * sysdeps/unix/sysv/linux/syscalls.list
7013         (madvise, mmap): Remove redundant entries.
7014         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
7015         * malloc/malloc.c (mtrim): Likewise.
7016         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
7017
7018 2012-10-03  Roland McGrath  <roland@hack.frob.com>
7019
7020         * sysdeps/mach/hurd/dl-cache.c: File removed.
7021         * config.h.in (USE_LDCONFIG): New #undef.
7022         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
7023         * configure: Regenerated.
7024         * elf/Makefile (dl-routines): Add dl-cache only under
7025         [$(use-ldconfig) = yes].
7026         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
7027         cache on [USE_LDCONFIG].
7028         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
7029         [USE_LDCONFIG].
7030         * elf/rtld.c (dl_main): Likewise.
7031
7032 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
7033
7034         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
7035         _SC_LEVEL4_CACHE_LINESIZE.
7036
7037 2012-10-03  Roland McGrath  <roland@hack.frob.com>
7038
7039         * sysdeps/unix/bsd/confstr.h: File removed.
7040
7041 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
7042
7043         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
7044         sys/sdt-config.h.
7045
7046 2012-10-02  Roland McGrath  <roland@hack.frob.com>
7047
7048         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
7049         Make 'mapoff' field ElfW(Off) rather than off_t.
7050
7051 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
7052
7053         * nscd/Makefile: Remove nscd-cflags and all its users.
7054         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
7055         (CFLAGS-nonlib): Add compiler flags for nscd modules.
7056
7057         [BZ #10631]
7058         * malloc.c (malloc_printerr): Clarify error message.
7059
7060 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
7061
7062         [BZ #14648]
7063         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
7064         Set bit_FMA_Usable if FMA is supported.
7065         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
7066         macro.
7067         (bit_FMA4_Usable): Updated.
7068         (index_FMA_Usable): New macro.
7069         (CPUID_FMA): Likewise
7070         (HAS_FMA): Defined with bit_FMA_Usable.
7071
7072 2012-10-01  Roland McGrath  <roland@hack.frob.com>
7073
7074         * bits/types.h (__swblk_t): Type removed.
7075         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
7076         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
7077         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
7078         (__SWBLK_T_TYPE): Likewise.
7079         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
7080         (__SWBLK_T_TYPE): Likewise.
7081         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
7082         (__SWBLK_T_TYPE): Likewise.
7083         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
7084         (__SWBLK_T_TYPE): Likewise.
7085
7086 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
7087             Honza Horak <hhorak@redhat.com>
7088
7089         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
7090         (xdr_mapname): Use YPMAXMAP as maxsize.
7091         (xdr_peername): Use YPMAXPEER as maxsize.
7092         (xdr_keydat): Use YPAXRECORD as maxsize.
7093         (xdr_valdat): Use YPMAXRECORD as maxsize.
7094
7095 2012-10-01  Roland McGrath  <roland@hack.frob.com>
7096
7097         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
7098
7099         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
7100         * csu/init-first.c: ... here.
7101         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
7102         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
7103         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
7104         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
7105         * sysdeps/i386/init-first.c: File removed.
7106         * sysdeps/sh/init-first.c: File removed.
7107
7108 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
7109
7110         [BZ #14645]
7111         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
7112         if x * y might underflow to zero and z is zero.
7113         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
7114         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7115         * math/libm-test.inc (min_subnorm_value): New variable.
7116         (fma_test): Add more tests.
7117         (fma_test_towardzero): Likewise.
7118         (fma_test_downward): Likewise
7119         (fma_test_upward): Likewise.
7120         (initialize): Set min_subnorm_value.
7121
7122 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
7123
7124         [BZ #14638]
7125         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
7126         0 + 0.
7127         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
7128         mode for addition resulting in exact zero.
7129         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
7130         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
7131         exact 0 + 0.
7132         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7133         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7134         * math/libm-test.inc (fma_test): Add more tests.
7135         (fma_test_towardzero): New function.
7136         (fma_test_downward): Likewise.
7137         (fma_test_upward): Likewise.
7138         (main): Call the new functions.
7139
7140 2012-09-28  David S. Miller  <davem@davemloft.net>
7141
7142         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
7143
7144 2012-09-28  Roland McGrath  <roland@hack.frob.com>
7145
7146         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
7147         instead of SIGALRM.
7148
7149         * sysdeps/gnu/_G_config.h: Moved to ...
7150         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
7151         * sysdeps/mach/hurd/_G_config.h: Moved to ...
7152         * sysdeps/generic/_G_config.h: ... here.
7153
7154         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
7155
7156         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
7157
7158         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
7159         Conditionalize target on [libnss_test1.so-version].
7160
7161         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
7162
7163         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
7164         (elfobjdir): Move out of conditionals.
7165
7166         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
7167         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
7168         (__nss_lookup_function): Conditionalize label remove_from_tree on
7169         [!DO_STATIC_NSS || SHARED], matching its only use.
7170
7171 2012-09-28  David S. Miller  <davem@davemloft.net>
7172
7173         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
7174         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
7175         file.
7176         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
7177         sysdep_routines.
7178         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
7179         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
7180         when HWCAP_SPARC_CRYPTO is present.
7181
7182 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7183
7184         * io/tst-mknodat.c: Create a FIFO instead of a socket.
7185
7186 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
7187
7188         [BZ #6530]
7189         * stdio-common/vfprintf.c (process_string_arg): Revert
7190         2000-07-22 change.
7191
7192 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
7193
7194         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
7195         for testcase.
7196         * stdio-common/tst-sprintf.c: Include <locale.h>
7197         (main): Test sprintf's handling of incomplete multibyte
7198         characters.
7199
7200 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
7201
7202         * elf/dl-runtime.c (VERSYMIDX): Removed.
7203         * elf/dl-version.c (VERSYMIDX): Likewise.
7204         * elf/do-rel.h (VERSYMIDX): Likewise.
7205         (VALIDX): Likewise.
7206         * elf/dynamic-link.h (VERSYMIDX): Likewise.
7207         * elf/rtld.c (VALIDX): Likewise.
7208         (ADDRIDX): Likewise.
7209         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
7210         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
7211         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
7212         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
7213         (VALIDX): Likewise.
7214         (ADDRIDX): Likewise.
7215
7216 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7217
7218         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
7219
7220 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
7221
7222         [BZ #11438]
7223         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
7224         to global scope.
7225         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
7226         addresses are in the same scope as 192.0.2/24.
7227         * posix/gai.conf: Document new scope table defaults.
7228
7229 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7230
7231         [BZ #5298]
7232         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
7233         for ftell.  Compute offsets from write pointers instead.
7234         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
7235
7236 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7237
7238         [BZ #14543]
7239         * libio/Makefile (tests): New test case tst-fseek.
7240         * libio/tst-fseek.c: New test case to verify that fseek/ftell
7241         combination works in wide mode.
7242         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
7243         state when the external buffer state changes.
7244
7245 2012-09-27  David S. Miller  <davem@davemloft.net>
7246
7247         [BZ #14376]
7248         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
7249         pass reloc->r_addend in as the 'high' argument to
7250         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
7251
7252         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7253
7254 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7255
7256         * rt/tst-aio2.c: Include <pthread.h>.
7257         * rt/tst-aio3.c: Likewise.
7258
7259 2012-09-27  Steve Ellcey  <sellcey@mips.com>
7260
7261         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
7262
7263 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
7264
7265         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
7266         contents on [SHARED].
7267
7268 2012-09-26  Marek Polacek  <polacek@redhat.com>
7269
7270         [BZ #14530]
7271         [BZ #13741]
7272         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
7273         for C++ and GCC <4.3 as well as for non GCC compilers.
7274
7275 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
7276
7277         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7278
7279 2012-09-25  Roland McGrath  <roland@hack.frob.com>
7280
7281         * Makefile.in (all, install): Declare with .PHONY.
7282         Reported by Michael Hope <michael.hope@linaro.org>.
7283
7284 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7285
7286         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
7287         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
7288         system header.
7289         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
7290         Likewise.
7291         (sydep_routines): Add the new and the internal functions.
7292         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
7293         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
7294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
7295         (GLIBC_2.17): Add the new function.
7296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
7297         (GLIBC_2.17): Likewise.
7298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
7299         (GLIBC_2.17): Likewise.
7300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
7301         (GLIBC_2.17): Likewise.
7302         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
7303
7304 2012-09-25  Alan Modra  <amodra@gmail.com>
7305
7306         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
7307         Add release barrier before setting once_control to say
7308         initialisation is done.  Add hints on lwarx.  Use macro in
7309         place of isync.
7310         (clear_once_control): Add release barrier.
7311
7312 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
7313
7314         [BZ #13629]
7315         * math/s_clog.c (__clog): Handle more values close to |z| = 1
7316         specially.
7317         * math/s_clog10.c (__clog10): Likewise.
7318         * math/s_clog10f.c (__clog10f): Likewise.
7319         * math/s_clog10l.c (__clog10l): Likewise.
7320         * math/s_clogf.c (__clogf): Likewise.
7321         * math/s_clogl.c (__clogl): Likewise.
7322         * math/Makefile (libm-calls): Add x2y2m1.
7323         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
7324         (__x2y2m1): Likewise.
7325         (__x2y2m1l): Likewise.
7326         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
7327         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
7328         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7329         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7330         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
7331         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7332         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
7333         * sysdeps/i386/fpu/libm-test-ulps: Update.
7334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7335
7336         [BZ #14621]
7337         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
7338         int as type of variable DEPTH.
7339         (glob): Use size_t instead of int as type of variables NEWCOUNT
7340         and OLD_PATHC.
7341
7342 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7343
7344         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
7345         Add s_sincosf-sse2.
7346         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
7347         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
7348         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
7349         macros for using routine as __sincosf_ia32.
7350         Use macro for function declaration and weak_alias.
7351         * sysdeps/i386/fpu/libm-test-ulps: Update.
7352
7353         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
7354         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7355
7356         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
7357         subnormal argument.
7358         * math/s_cexpf.c (__cexpf): Likewise.
7359         * math/s_csinf.c (__csinf): Likewise.
7360         * math/s_csinhf.c (__csinhf): Likewise.
7361         * math/s_ctanf.c (__ctanf): Likewise.
7362         * math/s_ctanhf.c (__ctanhf): Likewise.
7363         * math/s_ccosh.c (__ccoshf): Likewise.
7364         * math/s_cexp.c (__cexpl): Likewise.
7365         * math/s_csin.c (__csin): Likewise.
7366         * math/s_csinh.c (__csinh): Likewise.
7367         * math/s_ctan.c (__ctan): Likewise.
7368         * math/s_ctanh.c (ctanh): Likewise.
7369         * math/s_ccoshl.c (__ccoshl): Likewise.
7370         * math/s_cexpl.c (__cexpl): Likewise.
7371         * math/s_csinl.c (__csinl): Likewise.
7372         * math/s_csinhl.c (__csinhl): Likewise.
7373         * math/s_ctanl.c (__ctanl): Likewise.
7374         * math/s_ctanhl.c (__ctanhl): Likewise.
7375
7376 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
7377
7378         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
7379         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
7380         (_IO_off_t): Define to __off_t, not _G_off_t.
7381         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
7382         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
7383         (_IO_wint_t): Define to wint_t, not _G_wint_t.
7384         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
7385         type of __dummy and __dummy2 fields.
7386         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
7387         (_G_ssize_t): Likewise.
7388         (_G_off_t): Likewise.
7389         (_G_pid_t): Likewise.
7390         (_G_uid_t): Likewise.
7391         (_G_wchar_t): Likewise.
7392         (_G_wint_t): Likewise.
7393         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
7394         (_G_ssize_t): Likewise.
7395         (_G_off_t): Likewise.
7396         (_G_pid_t): Likewise.
7397         (_G_uid_t): Likewise.
7398         (_G_wchar_t): Likewise.
7399         (_G_wint_t): Likewise.
7400         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
7401         (_G_ssize_t): Likewise.
7402         (_G_off_t): Likewise.
7403         (_G_pid_t): Likewise.
7404         (_G_uid_t): Likewise.
7405         (_G_wchar_t): Likewise.
7406         (_G_wint_t): Likewise.
7407
7408 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7409
7410         * malloc/arena.c: Include malloc-sysdep.h.
7411         (shrink_heap): Use check_may_shrink_heap to decide if madvise
7412         is sufficient to shrink the heap or an unmap is needed.
7413         * sysdeps/generic/malloc-sysdep.h: New file.  Define
7414         new function check_may_shrink_heap.
7415         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
7416         new function check_may_shrink_heap.
7417
7418 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7419
7420         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
7421         comments.
7422
7423 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
7424
7425         * catgets/test-gencat.sh: Add "set -e".
7426         * elf/tst-pathopt.sh: Likewise.
7427         * grp/tst_fgetgrent.sh: Likewise.
7428         * iconvdata/run-iconv-test.sh: Likewise.
7429         * intl/tst-gettext.sh: Likewise.
7430         * intl/tst-gettext2.sh: Likewise.
7431         * intl/tst-gettext4.sh: Likewise.
7432         * intl/tst-gettext6.sh: Likewise.
7433         * intl/tst-translit.sh: Likewise.
7434         * io/ftwtest-sh: Likewise.
7435         * libio/test-freopen.sh: Likewise.
7436         * malloc/tst-mtrace.sh: Likewise.
7437         * posix/globtest.sh: Likewise.
7438         * posix/tst-getconf.sh: Likewise.
7439         * posix/wordexp-tst.sh: Likewise.
7440         * stdio-common/tst-printf.sh: Likewise.
7441         * stdio-common/tst-unbputc.sh: Likewise.
7442         * stdlib/tst-fmtmsg.sh: Likewise.
7443         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
7444         * catgets/Makefile: Do not specify -e option when running
7445         testsuite shell scripts.
7446         * elf/Makefile: Likewise.
7447         * grp/Makefile: Likewise.
7448         * iconvdata/Makefile: Likewise.
7449         * intl/Makefile: Likewise.
7450         * io/Makefile: Likewise.
7451         * libio/Makefile: Likewise.
7452         * malloc/Makefile: Likewise.
7453         * posix/Makefile: Likewise.
7454         * stdio-common/Makefile: Likewise.
7455         * stdlib/Makefile: Likewise.
7456         * sysdeps/x86_64/Makefile: Likewise.
7457
7458         * io/ftwtest-sh: Add copyright header.
7459         * posix/globtest.sh: Likewise.
7460         * posix/tst-getconf.sh: Likewise.
7461         * posix/wordexp-tst.sh: Likewise.
7462         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
7463
7464 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
7465
7466         [BZ #13679]
7467         * Makeconfig (+link): Defined as $(+link-static) if
7468         $(build-shared) isn't yes.
7469         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
7470         isn't yes.
7471         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
7472
7473         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
7474
7475         [BZ #14562]
7476         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
7477         new chunk size with MALLOC_ALIGN_MASK.
7478
7479 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
7480
7481         [BZ #5044]
7482         * stdio-common/printf_fphex.c: Include <stdbool.h> and
7483         <rounding-mode.h>.
7484         (__printf_fphex): Determine rounding using get_rounding_mode and
7485         round_away.
7486         * stdio-common/tst-printf-round.c (struct hex_test): New
7487         structure.
7488         (hex_tests): New variable.
7489         (test_hex_in_one_mode): New function.
7490         (do_test): Also run tests for hex float output.
7491
7492 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
7493
7494         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
7495         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
7496         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
7497         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
7498         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
7499         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
7500         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
7501         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
7502
7503 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
7504
7505         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
7506         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
7507         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
7508         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
7509
7510 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
7511
7512         [BZ #14579]
7513         * elf/rtld.c (dl_main): Limit the check for self loading to normal
7514         mode only.
7515         * elf/tst-rtld-load-self.sh: New test.
7516         * elf/Makefile: Run it.
7517
7518 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
7519
7520         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
7521         (tst-writev-ENV): Remove.
7522         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
7523
7524 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
7525
7526         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
7527
7528 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
7529
7530         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
7531         unconditional.
7532         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
7533         Likewise.
7534         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
7535         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
7536         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
7537         Likewise.
7538
7539 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7540
7541         [BZ #14587]
7542         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
7543         * config.make.in (have-cpp-asm-debuginfo): Removed.
7544         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
7545         * configure: Regenerated.
7546
7547 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
7548
7549         [BZ #5044]
7550         * stdio-common/printf_fp.c: Include <stdbool.h> and
7551         <rounding-mode.h>.
7552         (___printf_fp): Determine rounding using get_rounding_mode and
7553         round_away.
7554         * stdio-common/tst-printf-round.c: New file.
7555         * stdio-common/Makefile (tests): Add tst-printf-round.
7556         (link-libm): New variable.
7557         ($(objpfx)tst-printf-round): Depend in $(link-libm).
7558
7559 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7560
7561         [BZ #14576]
7562         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
7563         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
7564         Likewise.
7565         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
7566         Likewise.
7567
7568 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
7569
7570         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
7571         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
7572         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
7573         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
7574
7575 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
7576
7577         [BZ #14518]
7578         * include/rounding-mode.h: New file.
7579         * sysdeps/generic/get-rounding-mode.h: Likewise.
7580         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
7581         * stdlib/strtod_l.c: Include <rounding-mode.h>.
7582         (MAX_VALUE): New macro.
7583         (MIN_VALUE): Likewise.
7584         (overflow_value): New function.
7585         (underflow_value): Likewise.
7586         (round_and_return): Use overflow_value and underflow_value to
7587         determine return values in overflow and underflow cases.  Use
7588         round_away to determine rounding depending on rounding mode.
7589         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
7590         determine return values in overflow and underflow cases.
7591         * stdlib/tst-strtod-round.c: Include <fenv.h>.
7592         (struct test_results): New structure.
7593         (struct test): Use struct test_results to store expected results
7594         for all rounding modes.
7595         (TEST): Include expected results for all rounding modes.
7596         (test_in_one_mode): New function.
7597         (do_test): Use test_in_one_mode to compute and check results.
7598         Check results for all rounding modes.
7599         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
7600         $(link-libm).
7601
7602 2012-12-09  Allan McRae  <allan@archlinux.org>
7603
7604         * sysdeps/i386/fpu/libm-test-ulps: Update
7605
7606 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
7607
7608         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
7609         (_G_int32_t): Likewise.
7610         (_G_uint16_t): Likewise.
7611         (_G_uint32_t): Likewise.
7612         (_G_HAVE_BOOL): Likewise.
7613         (_G_HAVE_ATEXIT): Likewise.
7614         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
7615         (_G_HAVE_IO_FILE_OPEN): Likewise.
7616         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
7617         (_G_int32_t): Likewise.
7618         (_G_uint16_t): Likewise.
7619         (_G_uint32_t): Likewise.
7620         (_G_HAVE_BOOL): Likewise.
7621         (_G_HAVE_ATEXIT): Likewise.
7622         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
7623         (_G_HAVE_IO_FILE_OPEN): Likewise.
7624         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
7625         (_G_int32_t): Likewise.
7626         (_G_uint16_t): Likewise.
7627         (_G_uint32_t): Likewise.
7628         (_G_HAVE_BOOL): Likewise.
7629         (_G_HAVE_ATEXIT): Likewise.
7630         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
7631         (_G_HAVE_IO_FILE_OPEN): Likewise.
7632
7633 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
7634
7635         * csu/libc-tls.c: Update copyright years.
7636
7637 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
7638
7639         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
7640         [!_G_USING_THUNKS]: Remove conditional code.
7641         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
7642         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
7643
7644         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
7645         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
7646         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7647         (_G_VTABLE_LABEL_PREFIX): Likewise.
7648         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7649         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7650         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7651         (_G_VTABLE_LABEL_PREFIX): Likewise.
7652         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
7653         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7654         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7655         (_G_VTABLE_LABEL_PREFIX): Likewise.
7656         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
7657
7658 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
7659
7660         * libio/Makefile: Include ../Makeconfig before tests.
7661         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
7662         only if $(build-shared) is yes.
7663
7664         * iconv/gconv_db.c: Update copyright years.
7665
7666 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7667
7668         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
7669         unwind info if defined PIC. Fix special cases description.
7670         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
7671
7672         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
7673         DP_HI_MASK entry.
7674         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
7675
7676 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
7677
7678         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
7679
7680         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
7681         is NULL.
7682
7683         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
7684         (LDLIBS-tst-chk4): This.
7685         (LDFLAGS-tst-chk5): Renamed to ...
7686         (LDLIBS-tst-chk5): This.
7687         (LDFLAGS-tst-chk6): Renamed to ...
7688         (LDLIBS-tst-chk6): This.
7689         (LDFLAGS-tst-lfschk4): Renamed to ...
7690         (LDLIBS-tst-lfschk4): This.
7691         (LDFLAGS-tst-lfschk5): Renamed to ...
7692         (LDLIBS-tst-lfschk5): This.
7693         (LDFLAGS-tst-lfschk6): Renamed to ...
7694         (LDLIBS-tst-lfschk6): This.
7695
7696         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
7697         on $(common-objpfx)soversions.mk.
7698
7699 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
7700
7701         [BZ #10014]
7702         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
7703         example host name.
7704
7705 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7706
7707         * malloc/arena.c (arena_get_retry): New function that gets
7708         another arena for the caller to try its request on.
7709         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
7710         current arena cannot fulfill the request.
7711         (__libc_memalign): Likewise.
7712         (__libc_memalign): Likewise.
7713         (__libc_pvalloc): Likewise.
7714         (__libc_calloc): Likewise.
7715
7716 2012-09-05  John Tobey  <john.tobey@gmail.com>
7717
7718         [BZ #13542]
7719         * manual/arith.texi (Operations on Complex): Fix description
7720         of carg branch cut.
7721
7722 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7723
7724         [BZ #10014]
7725         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
7726         host name.
7727
7728         [BZ #10038]
7729         * manual/memory.texi (Memory): Make order of menu items match
7730         order of sections.
7731
7732 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7733
7734         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
7735         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
7736         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
7737
7738 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7739
7740         * csu/libc-tls.c (static_dtv): Renamed to ...
7741         (_dl_static_dtv): This.  Make it global.
7742         (_dl_initial_dtv): Removed.
7743         (__libc_setup_tls): Updated.
7744         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
7745         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
7746         DL_INITIAL_DTV.
7747
7748 2012-09-06  Petr Machata  <pmachata@redhat.com>
7749
7750         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
7751         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
7752         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
7753         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
7754
7755 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7756
7757         [BZ #14545]
7758         * csu/libc-tls.c (_dl_initial_dtv): New variable.
7759         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
7760         freeing dtv[-1].
7761
7762 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7763
7764         [BZ #14544]
7765         * Makeconfig (link-static-before-libc): Replace $(+prector)
7766         with $(+prectorT).
7767         (link-static-after-libc): Replace $(+postctor) with
7768         $(+postctorT).
7769         (link-bounded): Replace $(+prector)/$(+postctor) with
7770         $(+prectorT)/$(+postctorT).
7771         (+prectorT): New macro.
7772         (+postctorT): Likewise.
7773
7774 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7775
7776         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
7777         (round_str): Handle values above the maximum for IBM long double
7778         as inexact.
7779         * stdlib/tst-strtod-round.c (tests): Regenerated.
7780
7781 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7782
7783         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
7784         assembler flag.
7785         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
7786         zarch_nohighgprs around the zarch optimized routines.
7787         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
7788         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
7789         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
7790         for zarch.
7791
7792 2012-09-05  David S. Miller  <davem@davemloft.net>
7793
7794         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7795
7796         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
7797         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
7798         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
7799         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7800         entries.
7801
7802 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7803
7804         * malloc/arena.c: Fold copyright years.
7805         * malloc/mcheck.c, malloc/memusage.c: Likewise.
7806
7807 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7808
7809         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
7810
7811 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7812
7813         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
7814
7815 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7816
7817         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
7818         change internal state upon failure.
7819
7820 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7821
7822         * malloc/mcheck.c (mcheck_check_all): Fix typo.
7823         * malloc/memusage.c (mmap): Likewise.
7824         (mmap64, mremap): Likewise.  Adjust name in comment.
7825
7826 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7827
7828         * libio/fileops.c: Fix typos in comments.
7829         * libio/oldfileops.c: Likewise.
7830         * libio/wfileops.c: Likewise.
7831
7832 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7833
7834         [BZ #1349]
7835         * malloc/Makefile (tests): Add tst-malloc-usable test case.
7836         (tst-malloc-usable-ENV): Set environment for test case.
7837         * malloc/hooks.c (malloc_check_get_size): New function to get
7838         requested size.
7839         * malloc/malloc.c (musable): Use malloc_check_get_size.
7840         * malloc/tst-malloc-usable.c: New test case.
7841
7842 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7843
7844         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
7845
7846 2012-09-05  Allan McRae  <allan@archlinux.org>
7847
7848         [BZ #13966]
7849         * configure.in (CXX_SYSINCLUDES): Use compiler output to
7850         determine header location.
7851         * configure: Regenerated.
7852
7853 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7854
7855         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
7856         float format.
7857         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
7858         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
7859         format.
7860         (test): Regenerate.
7861
7862 2012-09-04  David S. Miller  <davem@davemloft.net>
7863
7864         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
7865         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
7866         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
7867
7868 2012-09-04  Florian Weimer  <fweimer@redhat.com>
7869
7870         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
7871         failures.
7872
7873         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
7874
7875 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
7876
7877         [BZ #9914]
7878         * libio/iogetdelim.c: Include <limits.h>.
7879         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
7880         + len + 1 would overflow.
7881
7882 2012-09-03  Andreas Jaeger  <aj@suse.de>
7883
7884         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7885         * sysdeps/i386/fpu/libm-test-ulps: Update.
7886
7887 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7888
7889         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
7890         Add s_sinf-sse2, s_conf-sse2.
7891
7892         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
7893         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
7894         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
7895         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
7896
7897         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
7898         for using routine as __sinf_ia32.
7899         Use macro for function declaration and weak_alias.
7900         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
7901         for using routine as __cosf_ia32.
7902         Use macro for function declaration and weak_alias.
7903
7904         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
7905         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
7906
7907         * sysdeps/x86_64/fpu/s_sinf.S: New file.
7908         * sysdeps/x86_64/fpu/s_cosf.S: New file.
7909         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7910
7911         * math/libm-test.inc (cos_test): Add more test cases.
7912         (sin_test): Likewise.
7913         (sincos_test): Likewise.
7914
7915 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7916
7917         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
7918         (IFUNC_RESOLVE): Make pointers to the specialized implementations
7919         hidden.
7920         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7921
7922 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
7923
7924         [BZ #14538]
7925         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
7926         first element of the GOT.
7927         (elf_machine_load_address): Return the difference between
7928         the runtime address of _DYNAMIC and elf_machine_dynamic ().
7929
7930 2012-09-01  Allan McRae  <allan@archlinux.org>
7931
7932         [BZ #13412]
7933         * configure.in (AWK): Require gawk version 3.0 or later.
7934         * configure: Regenerated.
7935
7936 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
7937
7938         * sysdeps/unix/sysv/linux/kernel-features.h
7939         (__ASSUME_POSIX_CPU_TIMERS): Remove.
7940         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7941         [__NR_clock_getres]: Make code unconditional.
7942         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
7943         (clock_getcpuclockid): Remove code left unreachable by removal of
7944         conditionals.
7945         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
7946         code unconditional.
7947         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7948         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7949         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
7950         Make code unconditional.
7951         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7952         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7953         * sysdeps/unix/sysv/linux/clock_settime.c
7954         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
7955         conditional code.
7956         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
7957         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7958
7959 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
7960
7961         [BZ #14476]
7962         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
7963         scripts/test-installation.pl.
7964
7965         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
7966         and $ld_so_version if it is set.
7967
7968 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7969
7970         [BZ #14516]
7971         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
7972         failure if reading from procfs failed.
7973         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
7974
7975 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
7976
7977         * sysdeps/unix/sysv/linux/kernel-features.h
7978         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
7979         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7980         Remove conditional code.
7981         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7982         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
7983         Remove conditional code.
7984         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7985         * sysdeps/unix/sysv/linux/i386/fxstat.c
7986         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7987         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7988         * sysdeps/unix/sysv/linux/i386/fxstatat.c
7989         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7990         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7991         * sysdeps/unix/sysv/linux/i386/lxstat.c
7992         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7993         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7994         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
7995         Remove conditional code.
7996         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7997         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7998         Remove conditional code.
7999         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8000         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
8001         <kernel-features.h>.
8002         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
8003         Remove.
8004         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
8005         Remove conditional code.
8006         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
8007         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
8008         Remove conditional.
8009
8010 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
8011
8012         [BZ #5400]
8013         * NEWS: Add fixed bug number.
8014
8015 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
8016
8017         [BZ #14519]
8018         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
8019         underflowing exponent in case of negative sign.
8020         * stdlib/tst-strtod-round-data: Add more tests.
8021         * stdlib/tst-strtod-round.c (tests): Regenerated.
8022
8023         [BZ #3479]
8024         * stdlib/strtod_l.c (NDIG): Remove.
8025         (HEXNDIG): Likewise.
8026         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
8027         smallest representable value.
8028         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
8029         lie within an exact representation of 1/2 ulp of the result.
8030         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
8031         unconditionally.
8032         (TENS_P9_IDX): Define unconditionally.
8033         (TENS_P9_SIZE): Likewise.
8034         (TENS_P10_IDX): Likewise.
8035         (TENS_P10_SIZE): Likewise.
8036         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
8037         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
8038         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
8039         entries for 10^2^13 and 10^2^14.
8040         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
8041         (TENS_P13_IDX): Define.
8042         (TENS_P13_SIZE): Likewise.
8043         (TENS_P14_IDX): Likewise.
8044         (TENS_P14_SIZE): Likewise.
8045         (_fpioconst_pow10): Change array size to
8046         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
8047         unconditional.
8048         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
8049         1024]: Add entries for 10^2^13 and 10^2^14.
8050         [LAST_POW10 > _LAST_POW10]: Remove #error.
8051         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
8052         (_fpioconst_pow10): Change array size to
8053         FPIOCONST_POW10_ARRAY_SIZE.
8054         * stdlib/gen-fpioconst.c: New file.
8055         * stdlib/gen-tst-strtod-round.c: Likewise.
8056         * stdlib/tst-strtod-round-data: Likewise.
8057         * stdlib/tst-strtod-round.c: Likewise.
8058         * stdlib/Makefile (tests): Add tst-strtod-round.
8059
8060         [BZ #14459]
8061         * stdlib/strtod_l.c: Include <stdint.h>.
8062         (NDEBUG): Do not define.
8063         (round_and_return): Change EXPONENT parameter to type intmax_t.
8064         Rearrange calculations to avoid internal overflow possibilities.
8065         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
8066         Rearrange calculations to avoid internal overflow possibilities.
8067         Assert that number fits inside MPNSIZE limbs.
8068         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
8069         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
8070         calculations and add assertions to avoid internal overflow
8071         possibilities.  Add casts to avoid signed/unsigned operations.
8072         * stdlib/tst-strtod-overflow.c: New file.
8073         * stdlib/Makefile (tests): Add tst-strtod-overflow.
8074
8075 2012-08-25  Marek Polacek  <polacek@redhat.com>
8076
8077         * time/time.h: Fix some typos in comments.
8078
8079 2012-08-23  Roland McGrath  <roland@hack.frob.com>
8080
8081         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
8082         * posix/tst-rfc3484-2.c: Likewise.
8083         * posix/tst-rfc3484-3.c: Likewise.
8084
8085 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
8086
8087         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
8088         (EF_ARM_ABI_FLOAT_HARD): Likewise.
8089
8090 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
8091
8092         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
8093         #include of fxstatat64.c.
8094
8095 2012-08-22  Roland McGrath  <roland@hack.frob.com>
8096
8097         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
8098         * shadow/getspent_r.c: Likewise.
8099         * shadow/getspnam.c: Likewise.
8100         * shadow/getspnam_r.c: Likewise.
8101         * gshadow/getsgent.c: Likewise.
8102         * gshadow/getsgent_r.c: Likewise.
8103         * gshadow/getsgnam.c: Likewise.
8104         * gshadow/getsgnam_r.c: Likewise.
8105         * inet/getnetbyad.c: Likewise.
8106         * inet/getnetbyad_r.c: Likewise.
8107         * inet/getnetbynm.c: Likewise.
8108         * inet/getnetbynm_r.c: Likewise.
8109         * inet/getnetent.c: Likewise.
8110         * inet/getnetent_r.c: Likewise.
8111         * inet/getproto.c: Likewise.
8112         * inet/getproto_r.c: Likewise.
8113         * inet/getprtent.c: Likewise.
8114         * inet/getprtent_r.c: Likewise.
8115         * inet/getprtname.c: Likewise.
8116         * inet/getprtname_r.c: Likewise.
8117         * inet/getrpcbyname.c: Likewise.
8118         * inet/getrpcbyname_r.c: Likewise.
8119         * inet/getrpcbynumber.c: Likewise.
8120         * inet/getrpcbynumber_r.c: Likewise.
8121         * inet/getrpcent.c: Likewise.
8122         * inet/getrpcent_r.c: Likewise.
8123         * inet/getaliasent.c: Likewise.
8124         * inet/getaliasent_r.c: Likewise.
8125         * inet/getaliasname.c: Likewise.
8126         * inet/getaliasname_r.c: Likewise.
8127         * nscd/getgrgid_r.c: Likewise.
8128         * nscd/getgrnam_r.c: Likewise.
8129         * nscd/gethstbyad_r.c: Likewise.
8130         * nscd/gethstbynm3_r.c: Likewise.
8131         * nscd/getpwnam_r.c: Likewise.
8132         * nscd/getpwuid_r.c: Likewise.
8133         * nscd/getsrvbynm_r.c: Likewise.
8134         * nscd/getsrvbypt_r.c: Likewise.
8135         * nscd/gai.c: Likewise.
8136
8137         * configure.in (build_nscd): New substituted variable, set
8138         by --disable-build-nscd and defaults to $use_nscd.
8139         * configure: Regenerated.
8140         * config.make.in (build-nscd): New substituted variable.
8141         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
8142         Change conditional to require [$(build-nscd) = yes] as well.
8143         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
8144
8145         [BZ# 13696]
8146         * configure.in (use_nscd): New substituted variable, set by
8147         --disable-nscd.  If enabled, define USE_NSCD.
8148         * configure: Regenerated.
8149         * config.h.in: Add USE_NSCD.
8150         * config.make.in (use-nscd): New substituted variable.
8151         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
8152         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
8153         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
8154         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
8155         (CFLAGS-getgrnam_r.c): Likewise.
8156         (CFLAGS-initgroups.c): Likewise.
8157         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
8158         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
8159         Variables removed.
8160         * inet/getnetgrent_r.c
8161         (nscd_setnetgrent): New function, broken out of ...
8162         (setnetgrent): ... here.  Call it.
8163         (innetgr): Conditionalize nscd bits on [USE_NSCD].
8164         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
8165         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
8166         * nscd/Makefile (routines, aux): Move definitions after include of
8167         Makeconfig.  Conditionalize on [$(use-nscd) != no].
8168         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
8169         Conditionalize on [USE_NSCD].
8170         (is_nscd, nscd_init_cb): Likewise.
8171         (nss_load_library): Conditionalize init callback on [USE_NSCD].
8172         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
8173         * nss/nss_db/db-init.c: Likewise.
8174         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
8175         [USE_NSCD].
8176         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
8177         (make_request): Use it.
8178         (cache_valid_p): New function.
8179         (__check_pf): Use it.
8180         * NEWS: Add item for --disable-nscd.
8181
8182 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
8183
8184         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
8185         to support sed >= 4.2.1-20-ga9bf076.
8186         * configure: Regenerated.
8187
8188 2012-08-22  Roland McGrath  <roland@hack.frob.com>
8189
8190         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
8191         Conditionalize whole body on [IREL].
8192
8193 2012-08-22  Jeff Law <law@redhat.com>
8194
8195         [BZ #14505]
8196         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
8197         if the family is PF_UNSPEC.
8198
8199 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
8200
8201         * Makerules (lib-version): Rename from V.
8202         (install-lib-nosubdir): Change V to lib-version.
8203
8204 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
8205
8206         [BZ #14252]
8207         * powerpc32/power6/wcschr.c: New file.
8208         * powerpc32/power6/wcscpy.c: New file.
8209         * powerpc32/power6/wcsrchr.c: New file.
8210         * powerpc64/power6/wcschr.c: New file.
8211         * powerpc64/power6/wcscpy.c: New file.
8212         * powerpc64/power6/wcsrchr.c: New file.
8213
8214 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
8215
8216         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
8217         (two_way_short_needle): Use it.
8218         * string/strstr.c (AVAILABLE1_USES_J): Define.
8219         * string/strcasestr.c: Likewise.
8220
8221         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
8222         array references.
8223         * string/strcasestr.c (TOLOWER): Make side-effect safe.
8224
8225         [BZ #11607]
8226         * NEWS: Add an entry.
8227         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
8228         define their defaults.
8229         (two_way_short_needle): Detect end-of-string on-the-fly.
8230         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
8231         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
8232         * string/bug-strcasestr1.c: New test.
8233         * string/Makefile: Run it.
8234
8235 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
8236
8237         [BZ #11607]
8238         * string/str-two-way.h (two_way_short_needle): Optimize matching of
8239         the first character.
8240
8241 2012-08-21  Roland McGrath  <roland@hack.frob.com>
8242
8243         * csu/elf-init.c (__libc_csu_irel): Function removed.
8244         * csu/libc-start.c (apply_irel): New function.
8245         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
8246
8247 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
8248
8249         * sysdeps/unix/sysv/linux/kernel-features.h
8250         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
8251         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8252         <kernel-features.h>.
8253         [__NR_fadvise64_64]: Make code unconditional.
8254         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
8255         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
8256         !__NR_fadvise64_64)]: Likewise.
8257         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
8258         !__NR_fadvise64_64))]: Likewise.
8259         [__NR_fadvise64]: Make code unconditional.
8260         [!__NR_fadvise64]: Remove conditional code.
8261         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
8262         <kernel-features.h>.
8263         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
8264         unconditional.
8265         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
8266         conditional code.
8267         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
8268         not include <kernel-features.h>.
8269         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
8270         unconditional.
8271         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
8272         conditional code.
8273         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
8274         include <kernel-features.h>.
8275         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
8276         unconditional.
8277         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
8278         conditional code.
8279
8280 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8281
8282         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
8283         slight instruction rearrangements per scrollpipe analysis.
8284         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
8285
8286 2012-08-20  Roland McGrath  <roland@hack.frob.com>
8287
8288         * manual/syslog.texi (syslog; vsyslog, closelog):
8289         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
8290         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
8291
8292         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
8293         DSOCAPS to match condition on defining it.
8294
8295 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
8296
8297         * sysdeps/unix/sysv/linux/kernel-features.h
8298         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
8299         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
8300         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
8301         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
8302         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
8303         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
8304         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
8305         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
8306         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
8307         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
8308
8309         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
8310         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
8311
8312         * sysdeps/unix/sysv/linux/kernel-features.h
8313         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
8314         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
8315         unconditional.
8316         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8317         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
8318         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
8319         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8320         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
8321         Make code unconditional.
8322         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8323         (__mmap64) [!__NR_mmap2]: Likewise.
8324         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
8325         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
8326         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8327         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
8328         [__NR_mmap2]: Make code unconditional.
8329         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8330         (__mmap64) [!__NR_mmap2]: Likewise.
8331
8332 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8333
8334         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
8335
8336 2012-08-18  Andreas Jaeger  <aj@suse.de>
8337
8338         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
8339
8340 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
8341
8342         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
8343         * include/unistd.h (__have_sock_cloexec): Likewise.
8344         (__have_pipe2): Likewise.
8345         (__have_dup3): Likewise.
8346
8347 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
8348
8349         [BZ #9685]
8350         * include/unistd.h (__have_pipe2): Change define into an extern int.
8351         (__have_dup3): Likewise.
8352         * socket/have_sock_cloexec.c: Include fcntl.h.
8353         (__have_pipe2): New variable.
8354         (__have_dup3): Likewise.
8355
8356 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
8357
8358         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
8359
8360 2012-08-17  Marek Polacek  <polacek@redhat.com>
8361
8362         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
8363         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
8364
8365 2012-08-17  Roland McGrath  <roland@hack.frob.com>
8366
8367         * configure.in: Add AC_SUBST for sysheaders.
8368         * configure: Regenerated.
8369         * config.make.in (sysheaders): New substituted variable.
8370
8371         * sysdeps/unix/mkfifo.c: Moved ...
8372         * sysdeps/posix/mkfifo.c: ... here.
8373         * sysdeps/unix/mkfifoat.c: Moved ...
8374         * sysdeps/posix/mkfifoat.c: ... here.
8375
8376         * sysdeps/unix/utime.c: Moved ...
8377         * sysdeps/posix/utime.c: ... here.
8378
8379         * sysdeps/unix/time.c: Moved ...
8380         * sysdeps/posix/time.c: ... here.
8381         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
8382         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
8383
8384         * sysdeps/unix/nice.c: Moved ...
8385         * sysdeps/posix/nice.c: ... here.
8386
8387         * sysdeps/unix/alarm.c: Moved ...
8388         * sysdeps/posix/alarm.c: ... here.
8389
8390         * intl/Makefile ($(codeset_mo)): Depend on the input file.
8391
8392 2012-08-17  Jeff Law <law@redhat.com>
8393
8394         * intl/Makefile (codeset_mo): New variable.
8395         ($(codeset_mo)): New target.
8396         (tst-codeset.out): Depend on that.  Remove explicit rule.
8397         (tst-gettext3.out, tst-gettext5.out): Likewise.
8398         (LOCPATH-ENV, tst-codeset-ENV): New variables.
8399         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
8400         * intl/tst-codeset.sh: Remove.
8401         * intl/tst-gettext3.sh: Likewise.
8402         * intl/tst-gettext5.sh: Likewise.
8403
8404 2012-08-17  Roland McGrath  <roland@hack.frob.com>
8405
8406         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
8407         * sysdeps/unix/syscalls.list: ... here.
8408
8409         * sysdeps/posix/getaddrinfo.c
8410         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
8411         (gaiconf_init, gaiconf_reload): Use them.
8412         [!_STATBUF_ST_NSEC]
8413         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
8414         Define using time_t rather than struct timespec.
8415
8416         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
8417         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
8418         Macros removed.
8419         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
8420         [!NO_THREADS].
8421         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
8422         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
8423         Likewise.
8424
8425         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
8426         __libc_cleanup_push argument.
8427
8428         * bits/param.h: New file.
8429         * misc/sys/param.h: New file.
8430         * include/sys/param.h: New file.
8431         * misc/Makefile (headers): Add bits/param.h.
8432         * sysdeps/generic/sys/param.h: File removed.
8433         * sysdeps/unix/sysv/linux/bits/param.h: New file.
8434         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
8435         * sysdeps/mach/hurd/bits/param.h: New file.
8436         * sysdeps/mach/hurd/sys/param.h: File removed.
8437
8438         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
8439         last change.
8440
8441         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
8442         [_IO_MTSAFE_IO].
8443         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
8444         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
8445         New macros.
8446
8447         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
8448         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
8449         rather than -D_IO_MTSAFE_IO conditionally.
8450         * stdio-common/Makefile (CPPFLAGS): Likewise.
8451         * wcsmbs/Makefile (CPPFLAGS): Likewise.
8452         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
8453         Use $(libio-mtsafe).
8454         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
8455         of -D_IO_MTSAFE_IO.
8456         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
8457         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
8458         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
8459         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
8460         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
8461         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
8462         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
8463         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
8464         (CFLAGS-fread_u_chk.c): Likewise.
8465         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
8466         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
8467         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
8468         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
8469         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
8470         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
8471         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
8472         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
8473         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
8474
8475         * libio/Makefile: Test [$(libc-reentrant) = yes]
8476         instead of [$(filter %REENTRANT, $(defines)) nonempty].
8477
8478         * Makeconfig
8479         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
8480         * sysdeps/pthread/configure: File removed.
8481         * sysdeps/pthread/Makeconfig: New file.
8482         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
8483         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
8484
8485 2012-08-16  Gary Benson  <gbenson@redhat.com>
8486
8487         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
8488         unmapping the first object in a namespace.
8489
8490 2012-08-16  Roland McGrath  <roland@hack.frob.com>
8491
8492         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
8493         (__internal_setnetgrent): ... this.  Add internal_function to
8494         definition.  Add libc_hidden_def.
8495         (setnetgrent): Update caller.
8496         (internal_endnetgrent): Renamed to ...
8497         (__internal_endnetgrent): ... this.  Add internal_function to
8498         definition.  Add libc_hidden_def.
8499         (endnetgrent): Update caller.
8500         (internal_getnetgrent_r): Renamed to ...
8501         (__internal_getnetgrent_r): ... this.  Add internal_function to
8502         definition.  Add libc_hidden_def.
8503         (__getnetgrent_r): Update caller.
8504         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
8505
8506 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
8507
8508         * stdlib/longlong.h: Update from GCC.
8509
8510 2012-08-16  Roland McGrath  <roland@hack.frob.com>
8511
8512         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
8513         on _QL, which is set by umul_ppmm but never used.
8514         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
8515         variables, which are set by GMP macros but never used.
8516         * stdio-common/_itowa.c (_itowa): Likewise.
8517         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
8518         * stdlib/mod_1.c (mpn_mod_1): Likewise.
8519
8520 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
8521
8522         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
8523         struct La_sh_regs is not constant.
8524         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
8525         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
8526         and struct La_sparc64_regs are not constant.
8527
8528 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
8529
8530         * sysdeps/unix/sysv/linux/kernel-features.h
8531         (__ASSUME_POSIX_TIMERS): Remove.
8532         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
8533         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8534         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
8535         Make code unconditional.
8536         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8537         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
8538         Make code unconditional.
8539         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8540         * sysdeps/unix/sysv/linux/clock_nanosleep.c
8541         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
8542         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8543         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
8544         Make code unconditional.
8545         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8546         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
8547         (__libc_missing_posix_timers): Remove.
8548
8549 2012-08-15  Roland McGrath  <roland@hack.frob.com>
8550
8551         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
8552         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
8553
8554         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
8555
8556         * elf/dl-sym.c: Include <stdlib.h>.
8557
8558         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
8559         constants, which avoids warnings in 32-bit builds.
8560
8561         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
8562         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
8563
8564         * misc/lseek.c: File moved to ...
8565         * io/lseek.c: ... here.
8566
8567         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
8568
8569         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
8570         shifting LEN more than 31 bits at once.
8571
8572 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8573
8574         [BZ #14195]
8575         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
8576         segmentation fault for a case of two empty input strings.
8577         * string/test-strncasecmp.c (check1): Renamed to...
8578         (bz12205): ...this.
8579         (bz14195): Add new testcase for two empty input strings and N > 0.
8580         (test_main): Call new testcase, adapt for renamed function.
8581
8582 2012-08-15  Andreas Jaeger  <aj@suse.de>
8583
8584         [BZ #14090]
8585         * crypt/md5test2.c: New test, based on test supplied by Serge
8586         Belyshev <belyshev@depni.sinp.msu.ru>.
8587         * crypt/Makefile (xtests): Add md5test-giant..
8588         * crypt/Makefile ($(objpfx)md5test-giant): Add.
8589
8590 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8591
8592         [BZ #14090]
8593         * crypt/md5.c (md5_process_block): Don't assume the buffer
8594         length is less than 2**32.
8595         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
8596         length is less than 2**64.
8597
8598 2012-08-15  Roland McGrath  <roland@hack.frob.com>
8599
8600         * string/str-two-way.h: Include <sys/param.h>.
8601         (MAX): Macro removed.
8602
8603         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
8604         Move #define and #undef of memmove to just before and after
8605         including <string.h>.
8606
8607         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
8608         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
8609         and after including <string.h>.  Move declarations of
8610         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
8611         to before #include "string/memmove.c".
8612
8613         * include/dirent.h: Declare __getdirentries.
8614
8615         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
8616         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
8617
8618 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
8619
8620         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
8621         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
8622         * sysdeps/i386/configure: Regenerated.
8623         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
8624         STABS_CURRENT_FILE, and STABS_FUN.
8625         (END): Remove call to STABS_FUN_END.
8626         (STABS_CURRENT_FILE1): Delete.
8627         (STABS_CURRENT_FILE): Likewise.
8628         (STABS_FUN): Likewise.
8629         (STABS_FUN_END): Likewise.
8630         (STABS_FUN2): Likewise.
8631         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
8632         * sysdeps/x86_64/configure: Regenerated.
8633
8634 2012-08-14  Roland McGrath  <roland@hack.frob.com>
8635
8636         * elf/dl-open.c: Include <atomic.h>.
8637         * elf/dl-lookup.c: Likewise.
8638
8639 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
8640
8641         * sysdeps/unix/sysv/linux/kernel-features.h
8642         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
8643         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
8644         unconditionally.
8645         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
8646         unconditionally.
8647         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
8648         condition on __ASSUME_CLONE_THREAD_FLAGS.
8649
8650 2012-08-14  Andreas Jaeger  <aj@suse.de>
8651
8652         * sysdeps/i386/fpu/libm-test-ulps: Update.
8653
8654 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
8655
8656         * include/atomic.h (atomic_exchange_and_add): Split into ...
8657         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
8658         New atomic macros.
8659
8660 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
8661
8662         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8663
8664 2012-08-13  Jeff Law <law@redhat.com>
8665
8666         * manual/stdio.texi (snprintf): Clarify handling of the trailing
8667         null byte in the output string.
8668
8669 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
8670
8671         * sysdeps/unix/sysv/linux/kernel-features.h
8672         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
8673         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
8674         (__ASSUME_ARG_MAX_STACK_BASED): Define.
8675         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
8676         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
8677         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
8678         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
8679
8680 2012-08-09  Jeff Law <law@redhat.com>
8681
8682         [BZ #13939]
8683         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
8684         When avoid_arena is set, don't retry in the that arena.  Pick the
8685         next one, whatever it might be.
8686         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
8687         (arena_lock): Pass in new parameter to arena_get2.
8688         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
8689         arena_get2.
8690         (__libc_malloc): Unify retrying after main arena failure with
8691         __libc_memalign version.
8692         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
8693
8694 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8695
8696         [BZ #14166]
8697         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
8698         to __redirect_strstr.
8699         (__strstr_sse42): Use typeof __redirect_strstr.
8700         (__strstr_ia32): Likewise.
8701         (__libc_strstr): New prototype.
8702         (strstr): Renamed to ...
8703         (__libc_strstr): This.
8704         (strstr): New strong alias of __libc_strstr.
8705         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8706         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
8707         __redirect_time.
8708         Include <time.h>.
8709         (__libc_time): New prototype.
8710         (time_ifunc): Replace time with __libc_time.
8711         (time): New strong alias and hidden definition of __libc_time.
8712         (__GI_time): Remove strong alias.
8713         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
8714         Include <stddef.h>.
8715         (memmove): Redefined to __redirect_memmove.
8716         (__memmove_sse2): Use typeof __redirect_memmove.
8717         (__memmove_ssse3): Likewise.
8718         (__memmove_ssse3_back): Likewise.
8719         (__libc_memmove): New prototype.
8720         (memmove): Renamed to ...
8721         (__libc_memmove): This.
8722         (memmove): New strong alias of __libc_memmove.
8723
8724 2012-08-08  Mark Salter  <msalter@redhat.com>
8725
8726         * elf/elf.h
8727         (R_MN10300_TLS_GD): Define.
8728         (R_MN10300_TLS_LD): Likewise.
8729         (R_MN10300_TLS_LDO): Likewise.
8730         (R_MN10300_TLS_GOTIE): Likewise.
8731         (R_MN10300_TLS_IE): Likewise.
8732         (R_MN10300_TLS_LE): Likewise.
8733         (R_MN10300_TLS_DTPMOD): Likewise.
8734         (R_MN10300_TLS_DTPOFF): Likewise.
8735         (R_MN10300_TLS_TPOFF): Likewise.
8736         (R_MN10300_SYM_DIFF): Likewise.
8737         (R_MN10300_ALIGN): Likewise.
8738         (R_MN10300_NUM): Update.
8739
8740 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
8741
8742         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
8743         Remove.
8744
8745 2012-08-08  Roland McGrath  <roland@hack.frob.com>
8746
8747         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
8748
8749         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
8750         sysdeps/unix -> sysdeps/posix move.
8751         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
8752
8753 2012-08-07      Allan McRae     <allan@archlinux.org>
8754
8755         [BZ #14303]
8756         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
8757         (SUNOS_CPP): Likewise.
8758         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
8759         not found.
8760         (open_input): Call CPP using execvp.
8761
8762 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8763
8764         * sysdeps/unix/sysv/linux/kernel-features.h
8765         (__ASSUME_PROT_GROWSUPDOWN): Remove.
8766         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8767         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8768         (__ASSUME_WAITID_SYSCALL): Likewise.
8769         * sysdeps/unix/sysv/linux/dl-execstack.c
8770         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
8771         code unconditional.
8772         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
8773         conditional code.
8774         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
8775         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
8776         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
8777         code.
8778         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
8779         unconditional.
8780         [__ASSUME_WAITID_SYSCALL]: Likewise.
8781         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
8782
8783 2012-08-07  Roland McGrath  <roland@hack.frob.com>
8784
8785         * sysdeps/unix/closedir.c: Renamed to ...
8786         * sysdeps/posix/closedir.c: ... here.
8787         * sysdeps/unix/dirfd.c: Renamed to ...
8788         * sysdeps/posix/dirfd.c: ... here.
8789         * sysdeps/unix/dirstream.h: Renamed to ...
8790         * sysdeps/posix/dirstream.h: ... here.
8791         * sysdeps/unix/fdopendir.c: Renamed to ...
8792         * sysdeps/posix/fdopendir.c: ... here.
8793         * sysdeps/unix/opendir.c: Renamed to ...
8794         * sysdeps/posix/opendir.c: ... here.
8795         * sysdeps/unix/readdir.c: Renamed to ...
8796         * sysdeps/posix/readdir.c: ... here.
8797         * sysdeps/unix/readdir_r.c: Renamed to ...
8798         * sysdeps/posix/readdir_r.c: ... here.
8799         * sysdeps/unix/rewinddir.c: Renamed to ...
8800         * sysdeps/posix/rewinddir.c: ... here.
8801         * sysdeps/unix/seekdir.c: Renamed to ...
8802         * sysdeps/posix/seekdir.c: ... here.
8803         * sysdeps/unix/telldir.c: Renamed to ...
8804         * sysdeps/posix/telldir.c: ... here.
8805         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
8806         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
8807         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
8808         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
8809
8810         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
8811         * bits/fcntl.h: ... here.
8812
8813         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
8814         not 0.
8815         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
8816         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
8817         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
8818         (struct flock): Move l_start, l_len to the beginning.
8819         Use __pid_t for l_pid.
8820         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
8821         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
8822         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
8823         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
8824         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
8825         [__USE_LARGEFILE64] (struct flock64): New type.
8826         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
8827
8828         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
8829         * bits/dirent.h: ... here.
8830
8831         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
8832         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
8833
8834 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8835
8836         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8837         Change from 2.6.0 to 2.6.16.
8838         * sysdeps/unix/sysv/linux/configure: Regenerated.
8839         * sysdeps/unix/sysv/linux/kernel-features.h
8840         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
8841         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
8842         version.
8843         (__ASSUME_UTIMES): Likewise.
8844         (__ASSUME_CLONE_STOPPED): Remove.
8845         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
8846         architectures, not kernel version.
8847         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
8848         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8849         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8850         (__ASSUME_WAITID_SYSCALL): Likewise.
8851         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
8852         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
8853         * README: State 2.6.16 as minimum Linux kernel version.  Do not
8854         refer to older versions.
8855
8856 2012-08-06  Roland McGrath  <roland@hack.frob.com>
8857
8858         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
8859         Define alphasort64 as an alias.
8860         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
8861         Define versionsort64 as an alias.
8862         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
8863         Define scandir64 as an alias.
8864         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
8865         Define scandirat64 as an alias.
8866         * dirent/alphasort64.c (alphasort64):
8867         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
8868         * dirent/versionsort64.c: Likewise.
8869         * dirent/scandir64.c: Likewise.
8870         * dirent/scandirat64.c: Likewise.
8871         * sysdeps/wordsize-64/alphasort.c: File removed.
8872         * sysdeps/wordsize-64/alphasort64.c: File removed.
8873         * sysdeps/wordsize-64/scandir.c: File removed.
8874         * sysdeps/wordsize-64/scandir64.c: File removed.
8875         * sysdeps/wordsize-64/scandirat.c: File removed.
8876         * sysdeps/wordsize-64/scandirat64.c: File removed.
8877         * sysdeps/wordsize-64/versionsort.c: File removed.
8878         * sysdeps/wordsize-64/versionsort64.c: File removed.
8879         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
8880         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
8881         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
8882         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
8883         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
8884         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
8885         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
8886         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
8887
8888         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
8889         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8890         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
8891         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8892         [defined __arch64__ || defined __sparcv9]
8893         (__INO_T_MATCHES_INO64_T): New macro.
8894         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8895         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
8896         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
8897         * sysdeps/unix/sysv/linux/bits/dirent.h
8898         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
8899         (_DIRENT_MATCHES_DIRENT64): New macro.
8900
8901         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
8902         Define lockf64 as an alias.
8903         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
8904         Define fseeko64 as an alias.
8905         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
8906         Define ftello64 as an alias.
8907         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
8908         Define _IO_fgetpos64 and fgetpos64 as aliases.
8909         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
8910         Define _IO_fsetpos64 and fsetpos64 as aliases.
8911         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
8912         Conditionalize body on this.
8913         * libio/fseeko64.c: Likewise.
8914         * libio/ftello64.c: Likewise.
8915         * libio/iofgetpos64.c: Likewise.
8916         * libio/iofsetpos64.c: Likewise.
8917         * sysdeps/wordsize-64/lockf.c: File removed.
8918         * sysdeps/wordsize-64/lockf64.c: File removed.
8919         * sysdeps/wordsize-64/fseeko.c: File removed.
8920         * sysdeps/wordsize-64/fseeko64.c: File removed.
8921         * sysdeps/wordsize-64/ftello.c: File removed.
8922         * sysdeps/wordsize-64/ftello64.c: File removed.
8923         * sysdeps/wordsize-64/iofgetpos.c: File removed.
8924         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
8925         * sysdeps/wordsize-64/iofsetpos.c: File removed.
8926         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
8927         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
8928         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
8929         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
8930         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
8931         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
8932         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
8933         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
8934         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
8935         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
8936         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
8937
8938         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8939         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8940         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
8941         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8942         [defined __arch64__ || defined __sparcv9]
8943         (__OFF_T_MATCHES_OFF64_T): New macro.
8944         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8945         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8946         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8947         (__OFF_T_MATCHES_OFF64_T): New macro.
8948
8949 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8950
8951         * stdlib/secure-getenv.c (__secure_getenv): Replace
8952         GLIBC_2_16 with GLIBC_2_17.
8953
8954 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8955
8956         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
8957         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8958
8959 2012-08-03  David S. Miller  <davem@davemloft.net>
8960
8961         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8962
8963 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8964
8965         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
8966         Remove.
8967         (__ASSUME_CORRECT_SI_PID): Likewise.
8968         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
8969         (__ASSUME_TMPFS_NAME): Likewise.
8970         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
8971         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
8972         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
8973         (HAVE_AUX_SECURE): Make definition unconditional.
8974         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
8975         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
8976
8977 2012-08-03  Roland McGrath  <roland@hack.frob.com>
8978
8979         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
8980         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
8981         * sysdeps/mach/hurd/eloop-threshold.h: New file.
8982         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8983         __eloop_threshold instead of SYMLOOP_MAX.
8984
8985         * sysdeps/generic/eloop-threshold.h: New file.
8986         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
8987         of MAXSYMLINKS.
8988         * elf/chroot_canon.c (chroot_canon): Likewise.
8989
8990 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8991
8992         [BZ #13717]
8993         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8994         Change to 2.6.0 everywhere.
8995         * sysdeps/unix/sysv/linux/configure: Regenerated.
8996         * sysdeps/unix/sysv/linux/kernel-features.h
8997         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
8998         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
8999         kernel versions.
9000         (__ASSUME_POSIX_TIMERS): Define unconditionally.
9001         (__ASSUME_FUTEX_REQUEUE): Remove.
9002         (__ASSUME_STATFS64): Define unconditionally.
9003         (__ASSUME_AT_SECURE): Likewise.
9004         (__ASSUME_CORRECT_SI_PID): Likewise.
9005         (__ASSUME_TGKILL): Define without depending on kernel version for
9006         i386.
9007         (__ASSUME_UTIMES): Likewise.
9008         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
9009         kernel version.
9010         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
9011         (__ASSUME_TMPFS_NAME): Likewise.
9012         * README: Update reference to Linux kernel versions.
9013
9014 2012-08-02  Marek Polacek  <polacek@redhat.com>
9015
9016         [BZ# 14150]
9017         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
9018         libc_cv_asm_type_prefix with %.
9019         * configure: Regenerated.
9020         * include/libc-symbols.h: Remove comment about
9021         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
9022         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
9023         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
9024         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
9025         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
9026         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
9027         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
9028         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
9029         * elf/tst-unique2mod1.c: Likewise.
9030         * elf/tst-unique1mod2.c: Likewise.
9031         * elf/tst-unique1mod1.c: Likewise.
9032         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
9033         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
9034         Replace ASM_TYPE_DIRECTIVE with .type.
9035         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9036         * sysdeps/i386/sysdep.h: Likewise.
9037         * sysdeps/x86_64/sysdep.h: Likewise.
9038         * sysdeps/sh/sysdep.h: Likewise.
9039         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
9040         Do not define ASM_TYPE_DIRECTIVE.
9041         * sysdeps/powerpc/sysdep.h: Likewise.
9042         * sysdeps/powerpc/powerpc32/sysdep.h:
9043         Replace ASM_TYPE_DIRECTIVE with .type.
9044         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
9045         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
9046         * sysdeps/i386/fpu/e_powf.S: Likewise.
9047         * sysdeps/i386/fpu/e_expl.S: Likewise.
9048         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
9049         * sysdeps/i386/fpu/e_acosh.S: Likewise.
9050         * sysdeps/i386/fpu/e_pow.S: Likewise.
9051         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
9052         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
9053         * sysdeps/i386/fpu/s_expm1.S: Likewise.
9054         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
9055         * sysdeps/i386/fpu/e_log2.S: Likewise.
9056         * sysdeps/i386/fpu/e_log2l.S: Likewise.
9057         * sysdeps/i386/fpu/e_scalb.S: Likewise.
9058         * sysdeps/i386/fpu/e_powl.S: Likewise.
9059         * sysdeps/i386/fpu/e_log10f.S: Likewise.
9060         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
9061         * sysdeps/i386/fpu/e_logl.S: Likewise.
9062         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
9063         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
9064         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
9065         * sysdeps/i386/fpu/e_log2f.S: Likewise.
9066         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
9067         * sysdeps/i386/fpu/e_log.S: Likewise.
9068         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
9069         * sysdeps/i386/fpu/e_logf.S: Likewise.
9070         * sysdeps/i386/fpu/e_log10l.S: Likewise.
9071         * sysdeps/i386/fpu/e_atanh.S: Likewise.
9072         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
9073         * sysdeps/i386/fpu/e_log10.S: Likewise.
9074         * sysdeps/i386/fpu/s_frexp.S: Likewise.
9075         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
9076         * sysdeps/i386/fpu/s_asinh.S: Likewise.
9077         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
9078         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
9079         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
9080         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
9081         * sysdeps/i386/i686/strtok.S: Likewise.
9082         * sysdeps/i386/i386-mcount.S: Likewise.
9083         * sysdeps/i386/strtok.S: Likewise.
9084         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
9085         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
9086         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
9087         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
9088         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
9089         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
9090         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
9091         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
9092         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
9093         * sysdeps/x86_64/_mcount.S: Likewise.
9094         * sysdeps/x86_64/strtok.S: Likewise.
9095         * sysdeps/sh/_mcount.S: Likewise.
9096
9097 2012-08-01  Roland McGrath  <roland@hack.frob.com>
9098
9099         * libio/iofopen.c: Include <fcntl.h>.
9100         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
9101         (_IO_fopen64, fopen64): Define as aliases.
9102         * libio/iofopen64.c: Include <fcntl.h>.
9103         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
9104         Conditionalize body on this.
9105         * sysdeps/wordsize-64/iofopen.c: File removed.
9106         * sysdeps/wordsize-64/iofopen64.c: File removed.
9107
9108 2012-08-01  Marek Polacek  <polacek@redhat.com>
9109
9110         * libc/Makeconfig: Use elf in place of binfmt-subdir.
9111         Use dlfcn directly instead of a variable.
9112         (binfmt-subdir): Do not define.
9113         (dlfcn): Likewise.
9114
9115 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
9116
9117         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
9118         Remove all definitions.
9119         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
9120         <kernel-features.h>.
9121         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
9122         (miss_F_GETOWN_EX): Remove all definitions.
9123         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
9124         macro definition.
9125         [!__ASSUME_FCNTL64]: Remove conditional code.
9126         [__ASSUME_FCNTL64]: Make code unconditional.
9127         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
9128         <kernel-features.h>.
9129         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
9130         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
9131         (lockf64) [__NR_fcntl64]: Make code unconditional.
9132         (lockf64) [__ASSUME_FCNTL64]: Likewise.
9133
9134         * sysdeps/unix/sysv/linux/kernel-features.h
9135         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
9136         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
9137         Make code unconditional.
9138         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9139         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9140         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
9141         [__NR_vfork]: Make code unconditional.
9142         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9143         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9144         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
9145         [__NR_vfork]: Make code unconditional.
9146         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9147         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9148
9149 2012-08-01  Roland McGrath  <roland@hack.frob.com>
9150
9151         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
9152         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
9153
9154         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9155         Define mkstemp64 as an alias.
9156         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9157         Define mkstemps64 as an alias.
9158         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9159         Define mkostemp64 as an alias.
9160         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9161         Define mkostemps64 as an alias.
9162         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
9163         Conditionalize body on this.
9164         * misc/mkostemp64.c: Likewise.
9165         * misc/mkostemps64.c: Likewise.
9166         * misc/mkstemps64.c: Likewise.
9167         * sysdeps/wordsize-64/mkstemp64.c: File removed.
9168         * sysdeps/wordsize-64/mkostemp64.c: File removed.
9169         * sysdeps/wordsize-64/mkostemp.c: File removed.
9170         * sysdeps/wordsize-64/mkstemp.c: File removed.
9171         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
9172         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
9173         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
9174         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
9175
9176         [BZ #14138]
9177         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
9178         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
9179         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
9180         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
9181
9182         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
9183         compat_symbol macros from <shlib-compat.h> rather than the underlying
9184         default_symbol_version and symbol_version macros, so that DEFAULT
9185         lines in shlib-versions are respected.
9186         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
9187
9188 2012-08-01  Florian Weimer  <fweimer@redhat.com>
9189
9190         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
9191         Declare with warn_unused_result.
9192         (setgid, setregid, setegid, setresgid): Likewise.
9193         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
9194         Likewise.
9195         * WUR-REPORT: Remove set*id functions.
9196
9197 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
9198
9199         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
9200
9201 2012-07-31  Roland McGrath  <roland@hack.frob.com>
9202
9203         * include/sys/socket.h (__libc_accept, __libc_accept4):
9204         Add attribute_hidden.
9205         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
9206
9207         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
9208         use of PTR_MANGLE.
9209         * inet/getnetgrent_r.c (setup): Likewise.
9210
9211         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
9212
9213 2012-07-31  David S. Miller  <davem@davemloft.net>
9214
9215         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9216
9217 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
9218
9219         [BZ #13629]
9220         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
9221         value between 1.0 and 2.0 and smaller part has absolute value less
9222         than 1.0.
9223         * math/s_clog10.c (__clog10): Likewise.
9224         * math/s_clog10f.c (__clog10f): Likewise.
9225         * math/s_clog10l.c (__clog10l): Likewise.
9226         * math/s_clogf.c (__clogf): Likewise.
9227         * math/s_clogl.c (__clogl): Likewise.
9228         * math/libm-test.inc (clog_test): Add more tests.
9229         (clog10_test): Likewise.
9230         * sysdeps/i386/fpu/libm-test-ulps: Update.
9231         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9232
9233 2012-07-31  Florian Weimer  <fweimer@redhat.com>
9234
9235         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
9236         Exit with zero in case no suitable GID is found, and write a
9237         message to standard error.
9238
9239 2012-07-30  Roland McGrath  <roland@hack.frob.com>
9240
9241         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
9242         rather than to 1.
9243         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
9244         (MAXPATHLEN): Removed.
9245         (NOGROUP, NODEV): New macros.
9246         (setbit, clrbit, isset, isclr): New macros.
9247         (howmany, roundup, powerof2): New macros.
9248         (DEV_BSIZE): New macro.
9249
9250         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
9251         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
9252
9253         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
9254         definition on [!__NO_LONG_DOUBLE_MATH].
9255
9256         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
9257         PTR_MANGLE and PTR_DEMANGLE.
9258
9259         * socket/accept4.c (accept4): Rename to __libc_accept4.
9260         Define accept4 as a weak alias.
9261
9262         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
9263         on [_DIRENT_HAVE_D_TYPE].
9264         * io/ftw.c (ftw_dir): Likewise.
9265
9266         * io/xmknod.c (__xmknod): Don't check PATH for being null.
9267
9268         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
9269
9270         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
9271         Use the BSD numbers rather than the arbitrary ones we had.
9272         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
9273         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
9274         (SIGXCPU, SIGXFSZ): New macros.
9275         (_NSIG): Now 32.
9276
9277         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
9278         initializer on [_LIBC_REENTRANT].
9279
9280         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
9281         definitions inside [_POSIX_MAPPED_FILES].
9282
9283         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
9284
9285         * dirent/opendir.c: Include <fcntl.h>.
9286
9287         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
9288         (__libc_getspecific): Likewise.
9289         (__libc_key_create): Likewise.
9290
9291         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
9292         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
9293         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
9294         (tmpfile64): Define as alias.
9295         * sysdeps/wordsize-64/tmpfile.c: File removed.
9296         * sysdeps/wordsize-64/tmpfile64.c: File removed.
9297         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
9298         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
9299
9300         * stdio-common/vfscanf.c: Include <stdbool.h>.
9301         * nss/makedb.c: Likewise.
9302         * stdio-common/_i18n_number.h: Likewise.
9303         * argp/argp-help.c: Likewise.
9304         * posix/wordexp.c: Likewise.
9305         * sysdeps/posix/spawni.c: Likewise.
9306         * nss/nss_files/files-initgroups.c: Likewise.
9307         * stdio-common/reg-modifier.c: Include <stdlib.h>.
9308         * nss/nss_files/files-initgroups.c: Likewise.
9309         * nss/nss_db/db-netgrp.c: Likewise.
9310         * nss/nss_db/db-initgroups.c: Likewise.
9311         * io/fchmodat.c: Include <sys/stat.h>.
9312
9313         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
9314         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
9315
9316         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
9317         [HAVE_MMAP].
9318
9319         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
9320         Add multiple inclusion protection.
9321
9322 2012-07-27  David S. Miller  <davem@davemloft.net>
9323
9324         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9325
9326 2012-07-27  Gary Benson  <gbenson@redhat.com>
9327
9328         [BZ #14298]
9329         * elf/rtld.c: Include <stap-probe.h>.
9330         (dl_main): Added static probes "init_start" and "init_complete".
9331         * elf/dl-load.c: Include <stap-probe.h>.
9332         (lose): Take new parameter "nsid".
9333         Added static probe "map_failed".
9334         (_dl_map_object_from_fd): Pass namespace id to lose.
9335         Added static probe "map_start".
9336         (open_verify): Pass namespace id to lose.
9337         * elf/dl-open.c: Include <stap-probe.h>.
9338         (dl_open_worker) Added static probes "map_complete", "reloc_start"
9339         and "reloc_complete".
9340         * elf/dl-close.c: Include <stap-probe.h>.
9341         (_dl_close_worker): Added static probes "unmap_start" and
9342         "unmap_complete".
9343         * elf/rtld-debugger-interface.txt: New file documenting the above.
9344
9345 2012-07-26  Roland McGrath  <roland@hack.frob.com>
9346
9347         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
9348         rather than a string variable.
9349         * sunrpc/rpc_main.c (h_output): Likewise.
9350         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
9351
9352 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
9353
9354         * inet/check_native.c: New file.
9355
9356 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
9357
9358         [BZ #13629]
9359         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
9360         if larger part has absolute value 1.0.
9361         * math/s_clog10.c (__clog10): Likewise.
9362         * math/s_clog10f.c (__clog10f): Likewise.
9363         * math/s_clog10l.c (__clog10l): Likewise.
9364         * math/s_clogf.c (__clogf): Likewise.
9365         * math/s_clogl.c (__clogl): Likewise.
9366         * math/libm-test.inc (clog_test): Add more tests.
9367         (clog10_test): Likewise.
9368         * sysdeps/i386/fpu/libm-test-ulps: Update.
9369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9370
9371         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
9372         (pltexit): Likewise.
9373         (La_regs): Likewise.
9374         (La_retval): Likewise.
9375         (int_retval): Likewise.
9376         Update #error for removed macros to refer only to definitions in
9377         tst-audit.h.
9378         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
9379         macro.
9380         (pltexit): Likewise.
9381         (La_regs): Likewise.
9382         (La_retval): Likewise.
9383         (int_retval): Likewise.
9384         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
9385         macro.
9386         (pltexit): Likewise.
9387         (La_regs): Likewise.
9388         (La_retval): Likewise.
9389         (int_retval): Likewise.
9390         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
9391         macro.
9392         (pltexit): Likewise.
9393         (La_regs): Likewise.
9394         (La_retval): Likewise.
9395         (int_retval): Likewise.
9396         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
9397         macro.
9398         (pltexit): Likewise.
9399         (La_regs): Likewise.
9400         (La_retval): Likewise.
9401         (int_retval): Likewise.
9402         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
9403         macro.
9404         (pltexit): Likewise.
9405         (La_regs): Likewise.
9406         (La_retval): Likewise.
9407         (int_retval): Likewise.
9408         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
9409         macro.
9410         (pltexit): Likewise.
9411         (La_regs): Likewise.
9412         (La_retval): Likewise.
9413         (int_retval): Likewise.
9414         * sysdeps/generic/tst-audit.h: Update comment to refer only to
9415         macro definitions in tst-audit.h.
9416         * sysdeps/i386/tst-audit.h: New file.
9417         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
9418         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
9419         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
9420         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
9421         * sysdeps/sh/tst-audit.h: Likewise.
9422         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
9423         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
9424         * sysdeps/x86_64/tst-audit.h: Likewise.
9425
9426 2012-07-26  Andreas Jaeger  <aj@suse.de>
9427
9428         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
9429         ptrace.
9430
9431         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
9432         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
9433         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
9434         PTRACE_O_MASK.
9435         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
9436         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
9437         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
9438
9439         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
9440         value.
9441
9442         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
9443         _sigsys.
9444         (si_call_addr, si_syscall, si_arch): Define new macro.
9445         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
9446         _sigsys.
9447         (si_call_addr, si_syscall, si_arch): Define new marcro.
9448         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
9449         _sigsys.
9450         (si_call_addr, si_syscall, si_arch): Define new macro.
9451         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
9452         _sigsys.
9453         (si_call_addr, si_syscall, si_arch): Define new macro.
9454
9455 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
9456
9457         [BZ #13717]
9458         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9459         Change to 2.4.21 where previously 2.4.1.
9460         * sysdeps/unix/sysv/linux/configure: Regenerated.
9461         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
9462         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
9463         Linux kernel version.
9464         (__ASSUME_STD_AUXV): Remove.
9465         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
9466         kernel version.
9467         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
9468         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
9469         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
9470         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
9471         (__ASSUME_NETLINK_SUPPORT): Likewise.
9472         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
9473         (__no_netlink_support): Remove conditional definition.
9474         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
9475         Remove.
9476         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
9477         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
9478         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
9479         (if_nameindex_ioctl): Remove.
9480         (if_nameindex_netlink): Do not handle __no_netlink_support.
9481         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
9482         code.
9483         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
9484         Remove conditional code.
9485         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
9486         code.
9487         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
9488         unconditional.
9489         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
9490         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
9491         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
9492         Remove.
9493         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9494         [!__ASSUME_STD_AUXV]: Remove conditional code.
9495         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
9496         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
9497         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
9498         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
9499         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
9500         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
9501         code.
9502         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
9503         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9504         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
9505         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
9506         conditional code.
9507         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
9508         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
9509         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
9510         code.
9511         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9512         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
9513         conditional code.
9514         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9515         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
9516         code unconditional.
9517         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9518         conditional code.
9519         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9520         unconditional.
9521         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9522         conditional code.
9523         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9524         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9525         unconditional.
9526         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9527         conditional code.
9528         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9529         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
9530         code unconditional.
9531         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9532         conditional code.
9533         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9534         unconditional.
9535         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9536         conditional code.
9537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9538         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
9539         code unconditional.
9540         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9541         conditional code.
9542         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9543         unconditional.
9544         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9545         conditional code.
9546
9547 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
9548
9549         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
9550         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
9551         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
9552         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
9553         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
9554         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
9555         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9556         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9557         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
9558         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
9559         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
9560         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
9561         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
9562         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
9563         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9564         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
9565         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
9566         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
9567         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
9568         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
9569         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
9570         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
9571         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
9572
9573 2012-07-25  Florian Weimer  <fweimer@redhat.com>
9574
9575         * Versions.def: Add GLIBC_2.17.
9576         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
9577         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
9578         Introduce __libc_secure_getenv.
9579         * stdlib/Versions (2.17): Add secure_getenv
9580         (GLIBC_PRIVATE): Add __libc_secure_getenv.
9581         * stdlib/secure-getenv.c: Rename __secure_getenv to
9582         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
9583         symbol __secure_getenv for GLIBC_2.0.
9584         * stdlib/tst-secure-getenv.c: New.
9585         * stdlib/Makefile (tests): Add testcase.
9586         * manual/startup.texi (Environment Access): Document
9587         secure_getenv.
9588         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
9589         __libc_secure_getenv.
9590         * inet/ruserpass.c (ruserpass): Likewise.
9591         * malloc/mtrace.c (mtrace): Likewise.
9592         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
9593         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9594         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
9595         * sysdeps/posix/tempname.c: Likewise.  Evaluate
9596         HAVE_SECURE_GETENV.
9597         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
9598         __secure_getenv to __libc_secure_getenv.
9599         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
9600         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9601         Likewise.
9602         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9603         Likewise.
9604         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
9605         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
9606         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9607         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
9608         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
9609         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9610         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
9611
9612 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
9613
9614         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
9615         (struct La_i86_retval): Likewise.
9616         (struct La_x86_64_regs): Likewise.
9617         (struct La_x86_64_retval): Likewise.
9618         (struct La_x32_regs): Likewise.
9619         (struct La_x32_retval): Likewise.
9620         (struct La_ppc32_regs): Likewise.
9621         (struct La_ppc32_retval): Likewise.
9622         (struct La_ppc64_regs): Likewise.
9623         (struct La_ppc64_retval): Likewise.
9624         (struct La_sh_regs): Likewise.
9625         (struct La_sh_retval): Likewise.
9626         (struct La_s390_32_regs): Likewise.
9627         (struct La_s390_32_retval): Likewise.
9628         (struct La_s390_64_regs): Likewise.
9629         (struct La_s390_64_retval): Likewise.
9630         (struct La_sparc32_regs): Likewise.
9631         (struct La_sparc32_retval): Likewise.
9632         (struct La_sparc64_regs): Likewise.
9633         (struct La_sparc64_retval): Likewise.
9634         (struct audit_ifaces): Remove architecture-specific pltenter and
9635         pltexit members.
9636         * sysdeps/i386/ldsodefs.h: New file.
9637         * sysdeps/powerpc/ldsodefs.h: Likewise.
9638         * sysdeps/s390/ldsodefs.h: Likewise.
9639         * sysdeps/sh/ldsodefs.h: Likewise.
9640         * sysdeps/sparc/ldsodefs.h: Likewise.
9641         * sysdeps/x86_64/ldsodefs.h: Likewise.
9642
9643 2012-07-25  Marek Polacek  <polacek@redhat.com>
9644
9645         [BZ #6808]
9646         * math/libm-test.inc (yn_test): Add another test.
9647         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
9648         to ERANGE when the result is +-Inf.
9649         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
9650         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9651         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
9652         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
9653
9654 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
9655
9656         * conform/data/time.h-data (NULL): Use macro-constant.  Require
9657         equal to 0.
9658         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
9659         clock_t.
9660         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
9661
9662 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
9663
9664         * configure.in <sysdeps resolving>: Correct printing
9665         Implies_before.
9666         * configure: Regenerate.
9667
9668 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
9669
9670         * math/w_ilogb.c: Include <limits.h>.
9671         * math/w_ilogbl.c: Likewise.
9672
9673 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9674
9675         * manual/lang.texi (__va_copy): Document primarily as ISO C99
9676         va_copy.  Document allowing for unavailable va_copy only as
9677         pre-C99 compatibility.
9678         * manual/string.texi (Copying and Concatenation): Use va_copy
9679         instead of __va_copy in concat example.
9680
9681 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
9682
9683         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
9684         (__sendto): Use create_address_port.  Initialize APORT and deallocate
9685         it if not null.
9686
9687         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
9688         with O_NOLINK passed to __file_name_lookup.
9689
9690         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
9691         with O_NOLINK passed to __file_name_lookup.
9692
9693         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
9694         negative N or less than NGIDS.
9695
9696         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
9697         type to string_t.  Set ERANGE as errno and return it if NAME is not big
9698         enough.  Use memcpy instead of strncpy.
9699
9700 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9701
9702         * elf/Makefile (check-data): Remove.
9703         (localplt.data): New vpath directive.
9704         ($(objpfx)check-localplt.out): Use localplt.data from vpath
9705         instead of $(check-data).
9706         * scripts/data/localplt-generic.data: Move to ...
9707         * sysdeps/generic/localplt.data: ... here.
9708         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
9709         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
9710         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
9711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
9712         ... here.
9713         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
9714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
9715         ... here.
9716         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
9717         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
9718         ... here.
9719         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
9720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
9721         ... here.
9722         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
9723         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
9724         ... here.
9725         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
9726         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
9727         ... here.
9728
9729 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9730
9731         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
9732         PPC32 and PPC64 files.
9733         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
9734         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
9735
9736 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9737
9738         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
9739         __makecontext_ret to ...
9740         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
9741         ... here and call exit if uc_link is NULL.  New file.
9742         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
9743         __makecontext_ret.S.
9744         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
9745         __makecontext_ret to ...
9746         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
9747         ... here and call exit if uc_link is NULL.  New file.
9748         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
9749         __makecontext_ret.S.
9750
9751 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9752
9753         * elf/elf.h (R_390_IRELATIVE): New definition.
9754         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
9755         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
9756         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
9757         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
9758         (elf_machine_lazy_rel): Likewise.
9759         * sysdeps/s390/dl-irel.h: New file.
9760         * sysdeps/s390/s390-64/memcpy.S: New asm code.
9761         * sysdeps/s390/s390-64/memset.S: New asm code.
9762         * sysdeps/s390/s390-64/memcmp.S: New asm code.
9763         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
9764         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
9765         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
9766         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
9767         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
9768         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
9769         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
9770         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
9771         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
9772         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
9773         * sysdeps/s390/s390-32/memcpy.S: New asm code.
9774         * sysdeps/s390/s390-32/memset.S: New asm code.
9775         * sysdeps/s390/s390-32/memcmp.S: New asm code.
9776
9777 2012-07-17  Marek Polacek  <polacek@redhat.com>
9778
9779         [BZ #14349]
9780         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
9781         * sysdeps/s390/s390-64/configure.in: Likewise.
9782         * sysdeps/sparc/configure.in: Likewise.
9783         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
9784         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
9785         * sysdeps/i386/configure.in: Likewise.
9786         * sysdeps/x86_64/configure.in: Likewise.
9787         * sysdeps/sh/configure.in: Likewise.
9788         * sysdeps/s390/s390-32/configure: Regenerated.
9789         * sysdeps/s390/s390-64/configure: Likewise.
9790         * sysdeps/x86_64/configure: Likewise.
9791         * sysdeps/sh/configure: Likewise.
9792         * sysdeps/powerpc/powerpc64/configure: Likewise.
9793         * sysdeps/powerpc/powerpc32/configure: Likewise.
9794         * sysdeps/sparc/configure: Likwise.
9795         * sysdeps/i386/configure: Likewise.
9796
9797         * elf/dl-open.c: Comment fixes.
9798
9799 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
9800
9801         * Makefile [CXX] (check-data): Remove.
9802         [CXX] (c++-types.data): New vpath directive.
9803         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
9804         vpath.  Do not allow for C++ type data being missing.
9805         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
9806         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
9807         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
9808         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
9809         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
9810         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
9811         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
9812         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
9813         ... here.
9814         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
9815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
9816         ... here.
9817         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
9818         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
9819         ... here.
9820         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
9821         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
9822         ... here.
9823         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
9824         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
9825         ... here.
9826         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
9827         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
9828         ... here.
9829         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
9830         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
9831         ... here.
9832         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
9833         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
9834
9835         * elf/tls-macros.h (TLS_LE): Move architecture-specific
9836         definitions to architecture-specific files.
9837         (TLS_IE): Likewise.
9838         (TLS_LD): Likewise.
9839         (TLS_GD): Likewise.
9840         * sysdeps/i386/tls-macros.h: New file.
9841         * sysdeps/powerpc/tls-macros.h: Likewise.
9842         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
9843         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
9844         * sysdeps/sh/tls-macros.h: Likewise.
9845         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
9846         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
9847         * sysdeps/x86_64/tls-macros.h: Likewise.
9848
9849 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9850
9851         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
9852         zero value for regular exit case.
9853
9854         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
9855         (__start_context): Preserve zero value for regular exit case.
9856
9857 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9858             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9859
9860         * manual/setjmp.texi (setcontext): Clarify normal process
9861         termination when uc_link is the null pointer.
9862         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
9863         exit call.
9864
9865 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
9866
9867         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
9868         preprocessor.  Test for each exception mask separately.
9869
9870 2012-07-16  Andreas Jaeger  <aj@suse.de>
9871
9872         * po/ru.po: Update from translation team.
9873
9874 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
9875
9876         * conform/data/string.h-data (NULL): Use macro-constant.  Require
9877         equal to 0.
9878         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
9879         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
9880         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
9881         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
9882         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9883
9884 2012-07-13  Andreas Jaeger  <aj@suse.de>
9885
9886         * po/fr.po: Update from translation team.
9887
9888 2012-07-12  Marek Polacek  <polacek@redhat.com>
9889
9890         [BZ #14173]
9891         * math/libm-test.inc (yn_test): Add test for BZ #14173.
9892         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
9893         loop condition.
9894
9895 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
9896
9897         [BZ #13717]
9898         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9899         Change to 2.4.1 where previously 2.4.0.
9900         * sysdeps/unix/sysv/linux/configure: Regenerated.
9901         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
9902         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
9903         version.
9904         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
9905         (__ASSUME_AT_CLKTCK): Remove.
9906         (__ASSUME_AT_PAGESIZE): Likewise.
9907         (__ASSUME_AT_XID): Likewise.
9908         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
9909         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
9910         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
9911         unconditionally.
9912         (HAVE_AUX_PAGESIZE): Likewise.
9913         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
9914         [__ASSUME_AT_CLKTCK]: Make code unconditional.
9915         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
9916
9917 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
9918
9919         [BZ #14307]
9920         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
9921         the temporary buffer used to invoke __gethostbyname2_r,
9922         __gethostbyaddr_r and gethostbyname4_r to make room for struct
9923         host_data / struct gaih_addrtuple.
9924         * resolv/nss_dns/dns-host.c (global scope): Move definition of
9925         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
9926         header file nss/nsswitch.h.
9927         * nss/nsswitch.h (global scope): Add definition of implementation
9928         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
9929         resolv/nss_dns/dns-host.c).
9930
9931 2012-07-11  Andreas Jaeger  <aj@suse.de>
9932
9933         * po/fr.po: Update from translation team.
9934
9935         * po/sv.po: Update from translation team
9936         * po/fr.po: Another update from translation team.
9937
9938 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9939
9940         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
9941         for subnormals or multiply small sinh result by itself.
9942         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9943         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9944
9945 2012-07-11  David S. Miller  <davem@davemloft.net>
9946
9947         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9948
9949 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
9950
9951         [BZ #14347]
9952         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
9953         (INTERNAL_MARK): Shift it here.
9954
9955 2012-07-10  Marek Polacek  <polacek@redhat.com>
9956
9957         [BZ #14151]
9958         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
9959         libc_cv_asm_global_directive with .globl.
9960         * configure: Regenerated.
9961         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
9962         with .globl.
9963         * sysdeps/i386/configure: Regenerated.
9964         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
9965         with .globl.
9966         * sysdeps/x86_64/configure: Regenerated.
9967         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
9968         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
9969         * elf/tst-unique2mod2.c: Likewise.
9970         * elf/tst-unique2mod1.c: Likewise.
9971         * elf/tst-unique1mod2.c: Likewise.
9972         * elf/tst-unique1mod1.c: Likewise.
9973         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9974         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
9975         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9976         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
9977         * sysdeps/mach/sysdep.h: Likewise.
9978         * sysdeps/i386/sysdep.h: Likewise.
9979         * sysdeps/i386/i386-mcount.S: Likewise.
9980         * sysdeps/x86_64/_mcount.S: Likewise.
9981         * sysdeps/x86_64/sysdep.h: Likewise.
9982         * sysdeps/sh/_mcount.S: Likewise.
9983         * sysdeps/sh/sysdep.h: Likewise.
9984         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
9985         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
9986         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
9987         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9988         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
9989         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
9990         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
9991         * locale/localeinfo.h: Likewise.
9992         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
9993         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
9994
9995 2012-07-09  Roland McGrath  <roland@hack.frob.com>
9996
9997         [BZ #14336]
9998         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
9999         system".
10000         * manual/message.texi (The Uniforum approach): Likewise.
10001         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
10002         (glibc iconv Implementation): Likewise.
10003
10004 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
10005
10006         [BZ #14337]
10007         * math/s_clog.c (__clog): Avoid scaling a value down where that
10008         could result in underflow.
10009         * math/s_clog10.c (__clog10): Likewise.
10010         * math/s_clog10f.c (__clog10f): Likewise.
10011         * math/s_clog10l.c (__clog10l): Likewise.
10012         * math/s_clogf.c (__clogf): Likewise.
10013         * math/s_clogl.c (__clogl): Likewise.
10014         * math/libm-test.inc (clog_test): Add more tests.
10015         (clog10_test): Likewise.
10016         * sysdeps/i386/fpu/libm-test-ulps: Update.
10017         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10018
10019 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
10020
10021         [BZ #14283]
10022         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
10023         by 7 not 8 to examine high bit of fractional part.
10024
10025         [BZ #14042]
10026         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
10027         for call to __mcount_internal.
10028         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
10029         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
10030         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
10031
10032 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
10033
10034         [BZ #14154]
10035         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
10036         approximation for values within 0x1p-13f of an odd multiple of
10037         pi/4.
10038         * math/libm-test.inc (tan_test): Do not allow spurious underflow
10039         exception.  Add more tests.
10040         * sysdeps/i386/fpu/libm-test-ulps: Update.
10041
10042         [BZ #6778]
10043         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
10044         inputs and return -1 for them.  Do not check for +Inf in case not
10045         reachable for +Inf.
10046         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
10047         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
10048         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
10049         and return -1 for them.  Do not check for +Inf in case not
10050         reachable for +Inf.
10051         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
10052         define.
10053         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
10054         and return -1 for them.  Do not check for +Inf in case not
10055         reachable for +Inf.
10056         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
10057         spurious underflow.
10058         * sysdeps/i386/fpu/libm-test-ulps: Update.
10059         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10060
10061 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
10062
10063         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
10064
10065 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
10066
10067         [BZ #14157]
10068         [BZ #14331]
10069         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
10070         could result in spurious underflow.  Scale down values above
10071         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
10072         * math/s_csqrtf.c (__csqrtf): Likewise.
10073         * math/s_csqrtl.c (__csqrtl): Likewise.
10074         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
10075         spurious underflow.
10076         * sysdeps/i386/fpu/libm-test-ulps: Update.
10077         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10078
10079 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
10080
10081         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
10082         xopen-msg.sed.
10083         * catgets/xopen-msg.awk: New file.
10084         * catgets/xopen-msg.sed: Removed.
10085
10086         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
10087         po2text.sed.
10088         * intl/po2test.awk: New file.
10089         * intl/po2test.sed: Removed.
10090
10091 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
10092
10093         [BZ #14328]
10094         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
10095         or multiply small sinh result by itself.
10096         * math/s_ctanf.c (__ctanf): Likewise.
10097         * math/s_ctanh.c (__ctanh): Likewise.
10098         * math/s_ctanhf.c (__ctanhf): Likewise.
10099         * math/s_ctanhl.c (__ctanhl): Likewise.
10100         * math/s_ctanl.c (__ctanl): Likewise.
10101         * math/libm-test.inc (ctan_test_tonearest): New function.
10102         (ctan_test_towardzero): Likewise.
10103         (ctan_test_downward): Likewise.
10104         (ctan_test_upward): Likewise.
10105         (ctanh_test_tonearest): Likewise.
10106         (ctanh_test_towardzero): Likewise.
10107         (ctanh_test_downward): Likewise.
10108         (ctanh_test_upward): Likewise.
10109         (main): Call these new functions.
10110         * sysdeps/i386/fpu/libm-test-ulps: Update.
10111         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10112
10113 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
10114
10115         * .gitignore: Delete /ports entry.
10116
10117 2012-07-03  Andreas Jaeger  <aj@suse.de>
10118
10119         * po/bg.po: Update from translation team.
10120         * po/cs.po: Likewise.
10121         * po/de.po: Likewise.
10122         * po/hr.po: Likewise.
10123         * po/nl.pl: Likewise.
10124         * po/pl.po: Likewise.
10125         * po/vi.po: Likewise.
10126
10127 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
10128
10129         * Makeconfig [!+link] (+link-before-libc): New variable.
10130         [!+link] (+link-after-libc): Likewise.
10131         [!+link] (+link-tests): Likewise.
10132         [!+link] (+link): Define in terms of $(+link-before-libc) and
10133         $(+link-after-libc).
10134         [!+link-static] (+link-static-before-libc): New variable.
10135         [!+link-static] (+link-static-after-libc): Likewise.
10136         [!+link-static] (+link-static-tests): Likewise.
10137         [!+link-static] (+link-static): Define in terms of
10138         $(+link-static-before-libc) and $(+link-static-after-libc).
10139         [build-shared] (link-libc-before-gnulib): New variable.
10140         [build-shared] (link-libc-tests): Likewise.
10141         [build-shared] (link-libc): Define in terms of
10142         $(link-libc-before-gnulib).
10143         [!build-shared] (link-libc-tests): New variable.
10144         (link-libc-static-tests): New variable.
10145         [!gnulib] (gnulib-arch): New variable.
10146         [!gnulib] (gnulib-tests): Likewise.
10147         [!gnulib] (static-gnulib-arch): Likewise.
10148         [!gnulib] (static-gnulib-tests): Likewise.
10149         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
10150         Define with "=" instead of ":=".
10151         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
10152         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
10153         * Rules (binaries-all-notests): New variable.
10154         (binaries-all-tests): Likewise.
10155         (binaries-static-notests): Likewise.
10156         (binaries-static-tests): Likewise.
10157         (binaries-all): Define using $(binaries-all-notests) and
10158         $(binaries-all-tests).
10159         (binaries-static): Define using $(binaries-static-notests) and
10160         $(binaries-static-tests).
10161         (binaries-shared-tests): New variable.
10162         (binaries-shared-notests): Likewise.
10163         (binaries-shared): Remove variable.
10164         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
10165         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
10166         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
10167         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
10168         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
10169         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
10170         * elf/Makefile (sln-modules): New variable.
10171         (extra-objs): Add $(sln-modules:=.o).
10172         (ldconfig-modules): Add static-stubs.
10173         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
10174         * elf/static-stubs.c: New file.
10175
10176         [BZ #14283]
10177         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
10178         by 7 not 8 to examine high bit of fractional part.  Use volatile
10179         variables when splitting into final array of floats if
10180         __FLT_EVAL_METHOD__ != 0.
10181         * math/libm-test.inc (cos_test): Add another test.
10182         (sin_test): Likewise.
10183         * sysdeps/i386/fpu/libm-test-ulps: Update.
10184
10185         [BZ #14273]
10186         * math/libm-test.inc (cosh_test): Add more tests.
10187
10188         * version.h (RELEASE): Set to "development".
10189         (VERSION): Set to "2.16.90".
10190
10191 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
10192
10193         * NEWS: Update copyright. Remove last-updated date.
10194         Mention math library bug fixes and timezone data changes.
10195         * README: Mention GNU/Hurd, x32, and HPPA support status.
10196
10197 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
10198
10199         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
10200
10201 2012-06-27  Andreas Jaeger  <aj@suse.de>
10202
10203         * manual/contrib.texi (Contributors): Add Samuel Thibault.
10204
10205 2012-06-25  Andreas Jaeger  <aj@suse.de>
10206
10207         * sysdeps/s390/fpu/libm-test-ulps: Update.
10208
10209 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
10210             Thomas Schwinge  <thomas@codesourcery.com>
10211
10212         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
10213         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
10214         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
10215         fanotify_mark.
10216
10217 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
10218
10219         * sysdeps/mach/start.c: Remove file.
10220         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
10221         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
10222         * sysdeps/sh/init-first.c: Likewise.
10223
10224         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
10225         registers for frame unwinding purposes, add CFI directives.
10226         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
10227         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
10228         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10229         Likewise.
10230
10231         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
10232         __fortify_fail returning.
10233         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
10234
10235         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
10236         sysdeps/sh/____longjmp_chk.S.
10237         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
10238         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
10239         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
10240         (gen-as-const-headers): Append sigaltstack-offsets.sym.
10241
10242         * sysdeps/sh/abort-instr.h: New file.
10243         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
10244         process in case exit returns.
10245
10246         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
10247         initialize the GOT register before use.
10248
10249         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
10250         calculation of ARGC > 4.
10251
10252         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
10253         meaningful names to some local labels.
10254
10255 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10256             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10257
10258         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
10259         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
10260         (__arch_compare_and_exchange_val_16_acq): Likewise.
10261         (__arch_compare_and_exchange_val_32_acq): Likewise.
10262         (atomic_exchange_and_add): Fix gUSA sequence.
10263         (atomic_add): Likewise.
10264         (atomic_add_negative): Likewise.
10265         (atomic_add_zero): Likewise.
10266         (atomic_bit_test_set): Likewise.
10267
10268 2012-06-22  Andreas Schwab  <schwab@redhat.com>
10269
10270         [BZ #13579]
10271         * include/link.h (struct link_map): Add l_free_initfini.
10272         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
10273         l_initfini.
10274         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
10275         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
10276         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
10277         set.
10278
10279 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
10280
10281         * configure.in: Use AC_LANG_SOURCE.
10282         * configure: Regenerate.
10283
10284 2012-06-22  Roland McGrath  <roland@hack.frob.com>
10285
10286         * configure.in (libc_cv_localstatedir): New substituted variable.
10287         * configure: Regenerated.
10288         * config.make.in (localstatedir): New variable, substituted from
10289         libc_cv_localstatedir.
10290         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
10291         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
10292         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
10293         * sysdeps/gnu/configure: Regenerated.
10294
10295 2012-06-21  Jeff Law  <law@redhat.com>
10296
10297         [BZ #14277]
10298         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
10299         free.  Simplify list management for _LIBC case.
10300
10301 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
10302
10303         [BZ #14273]
10304         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
10305         Clear sign bit of 64-bit integer value before comparing against
10306         overflow value.
10307
10308         * sysdeps/mach/configure: Regenerated.
10309
10310 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10311
10312         [BZ #14278]
10313         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
10314
10315 2012-06-21  Jeff Law  <law@redhat.com>
10316
10317         [BZ #13882]
10318         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
10319         uint16_t for elements in the "seen" array to avoid char overflows.
10320         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10321         * elf/dl-open.c (dl_open_worker): Likewise.
10322
10323 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
10324
10325         * scripts/list-sources.sh: Scan PORTS for translations.
10326         * po/libc.pot: Regenerated.
10327
10328 2012-06-21  Andreas Jaeger  <aj@suse.de>
10329
10330         [BZ #12194]
10331         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
10332         warning.
10333         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
10334         * bits/byteswap-16.h (__bswap_16): Likewise.
10335         * bits/byteswap.h (__bswap_constant_16): Likewise.
10336
10337 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10338
10339         [BZ #14117]
10340         * sysdeps/i386/fpu_control.h: Removed.
10341         * sysdeps/x86_64/fpu_control.h: Moved to ...
10342         * sysdeps/x86/fpu_control.h: Here.
10343
10344         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
10345         (_FPU_SETCW): Likewise.
10346
10347 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
10348
10349         [BZ #14117]
10350         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
10351         * sysdeps/x86/fpu/bits/mathinline.h: This.
10352         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
10353
10354         [BZ #14050]
10355         [BZ #14117]
10356         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
10357         functions if __x86_64__ is defined.
10358
10359 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
10360
10361         * string/endian.h: Add !__ASSEMBLER__ condition for including
10362         conversion interfaces.
10363
10364 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
10365
10366         [BZ #14241]
10367         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
10368         of ABS(x) in calculating zero to negative powers other than odd
10369         integers.
10370         * math/libm-test.inc (pow_test): Add more tests.
10371
10372 2012-06-15  Andreas Jaeger  <aj@suse.de>
10373
10374         * manual/contrib.texi (Contributors): Update entry of Liubov
10375         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
10376         Machado Filho.
10377
10378 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
10379
10380         * string/string.h: Add __wur to GNU version of strerror_r.
10381
10382 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10383
10384         [BZ #14229]
10385         * string/Makefile (tests): Add tst-strtok_r.
10386         * string/tst-strtok_r.c: New file.
10387         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
10388         RAX_LP/RDX_LP on SAVE_PTR.
10389
10390 2012-06-14  Roland McGrath  <roland@hack.frob.com>
10391
10392         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
10393
10394 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
10395
10396         * libm_test.inc (csqrt_test): Allow more spurious underflow
10397         exceptions.
10398         (j0_test): Likewise.
10399         (j1_test): Likewise.
10400         (y0_test): Likewise.
10401         (y1_test): Likewise.
10402
10403 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
10404
10405         * po/Makefile (libc.pot): Use UTF-8 charset.
10406
10407 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
10408
10409         [BZ #14210]
10410         Suppress sign-conversion warning from FD_SET.
10411         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
10412         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
10413         not unsigned long int.
10414         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
10415
10416 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
10417
10418         [BZ #14050]
10419         [BZ #14117]
10420         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
10421         __extern_always_inline instead of __extern_inline.
10422         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
10423         (__signbit): Likewise.
10424         (__signbitl): Support C++ namespace.
10425         (lrintf): New inline function.
10426         (lrint): Likewise.
10427         (llrintf): Likewise.
10428         (llrint): Likewise.
10429         (fmaxf): Likewise.
10430         (fmax): Likewise.
10431         (fminf): Likewise.
10432         (fmin): Likewise.
10433         (rint): Likewise.
10434         (rintf): Likewise.
10435         (ceil): Likewise.
10436         (ceilf): Likewise.
10437         (floor): Likewise.
10438         (floorf): Likewise.
10439         (nearbyint): Likewise.
10440         (nearbyintf): Likewise.
10441
10442 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
10443
10444         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
10445         non-default versions.
10446
10447 2012-06-11  Roland McGrath  <roland@hack.frob.com>
10448
10449         [BZ #14218]
10450         * manual/argp.texi (Argp): Reword argp_parse description slightly.
10451
10452 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
10453
10454         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
10455         (FE_UPWARD, FE_DOWNWARD): Don't define.
10456         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
10457         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
10458
10459         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
10460         reading it.
10461         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
10462         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10463
10464 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10465
10466         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10467         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
10468         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
10469         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
10470
10471 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
10472
10473         [BZ #14117]
10474         * sysdeps/i386/fpu/bits/fenv.h: Removed.
10475         * sysdeps/i386/fpu/Implies: New file.
10476         * sysdeps/x86_64/fpu/Implies: Likewise.
10477         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
10478         * sysdeps/x86/fpu/bits/fenv.h: This.
10479
10480         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
10481         __SSE_MATH__.
10482
10483 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10484
10485         [BZ #14134]
10486         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
10487         character 0xffff that matches the last element of the
10488         conversion table.
10489
10490 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10491
10492         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
10493         fmodl commit.
10494
10495 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10496
10497         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
10498         values higher than 25.6283.
10499
10500 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10501
10502         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
10503         subnormal exponent extraction and add some __builtin_expect.
10504         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
10505         Fix for subnormal mantissa calculation.
10506
10507 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
10508
10509         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
10510         cpu2 is -1 and errno is not ENOSYS.
10511
10512 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10513
10514         [BZ #14117]
10515         * sysdeps/i386/i486/bits/string.h: Renamed to ...
10516         * sysdeps/x86/bits/string.h: This.
10517         * sysdeps/x86_64/bits/string.h: Removed.
10518
10519         * sysdeps/i386/i486/bits/string.h: Define inline functions only
10520         if not compiling for x86-64, but compiling for >= i486.
10521
10522         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
10523         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
10524
10525         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
10526         New macro from Linux kernel 3.4.0.
10527         (FP_XSTATE_MAGIC2): Likewise.
10528         (FP_XSTATE_MAGIC2_SIZE): Likewise.
10529         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
10530         (struct _fpx_sw_bytes): New struct.
10531         (struct _xsave_hdr): Likewise.
10532         (struct _ymmh_state): Likewise.
10533         (struct _xstate): Likewise.
10534
10535         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
10536         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
10537         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
10538         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
10539         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
10540         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
10541
10542         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
10543         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
10544         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
10545         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
10546         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
10547         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
10548
10549 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10550
10551         [BZ #13743]
10552         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
10553         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
10554         (sysdep_headers): Include sys/platform/ppc.h.
10555         * sysdeps/powerpc/test-gettimebase.c: Test for
10556         __ppc_get_timebase() to catch future ISA opcode/insn changes.
10557         * manual/Makefile (appendices): Include platform.texi.
10558         * manual/contrib.texi (Contributors): Update @node pointers.
10559         * manual/maint.texi (Maintenance): Likewise.
10560         (Platform): New node.
10561         * manual/platform.texi: New file.  Document the new features.
10562
10563 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10564             Jakub Jelinek  <jakub@redhat.com>
10565
10566         [BZ #14188]
10567         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
10568         where __builtin_expect is unavailable.
10569
10570 2012-06-03  David S. Miller  <davem@davemloft.net>
10571
10572         * stdlib/longlong.h: Updated from GCC.
10573
10574 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
10575
10576         [BZ #14042]
10577         * sysdeps/powerpc/powerpc32/mcount.c: New file.
10578         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
10579         __mcount_internal.
10580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
10581         (GLIBC_2.16): Likewise.
10582
10583 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
10584
10585         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
10586
10587 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
10588
10589         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
10590         (default-abi): New variable.
10591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
10592         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
10593         variable.
10594         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
10595         Likewise.
10596         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
10597         Likewise.
10598         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
10599         Likewise.
10600
10601         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
10602         definition.  Document in comment.
10603
10604 2012-06-01  David S. Miller  <davem@davemloft.net>
10605
10606         * stdlib/longlong.h: Updated from GCC.
10607
10608 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
10609
10610         [BZ #14117]
10611         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
10612         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
10613         sys/debugreg.h sys/io.h here.
10614         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
10615         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
10616         sys/io.h.
10617         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
10618         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
10619         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
10620         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
10621         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
10622         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
10623
10624         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
10625         Define only if __x86_64__ is defined.
10626
10627 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
10628
10629         [BZ #14048]
10630         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
10631         Use int64_t for variable i.
10632         * math/libm-test.inc (fmod_test): Add more tests.
10633
10634         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
10635         z computation is not scheduled after fetestexcept.
10636         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
10637         Use math_force_eval instead of asm to ensure calculation scheduled
10638         before exception test.
10639         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
10640         Ensure a1 + u.d computation is not scheduled after fetestexcept.
10641
10642 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
10643
10644         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
10645         computation is not scheduled after fetestexcept.
10646
10647 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
10648
10649         [BZ #14117]
10650         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
10651         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
10652
10653 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10654
10655         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
10656         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10657
10658 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10659
10660         [BZ #14117]
10661         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
10662         <bits/wordsize.h>.
10663         (__WCHAR_MIN): Support __WORDSIZE == 64.
10664         (__WCHAR_MAX): Likewise.
10665
10666         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
10667         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
10668
10669         [BZ #14183]
10670         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
10671         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
10672
10673         [BZ #14117]
10674         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
10675         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
10676
10677         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
10678         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
10679
10680         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
10681         Defined to 1 if __x86_64__ isn't defined.
10682         (_STAT_VER_LINUX_OLD): New.
10683         (st_atime): Remove duplicate.
10684         (st_mtime): Likewise.
10685         (st_ctime): Likewise.
10686
10687 2012-05-31  David S. Miller  <davem@davemloft.net>
10688
10689         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
10690         entries.
10691
10692 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
10693
10694         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
10695         gen-libm-test.pl.
10696
10697         [BZ #14132]
10698         * elf/dl-reloc.c: Include <_itoa.h>.
10699         (_dl_reloc_bad_type): Remove use of INTUSE.
10700         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
10701         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
10702         * stdio-common/psiginfo.c (psiginfo): Likewise.
10703         * stdio-common/psignal.c (psignal): Likewise.
10704         * string/strsignal.c (strsignal): Likewise.
10705         * include/signal.h (_sys_siglist): Declare hidden proto.
10706         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
10707         INTVARDEF with libc_hidden_data_def.
10708         * stdio-common/itoa-udigits.c: Likewise.
10709         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
10710         (_itoa_lower_digits_internal): Remove declaration.
10711         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
10712         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
10713         (_sys_sigabbrev_internal): Remove aliases.
10714         (_sys_siglist): Define hidden alias.
10715
10716 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
10717
10718         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10719         bits/sysctl.h.
10720
10721 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10722
10723         [BZ #14117]
10724         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
10725         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
10726
10727         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
10728         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
10729         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
10730         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
10731         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
10732         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
10733
10734         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
10735         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
10736         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
10737
10738         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
10739         with __addr.
10740         (insw): Likewise.
10741         (insl): Likewise.
10742         (outsb): Likewise.
10743         (outsw): Likewise.
10744         (outsl): Likewise.
10745
10746         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
10747         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
10748         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
10749
10750         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
10751         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
10752         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
10753         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
10754         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
10755         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
10756
10757         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
10758         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
10759
10760         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
10761         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
10762
10763         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
10764         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
10765         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
10766
10767         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
10768         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
10769         to ...
10770         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
10771
10772         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
10773         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
10774         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
10775
10776         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
10777         for x86-64.
10778         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
10779
10780 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
10781
10782         * math/math.h (M_El): Use two more decimal places.
10783         (M_LOG2El): Likewise.
10784         (M_LOG10El): Likewise.
10785         (M_LN2l): Likewise.
10786         (M_LN10l): Likewise.
10787         (M_PIl): Likewise.
10788         (M_PI_2l): Likewise.
10789         (M_PI_4l): Likewise.
10790         (M_1_PIl): Likewise.
10791         (M_2_PIl): Likewise.
10792         (M_2_SQRTPIl): Likewise.
10793         (M_SQRT2l): Likewise.
10794         (M_SQRT1_2l): Likewise.
10795
10796 2012-05-31  David S. Miller  <davem@davemloft.net>
10797
10798         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
10799         values between float registers.
10800         * sysdeps/sparc/sparc64/memset.S: Likewise.
10801         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10802
10803 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
10804
10805         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
10806         -D_FORTIFY_SOURCE=1.
10807         (CPPFLAGS-tst-longjmp_chk.c): Define.
10808         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
10809         (CPPFLAGS-tst-longjmp_chk2.c): Define.
10810         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
10811         CFLAGS-tst-wchar-h.c.
10812
10813 2012-05-31  Marek Polacek  <polacek@redhat.com>
10814
10815         [BZ #14132]
10816         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
10817         __endmntent_internal): Remove declaration.
10818         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
10819         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
10820         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
10821
10822 2012-05-30  David S. Miller  <davem@davemloft.net>
10823
10824         * sysdeps/sparc/sparc32/soft-fp/q_util.c
10825         (___Q_simulate_exceptions): Use real FP ops rather than writing
10826         into the %fsr.
10827         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
10828         Likewise.
10829
10830 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10831
10832         [BZ #14117]
10833         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
10834         * sysdeps/x86/bits/xtitypes.h: This.
10835
10836         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
10837         * sysdeps/x86/bits/wordsize.h: This.
10838
10839         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
10840         * sysdeps/x86/bits/huge_vall.h: This.
10841
10842         * sysdeps/i386/bits/select.h: Removed.
10843         * sysdeps/x86_64/bits/select.h: Renamed to ...
10844         * sysdeps/x86/bits/select.h: This.
10845
10846         * sysdeps/i386/bits/setjmp.h: Removed.
10847         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
10848         * sysdeps/x86/bits/setjmp.h: This.
10849
10850         * sysdeps/i386/bits/mathdef.h: Removed.
10851         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
10852         * sysdeps/x86/bits/mathdef.h: This.
10853
10854 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
10855
10856         [BZ #14132]
10857         * include/sys/socket.h (__connect_internal)
10858         (__libc_sa_len_internal): Remove declaration.
10859         (__connect, __libc_sa_len): Declare hidden_proto.
10860         (SA_LEN): Remove use of INTUSE.
10861         * socket/connect.c: Add libc_hidden_def.
10862         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
10863         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
10864         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
10865         alias.
10866         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10867         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10868         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
10869         of adding _internal alias.
10870
10871 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10872
10873         [BZ #14117]
10874         * sysdeps/i386/bits/link.h: Removed.
10875         * sysdeps/i386/bits/linkmap.h: Likewise.
10876         * sysdeps/x86_64/bits/link.h: Renamed to ...
10877         * sysdeps/x86/bits/link.h: This.
10878         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
10879         * sysdeps/x86/bits/linkmap.h: This.
10880
10881         * sysdeps/i386/bits/endian.h: Removed.
10882         * sysdeps/x86_64/bits/endian.h: Renamed to ...
10883         * sysdeps/x86/bits/endian.h: This.
10884
10885         * sysdeps/i386/bits/byteswap.h: Removed.
10886         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10887         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
10888         * sysdeps/x86/bits/byteswap.h: This.
10889         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
10890         * sysdeps/x86/bits/byteswap-16.h: This.
10891         * sysdeps/i386/Implies: Add x86.
10892         * sysdeps/x86_64/Implies: Likewise.
10893
10894 2012-05-30  David S. Miller  <davem@davemloft.net>
10895
10896         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
10897         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
10898         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
10899         (FP_TRAPPING_EXCEPTIONS): Define.
10900         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
10901         (FP_TRAPPING_EXCEPTIONS): Define.
10902         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
10903         subnormals only when inexact has been signalled or underflow
10904         exceptions are enabled.
10905         (_FP_PACK_CANONICAL): Likewise.
10906
10907 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10908
10909         [BZ #14183]
10910         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
10911         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
10912
10913 2012-05-30  Richard Henderson  <rth@twiddle.net>
10914
10915         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
10916         with #ifndef NOT_IN_libc.
10917
10918         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
10919         marked to avoid plt entry.
10920
10921 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10922
10923         [BZ #14112]
10924         * Makeconfig (default-abi): New macro.
10925         (abi-includes): Likewise.
10926         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
10927         $(abi-$(default-abi)-lib-soname) for soname if defined.
10928         ($(common-objpfx)gnu/lib-names.stmp): Generate from
10929         abi-variants.
10930         * Makefile (installed-stubs): Likewise.
10931         * include/stubs-biarch.h: Removed.
10932         * scripts/lib-names.awk: Only handle one library at a time.
10933         * scripts/soversions.awk: Remove WORDSIZE support.
10934         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
10935         entries.
10936         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
10937         Removed.
10938         (syscall-list-default-condition): Likewise.
10939         (syscall-list-default-condition): Likewise.
10940         (syscall-list-includes): Likewise.
10941         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
10942         syscall-list-* with abi-*.  Handle undefined abi-variants.
10943         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
10944         * sysdeps/unix/sysv/linux/i386/Implies: New file.
10945         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
10946         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
10947         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
10948         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
10949         Removed.
10950         (syscall-list-32-options): Likewise.
10951         (syscall-list-32-condition): Likewise.
10952         (syscall-list-64-options): Likewise.
10953         (syscall-list-64-condition): Likewise.
10954         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
10955         macro.
10956         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
10957         Renamed to ...
10958         (abi-*): This.
10959         (abi-64-ld-soname): New macro.
10960         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
10961         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
10962         Renamed to ...
10963         (abi-*): This.
10964         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
10965         * sysdeps/x86_64/x32/shlib-versions: Likewise.
10966
10967 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
10968
10969         * sysdeps/unix/sysv/linux/kernel-features.h
10970         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
10971         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
10972         include <kernel-features.h>.
10973         [!__NR_ftruncate64]: Remove conditional code.
10974         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10975         [__NR_ftruncate64]: Make code unconditional.
10976         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10977         * sysdeps/unix/sysv/linux/truncate64.c: Do not
10978         include <kernel-features.h>.
10979         [!__NR_ftruncate64]: Remove conditional code.
10980         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10981         [__NR_ftruncate64]: Make code unconditional.
10982         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10983         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
10984         include <kernel-features.h>.
10985         [!__NR_ftruncate64]: Remove conditional code.
10986         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10987         [__NR_ftruncate64]: Make code unconditional.
10988         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10989         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
10990         include <kernel-features.h>.
10991         [!__NR_ftruncate64]: Remove conditional code.
10992         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10993         [__NR_ftruncate64]: Make code unconditional.
10994         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10995
10996         * configure.in (libc_cv_fpie): Weaken to a compile test using
10997         LIBC_TRY_CC_OPTION.
10998         * configure: Regenerated.
10999
11000 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11001
11002         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
11003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
11004         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
11005         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
11006         Refreshed.
11007         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
11008         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
11009         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
11010         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
11011         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
11012         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
11013         Refreshed.
11014
11015 2012-05-27  David S. Miller  <davem@davemloft.net>
11016
11017         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
11018         (___Q_zero): New.
11019         (__Q_simulate_exceptions): Return void.  Change to simulate
11020         exceptions by writing into the %fsr.
11021         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
11022         (__Qp_handle_exceptions): Likewise.
11023         (numbers): Delete.
11024         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
11025         __Qp_handle_exceptions.
11026         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
11027         __Qp_handle_exceptions.
11028         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
11029         as unused and give dummy FP_RND_NEAREST initializer.
11030         (FP_INHIBIT_RESULTS): Define.
11031         (___Q_simulate_exceptions): Update declaration.
11032         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
11033         formatting.
11034         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
11035         as unused and give dummy FP_RND_NEAREST initializer.
11036         (__Qp_handle_exceptions): Update declaration.
11037         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
11038         formatting.
11039
11040 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
11041
11042         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
11043         the temporary FPU control word.
11044         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
11045         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
11046         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
11047         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
11048         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
11049         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
11050         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
11051         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
11052         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
11053         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
11054         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
11055
11056 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
11057
11058         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
11059         fields.
11060
11061 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
11062
11063         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
11064         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
11065         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
11066         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
11067         Likewise.
11068         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
11069         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
11070         Likewise.
11071
11072 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
11073
11074         * po/h.po: Update from translation team.
11075
11076 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
11077
11078         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
11079
11080         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
11081         handling of denormals.
11082         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
11083         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
11084         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
11085         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
11086         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
11087         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
11088         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
11089         Likewise.
11090
11091 2012-05-26  Marek Polacek  <polacek@redhat.com>
11092
11093         [BZ #14152]
11094         * math/libm-test.inc (fma_test): Don't always expect underflow
11095         exception.
11096
11097 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
11098
11099         [BZ #12416]
11100         * elf/tst-execstack.c: Include stackinfo.h.
11101         (do_test): Adjust test case to ensure that pthread_getattr_np
11102         behaviour remains the same after marking stack executable.
11103
11104 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
11105
11106         * sysdeps/unix/sysv/linux/kernel-features.h
11107         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
11108         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
11109         kernel-features.h.
11110         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
11111         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
11112         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
11113         kernel-features.h.
11114         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
11115         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
11116
11117 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
11118
11119         * configure.in: Define the default includes to being none.
11120         * configure: Regenerated.
11121
11122 2012-05-25  Roland McGrath  <roland@hack.frob.com>
11123
11124         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
11125         * sysdeps/x86_64/setjmp.S: Likewise.
11126         * sysdeps/i386/bsd-setjmp.S: Likewise.
11127         * sysdeps/i386/bsd-_setjmp.S: Likewise.
11128         * sysdeps/i386/setjmp.S: Likewise.
11129         * sysdeps/i386/__longjmp.S: Likewise.
11130         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
11131         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
11132
11133         * include/stap-probe.h: New file.
11134         * configure.in: Handle --enable-systemtap.
11135         * configure: Regenerated.
11136         * config.h.in (USE_STAP_PROBE): New #undef.
11137         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
11138         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
11139         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
11140
11141 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
11142
11143         [BZ #13717]
11144         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
11145         to 2.4.0 where earlier.
11146         * sysdeps/unix/sysv/linux/configure: Regenerated.
11147         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
11148         <kernel-features.h>.
11149         [__ASSUME_32BITUIDS]: Make code unconditional.
11150         [!__ASSUME_32BITUIDS]: Remove conditional code.
11151         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
11152         <kernel-features.h>.
11153         [__ASSUME_32BITUIDS]: Make code unconditional.
11154         [!__ASSUME_32BITUIDS]: Remove conditional code.
11155         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
11156         [__ASSUME_32BITUIDS]: Make code unconditional.
11157         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
11158         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
11159         <kernel-features.h>.
11160         [__ASSUME_32BITUIDS]: Make code unconditional.
11161         [!__ASSUME_32BITUIDS]: Remove conditional code.
11162         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
11163         <kernel-features.h>.
11164         [__ASSUME_32BITUIDS]: Make code unconditional.
11165         [!__ASSUME_32BITUIDS]: Remove conditional code.
11166         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
11167         <kernel-features.h>.
11168         [__ASSUME_32BITUIDS]: Make code unconditional.
11169         [!__ASSUME_32BITUIDS]: Remove conditional code.
11170         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
11171         <kernel-features.h>.
11172         [__ASSUME_32BITUIDS]: Make code unconditional.
11173         [!__ASSUME_32BITUIDS]: Remove conditional code.
11174         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
11175         <kernel-features.h>.
11176         [__ASSUME_32BITUIDS]: Make code unconditional.
11177         [!__ASSUME_32BITUIDS]: Remove conditional code.
11178         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
11179         <kernel-features.h>.
11180         [__ASSUME_32BITUIDS]: Make code unconditional.
11181         [!__ASSUME_32BITUIDS]: Remove conditional code.
11182         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
11183         <kernel-features.h>.
11184         [__ASSUME_32BITUIDS]: Make code unconditional.
11185         [!__ASSUME_32BITUIDS]: Remove conditional code.
11186         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
11187         <kernel-features.h>.
11188         [__ASSUME_32BITUIDS]: Make code unconditional.
11189         [!__ASSUME_32BITUIDS]: Remove conditional code.
11190         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
11191         <kernel-features.h>.
11192         [__ASSUME_32BITUIDS]: Make code unconditional.
11193         [!__ASSUME_32BITUIDS]: Remove conditional code.
11194         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
11195         <kernel-features.h>.
11196         [__ASSUME_32BITUIDS]: Make code unconditional.
11197         [!__ASSUME_32BITUIDS]: Remove conditional code.
11198         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
11199         <kernel-features.h>.
11200         [__NR_setresgid] (__setresgid): Do not declare.
11201         [__ASSUME_32BITUIDS]: Make code unconditional.
11202         [!__ASSUME_32BITUIDS]: Remove conditional code.
11203         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
11204         <kernel-features.h>.
11205         [__NR_setresuid] (__setresuid): Do not declare.
11206         [__ASSUME_32BITUIDS]: Make code unconditional.
11207         [!__ASSUME_32BITUIDS]: Remove conditional code.
11208         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
11209         <kernel-features.h>.
11210         [__ASSUME_32BITUIDS]: Make code unconditional.
11211         [!__ASSUME_32BITUIDS]: Remove conditional code.
11212         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
11213         <kernel-features.h>.
11214         [__ASSUME_32BITUIDS]: Make code unconditional.
11215         [!__ASSUME_32BITUIDS]: Remove conditional code.
11216         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
11217         <kernel-features.h>.
11218         [__ASSUME_32BITUIDS]: Make code unconditional.
11219         [!__ASSUME_32BITUIDS]: Remove conditional code.
11220         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
11221         <kernel-features.h>.
11222         [__ASSUME_32BITUIDS]: Make code unconditional.
11223         [!__ASSUME_32BITUIDS]: Remove conditional code.
11224         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
11225         <kernel-features.h>.
11226         [__ASSUME_32BITUIDS]: Make code unconditional.
11227         [!__ASSUME_32BITUIDS]: Remove conditional code.
11228         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
11229         <kernel-features.h>.
11230         [__ASSUME_32BITUIDS]: Make code unconditional.
11231         [!__ASSUME_32BITUIDS]: Remove conditional code.
11232         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
11233         <kernel-features.h>.
11234         [__ASSUME_32BITUIDS]: Make code unconditional.
11235         [!__ASSUME_32BITUIDS]: Remove conditional code.
11236         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
11237         <kernel-features.h>.
11238         [__ASSUME_32BITUIDS]: Make code unconditional.
11239         [!__ASSUME_32BITUIDS]: Remove conditional code.
11240         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
11241         <kernel-features.h>.
11242         [__ASSUME_32BITUIDS]: Make code unconditional.
11243         [!__ASSUME_32BITUIDS]: Remove conditional code.
11244         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
11245         <kernel-features.h>.
11246         [__ASSUME_32BITUIDS]: Make code unconditional.
11247         [!__ASSUME_32BITUIDS]: Remove conditional code.
11248         * sysdeps/unix/sysv/linux/kernel-features.h
11249         (__ASSUME_SETRESUID_SYSCALL): Remove.
11250         (__ASSUME_SETRESGID_SYSCALL): Likewise.
11251         (__ASSUME_32BITUIDS): Likewise.
11252         (__ASSUME_LDT_WORKS): Likewise.
11253         (__ASSUME_O_DIRECTORY): Likewise.
11254         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
11255         architecture but not kernel version.
11256         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
11257         (__ASSUME_MMAP2_SYSCALL): Likewise.
11258         (__ASSUME_STAT64_SYSCALL): Likewise.
11259         (__ASSUME_IPC64): Likewise.
11260         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
11261         <kernel-features.h>.
11262         [__ASSUME_32BITUIDS]: Make code unconditional.
11263         [!__ASSUME_32BITUIDS]: Remove conditional code.
11264         * sysdeps/unix/sysv/linux/opendir.c: Do not include
11265         <kernel-features.h>.
11266         [__ASSUME_O_DIRECTORY]: Make code unconditional.
11267         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
11268         132096]: Remove conditional code.
11269         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
11270         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
11271         <kernel-features.h>.
11272         [__ASSUME_32BITUIDS]: Make code unconditional.
11273         [!__ASSUME_32BITUIDS]: Remove conditional code.
11274         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
11275         <kernel-features.h>.
11276         [__ASSUME_32BITUIDS]: Make code unconditional.
11277         [!__ASSUME_32BITUIDS]: Remove conditional code.
11278         * sysdeps/unix/sysv/linux/setegid.c: Do not include
11279         <kernel-features.h>.
11280         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
11281         unconditional.
11282         (__setresgid): Do not declare.
11283         [__ASSUME_32BITUIDS]: Make code unconditional.
11284         [!__ASSUME_32BITUIDS]: Remove conditional code.
11285         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
11286         <kernel-features.h>.
11287         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
11288         unconditional.
11289         (__setresuid): Do not declare.
11290         [__ASSUME_32BITUIDS]: Make code unconditional.
11291         [!__ASSUME_32BITUIDS]: Remove conditional code.
11292         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
11293         <kernel-features.h>.
11294         [__ASSUME_32BITUIDS]: Make code unconditional.
11295         [!__ASSUME_32BITUIDS]: Remove conditional code.
11296         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
11297         <kernel-features.h>.
11298         [__ASSUME_32BITUIDS]: Make code unconditional.
11299         [!__ASSUME_32BITUIDS]: Remove conditional code.
11300
11301 2012-05-25  Richard Henderson  <rth@twiddle.net>
11302
11303         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
11304         dl_hwcap to ifunc resolver.
11305         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
11306         elf_ifunc_invoke.
11307         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
11308         dl_hwcap to ifunc resolver.
11309         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
11310
11311 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
11312
11313         [BZ #14153]
11314         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
11315         for |x| <= 2**-26, not 2**-57.
11316         * math/libm-test.inc (acos_test): Do not allow spurious underflow
11317         exception.
11318
11319 2012-05-24  Jeff Law  <law@redhat.com>
11320
11321         * stdio-common/Makefile (tests): Add bug25.
11322         * stdio-common/bug25.c: New test.
11323
11324 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11325
11326         [BZ #13576]
11327         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
11328         multiple of MALLOC_ALIGNMENT in size.
11329         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
11330
11331 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
11332
11333         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
11334         Require >= 256.
11335         (FILENAME_MAX): Use macro-int-constant.
11336         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
11337         (_IOFBF): Use macro-int-constant.
11338         (_IOLBF): Likewise.
11339         (_IONBF): Likewise.
11340         (SEEK_CUR): Likewise.
11341         (SEEK_END): Likewise.
11342         (SEEK_SET): Likewise.
11343         (TMP_MAX): Likewise.
11344         (EOF): Use macro-int-constant.  Require < 0.
11345         (NULL): Use macro-constant.  Require == 0.
11346         (stdin): Require type to be FILE *.
11347         (stdout): Likewise.
11348         (stderr): Likewise.
11349         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
11350         macro-int-constant.
11351         (EXIT_SUCCESS): Likewise.
11352         (NULL): Use macro-constant.  Require == 0.
11353         (RAND_MAX): Use macro-int-constant.
11354         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
11355         [C99-based standards] (strtof): Require function.
11356         [C99-based standards] (strtold): Likewise.
11357         [C99-based standards] (strtoll): Likewise.
11358         [C99-based standards] (strtoull): Likewise.
11359         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11360         [ISO || ISO99 || ISO11] (limits.h): Likewise.
11361         [ISO || ISO99 || ISO11] (math.h): Likewise.
11362         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
11363         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11364         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11365
11366 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
11367
11368         [BZ #14132]
11369         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
11370         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
11371         * intl/dgettext.c (DCGETTEXT): Likewise.
11372         * intl/gettext.c (DCGETTEXT): Likewise.
11373         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
11374         * posix/regex_internal.h (gettext): Likewise.
11375         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
11376         Remove declaration.
11377         * include/argz.h (__argz_count_internal)
11378         (__argz_stringify_internal): Remove declaration.
11379         (__argz_count, __argz_stringify): Declare hidden proto.
11380         * intl/dcgettext.c: Remove use of INTDEF.
11381         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
11382         * string/argz-stringify.c: Likewise.
11383         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
11384         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
11385         Declare hidden proto.
11386         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
11387         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
11388         Declare hidden proto.
11389         * include/stdio.h (__asprintf_internal): Don't declare.
11390         (__asprintf): Don't define as macro.  Declare hidden proto.
11391         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
11392         (__fsetlocking): Declare hidden proto.
11393         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
11394         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
11395         hidden proto.
11396         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
11397         (_IO_setlinebuf): Remove use of INTUSE.
11398         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
11399         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
11400         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
11401         Remove declaration.
11402         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
11403         (_IO_do_flush): Remove use of INTUSE.
11404         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
11405         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
11406         (_IO_adjust_column, _IO_least_wmarker)
11407         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
11408         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
11409         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
11410         (_IO_default_doallocate, _IO_wdefault_doallocate)
11411         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
11412         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
11413         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
11414         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
11415         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
11416         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
11417         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
11418         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
11419         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
11420         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
11421         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
11422         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
11423         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
11424         proto.
11425         (_IO_flush_all_internal, _IO_adjust_column_internal)
11426         (_IO_default_uflow_internal, _IO_default_finish_internal)
11427         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
11428         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
11429         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
11430         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
11431         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
11432         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
11433         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
11434         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
11435         (_IO_file_close_internal, _IO_file_close_it_internal)
11436         (_IO_file_underflow_internal, _IO_file_overflow_internal)
11437         (_IO_file_init_internal, _IO_file_attach_internal)
11438         (_IO_file_fopen_internal, _IO_file_read_internal)
11439         (_IO_file_sync_internal, _IO_file_seek_internal)
11440         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
11441         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
11442         (_IO_str_underflow_internal, _IO_str_overflow_internal)
11443         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
11444         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
11445         (_IO_list_all_internal, _IO_link_in_internal)
11446         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
11447         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
11448         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
11449         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
11450         (_IO_do_write_internal, _IO_padn_internal)
11451         (_IO_getline_info_internal, _IO_getline_internal)
11452         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
11453         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
11454         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
11455         (_IO_vfscanf_internal, _IO_vfprintf_internal)
11456         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
11457         (_IO_init_internal, _IO_un_link_internal): Don't declare.
11458         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
11459         with libc_hidden_ver, remove use of INTUSE.
11460         * libio/genops.c: Likewise.
11461         * libio/freopen.c: Likewise.
11462         * libio/freopen64.c: Likewise.
11463         * libio/iofclose.c: Likewise.
11464         * libio/iofdopen.c: Likewise.
11465         * libio/iofflush.c: Likewise.
11466         * libio/iofflush_u.c: Likewise.
11467         * libio/iofgets.c: Likewise.
11468         * libio/iofgets_u.c: Likewise.
11469         * libio/iofopen.c: Likewise.
11470         * libio/iofopncook.c: Likewise.
11471         * libio/iofread.c: Likewise.
11472         * libio/iofread_u.c: Likewise.
11473         * libio/ioftell.c: Likewise.
11474         * libio/iofwrite.c: Likewise.
11475         * libio/iogetline.c: Likewise.
11476         * libio/iogets.c: Likewise.
11477         * libio/iogetwline.c: Likewise.
11478         * libio/iopadn.c: Likewise.
11479         * libio/iopopen.c: Likewise.
11480         * libio/ioseekoff.c: Likewise.
11481         * libio/ioseekpos.c: Likewise.
11482         * libio/iosetbuffer.c: Likewise.
11483         * libio/iosetvbuf.c: Likewise.
11484         * libio/ioungetc.c: Likewise.
11485         * libio/ioungetwc.c: Likewise.
11486         * libio/iovdprintf.c: Likewise.
11487         * libio/iovsprintf.c: Likewise.
11488         * libio/iovsscanf.c: Likewise.
11489         * libio/memstream.c: Likewise.
11490         * libio/obprintf.c: Likewise.
11491         * libio/oldfileops.c: Likewise.
11492         * libio/oldiofclose.c: Likewise.
11493         * libio/oldiofdopen.c: Likewise.
11494         * libio/oldiofopen.c: Likewise.
11495         * libio/oldiopopen.c: Likewise.
11496         * libio/oldstdfiles.c: Likewise.
11497         * libio/putc.c: Likewise.
11498         * libio/setbuf.c: Likewise.
11499         * libio/setlinebuf.c: Likewise.
11500         * libio/stdfiles.c: Likewise.
11501         * libio/strops.c: Likewise.
11502         * libio/vasprintf.c: Likewise.
11503         * libio/vscanf.c: Likewise.
11504         * libio/vsnprintf.c: Likewise.
11505         * libio/vswprintf.c: Likewise.
11506         * libio/wfiledoalloc.c: Likewise.
11507         * libio/wfileops.c: Likewise.
11508         * libio/wgenops.c: Likewise.
11509         * libio/wmemstream.c: Likewise.
11510         * libio/wstrops.c: Likewise.
11511         * libio/__fpurge.c: Likewise.
11512         * libio/__fsetlocking.c: Likewise.
11513         * assert/assert.c: Likewise.
11514         * debug/fgets_chk.c: Likewise.
11515         * debug/fgets_u_chk.c: Likewise.
11516         * debug/fread_chk.c: Likewise.
11517         * debug/fread_u_chk.c: Likewise.
11518         * debug/gets_chk.c: Likewise.
11519         * debug/obprintf_chk.c: Likewise.
11520         * debug/vasprintf_chk.c: Likewise.
11521         * debug/vdprintf_chk.c: Likewise.
11522         * debug/vsnprintf_chk.c: Likewise.
11523         * debug/vsprintf_chk.c: Likewise.
11524         * malloc/mtrace.c: Likewise.
11525         * misc/error.c: Likewise.
11526         * misc/syslog.c: Likewise.
11527         * stdio-common/asprintf.c: Likewise.
11528         * stdio-common/fxprintf.c: Likewise.
11529         * stdio-common/getw.c: Likewise.
11530         * stdio-common/isoc99_fscanf.c: Likewise.
11531         * stdio-common/isoc99_scanf.c: Likewise.
11532         * stdio-common/isoc99_vfscanf.c: Likewise.
11533         * stdio-common/isoc99_vscanf.c: Likewise.
11534         * stdio-common/isoc99_vsscanf.c: Likewise.
11535         * stdio-common/printf-prs.c: Likewise.
11536         * stdio-common/printf_fp.c: Likewise.
11537         * stdio-common/printf_fphex.c: Likewise.
11538         * stdio-common/printf_size.c: Likewise.
11539         * stdio-common/putw.c: Likewise.
11540         * stdio-common/scanf.c: Likewise.
11541         * stdio-common/sprintf.c: Likewise.
11542         * stdio-common/tmpfile.c: Likewise.
11543         * stdio-common/vfprintf.c: Likewise.
11544         * stdio-common/vfscanf.c: Likewise.
11545         * stdlib/strfmon_l.c: Likewise.
11546         * sunrpc/openchild.c: Likewise.
11547         * sunrpc/xdr_stdio.c: Likewise.
11548         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11549         * sysdeps/mach/hurd/tmpfile.c: Likewise.
11550
11551 2012-05-24  Roland McGrath  <roland@hack.frob.com>
11552
11553         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
11554
11555         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
11556         in the third column, to generate for the shared library an IFUNC
11557         that uses _dl_vdso_vsym.
11558         * Makerules (COMPILE.c, compile-stdin.c): New variables.
11559         * Makeconfig (object-suffixes-noshared): New variable.
11560
11561         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
11562         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
11563         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
11564         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
11565
11566         [BZ #14132]
11567         * include/sys/time.h (__gettimeofday): Remove macro.
11568         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
11569         * time/gettimeofday.c (__gettimeofday): Remove #undef.
11570         Remove INTDEF.
11571         (__gettimeofday): Add libc_hidden_def.
11572         (gettimeofday): Add libc_hidden_weak.
11573         * sysdeps/mach/gettimeofday.c: Likewise.
11574         * sysdeps/posix/gettimeofday.c: Likewise.
11575         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
11576         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
11577         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
11578         (__gettimeofday_internal): Remove strong_alias.
11579         (__gettimeofday): Add libc_hidden_def.
11580         (gettimeofday): Add libc_hidden_weak.
11581         * sysdeps/unix/syscalls.list (gettimeofday):
11582         Remove __gettimeofday_internal alias.
11583
11584 2012-05-24  Daniel Jacobowitz  <drow@false.org>
11585             H.J. Lu  <hongjiu.lu@intel.com>
11586
11587         [BZ #12495]
11588         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
11589         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
11590         (largebin_index_32_big): New.
11591         (largebin_index): Use it for 16-byte alignment.
11592         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
11593         correction with front_misalign.
11594
11595 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11596
11597         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
11598         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
11599         Likewise.
11600         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
11601         Likewise.
11602         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
11603         Likewise.
11604         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
11605         Likewise.
11606         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
11607         Likewise.
11608         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
11609         Likewise.
11610         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
11611         Likewise.
11612         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
11613         Likewise.
11614         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
11615         Likewise.
11616         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
11617         Likewise.
11618         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
11619         Likewise.
11620         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
11621         Likewise.
11622
11623         * scripts/data/c++-types-x32-linux-gnu.data: New file.
11624         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
11625
11626 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
11627
11628         [BZ #10846]
11629         [BZ #14036]
11630         * math/libm-test.inc (exp_test): Add test from bug 14036.
11631         (pow_test): Add test from bug 10846.
11632
11633         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
11634         and other flags.
11635         (special_function): Do not include flags in test name.
11636         (parse_args): Likewise.
11637         * sysdeps/i386/fpu/libm-test-ulps: Update.
11638         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11639         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
11640         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
11641         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11642
11643         * math/gen-libm-test.pl (%beautify): Add entries for underflow
11644         exceptions.
11645         * math/libm-test.inc ("Philosophy"): Update comment about
11646         exception testing.
11647         (UNDERFLOW_EXCEPTION): New macro.
11648         (UNDERFLOW_EXCEPTION_OK): Likewise.
11649         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
11650         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
11651         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
11652         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
11653         (INVALID_EXCEPTION_OK): Update value.
11654         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11655         (OVERFLOW_EXCEPTION_OK): Likewise.
11656         (IGNORE_ZERO_INF_SIGN): Likewise.
11657         (test_exceptions): Handle underflow exceptions.
11658         (acos_test): Update for underflow exception expectations.
11659         (cexp_test): Likewise.
11660         (clog_test): Likewise.
11661         (clog10_test): Likewise.
11662         (csqrt_test): Likewise.
11663         (ctan_test): Likewise.
11664         (ctanh_test): Likewise.
11665         (exp_test): Likewise.
11666         (exp10_test): Likewise.
11667         (exp2_test): Likewise.
11668         (expm1_test): Likewise.
11669         (fma_test): Likewise.
11670         (j0_test): Likewise.
11671         (jn_test): Likewise.
11672         (nexttoward_test): Likewise.
11673         (pow_test): Likewise.
11674         (scalbn_test): Likewise.
11675         (scalbln_test): Likewise.
11676         (tan_test): Likewise.
11677         (y1_test): Likewise.
11678         * sysdeps/i386/fpu/libm-test-ulps: Update.
11679         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11680
11681 2012-05-23  David S. Miller  <davem@davemloft.net>
11682
11683         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
11684         (__libc_sigaction): Remove unused local variables.
11685
11686 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11687
11688         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
11689
11690 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11691
11692         mktime: avoid signed integer overflow
11693         * time/mktime.c (__mktime_internal): Do not mishandle the case
11694         where diff == INT_MIN.
11695
11696         mktime: simplify computation of average
11697         * time/mktime.c (ranged_convert): Use new time_t_avg function
11698         instead of rolling our own (probably-slower) code.
11699
11700         mktime: do not assume signed right shift propagates sign bit
11701         * time/mktime.c (isdst_differ): New static function.
11702         (__mktime_internal): No need to normalize tm_isdst now.
11703         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
11704         tm_isdst values.
11705
11706         mktime: merge another wrapv change from gnulib
11707         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
11708         from some compilers.
11709
11710         mktime: remove incorrect attempt at unusual arithmetics
11711         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
11712         The code didn't really work on such machines anyway.
11713         (TYPE_MINIMUM): Assume two's complement.
11714         (twos_complement_arithmetic): Verify that long_int and time_t
11715         are two's complement (or unsigned, in the latter case).
11716
11717         mktime: check signed shifts on long_int and time_t, too
11718         * time/mktime.c (SHR): Check that shifts work as desired
11719         on the types long_int and time_t too, as SHR is used on
11720         such types.
11721
11722         mktime: do not assume 'long' is wide enough
11723         * time/mktime.c (verify): Move decl up.
11724         (long_int): New type.
11725         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
11726         to remove assumption in the code that 'long' is wide enough to
11727         store year values.  This assumption is not true on x32 and on
11728         some non-glibc platforms.
11729
11730         mktime: merge wrapv change from gnulib
11731         * time/mktime.c (WRAPV): New macro.
11732         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
11733         (guess_time_tm, __mktime_internal): Do not assume that signed
11734         integer overflow wraps around; modern compilers generate code
11735         where this assumption is no longer valid.
11736
11737 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11738
11739         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11740         Replace "jmp L(pseudo_end)" with "ret".
11741         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11742         Likewise.
11743
11744 2012-05-23  Andreas Jaeger  <aj@suse.de>
11745
11746         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
11747         * sysdeps/unix/sysv/linux/poll.c: Remove file.
11748
11749 2012-05-23  Andreas Jaeger  <aj@suse.de>
11750             Maximilian Attems  <max@stro.at>
11751
11752         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
11753         New macros.
11754
11755 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11756
11757         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
11758         code so that pseudo_end is just ret and the stack pointer is
11759         correct also for static library in error case.
11760
11761 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
11762
11763         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
11764         move to syscalls.list.
11765         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
11766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
11767         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
11768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
11769
11770         * manual/install.texi (Running make install): Do not mention Linux
11771         kernel version for which pt_chown is not needed.
11772         (Linux): Do not mention problems with nscd with 2.0 kernels.
11773         * INSTALL: Regenerated.
11774
11775 2012-05-23  Andreas Jaeger  <aj@suse.de>
11776
11777         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
11778         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
11779         macro.
11780         * sysdeps/unix/sysv/linux/s390/bits/mman.h
11781         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11782         * sysdeps/unix/sysv/linux/sh/bits/mman.h
11783         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11784         * sysdeps/unix/sysv/linux/i386/bits/mman.h
11785         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11786         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
11787         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11788         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
11789         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11790         * sysdeps/unix/sysv/linux/bits/in.h
11791         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
11792
11793 2012-05-22  Roland McGrath  <roland@hack.frob.com>
11794
11795         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
11796         (PREPARE_VERSION): Just use assert instead, it will be elided
11797         under [NDEBUG] anyway.
11798
11799 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11800
11801         * sysdeps/unix/sysv/linux/Makefile: Include
11802         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
11803         (sysdep_routines): Remove sysctl.
11804         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
11805         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
11806         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
11807         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
11808         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
11809
11810 2012-05-22  Andreas Jaeger  <aj@suse.de>
11811
11812         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
11813         that pseudo_end is just ret and the stack pointer is correct also
11814         for static library in error case.
11815
11816 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
11817
11818         [BZ #14122]
11819         * nss/nsswitch.c (defconfig_entries): New variable.
11820         (__nss_database_lookup): Don't leak defconfig entries.
11821         (nss_parse_service_list): Don't leak on error paths.
11822         (free_database_entries): New function.
11823         (free_defconfig): New function.
11824         (free_mem): Move common code to free_database_entries.
11825
11826 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11827
11828         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
11829         Add arch_prctl.
11830         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
11831
11832         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
11833         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
11834         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
11835         New macro.
11836         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
11837         (INTERNAL_SYSCALL_TYPES): Likewise.
11838         (LOAD_ARGS_TYPES_[1-6]): Likewise.
11839         (LOAD_REGS_TYPES_[1-6]): Likewise.
11840         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
11841         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
11842
11843 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11844
11845         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
11846         copysignl for GLIBC_2_0.
11847         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
11848         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
11849         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
11850         logbl for GLIBC_2_0.
11851         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
11852         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
11853
11854 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11855
11856         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
11857         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11858
11859         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11860         Use "neg %eax".
11861
11862         * time/mktime.c: Update copyright years.
11863
11864 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11865
11866         mktime: merge comment-quoting-style change from gnulib
11867         * time/mktime.c: Quote 'like this' in comments.
11868         The GNU coding standards suggest that we no longer quote `like this',
11869         as "`" and "'" are typically rendered asymmetrically nowadays.
11870         The typical gnulib style is to quote 'like this' when quoting
11871         code, and "like this" when quoting English.
11872
11873         * time/mktime.c (compile-command): Add "-I.".
11874
11875         mktime: merge mktime-internal.h change from gnulib
11876         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
11877
11878         mktime: merge time_r change from gnulib
11879         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
11880
11881         mktime: merge DEBUG change from gnulib
11882         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
11883         case system <time.h> has a #define.
11884
11885         mktime: merge <sys/types.h> change from gnulib
11886         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
11887         since <time.t> is now guaranteed to define time_t.
11888
11889         mktime: merge HAVE_CONFIG_H change from gnulib
11890         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
11891
11892 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11893
11894         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11895         Use "neg %eax".
11896
11897         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
11898         __rlim_t cast.
11899         (struct rusage): Use anonymous union to pad each field to
11900         __syscall_slong_t.
11901
11902 2012-05-21  David S. Miller  <davem@davemloft.net>
11903
11904         * Makefules (o-iterator): Remove .s cases.
11905         (compile-command.s): Delete.
11906         (COMPILE.s): Delete.
11907         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
11908
11909 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
11910
11911         * configure.in (libc_cv_predef_stack_protector): Only consider
11912         "foobar" and "__stack_chk_fail" lines in libc_undefs.
11913         * configure: Regenerated.
11914
11915 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11916
11917         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11918         New macro.  Use R*LP on int and pointer.
11919         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
11920         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
11921         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
11922         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
11923
11924         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
11925         [__WORDSIZE_TIME64_COMPAT32] instead of
11926         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
11927         (struct utmp): Likewise.
11928         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
11929         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
11930         Renamed to ...
11931         (__WORDSIZE_TIME64_COMPAT32): This.
11932         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
11933         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
11934         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
11935         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
11936         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
11937         (__WORDSIZE_TIME64_COMPAT32): New macro.
11938
11939 2012-05-21  Andreas Jaeger  <aj@suse.de>
11940
11941         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
11942         only if [SHARED]. Add prototype for __wcschr_ia32.
11943
11944 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11945
11946         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
11947         of %rbp unmolested in the jmp_buf while mangling the low bits.
11948         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
11949         unmolested high bits of %rbp while demangling the low bits.
11950         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
11951
11952 2012-05-21  Andreas Jaeger  <aj@suse.de>
11953
11954         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
11955         * sunrpc/svc_simple.c: Use it for registerrpc.
11956         * sunrpc/xcrypt.c: Use it for passwd2des.
11957
11958         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
11959
11960 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11961
11962         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
11963         Don't define if [__SYSCALL_WORDSIZE != 32].
11964         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
11965         New macro.
11966
11967 2012-05-21  Bruno Haible  <bruno@clisp.org>
11968             Andreas Jaeger  <aj@suse.de>
11969
11970         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
11971         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
11972         inptr and inend for must_buffer_ch.
11973         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
11974         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
11975         * stdio-common/Makefile (tests): Remove bug15.
11976         (bug15-ENV): Remove macro.
11977         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
11978         anymore.
11979
11980 2012-05-19  Andreas Jaeger  <aj@suse.de>
11981             Roland McGrath  <roland@hack.frob.com>
11982
11983         * manual/contrib.texi: Completely rewritten. It contains now an
11984         alphabetical list of contributors and their contributions.
11985
11986 2012-05-21  Richard Henderson  <rth@twiddle.net>
11987
11988         * misc/getauxval.c (__getauxval): Use unsigned long int.
11989         * misc/sys/auxv.h: Include <sys/cdefs.h>.
11990         (getauxval): Use unsigned long int.
11991
11992 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11993
11994         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
11995
11996 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11997
11998         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
11999         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
12000         __alignof__ (long double).
12001
12002 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12003
12004         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12005
12006 2012-05-20  Richard Henderson  <rth@twiddle.net>
12007
12008         * misc/getauxval.c: New file.
12009         * misc/sys/auxv.h: New file.
12010         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
12011         (routines): Add getauxval.
12012         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
12013         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
12014         * elf/dl-sysdep.c (_dl_auxv): Remove.
12015         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
12016         * elf/dl-support.c (_dl_auxv): New variable.
12017         (_dl_aux_init): Initialize it.
12018         * manual/startup.texi (Auxiliary Vector): New node.
12019         * sysdeps/generic/bits/hwcap.h: New file.
12020         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
12021         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
12022         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
12023         * sysdeps/sparc/sysdep.h: ... here.  Include it.
12024         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
12025         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
12026         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12027         Update.
12028         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
12029         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
12030         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
12031         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
12032         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
12033         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
12034         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
12035         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
12036
12037 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12038
12039         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12040
12041 2012-05-19  David S. Miller  <davem@davemloft.net>
12042
12043         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12044
12045 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
12046
12047         [BZ #14123]
12048         * math/s_ccosh.c: Include <float.h>
12049         (__ccosh): Avoid internal overflow calculating sinh and cosh
12050         values before multiplying by sin and cos values.
12051         * math/s_ccoshf.c: Likewise.
12052         * math/s_ccoshl.c: Likewise.
12053         * math/s_csin.c: Likewise.
12054         * math/s_csinf.c: Likewise.
12055         * math/s_csinl.c: Likewise.
12056         * math/s_csinh.c: Likewise.
12057         * math/s_csinhf.c: Likewise.
12058         * math/s_csinhl.c: Likewise.
12059         * math/libm-test.inc (ccos_test): Add more tests.
12060         (ccosh_test): Likewise.
12061         (csin_test): Likewise.
12062         (csinh_test): Likewise.
12063         * sysdeps/i386/fpu/libm-test-ulps: Update.
12064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12065
12066 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
12067
12068         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
12069         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
12070
12071         * sysdeps/x86_64/x32/_itoa.h: Add comment.
12072
12073 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
12074
12075         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
12076         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
12077         * sysdeps/powerpc/soft-fp/Versions: Likewise.
12078         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
12079         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
12080         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
12081         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
12082         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
12083         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
12084         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
12085         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
12086         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
12087         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
12088         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
12089         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
12090         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
12091         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
12092         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
12093         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
12094         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
12095         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
12096         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
12097         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
12098         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
12099         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
12100         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
12101         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
12102         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
12103         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
12104         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
12105         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
12106
12107 2012-05-18  Andreas Jaeger  <aj@suse.de>
12108
12109         * csu/.gitignore: Delete.
12110
12111 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12112
12113         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
12114         (timex): Use __syscall_slong_t.
12115
12116 2012-05-18  Andreas Jaeger  <aj@suse.de>
12117             Carlos O'Donell  <carlos_odonell@mentor.com>
12118
12119         * manual/install.texi (Configuring and compiling): Update
12120         description about files modified in the source directory.
12121         * INSTALL: Regenerated.
12122
12123 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12124
12125         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
12126         value.  Use "or" to set return value to -1.
12127         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
12128         negate return value.
12129
12130 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12131
12132         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
12133         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
12134         failure if the compiler has Graphite support disabled.
12135         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
12136         Likewise.
12137         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
12138         CFLAGS-memmove.c): Likewise.
12139         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
12140         Likewise.
12141
12142 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12143
12144         * sysdeps/x86_64/x32/_itoa.h: New file.
12145
12146         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
12147         getdents system call only if kernel and user dirents have the
12148         same d_ino and d_off.
12149
12150         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
12151         LLONG_MAX != LONG_MAX.
12152         (_itoa_word): Use _ITOA_WORD_TYPE on value.
12153         (_fitoa_word): Likewise.
12154
12155         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
12156         years.
12157         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
12158         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
12159         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
12160
12161         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
12162         include <bits/wordsize.h>.  Check __x86_64__ instead of
12163         __WORDSIZE.
12164         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
12165         if __x86_64__ is defined.  Use anonymous union on fpstate.
12166
12167         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
12168         anonymous union.
12169
12170 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
12171
12172         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
12173         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
12174         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
12175         Refer to _rtld_local_ro instead of _rtld_global_ro.
12176         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
12177         Likewise.
12178         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
12179         Likewise.
12180         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
12181         Likewise.
12182         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
12183         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
12184         of _rtld_global, and rtld_progname instead of _dl_argv[0].
12185
12186         * sysdeps/powerpc/powerpc32/dl-machine.c
12187         (__elf_machine_runtime_setup) [PROF]: Don't reference
12188         _dl_prof_resolve.
12189
12190 2012-05-18  Andreas Jaeger  <aj@suse.de>
12191
12192         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
12193         function only available for GCCs before 3.4 since GCC 3.4
12194         introduced a builtin.
12195         (lrint): Likewise.
12196         (llrintf): Likewise.
12197         (llrint): Likewise.
12198         (fmaxf): Likewise.
12199         (fmax): Likewise.
12200         (fminf): Likewise.
12201         (fmin): Likewise.
12202         (rint): Likewise.
12203         (rintf): Likewise.
12204         (nearbyint): Likewise.
12205         (nearbyintf): Likewise.
12206         (ceil): Likewise.
12207         (ceilf): Likewise.
12208         (floor): Likewise.
12209         (floorf): Likewise.
12210
12211 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12212
12213         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
12214         on both fields and cast pointer to __syscall_ulong_t.
12215
12216         * bits/types.h (__fsword_t): New type.
12217         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
12218         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
12219         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12220         (__FSWORD_T_TYPE): Likewise.
12221         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12222         (__FSWORD_T_TYPE): Likewise.
12223         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12224         (__FSWORD_T_TYPE): Likewise.
12225         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
12226         (__FSWORD_T_TYPE): Likewise.
12227         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
12228         __SWORD_TYPE with __fsword_t.
12229         (statfs64): Likewise.
12230
12231 2012-05-17  David S. Miller  <davem@davemloft.net>
12232
12233         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
12234
12235 2012-05-17  Andreas Jaeger  <aj@suse.de>
12236
12237         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
12238         warning.
12239
12240 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12241
12242         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
12243
12244 2012-05-17  Andreas Jaeger  <aj@suse.de>
12245
12246         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
12247         when it is used.
12248
12249 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
12250
12251         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
12252
12253 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12254
12255         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
12256         * sysdeps/x86_64/tst-mallocalign1.c: New file.
12257
12258 2012-05-17  Andreas Jaeger  <aj@suse.de>
12259             Carlos O'Donell  <carlos_odonell@mentor.com>
12260
12261         [BZ #14059]
12262         * sysdeps/x86_64/multiarch/init-arch.h
12263         (bit_YMM_Usable): Rename to...
12264         (bit_AVX_Usable): ... this.
12265         (bit_FMA4_Usable): New macro.
12266         (bit_XMM_state): New macro.
12267         (bit_YMM_state): New macro.
12268         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
12269         [__ASSEMBLER__] (index_AVX_Usable): ... this.
12270         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
12271         (CPUID_OSXSAVE): New macro.
12272         (CPUID_AVX): New macro.
12273         (CPUID_FMA4): New macro.
12274         (index_YMM_Usable): Rename to...
12275         (index_AVX_Usable): ... this.
12276         (HAS_AVX): Use HAS_ARCH_FEATURE.
12277         (HAS_FMA4): Likewise.
12278         (HAS_YMM_USABLE): Remove.
12279         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12280         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
12281         are present.
12282         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
12283         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
12284         * sysdeps/x86_64/multiarch/Makefile: Likewise.
12285         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
12286         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
12287
12288 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
12289
12290         * math/libm-test.c: Support platforms without multiple rounding modes.
12291         * math/bug-nextafter.c: Support platforms without FP exceptions.
12292         * math/bug-nexttoward.c: Likewise.
12293         * math/test-fenv.c: Likewise.
12294         * math/test-misc.c: Likewise.
12295         * stdlib/bug-getcontext.c: Likewise.
12296
12297 2012-05-17  Andreas Jaeger  <aj@suse.de>
12298
12299         * manual/examples/search.c (critter_cmp): Change signature to
12300         avoid warnings.
12301         * manual/string.texi (Collation Functions): Likewise.
12302
12303 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12304
12305         * bits/types.h: Fold copyright years.
12306         * bits/typesizes.h: Likewise.
12307         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
12308         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
12309         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
12310         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
12311         * time/time.h: Likewise.
12312
12313 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
12314
12315         [BZ #208]
12316         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
12317         in instead of returning them.  Return void.
12318         (__libc_mallinfo): Accumulate over all arenas.
12319         (__malloc_stats): Adjust for change in int_mallinfo interface.
12320
12321 2012-05-16  Roland McGrath  <roland@hack.frob.com>
12322
12323         [BZ #10375]
12324         * configure.in (NM): Add AC_CHECK_TOOL for it.
12325         (libc_extra_cflags): New substituted variable.
12326         Check for -fstack-protector being used implicitly.
12327         * configure: Regenerated.
12328         * config.make.in (config-extra-cflags): New variable,
12329         gets @libc_extra_cflags@.
12330         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
12331
12332         [BZ #10375]
12333         * configure.in: Check for _FORTIFY_SOURCE being predefined.
12334         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
12335         * configure: Regenerated.
12336         * config.make.in (CPPUNDEFS): New substituted variable.
12337         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
12338         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
12339         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
12340
12341 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12342
12343         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
12344         (mq_attr): Use __syscall_slong_t.
12345
12346 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12347
12348         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
12349         Check __x86_64__ instead of __WORDSIZE.
12350         (_STAT_VER_LINUX): Likewise.
12351         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
12352         __syscall_ulong_t and __syscall_slong_t.
12353         (stat64): Likewise.
12354
12355 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12356
12357         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
12358
12359 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12360
12361         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
12362
12363 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12364
12365         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
12366         __syscall_ulong_t.
12367
12368         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
12369         include <bits/wordsize.h>.  Check __x86_64__ instead of
12370         __WORDSIZE.
12371         (greg_t): Use "__extension__ long long int" if __x86_64__ is
12372         defined.
12373         (mcontext_t): Replace "unsigned long" with "unsigned long long".
12374
12375         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
12376         include <bits/wordsize.h>.  Check __x86_64__ instead of
12377         __WORDSIZE.
12378         (user_regs_struct): Use "__extension__ unsigned long long"
12379         instead of "unsigned long" if __x86_64__ is defined.
12380         (user): Likewise.  Pad after pointer field if __ILP32__ is
12381         defined.
12382
12383 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
12384
12385         * configure.in (makeinfo): Require version 4.5 or later.  Allow
12386         versions 5 to 9.
12387         * configure: Regenerated.
12388         * manual/install.texi (texinfo): Increase version requirement to
12389         4.5 or later.
12390         * INSTALL: Regenerated.
12391
12392         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
12393
12394 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12395
12396         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
12397
12398         * sysdeps/x86_64/x32/ffs.c: New file.
12399
12400         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
12401         __syscall_ulong_t.
12402         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
12403         defined.  Use __syscall_ulong_t.
12404         (shminfo): Use __syscall_ulong_t.
12405         (shm_info): Likewise.
12406
12407         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
12408         __syscall_ulong_t.
12409
12410         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
12411         <bits/wordsize.h>.
12412         (msgqnum_t): Use __syscall_ulong_t.
12413         (msglen_t): Likewise.
12414         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
12415         __syscall_ulong_t.
12416
12417         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
12418         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
12419
12420         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
12421
12422         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
12423         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
12424
12425         * sysvipc/sys/msg.h (msgbuf): Replace long int with
12426         __syscall_slong_t.
12427
12428         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
12429         include <bits/wordsize.h>.  Check __x86_64__ instead of
12430         __WORDSIZE.
12431
12432         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
12433         "unsigned long long int" if __x86_64__ is defined.
12434         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
12435
12436         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
12437         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
12438         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
12439
12440         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
12441         <stdint.h>.
12442         (GET_PC): Cast to uintptr_t first.
12443         (GET_FRAME): Likewise.
12444         (GET_STACK): Likewise.
12445
12446         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
12447         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
12448         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
12449         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
12450         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
12451         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
12452         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
12453         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
12454         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
12455         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
12456         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
12457         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
12458         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
12459         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
12460         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
12461         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
12462         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
12463         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
12464         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
12465         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
12466         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
12467         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
12468         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
12469         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
12470         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
12471         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
12472         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
12473         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
12474         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
12475
12476 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
12477
12478         * Makerules (+depfiles): Also collect depfiles from .oS in
12479         $(extra-objs).
12480         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
12481         .oS, $(libnldbl-routines)).
12482
12483         * Makerules (native-compile-mkdep-flags): Define.
12484         * sunrpc/Makefile (extra-objs): Add $(addprefix
12485         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
12486         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
12487         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
12488         calling $(make-target-directory).
12489
12490 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12491
12492         * bits/types.h (__snseconds_t): Removed.
12493         * time/time.h (struct timespec): Replace __snseconds_t with
12494         __syscall_slong_t.
12495         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
12496         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
12497         Likewise.
12498         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12499         (__SNSECONDS_T_TYPE): Likewise.
12500         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12501         (__SNSECONDS_T_TYPE): Likewise.
12502         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12503         (__SNSECONDS_T_TYPE): Likewise.
12504
12505 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12506
12507         * sysdeps/mach/hurd/bits/typesizes.h
12508         (__SYSCALL_SLONG_TYPE): New macro.
12509         (__SYSCALL_ULONG_TYPE): Likewise.
12510
12511 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12512
12513         * bits/types.h (__syscall_slong_t): New type.
12514         (__syscall_ulong_t): Likewise.
12515
12516         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
12517         (__SYSCALL_ULONG_TYPE): Likewise.
12518         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12519         (__SYSCALL_SLONG_TYPE): Likewise.
12520         (__SYSCALL_ULONG_TYPE): Likewise.
12521         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12522         (__SYSCALL_SLONG_TYPE): Likewise.
12523         (__SYSCALL_ULONG_TYPE): Likewise.
12524         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12525         (__SYSCALL_SLONG_TYPE): Likewise.
12526         (__SYSCALL_ULONG_TYPE): Likewise.
12527
12528 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12529
12530         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
12531         Add sigaltstack-offsets.sym.
12532         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12533         <sigaltstack-offsets.h>.
12534         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
12535         longjmp_msg pointer.
12536         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
12537         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
12538         signal stack.
12539         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
12540
12541 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
12542
12543         * elf/stackguard-macros.h: Remove file.
12544         * sysdeps/generic/stackguard-macros.h: New file.
12545         * sysdeps/i386/stackguard-macros.h: Likewise.
12546         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
12547         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
12548         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
12549         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
12550         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
12551         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
12552         * sysdeps/x86_64/stackguard-macros.h: Likewise.
12553         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
12554         <elf/stackguard-macros.h>.
12555
12556         [BZ #14109]
12557         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
12558         __aligned__ in attribute.
12559         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
12560         (gregset_t): Likewise.
12561
12562 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12563
12564         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
12565         * sysdeps/x86_64/64/Implies-after: Here.  New file.
12566         * sysdeps/x86_64/x32/Implies-after: New file.
12567
12568 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12569
12570         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
12571         and access return value for _dl_profile_fixup.  Use R10_LP to
12572         load frame size.
12573
12574 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12575
12576         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
12577
12578 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12579
12580         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
12581         * sysdeps/x86_64/x32/sysdep.h: New file.
12582
12583 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12584
12585         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
12586         * sysdeps/x86_64/setjmp.S: Likewise.
12587
12588 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12589
12590         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
12591         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
12592         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
12593         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
12594         remove unused global constant.
12595
12596 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
12597
12598         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
12599         include of <not-cancel.h>.
12600
12601 2012-05-15  Roland McGrath  <roland@hack.frob.com>
12602
12603         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
12604
12605 2012-05-15  Jeff Law  <law@redhat.com>
12606             Andreas Jaeger  <aj@suse.de>
12607
12608         [BZ #13594]
12609         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
12610         out from...
12611         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
12612         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
12613         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
12614         code changing __hst_map_handle.map.
12615
12616 2012-05-15  Roland McGrath  <roland@hack.frob.com>
12617
12618         * configure.in (sysnames): Look for Implies-before and Implies-after
12619         files.
12620         * configure: Regenerated.
12621
12622 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12623
12624         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
12625         8-byte data alignment with LP_SIZE alignment.
12626
12627 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12628
12629         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
12630         into R10_LP.
12631
12632 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12633
12634         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
12635
12636 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12637
12638         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
12639         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
12640         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
12641         Likewise.
12642         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
12643
12644 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12645
12646         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
12647         (stackinfo_sub_sp): Likewise.
12648
12649 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12650
12651         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
12652         RAX_LP.
12653
12654 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12655
12656         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
12657         into R*_LP.
12658
12659 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12660
12661         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
12662         sizes into R*_LP.
12663
12664 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12665
12666         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
12667
12668 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12669
12670         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
12671         into R11_LP and load __x86_64_shared_cache_size_half into
12672         R8_LP.
12673
12674 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12675
12676         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
12677         R8_LP.
12678
12679 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12680
12681         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
12682         logb for POWER7.
12683         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
12684         logbf for POWER7.
12685         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
12686         logbl for POWER7.
12687         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
12688         powerpc32/power7/fpu/s_logb.c via #include.
12689         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
12690         powerpc32/power7/fpu/s_logbf.c via #include.
12691         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
12692         powerpc32/power7/fpu/s_logbl.c via #include.
12693
12694 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
12695
12696         * README.libm: Remove file.
12697
12698 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12699
12700         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
12701         count for x32.  Use R*_LP and omit operand-size suffix.
12702
12703 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12704
12705         * shlib-versions: Move x86_64-.*-linux.* entries to ...
12706         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
12707         * sysdeps/x86_64/x32/shlib-versions: New file.
12708
12709 2012-05-14  Roland McGrath  <roland@hack.frob.com>
12710
12711         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
12712         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
12713         Use _dl_fatal_printf instead.
12714
12715 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12716
12717         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
12718         set if not set by the user.  Do not allow for being unset.
12719         * sysdeps/unix/sysv/linux/configure: Regenerated.
12720
12721 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12722
12723         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
12724         the `q' suffix from lea and replace .quad with ASM_ADDR.
12725
12726 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12727
12728         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
12729         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
12730         instead of $17.
12731         (PTR_DEMANGLE): Likewise.
12732
12733 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12734
12735         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
12736         (LP_OP): Likewise.
12737         (ASM_ADDR): Likewise.
12738         (RAX_LP): Likewise.
12739         (RBP_LP): Likewise.
12740         (RBX_LP): Likewise.
12741         (RCX_LP): Likewise.
12742         (RDI_LP): Likewise.
12743         (RSI_LP): Likewise.
12744         (RSP_LP): Likewise.
12745         (R8_LP): Likewise.
12746         (R9_LP): Likewise.
12747         (R10_LP): Likewise.
12748         (R10_LP): Likewise.
12749         (R11_LP): Likewise.
12750         (R12_LP): Likewise.
12751         (R13_LP): Likewise.
12752         (R14_LP): Likewise.
12753         (R15_LP): Likewise.
12754
12755 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12756
12757         * sysdeps/x86_64/x32/dl-machine.h: New file.
12758
12759 2012-05-14  Andreas Jaeger  <aj@suse.de>
12760
12761         * manual/Makefile (subdir): Remove export of subdir.
12762         (all): Remove target.
12763         (.PHONY): Remove all from list.
12764         (mkinstalldirs): Remove.
12765         (.PHONY): Remove installdirs from list.
12766         ($(inst_infodir)/libc.info): Use make-target-directory.
12767         (installdirs): Remove.
12768         (subdir_%): Remove.
12769         (glibc-targets): Remove.
12770         (lib): Remove.
12771         (stubs): Remove.
12772         ($(objpfx)stubs ../po/manual.pot): Remove.
12773         ($(objpfx)stamp%): Remove.
12774         (make-target-directory): Remove.
12775         (subdir_install): Remove.
12776         (routines): Remove.
12777         (aux): Remove.
12778         (sources): Remove.
12779         (objects): Remove.
12780         (headers): Remove.
12781
12782         [BZ #13750]
12783         * manual/.gitignore: Remove, it's not needed anymore.
12784         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
12785         all files in it.
12786         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
12787         directory.
12788         (texis): Renamed to $(objpfx)texis.
12789         (texis-path): New, contains path to generated files.
12790         (chapters.%): Use texis-path for complete path, add extra argument
12791         libc-texinfo.sh.
12792         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
12793         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
12794         (summary,texi, stamp-summary): Use complete path of
12795         files. Generate files in build dir.
12796         (dir-add.texi): Build in build dir.
12797         (libm-err.texi,stamp-libm-err): Likewise.
12798         (version.texi, stamp-version): Likewise.
12799         (.%c.texi): Likewise.
12800         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
12801         (mostlyclean): Remove target.
12802         (realclean): Remove target.
12803         (generated): Add new variable with contents from mostlyclean and
12804         realclean, remove entries duplicated in common-mostlyclean, add
12805         stamp-libm-err and stamp-version.
12806         (generated-dirs): Add libc directory.
12807         ($(inst_infodir)/libc.info): Install files from build dir.
12808
12809         * manual/install.texi (Configuring and compiling): Adjust since
12810         the info files are not part of the tar ball anymore.
12811
12812 2012-05-14  Andreas Jaeger  <aj@suse.de>
12813
12814         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
12815         variable.
12816
12817 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12818
12819         [BZ #13717]
12820         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12821         to 2.2.0 where earlier.
12822         * sysdeps/unix/sysv/linux/configure: Regenerated.
12823         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
12824         Remove conditional code.
12825         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
12826         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
12827         Remove conditional code.
12828         [!__NR_lchown]: Likewise.
12829         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12830         [__NR_lchown]: Likewise.
12831         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
12832         comment referencing __ASSUME_LCHOWN_SYSCALL.
12833         * sysdeps/unix/sysv/linux/i386/sigaction.c
12834         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12835         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12836         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
12837         Remove conditional code.
12838         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
12839         (__protocol_available): Remove #if 0 code.
12840         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
12841         conditional code.
12842         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
12843         * sysdeps/unix/sysv/linux/kernel-features.h
12844         (__ASSUME_GETCWD_SYSCALL): Don't define.
12845         (__ASSUME_REALTIME_SIGNALS): Likewise.
12846         (__ASSUME_PREAD_SYSCALL): Likewise.
12847         (__ASSUME_PWRITE_SYSCALL): Likewise.
12848         (__ASSUME_POLL_SYSCALL): Likewise.
12849         (__ASSUME_LCHOWN_SYSCALL): Likewise.
12850         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
12851         non-SPARC.
12852         (__ASSUME_SIOCGIFNAME): Don't define.
12853         (__ASSUME_MSG_NOSIGNAL): Likewise.
12854         (__ASSUME_SENDFILE): Define unconditionally.
12855         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
12856         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
12857         conditional code.
12858         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
12859         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
12860         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12861         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12862         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
12863         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12864         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12865         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
12866         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12867         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12868         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
12869         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12870         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12871         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
12872         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12873         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12874         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
12875         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12876         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12877         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
12878         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12879         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12880         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
12881         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12882         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
12884         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12885         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12886         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
12887         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12888         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12889         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
12890         Remove conditional code.
12891         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12892         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12893         Remove conditional code.
12894         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12895         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
12896         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
12897         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12898         Remove conditional code.
12899         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12900         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
12901         Remove conditional code.
12902         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12903         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
12904         Remove conditional code.
12905         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12906         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12907         Remove conditional code.
12908         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12909         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12910         Remove conditional code.
12911         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12912         * sysdeps/unix/sysv/linux/sh/pwrite64.c
12913         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12914         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12915         * sysdeps/unix/sysv/linux/sigaction.c
12916         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12917         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12918         * sysdeps/unix/sysv/linux/sigpending.c
12919         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12920         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12921         * sysdeps/unix/sysv/linux/sigprocmask.c
12922         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12923         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12924         * sysdeps/unix/sysv/linux/sigsuspend.c
12925         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12926         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12927         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
12928         (__libc_missing_rt_sigs): Remove.
12929         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
12930         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
12931         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
12932         Remove conditional code.
12933         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
12934         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
12935         return 1.
12936         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
12937         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
12938         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
12939         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
12940
12941 2012-05-14  Andreas Jaeger  <aj@suse.de>
12942
12943         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
12944         it's not used in glibc.
12945         (__coshm1): Likewise.
12946         (__acosh1p): Likewise.
12947         (__sgn): Likewise.
12948
12949         * manual/string.texi (Copying and Concatenation): Add missing
12950         variable in concat example.
12951         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
12952
12953 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12954
12955         [BZ #14103]
12956         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
12957         __builtin_clzl with __builtin_clzll.
12958
12959 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12960
12961         [BZ #14104]
12962         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
12963         libc_freeres_ptr.
12964
12965 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12966
12967         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
12968         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
12969         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
12970         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
12971
12972 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
12973
12974         * NEWS: Update ia64 info.
12975
12976 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
12977
12978         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
12979         used as bcopy.
12980
12981 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
12982
12983         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
12984         * sysdeps/unix/syscalls.list (dup3): Likewise.
12985         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
12986         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
12987
12988 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12989
12990         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
12991         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
12992
12993 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12994
12995         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
12996         thread pointer.
12997         (TLS_IE): Use mov/add instead of movq/addq to load thread
12998         pointer.
12999         (TLS_GD_PREFIX): New.
13000         (TLS_GD): Use it.
13001
13002 2012-05-11  David S. Miller  <davem@davemloft.net>
13003
13004         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
13005         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
13006         (_FPU_SETCW): Likewise.
13007
13008 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13009
13010         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
13011         is 32-byte aligned.
13012
13013 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
13014
13015         [BZ #11837]
13016         * iconvdata/gb18030.c: Update tables.
13017         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
13018         characters specially.
13019         (BODY for TO_LOOP): Add encoding of missing ranges.
13020
13021 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
13022
13023         [BZ #13673]
13024         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
13025         * sysdeps/mach/hurd/dup3.c: Likewise.
13026         * sysdeps/mach/hurd/readlinkat.c: Likewise.
13027         * sysdeps/powerpc/memmove.c:: Likewise.
13028
13029 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13030
13031         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
13032         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
13033
13034 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13035
13036         * elf/elf.h (R_X86_64_RELATIVE64): New.
13037         (R_X86_64_NUM): Updated.
13038         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
13039         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
13040         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
13041         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
13042         tst-quad1pie tst-quad2pie
13043         (modules-names): Add tst-quadmod1 tst-quadmod2.
13044         ($(objpfx)tst-quad1): New dependency.
13045         ($(objpfx)tst-quad2): Likewise.
13046         ($(objpfx)tst-quad1pie): Likewise.
13047         ($(objpfx)tst-quad2pie): Likewise.
13048         * sysdeps/x86_64/tst-quad1.c: New file.
13049         * sysdeps/x86_64/tst-quad1pie.c: New file.
13050         * sysdeps/x86_64/tst-quad2.c: Likewise.
13051         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
13052         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
13053         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
13054         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
13055         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
13056
13057 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13058
13059         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
13060         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
13061         * streams/stropts.h (t_scalar_t): Define type.
13062
13063         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
13064         (_PATH_PRESERVE): Set to "/var/lib".
13065         (_PATH_RWHODIR): Set to "/var/spool/rwho".
13066
13067         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
13068         instead of int.
13069
13070         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
13071         if __dir_mkfile succeeded.
13072
13073         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
13074         checking for _hurd_dtablesize.  Unlock it right after having
13075         finished _hurd_dtable allocation.
13076
13077 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13078
13079         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
13080         * sysdeps/mach/hurd/configure: Regenerated.
13081         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
13082         special-casing to...
13083         * sysdeps/gnu/configure.in: ... this new file.
13084         * sysdeps/unix/sysv/linux/configure: Regenerated.
13085         * sysdeps/gnu/configure: New generated file.
13086
13087         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
13088         for Linux: use nsec instead of usec, as well as:
13089         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
13090         members of type struct timespec.
13091         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
13092         New macros.
13093         (struct stat64): Likewise.
13094         (_STATBUF_ST_NSEC): New macro.
13095         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
13096
13097         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
13098         __strtoul_internal rather than strtoul.
13099
13100 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13101
13102         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
13103         and reject them.
13104
13105 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13106
13107         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
13108         which preserves existing values.
13109         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
13110
13111 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13112
13113         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
13114         TIMEOUT values.  Return EINVAL for NFDS values either negative or
13115         greater than FD_SETSIZE.
13116
13117 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13118
13119         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
13120         allocated, call __vm_protect to finish enabling the existing space, and
13121         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
13122         allocate the remainder.
13123
13124 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13125
13126         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
13127         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
13128
13129 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13130
13131         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
13132         sysdeps/mach/hurd/readlink.c.
13133
13134         * posix/tst-sysconf.c (posix_options): Only use
13135         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
13136         _POSIX_SYNCHRONIZED_IO when they are defined
13137         * sysdeps/mach/hurd/bits/posix_opt.h:
13138         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
13139         (_XOPEN_REALTIME): Undefine macro.
13140         (_XOPEN_REALTIME_THREADS): Undefine macro.
13141         (_XOPEN_SHM): Undefine macro.
13142         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
13143         macro to -1.
13144         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
13145         macro to -1.
13146         (_POSIX_ASYNC_IO): Undefine macro.
13147         (_POSIX_PRIORITIZED_IO): Undefine macro.
13148         (_POSIX_SPIN_LOCKS): Define macro to -1.
13149
13150         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
13151         SA_NODEFER, SA_RESETHAND.
13152         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
13153         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
13154         F_DUPFD_CLOEXEC.
13155
13156 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13157
13158         * elf/Makefile (pldd-modules): Define unconditionally.
13159
13160 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13161
13162         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
13163
13164 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13165
13166         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
13167         Return ENOENT when name is empty.
13168         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
13169
13170 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13171
13172         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
13173
13174         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
13175
13176 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13177
13178         Fix mlock in all cases except non-readable pages.
13179         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
13180         instead of VM_PROT_ALL as parameter to __vm_wire function.
13181
13182         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
13183         (__mkdir): When path is `/', just fail with EEXIST.
13184         * sysdeps/mach/hurd/mkdirat.c: Likewise.
13185
13186 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13187
13188         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
13189         <sys/uio.h> (for writev).
13190         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
13191         and <sys/param.h> (for MIN).
13192
13193 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13194
13195         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
13196         REQUESTED_TIME.  Properly set the remaining time and return EINTR
13197         if interrupted.
13198
13199 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13200
13201         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
13202         Depend on against $(link-rpcuserlibs).
13203
13204 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13205
13206         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
13207         (__libc_stack_end): Do not use attribute_relro.
13208         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
13209         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
13210         to libthread-provided value.
13211         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
13212         attribute_relro.
13213
13214 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13215
13216         [BZ #3748]
13217         * bits/libc-lock.h (__libc_once_get): New macro.
13218         * sysdeps/mach/bits/libc-lock.h: Likewise.
13219         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
13220         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
13221         instead of using implementation details.
13222
13223         * libio/fileops.c: Unconditionally include <kernel-features.h>.
13224         * libio/freopen.c: Likewise.
13225         * libio/freopen64.c: Likewise.
13226         * misc/syslog.c: Likewise.
13227         * nscd/connections.c: Likewise.
13228         * nscd/netgroupcache.c: Likewise.
13229         * sysdeps/posix/getcwd.c: Likewise.
13230
13231 2012-05-10  Roland McGrath  <roland@hack.frob.com>
13232
13233         * math/w_ilogbf.c: Add #include <limits.h>.
13234
13235 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13236
13237         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
13238         path instead of returning without unlocking.
13239
13240         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
13241         immediate-write ioctls.
13242         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
13243
13244 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13245
13246         * sysdeps/mach/hurd/i386/init-first.c (init): Use
13247         __builtin_frame_address instead of making assumptions about the
13248         location of the return address relative to DATA.  Force early load of
13249         the return address.
13250         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
13251         __builtin_frame_address.
13252
13253         dup3 for GNU Hurd.
13254         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
13255         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
13256         implement dup3 and do some further code clean-ups.
13257         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
13258         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
13259
13260 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13261
13262         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
13263
13264         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
13265         HURD_CRITICAL_END around holding _hurd_dtable_lock.
13266         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
13267         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
13268         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
13269         d->port.lock.
13270
13271         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
13272         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
13273         when handler == SIG_ERR, not when handler != SIG_ERR.
13274
13275 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13276
13277         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
13278         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
13279         definitions.
13280
13281         accept4 for GNU Hurd.
13282         * include/sys/socket.h (__libc_accept4): New prototype.
13283         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
13284         to implement __libc_accept4.
13285         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
13286         __libc_accept4.
13287         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
13288
13289         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
13290         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
13291         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
13292         signal-defines.sym.
13293
13294 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13295
13296         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
13297
13298 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13299
13300         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
13301         assertion on O_CLOEXEC flag.
13302         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
13303         * hurd/intern-fd.c: Likewise.
13304         * hurd/port2fd.c: Likewise.
13305
13306 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13307
13308         [BZ #3906]
13309         * bits/in.h (IPV6_PKTINFO): Define new macro.
13310         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
13311
13312 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13313
13314         [BZ #13954]
13315         [BZ #13955]
13316         [BZ #13956]
13317         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
13318         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13319         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
13320         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13321         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13322         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13323         * math/libm-test.inc (logb_test) : Additional logb tests.
13324
13325 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
13326             Andreas Jaeger  <aj@suse.de>
13327
13328         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
13329         * configure: Regenerated.
13330         * config.h.in (LINK_OBSOLETE_RPC): New macro.
13331         * config.make.in (link-obsolete-rpc): New substituted variable.
13332         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
13333         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
13334         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
13335         (shared-only-routines): Don't set it under [link-obsolete-rpc],
13336         so that libc.a contains the symbols.
13337         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
13338         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
13339         * sunrpc/auth_none.c: Likewise.
13340         * sunrpc/auth_unix.c: Likewise.
13341         * sunrpc/authdes_prot.c: Likewise.
13342         * sunrpc/authuxprot.c: Likewise.
13343         * sunrpc/clnt_gen.c: Likewise.
13344         * sunrpc/clnt_perr.c: Likewise.
13345         * sunrpc/clnt_raw.c: Likewise.
13346         * sunrpc/clnt_simp.c: Likewise.
13347         * sunrpc/clnt_tcp.c: Likewise.
13348         * sunrpc/clnt_udp.c: Likewise.
13349         * sunrpc/clnt_unix.c: Likewise.
13350         * sunrpc/des_crypt.c: Likewise.
13351         * sunrpc/des_soft.c: Likewise.
13352         * sunrpc/get_myaddr.c: Likewise.
13353         * sunrpc/key_call.c: Likewise.
13354         * sunrpc/key_prot.c: Likewise.
13355         * sunrpc/netname.c: Likewise.
13356         * sunrpc/pm_getmaps.c: Likewise.
13357         * sunrpc/pm_getport.c: Likewise.
13358         * sunrpc/pmap_clnt.c: Likewise.
13359         * sunrpc/pmap_prot.c: Likewise.
13360         * sunrpc/pmap_prot2.c: Likewise.
13361         * sunrpc/pmap_rmt.c: Likewise.
13362         * sunrpc/publickey.c: Likewise.
13363         * sunrpc/rpc_cmsg.c: Likewise.
13364         * sunrpc/rpc_common.c: Likewise.
13365         * sunrpc/rpc_dtable.c: Likewise.
13366         * sunrpc/rpc_prot.c: Likewise.
13367         * sunrpc/rpc_thread.c: Likewise.
13368         * sunrpc/rtime.c: Likewise.
13369         * sunrpc/svc.c: Likewise.
13370         * sunrpc/svc_auth.c: Likewise.
13371         * sunrpc/svc_raw.c: Likewise.
13372         * sunrpc/svc_run.c: Likewise.
13373         * sunrpc/svc_tcp.c: Likewise.
13374         * sunrpc/svc_udp.c: Likewise.
13375         * sunrpc/svc_unix.c: Likewise.
13376         * sunrpc/svcauth_des.c: Likewise.
13377         * sunrpc/xcrypt.c: Likewise.
13378         * sunrpc/xdr.c: Likewise.
13379         * sunrpc/xdr_array.c: Likewise.
13380         * sunrpc/xdr_float.c: Likewise.
13381         * sunrpc/xdr_intXX_t.c: Likewise.
13382         * sunrpc/xdr_mem.c: Likewise.
13383         * sunrpc/xdr_rec.c: Likewise.
13384         * sunrpc/xdr_ref.c: Likewise.
13385         * sunrpc/xdr_sizeof.c: Likewise.
13386         * sunrpc/xdr_stdio.c: Likewise.
13387
13388 2012-05-10  Roland McGrath  <roland@hack.frob.com>
13389
13390         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
13391         change.  Update copyright years.
13392
13393 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
13394
13395         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
13396
13397 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
13398             Joseph Myers  <joseph@codesourcery.com>
13399             Paul Pluzhnikov  <ppluzhnikov@google.com>
13400
13401         [BZ #14012]
13402         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
13403         requiring rpcgen.
13404         [cross-compiling] (extra-libs): Likewise.
13405         [cross-compiling] (extra-libs-others): Likewise.
13406         [cross-compiling] (librpcsvc-routines): Likewise.
13407         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
13408         [cross-compiling] (omit-deps): Likewise.
13409         (sunrpc-CPPFLAGS): New variable.
13410         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
13411         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
13412         (cross-rpcgen-objs): New variable.
13413         (extra-objs): Append $(cross-rpcgen-objs).
13414         ($(cross-rpcgen-objs)): New rule.
13415         ($(objpfx)cross-rpcgen): Likewise.
13416         (rpcgen-cmd): Define to use $(built-program-file).  Expand
13417         comment.
13418         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
13419         ($(objpfx)x%.stmp): Likewise.
13420         * sunrpc/proto.h [IS_IN_build] (_): Define.
13421         [IS_IN_build] (_libc_intl_domainname): Likewise.
13422
13423 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13424
13425         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
13426         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
13427         and R_X86_64_TPOFF64.
13428
13429 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
13430
13431         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
13432         sysdeps/unix/sysv/syscalls.list.
13433         (stime): Likewise.
13434         (utime): Likewise.
13435         * sysdeps/unix/sysv/syscalls.list: Remove file.
13436
13437 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13438
13439         [BZ #3440]
13440         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
13441         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
13442         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
13443         (__LC_IDENTIFICATION): Make these macros useful in #if
13444         expressions, as required by C99.
13445
13446 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
13447
13448         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
13449         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
13450         after this.
13451
13452 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13453
13454         * stdlib/longlong.h: Updated from GCC.
13455
13456 2012-05-09  Andreas Jaeger  <aj@suse.de>
13457
13458         * nscd/nscd.c (run_modes): Make named enum, reorder so that
13459         default is first entry.
13460         (run_mode): Set type.
13461         (main): Remove informal message about syslog.
13462         (options): Fix typo.
13463
13464         [BZ #14053]
13465         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
13466         to asm.
13467         (lrint): Likewise.
13468         (llrintf): Likewise.
13469         (llrint): Likewise.
13470         (rint): Likewise.
13471         (rintf): Likewise.
13472         (nearbyint): Likewise.
13473         (nearbyintf): Likewise.
13474
13475 2012-05-09  Andreas Jaeger  <aj@suse.de>
13476             Pedro Alves  <palves@redhat.com>
13477
13478         * nscd/nscd.c (run_mode): Use enum.
13479         (main): Cleanup coding style issue.
13480
13481 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
13482             Andreas Jaeger  <aj@suse.de>
13483
13484         * nscd/nscd.c (go_background): Replaced with...
13485         (run_mode): ... this.
13486         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
13487         (options): Add -F --foreground.
13488         (main): Implement it.
13489         (parse_opt): Parse it.
13490
13491 2012-05-09  Andreas Jaeger  <aj@suse.de>
13492
13493         [BZ #14083]
13494         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
13495         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
13496         -Wconversion warning.
13497         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
13498         Likewise.
13499
13500 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
13501
13502         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
13503         == 0.
13504         (LC_ALL): Use macro-int-constant.
13505         (LC_COLLATE): Likewise.
13506         (LC_CTYPE): Likewise.
13507         (LC_MESSAGES): Likewise.
13508         (LC_MONETARY): Likewise.
13509         (LC_NUMERIC): Likewise.
13510         (LC_TIME): Likewise.
13511         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
13512         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
13513         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13514         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
13515         Specify type.
13516         [C99-based standards] (float_t): Expect type.
13517         [C99-based standards] (double_t): Expect type.
13518         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
13519         type.
13520         [C99-based standards] (HUGE_VALL): Likewise.
13521         [C99-based standards] (INFINITY): Likewise.
13522         [C99-based standards] (NAN): Likewise.
13523         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
13524         [C99-based standards] (FP_NAN): Likewise.
13525         [C99-based standards] (FP_NORMAL): Likewise.
13526         [C99-based standards] (FP_SUBNORMAL): Likewise.
13527         [C99-based standards] (FP_ZERO): Likewise.
13528         [C99-based standards] (FP_FAST_FMA): Use
13529         optional-macro-int-constant.  Specify type.  Require == 1.
13530         [C99-based standards] (FP_FAST_FMAF): Likewise.
13531         [C99-based standards] (FP_FAST_FMAL): Likewise.
13532         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
13533         [C99-based standards] (FP_ILOGBNAN): Likewise.
13534         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
13535         Specify type.
13536         [C99-based standards] (MATH_ERREXCEPT): Likewise.
13537         [C99-based standards] (math_errhandling): Specify type.
13538         [ISO99 || ISO11] (signgam): Do not allow.
13539         [non-C99-based standards] (copysignf): Do not allow.
13540         [non-C99-based standards] (exp2f): Likewise.
13541         [non-C99-based standards] (log2f): Likewise.
13542         [non-C99-based standards] (modff): Allow.
13543         [non-C99-based standards] (erff): Do not allow.
13544         [non-C99-based standards] (erfcf): Likewise.
13545         [non-C99-based standards] (gammaf): Likewise.
13546         [non-C99-based standards] (hypotf): Likewise.
13547         [non-C99-based standards] (j0f): Likewise.
13548         [non-C99-based standards] (j1f): Likewise.
13549         [non-C99-based standards] (jnf): Likewise.
13550         [non-C99-based standards] (lgammaf): Likewise.
13551         [non-C99-based standards] (tgammaf): Likewise.
13552         [non-C99-based standards] (y0f): Likewise.
13553         [non-C99-based standards] (y1f): Likewise.
13554         [non-C99-based standards] (ynf): Likewise.
13555         [non-C99-based standards] (isnanf): Likewise.
13556         [non-C99-based standards] (acoshf): Likewise.
13557         [non-C99-based standards] (asinhf): Likewise.
13558         [non-C99-based standards] (atanhf): Likewise.
13559         [non-C99-based standards] (cbrtf): Likewise.
13560         [non-C99-based standards] (expm1f): Likewise.
13561         [non-C99-based standards] (ilogbf): Likewise.
13562         [non-C99-based standards] (log1pf): Likewise.
13563         [non-C99-based standards] (logbf): Likewise.
13564         [non-C99-based standards] (nextafterf): Likewise.
13565         [non-C99-based standards] (remainderf): Likewise.
13566         [non-C99-based standards] (rintf): Likewise.
13567         [non-C99-based standards] (scalbf): Likewise.
13568         [non-C99-based standards] (copysignl): Likewise.
13569         [non-C99-based standards] (exp2l): Likewise.
13570         [non-C99-based standards] (log2l): Likewise.
13571         [non-C99-based standards] (modfl): Allow.
13572         [non-C99-based standards] (erfl): Do not allow.
13573         [non-C99-based standards] (erfcl): Likewise.
13574         [non-C99-based standards] (gammal): Likewise.
13575         [non-C99-based standards] (hypotl): Likewise.
13576         [non-C99-based standards] (j0l): Likewise.
13577         [non-C99-based standards] (j1l): Likewise.
13578         [non-C99-based standards] (jnl): Likewise.
13579         [non-C99-based standards] (lgammal): Likewise.
13580         [non-C99-based standards] (tgammal): Likewise.
13581         [non-C99-based standards] (y0l): Likewise.
13582         [non-C99-based standards] (y1l): Likewise.
13583         [non-C99-based standards] (ynl): Likewise.
13584         [non-C99-based standards] (isnanl): Likewise.
13585         [non-C99-based standards] (acoshl): Likewise.
13586         [non-C99-based standards] (asinhl): Likewise.
13587         [non-C99-based standards] (atanhl): Likewise.
13588         [non-C99-based standards] (cbrtl): Likewise.
13589         [non-C99-based standards] (expm1l): Likewise.
13590         [non-C99-based standards] (ilogbl): Likewise.
13591         [non-C99-based standards] (log1pl): Likewise.
13592         [non-C99-based standards] (logbl): Likewise.
13593         [non-C99-based standards] (nextafterl): Likewise.
13594         [non-C99-based standards] (remainderl): Likewise.
13595         [non-C99-based standards] (rintl): Likewise.
13596         [non-C99-based standards] (scalbl): Likewise.
13597         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13598         [non-C99-based standards] (FP_*): Do not allow.
13599         [C99-based standards] (FP_*): Change to
13600         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
13601         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13602         allow.
13603         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
13604         (SIG_ERR): Likewise.
13605         [X/Open-based standards] (SIG_HOLD): Likewise.
13606         (SIG_IGN): Likewise.
13607         (SIGABRT): Use macro-int-constant.  Specify type.  Require
13608         positive value.
13609         (SIGFPE): Likewise.
13610         (SIGILL): Likewise.
13611         (SIGINT): Likewise.
13612         (SIGSEGV): Likewise.
13613         (SIGTER): Likewise.
13614         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
13615         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
13616         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
13617         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
13618         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
13619         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
13620         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
13621         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
13622         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
13623         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
13624         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
13625         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
13626         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
13627         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
13628         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
13629         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
13630         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
13631         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
13632         [X/Open-based standards] (SIGTRAP): Likewise.
13633         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
13634         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
13635         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
13636         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
13637         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13638         allow.
13639
13640 2012-05-08  Ian Wienand  <ianw@vmware.com>
13641
13642         [BZ #14080]
13643         * time/tzset.c (__tzset_parse_tz): Update default rules for
13644         daylight time changes in the Energy Policy Act of 2005.
13645
13646 2012-05-09  Andreas Jaeger  <aj@suse.de>
13647
13648         [BZ #13983]
13649         * elf/ldconfig.c (parse_conf): Change string to make clear that
13650         ldconfig only issued a warning if ld.so.conf does not exist.
13651
13652 2012-05-08  David S. Miller  <davem@davemloft.net>
13653
13654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
13655         movxtod instead of popping the value on the stack.
13656
13657         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13658
13659 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
13660
13661         * config.h.in: Add HAVE_ARM_PCS_VFP.
13662
13663 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
13664
13665         [BZ #13979]
13666         * include/features.h: Warn if user requests __FORTIFY_SOURCE
13667         checking but the checks are disabled for any reason.
13668
13669 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13670
13671         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
13672         and ELF64_R_TYPE with ELFW(R_TYPE).
13673
13674 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
13675
13676         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
13677         (ulimit): Likewise.
13678
13679         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
13680         (settimeofday): Likewise.
13681
13682 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
13683
13684         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
13685         a struct th_u2 inside the union, and move tu_block/tu_code into
13686         a new th_u3 union of tu_block/tu_code inside of that.  Move
13687         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
13688         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
13689         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
13690         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
13691         (th_stuff): Change to th_u1.tu_stuff.
13692         (th_data): Define.
13693         (th_msg): Change to th_u1.th_u2.tu_data.
13694
13695 2012-05-07  David S. Miller  <davem@davemloft.net>
13696
13697         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13698
13699         [BZ #14074]
13700         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
13701         (SETUP_PIC_REG): Use it.
13702         (SETUP_PIC_REG_LEAF): Use it.
13703
13704 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
13705
13706         [BZ #13885]
13707         [BZ #13923]
13708         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13709         USE_AS_EXPM1L.
13710         (EXPL_FINITE): Likewise.
13711         (FLDLOG): Likewise.
13712         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13713         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13714         e_expl.S.
13715         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13716         USE_AS_EXPM1L.
13717         (EXPL_FINITE): Likewise.
13718         (FLDLOG): Likewise.
13719         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13720         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13721         e_expl.S.
13722         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
13723         test of -max_value argument for long double.
13724         * sysdeps/i386/fpu/libm-test-ulps: Update.
13725         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13726
13727 2012-05-06  David S. Miller  <davem@davemloft.net>
13728
13729         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
13730         quad soft-float symbols whose references which are compiler
13731         generated.
13732         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13733
13734 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
13735
13736         [BZ #13884]
13737         [BZ #13914]
13738         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13739         USE_AS_EXP10L.
13740         (EXPL_FINITE): Likewise.
13741         (FLDLOG): Likewise.
13742         (c0): Likewise.
13743         (c1): Likewise.
13744         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13745         Adjust comments for base varying.
13746         (__expl_finite): Change alias to EXPL_FINITE.
13747         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
13748         e_expl.S.
13749         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
13750         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
13751         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13752         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
13753         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13754         USE_AS_EXP10L.
13755         (EXPL_FINITE): Likewise.
13756         (FLDLOG): Likewise.
13757         (c0): Likewise.
13758         (c1): Likewise.
13759         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13760         Adjust comments for base varying.
13761         (__expl_finite): Change alias to EXPL_FINITE.
13762         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
13763         tests for bugs.
13764         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13765
13766         [BZ #14064]
13767         * math/libm-test.inc (check_float_internal): Correct ulp
13768         calculation for subnormal expected results.
13769
13770 2012-05-06  Andreas Jaeger  <aj@suse.de>
13771
13772         * Makeconfig (+math-flags): New, set to -frounding-math.
13773         (+cflags): Add +math-flags so that all of glibc gets compiled with
13774         it.
13775
13776         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
13777
13778 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
13779
13780         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
13781         Disable one test.
13782
13783         [BZ #13787]
13784         [BZ #13922]
13785         [BZ #14036]
13786         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
13787         (__ieee754_expl): Allow for and saturate large arguments.
13788         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
13789         (u_threshold): Likewise.
13790         (__exp): Call __ieee754_exp before checking for overflow and
13791         underflow.
13792         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
13793         (u_threshold): Likewise.
13794         (__expf): Call __ieee754_expf before checking for overflow and
13795         underflow.
13796         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
13797         (u_threshold): Likewise.
13798         (__expl): Call __ieee754_expl before checking for overflow and
13799         underflow.
13800         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
13801         (__ieee754_expl): Allow for and saturate large arguments.
13802         * math/libm-test.inc (exp_test): Add another test.  Do not allow
13803         missing overflow exception on overflow.
13804         (expm1_test): Do not allow missing overflow exception on overflow.
13805
13806         * sysdeps/i386/fpu/e_expl.c: Move to ...
13807         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
13808         rather than using inline asm.
13809         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
13810         * sysdeps/x86_64/fpu/e_expl.S: Copy from
13811         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
13812
13813         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
13814         (nice): Likewise.
13815         (poll): Likewise.
13816         (signal): Likewise.
13817         (time): Likewise.
13818         (times): Likewise.
13819
13820 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13821
13822         * sysdeps/unix/syscalls.list (adjtime): Add entry from
13823         sysdeps/unix/common/syscalls.list.
13824         (fchmod): Likewise.
13825         (fchown): Likewise.
13826         (ftruncate): Likewise.
13827         (getrusage): Likewise.
13828         (gettimeofday): Likewise.
13829         (setpgid): Likewise.
13830         (setregid): Likewise.
13831         (setreuid): Likewise.
13832         (sigaction): Likewise.
13833         (truncate): Likewise.
13834         (vhangup): Likewise.
13835         * sysdeps/unix/common/syscalls.list: Remove file.
13836         * sysdeps/unix/bsd/Implies: Don't include unix/common.
13837         * sysdeps/unix/sysv/linux/Implies: Likewise.
13838
13839 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13840
13841         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
13842         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
13843         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
13844         Moved to ...
13845         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
13846         Here.
13847         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
13848         to ...
13849         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
13850         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
13851         to ...
13852         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
13853         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
13854         to ...
13855         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
13856         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
13857         to ...
13858         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
13859         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
13860         to ...
13861         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
13862         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
13863         to ...
13864         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
13865         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
13866         to ...
13867         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
13868         Here.
13869         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
13870         to ...
13871         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
13872         Here.
13873         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
13874         to ...
13875         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
13876         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
13877         Moved to ...
13878         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
13879         Here.
13880         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
13881         to ...
13882         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
13883
13884 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13885
13886         * sysdeps/unix/common/bits/dirent.h: Remove file.
13887         * sysdeps/unix/common/bits/fcntl.h: Likewise.
13888
13889         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
13890         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
13891         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
13892         * sysdeps/unix/bsd/isatty.c: Likewise.
13893         * sysdeps/unix/bsd/tcdrain.c: Likewise.
13894         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
13895         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
13896
13897 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13898
13899         [BZ #13563]
13900         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
13901         long double comparison inaccuracies.
13902         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13903         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13904
13905 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
13906
13907         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
13908         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
13909
13910 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13911
13912         [BZ #14049]
13913         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
13914         nonzero digits before rounding a hex value.
13915         * stdlib/tst-strtod.c (tests): Add another test.
13916
13917 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13918
13919         * sysdeps/s390/fpu/libm-test-ulps: Update.
13920
13921 2012-05-03  Andreas Jaeger  <aj@suse.de>
13922
13923         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
13924         does not get optimized out.
13925         (malloc_opt_barrier): New.
13926
13927 2012-05-03  Andreas Jaeger  <aj@suse.de>
13928             Roland McGrath  <roland@hack.frob.com>
13929
13930         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
13931         intermediate file deletion.
13932         (generated): Add .symlist files.
13933
13934 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
13935
13936         [BZ #13775]
13937         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
13938         Redirect under this condition.
13939         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13940         [__USE_GNU] (__dprintf_chk): Not under this condition.
13941         [__USE_GNU] (__vdprintf_chk): Likewise.
13942         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
13943         under this condition.
13944         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13945         [__USE_XOPEN2K8] (dprintf): Define under this condition.
13946         [__USE_XOPEN2K8] (vdprintf): Likewise.
13947         [__USE_GNU] (__dprintf_chk): Not under this condition.
13948         [__USE_GNU] (__vdprintf_chk): Likewise.
13949         [__USE_GNU] (dprintf): Likewise.
13950         [__USE_GNU] (vdprintf): Likewise.
13951
13952 2012-05-03  Roland McGrath  <roland@hack.frob.com>
13953
13954         * elf/Makefile (common-generated): Set this instead of generated for
13955         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
13956         $(all-built-dso)-derived lists.
13957
13958 2012-05-03  Andreas Jaeger  <aj@suse.de>
13959
13960         * sysdeps/i386/fpu/libm-test-ulps: Update.
13961
13962         * FAQ: Removed.
13963         * FAQ.in: Likewise.
13964         * scripts/gen-FAQ.pl: Likewise.
13965         * manual/install.texi (Installation): Point to online location of
13966         FAQ.
13967         * Makefile (files-for-dist): Remove FAQ.
13968         (FAQ): Remove.
13969
13970 2012-05-02  Allan McRae  <allan@archlinux.org>
13971
13972         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
13973         (LDFLAGS-reldepmod5.so): Likewise.
13974         (LDFLAGS-reldep6mod1.so): Likewise.
13975         (LDFLAGS-reldep6mod4.so): Likewise.
13976         (LDFLAGS-reldep8mod3.so): Likewise.
13977         (LDFLAGS-unload4mod1.so): Likewise.
13978         (LDFLAGS-unload4mod2.so): Likewise.
13979         (LDFLAGS-tst-initorder): Likewise.
13980         (LDFLAGS-tst-initordera2.so): Likewise.
13981         (LDFLAGS-tst-initordera3.so): Likewise.
13982         (LDFLAGS-tst-initordera4.so): Likewise.
13983         (LDFLAGS-tst-initorderb2.so): Likewise.
13984         (LDFLAGS-noload): Likewise.
13985         (LDFLAGS-next): Likewise.
13986         (LDFLAGS-order2mod1.so): Likewise.
13987         (LDFLAGS-order2mod2.so): Likewise.
13988         (LDFLAGS-tst-initorder2): Likewise.
13989         (LDFLAGS-tst-initorder2a.so): Likewise.
13990         (LDFLAGS-tst-initorder2b.so): Likewise.
13991         (LDFLAGS-tst-initorder2c.so): Likewise.
13992         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
13993
13994 2012-05-02  David S. Miller  <davem@davemloft.net>
13995
13996         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13997
13998 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
13999
14000         [BZ #14055]
14001         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
14002
14003 2012-05-02  Andreas Jaeger  <aj@suse.de>
14004
14005         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
14006         since we manipulate rounding mode.
14007         (CPPFLAGS-test-idouble.c): Likewise.
14008         (CPPFLAGS-test-ifloat.c): Likewise.
14009         (CFLAGS-test-ldouble.c): Likewise.
14010         (CFLAGS-test-double.c): Likewise.
14011         (CFLAGS-test-float.c): Likewise.
14012         (CFLAGS-test-misc.c): Likewise.
14013         (CFLAGS-test-test-fenv.c): Likewise.
14014
14015 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14016
14017         [BZ #2550]
14018         [BZ #2570]
14019         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
14020         comparisons to determine direction to adjust input.
14021
14022 2012-05-01  Roland McGrath  <roland@hack.frob.com>
14023
14024         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
14025         output to the target.
14026
14027         * scripts/localplt.awk: New file.
14028         * elf/Makefile ($(objpfx)check-localplt): Target removed.
14029         (check-localplt-CFLAGS): Variable removed.
14030         ($(all-built-dso:=.jmprel)): New static pattern rule.
14031         (generated): Add those targets.
14032         (localplt-built-dso): New variable.
14033         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
14034
14035         * elf/check-localplt.c: File removed.
14036
14037         * scripts/check-execstack.awk: New file.
14038         * elf/Makefile ($(objpfx)check-execstack): Target removed.
14039         (check-execstack-CFLAGS): Variable removed.
14040         ($(objpfx)check-execstack.h): Target removed.
14041         ($(objpfx)execstack-default): New target.
14042         (generated): Add that instead of check-execstack.h.
14043         ($(all-built-dso:=.phdr)): New static pattern rule.
14044         (generated): Add those targets.
14045         * elf/check-execstack.c: File removed.
14046
14047         * scripts/check-textrel.awk: New file.
14048         * elf/Makefile ($(objpfx)check-textrel): Target removed.
14049         (check-textrel-CFLAGS): Variable removed.
14050         (all-built-dso): Use := to define.o
14051         ($(all-built-dso:=.dyn)): New static pattern rule.
14052         (generated): Add those targets.
14053         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
14054         * config.make.in (READELF): New substituted variable.
14055         * elf/check-textrel.c: File removed.
14056
14057 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
14058
14059         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
14060         allow.
14061         * conform/data/ctype.h-data [C99-based standards] (isblank):
14062         Expect function.
14063         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
14064         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
14065         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14066         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
14067         Specify type.  Require positive value.
14068         (EILSEQ): Likewise.
14069         (ERANGE): Likewise.
14070         [ISO || POSIX] (EILSEQ): Do not expect.
14071         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
14072         Specify type.  Require positive value.
14073         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
14074         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
14075         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
14076         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
14077         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
14078         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
14079         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
14080         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
14081         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
14082         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
14083         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
14084         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
14085         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
14086         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
14087         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
14088         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
14089         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
14090         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
14091         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
14092         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
14093         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
14094         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
14095         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
14096         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
14097         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
14098         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
14099         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
14100         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
14101         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
14102         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
14103         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
14104         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
14105         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
14106         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
14107         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
14108         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
14109         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
14110         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
14111         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
14112         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
14113         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
14114         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
14115         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
14116         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
14117         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
14118         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
14119         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
14120         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
14121         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
14122         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
14123         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
14124         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
14125         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
14126         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
14127         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
14128         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
14129         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
14130         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
14131         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
14132         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
14133         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
14134         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
14135         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
14136         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
14137         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
14138         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
14139         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
14140         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
14141         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
14142         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
14143         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
14144         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
14145         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
14146         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
14147         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
14148         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
14149         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
14150         Require >= 2.
14151         (FLT_ROUNDS): Expect as macro, not constant.
14152         (FLT_MANT_DIG): Use macro-int-constant.
14153         (DBL_MANT_DIG): Likewise.
14154         (LDBL_MANT_DIG): Likewise.
14155         (FLT_DIG): Likewise.
14156         (DBL_DIG): Likewise.
14157         (LDBL_DIG): Likewise.
14158         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
14159         (DBL_MIN_EXP): Likewise.
14160         (LDBL_MIN_EXP): Likewise.
14161         (FLT_MAX_EXP): Use macro-int-constant.
14162         (DBL_MAX_EXP): Likewise.
14163         (LDBL_MAX_EXP): Likewise.
14164         (FLT_MAX_10_EXP): Likewise.
14165         (DBL_MAX_10_EXP): Likewise.
14166         (LDBL_MAX_10_EXP): Likewise.
14167         (FLT_MAX): Use macro-constant.
14168         (DBL_MAX): Likewise.
14169         (LDBL_MAX): Likewise.
14170         (FLT_EPSILON): Use macro-constant.  Give upper bound.
14171         (DBL_EPSILON): Likewise.
14172         (LDBL_EPSILON): Likewise.
14173         (FLT_MIN): Likewise.
14174         (DBL_MIN): Likewise.
14175         (LDBL_MIN): Likewise.
14176         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
14177         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
14178         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
14179         [ISO11] (FLT_HAS_SUBNORM): Likewise.
14180         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
14181         [ISO11] (DBL_DECIMAL_DIG): Likewise.
14182         [ISO11] (FLT_DECIMAL_DIG): Likewise.
14183         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
14184         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
14185         [ISO11] (FLT_TRUE_MIN): Likewise.
14186         [ISO11] (LDBL_TRUE_MIN): Likewise.
14187         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14188         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
14189         (SCHAR_MIN): Use macro-int-constant.  Specify type.
14190         (SCHAR_MAX): Likewise.
14191         (UCHAR_MAX): Likewise.
14192         (CHAR_MIN): Likewise.
14193         (CHAR_MAX): Likewise.
14194         (MB_LEN_MAX): Use macro-int-constant.
14195         (SHRT_MIN): Use macro-int-constant.  Specify type.
14196         (SHRT_MAX): Likewise.
14197         (USHRT_MAX): Likewise.
14198         (INT_MAX): Likewise.
14199         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
14200         bound negative.
14201         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14202         bound with "U".
14203         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14204         bound with "L".
14205         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
14206         bound negative.  Suffix upper bound with "L".
14207         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14208         bound with "UL".
14209         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
14210         Specify type.
14211         [C99-based standards] (LLONG_MAX): Likewise.
14212         [C99-based standards] (ULLONG_MAX): Likewise.
14213         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
14214         == 0.
14215         [ISO11] (max_align_t): Require type.
14216         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14217
14218         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
14219         from $CFLAGS, without defining away __attribute__ calls.
14220         (checknamespace): Use $CFLAGS_namespace.
14221
14222         * conform/conformtest.pl (@keywords): Only include C99 keywords
14223         for standards based on C99 or C11.
14224
14225         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
14226         Disable tests.
14227         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
14228         UNIX98]: Likewise.
14229
14230         * conform/conformtest.pl: Handle "macro-int-constant" and test for
14231         usability of symbols in #if.
14232
14233         * conform/conformtest.pl: If macro or constant types start
14234         "promoted:", expect the symbol to be of the following type
14235         promoted by the integer promotions.
14236
14237         * conform/conformtest.pl: Parse all "constant" and "macro" lines
14238         in one place.  Also handle "macro-constant".
14239
14240         * conform/conformtest.pl: Only accept expected macro values with
14241         "==".  Parse all "macro" lines in one place.
14242         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
14243
14244         * conform/conformtest.pl: Handle braced types on "constant" lines
14245         instead of handling "typed-constant".
14246         * conform/data/signal.h-data: Use "constant" instead of
14247         "typed-constant".
14248
14249         * conform/conformtest.pl: Handle "optional-" at start of lines in
14250         one place rather than duplicating several cases.  Handle each
14251         format of "macro" line with initial "optional-".
14252
14253         * conform/conformtest.pl: Only accept expected constant or
14254         optional-constant values with "==".  Parse all "constant" lines in
14255         one place.  Parse all "optional-constant" lines in one place.
14256         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
14257         * conform/data/fmtmsg.h-data: Likewise.
14258         * conform/data/netinet/in.h-data: Likewise.
14259         * conform/data/tar.h-data: Likewise.
14260         * conform/data/limits.h-data: Use "==" form on "constant" and
14261         "optional-constant" lines.
14262
14263         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
14264         Use -std=c99 for XOPEN2K.
14265         (@knownproblems): Remove.
14266         (newtoken): Don't check %isknown.
14267
14268         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
14269         Do not expect macro.
14270         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
14271         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
14272         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
14273         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
14274         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
14275         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
14276         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
14277         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
14278         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
14279         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
14280         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
14281         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
14282         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
14283         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
14284         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
14285         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
14286         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
14287         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
14288         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
14289         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
14290         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
14291         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
14292         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
14293         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
14294         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
14295         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
14296         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
14297         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
14298         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
14299         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
14300         [XPG3] (acosh): Likewise.
14301         [XPG3] (asinh): Likewise.
14302         [XPG3] (atanh): Likewise.
14303         [XPG3] (cbrt): Likewise.
14304         [XPG3] (expm1): Likewise.
14305         [XPG3] (ilogb): Likewise.
14306         [XPG3] (log1p): Likewise.
14307         [XPG3] (logb): Likewise.
14308         [XPG3] (nextafter): Likewise.
14309         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
14310         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
14311         [XPG3] (remainder): Likewise.
14312         [XPG3] (rint): Likewise.
14313         [XPG3 || XPG4 || UNIX98] (round): Likewise.
14314         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
14315         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
14316         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
14317         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
14318         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
14319         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
14320         [UNIX98 || XOPEN2K] (scalb): Expect.
14321         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
14322         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
14323         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
14324         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
14325         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
14326         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
14327         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
14328         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
14329         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
14330         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
14331         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
14332         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
14333         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
14334         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
14335         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
14336         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
14337         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
14338         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
14339         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
14340         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
14341         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
14342         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
14343         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
14344         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
14345         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
14346         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
14347         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
14348         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
14349         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
14350         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
14351         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
14352         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
14353         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
14354         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
14355         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
14356         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
14357         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
14358         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
14359         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
14360         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
14361         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
14362         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
14363         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
14364         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
14365         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
14366         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
14367         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
14368         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
14369         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
14370         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
14371         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
14372         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
14373         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
14374         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
14375         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
14376         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
14377         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
14378         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
14379         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
14380         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
14381         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
14382         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
14383         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
14384         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
14385         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
14386         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
14387         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
14388         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
14389         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
14390         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
14391         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
14392         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
14393         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
14394         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
14395         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
14396         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
14397         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
14398         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
14399         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
14400         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
14401         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
14402         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
14403         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
14404         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
14405         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
14406         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
14407         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
14408         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
14409         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
14410         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
14411         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
14412         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
14413         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
14414         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
14415         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
14416         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
14417         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
14418         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
14419         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
14420         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
14421         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
14422         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
14423         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
14424         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
14425         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
14426         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
14427         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
14428         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
14429         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
14430         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
14431         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
14432         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
14433         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
14434         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
14435         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
14436         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
14437         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
14438         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
14439         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
14440         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
14441         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
14442         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
14443         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
14444         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
14445         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
14446         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
14447         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
14448         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
14449         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
14450         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
14451         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
14452         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
14453         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
14454         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
14455         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
14456         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
14457         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
14458
14459         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
14460         _XOPEN_SOURCE_EXTENDED for XPG4.
14461
14462         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
14463
14464         * Makeconfig (localtime): Remove variable.
14465         (inst_localtime-file): Likewise.
14466
14467 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
14468
14469         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
14470         Update.
14471         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14472         Update.
14473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
14474         Update.
14475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
14476         Update.
14477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
14478         Update.
14479         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
14480         Update.
14481         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14482         Update.
14483         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
14484         Update.
14485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14486         Update.
14487
14488 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
14489
14490         [BZ #2550]
14491         [BZ #2570]
14492         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
14493         comparisons to determine direction to adjust input.
14494         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
14495         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
14496         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
14497         Likewise.
14498         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
14499         Likewise.
14500         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14501         Likewise.
14502         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
14503         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14504         Likewise.
14505         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14506         Likewise.
14507         * math/libm-test.inc (nexttoward_test): Add more tests.
14508
14509 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
14510
14511         [BZ #14040]
14512         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
14513         in version GLIBC_2.1, not GLIBC_2.0.
14514         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
14515         Likewise.
14516
14517 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
14518
14519         [BZ #13942]
14520         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
14521         (1 - x) * (1 + x).
14522         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
14523         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
14524         * math/libm-test.inc (acos_test): Add more tests.
14525         (asin_test): Likewise.
14526         * sysdeps/i386/fpu/libm-test-ulps: Update.
14527         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14528
14529         [BZ #14034]
14530         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
14531         of square root.
14532         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
14533         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
14534         * math/libm-test.inc (acos_test_tonearest): New function.
14535         (acos_test_towardzero): Likewise.
14536         (acos_test_downward): Likewise.
14537         (acos_test_upward): Likewise.
14538         (asin_test_tonearest): Likewise.
14539         (asin_test_towardzero): Likewise.
14540         (asin_test_downward): Likewise.
14541         (asin_test_upward): Likewise.
14542         (main): Call the new functions.
14543         * sysdeps/i386/fpu/libm-test-ulps: Update.
14544         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14545
14546         [BZ #13884]
14547         [BZ #13924]
14548         * math/e_exp10.c: Include <float.h>.
14549         (__ieee754_exp10): Handle underflow here rather than multiplying
14550         large negative argument by M_LN10.
14551         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
14552         of __ieee754_expf.
14553         * math/e_exp10l.c: Include <float.h>.
14554         (__ieee754_exp10l): Handle underflow here rather than multiplying
14555         large negative argument by M_LN10l.
14556         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
14557         spurious overflow exception on underflow.
14558
14559 2012-04-29  Marek Polacek  <polacek@redhat.com>
14560
14561         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
14562         (__fortify_function): New macro.
14563         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
14564         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
14565         __extern_always_inline.
14566         * libio/bits/stdio2.h: Likewise.
14567         * libio/bits/stdio.h: Likewise.
14568         * string/string.h: Likewise.
14569         * string/bits/string3.h: Likewise.
14570         * include/stdio.h: Likewise.
14571         * stdlib/bits/stdlib.h: Likewise.
14572         * stdlib/stdlib.h: Likewise.
14573         * rt/bits/mqueue2.h: Likewise.
14574         * rt/mqueue.h: Likewise.
14575         * posix/bits/unistd.h: Likewise.
14576         * posix/unistd.h: Likewise.
14577         * io/bits/poll2.h: Likewise.
14578         * io/bits/fcntl2.h: Likewise.
14579         * io/fcntl.h: Likewise.
14580         * io/sys/poll.h: Likewise.
14581         * misc/bits/syslog.h: Likewise.
14582         * misc/bits/syslog-ldbl.h: Likewise.
14583         * misc/sys/syslog.h: Likewise.
14584         * socket/bits/socket2.h: Likewise.
14585         * socket/sys/socket.h: Likewise.
14586         * debug/tst-chk1.c: Likewise.
14587         * wcsmbs/bits/wchar2.h: Likewise.
14588         * wcsmbs/bits/wchar-ldbl.h: Likewise.
14589         * wcsmbs/wchar.h: Likewise.
14590
14591 2012-04-29  Andreas Jaeger  <aj@suse.de>
14592
14593         * Makerules (tests): Remove enable-check-abi protection.
14594         (check-abi-warn): Remove.
14595         (check-abi-%): Remove check-abi-warn usage.
14596
14597         * configure.in: Remove check-abi configure option.
14598         * configure: Regenerated.
14599         * config.make.in (enable-check-abi): Remove.
14600
14601 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
14602
14603         [BZ #14033]
14604         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
14605         double functions to double *_finite functions.
14606
14607         [BZ #13941]
14608         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
14609         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
14610         LDBL_MIN_EXP.
14611         * stdio-common/Makefile (tests): Add tst-sprintf3.
14612         * stdio-common/tst-sprintf3.c: New file.
14613
14614         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
14615         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
14616
14617 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
14618
14619         * conform/conformtest.pl: Remove duplicate typed-constant
14620         handling.
14621
14622 2012-04-28  David S. Miller  <davem@davemloft.net>
14623
14624         * Makerules (%.abilist): Add vpath on sysdep_dirs.
14625         (check-abi-%): Remove AWK script prerequisite and explicit
14626         abilist directory.
14627         (check-abi): Rewrite to just diff the symlist with the abilist.
14628         (config-tls, config-abi-config): Delete, no longer used.
14629         (update-abi-%): Remove AWK script and explicit abilist directory.
14630         (update-abi): Rewrite to simply compare and conditionally copy the
14631         symlist and the sysdep abilist file.  Remove update-abi-config
14632         checks.
14633         * abilist/ld.abilist: Remove.
14634         * abilist/libBrokenLocale.abilist: Remove.
14635         * abilist/libanl.abilist: Remove.
14636         * abilist/libcrypt.abilist: Remove.
14637         * abilist/libdl.abilist: Remove.
14638         * abilist/librt.abilist: Remove.
14639         * abilist/libthread_db.abilist: Remove.
14640         * abilist/libutil.abilist: Remove.
14641         * scripts/extract-abilist.awk: Remove.
14642         * scripts/merge-abilist.awk: Remove.
14643         * sysdeps/generic/libcidn.abilist: New file.
14644         * sysdeps/generic/libnss_compat.abilist: New file.
14645         * sysdeps/generic/libnss_db.abilist: New file.
14646         * sysdeps/generic/libnss_dns.abilist: New file.
14647         * sysdeps/generic/libnss_files.abilist: New file.
14648         * sysdeps/generic/libnss_hesiod.abilist: New file.
14649         * sysdeps/generic/libnss_nis.abilist: New file.
14650         * sysdeps/generic/libnss_nisplus.abilist: New file.
14651         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
14652         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
14653         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
14654         file.
14655         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
14656         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
14657         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
14658         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
14659         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
14660         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
14661         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
14662         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
14663         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
14664         file.
14665         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
14666         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
14667         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
14668         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
14669         file.
14670         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
14671         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
14672         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
14673         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
14674         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
14675         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
14676         file.
14677         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
14678         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
14679         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
14680         file.
14681         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
14682         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
14683         New file.
14684         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
14685         New file.
14686         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
14687         New file.
14688         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
14689         New file.
14690         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
14691         New file.
14692         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
14693         New file.
14694         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
14695         New file.
14696         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
14697         New file.
14698         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
14699         New file.
14700         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
14701         New file.
14702         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
14703         New file.
14704         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
14705         New file.
14706         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
14707         New file.
14708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
14709         file.
14710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
14711         New file.
14712         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
14713         New file.
14714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
14715         file.
14716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
14717         New file.
14718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
14719         New file.
14720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
14721         file.
14722         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
14723         New file.
14724         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14725         New file.
14726         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
14727         New file.
14728         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
14729         New file.
14730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
14731         New file.
14732         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
14733         New file.
14734         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
14735         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
14736         file.
14737         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
14738         New file.
14739         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
14740         file.
14741         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
14742         file.
14743         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
14744         file.
14745         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
14746         file.
14747         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
14748         file.
14749         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14750         New file.
14751         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
14752         file.
14753         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
14754         file.
14755         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
14756         New file.
14757         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
14758         file.
14759         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
14760         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
14761         file.
14762         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
14763         New file.
14764         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
14765         file.
14766         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
14767         file.
14768         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
14769         file.
14770         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
14771         file.
14772         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
14773         file.
14774         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14775         New file.
14776         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
14777         file.
14778         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
14779         file.
14780         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
14781         New file.
14782         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
14783         file.
14784         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
14785         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
14786         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
14787         file.
14788         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
14789         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
14790         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
14791         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
14792         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
14793         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
14794         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
14795         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
14796         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
14797         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
14798         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
14799         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
14800         file.
14801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
14802         New file.
14803         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
14804         file.
14805         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
14806         file.
14807         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
14808         file.
14809         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
14810         file.
14811         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
14812         file.
14813         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
14814         New file.
14815         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
14816         New file.
14817         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
14818         file.
14819         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
14820         New file.
14821         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
14822         file.
14823         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
14824         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
14825         file.
14826         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
14827         New file.
14828         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
14829         file.
14830         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
14831         file.
14832         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
14833         file.
14834         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
14835         file.
14836         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
14837         file.
14838         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
14839         New file.
14840         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
14841         New file.
14842         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
14843         file.
14844         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
14845         New file.
14846         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
14847         file.
14848
14849 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
14850
14851         * conform/conformtest.pl: Fix typo in handling typed-constant from
14852         allow-header.
14853
14854 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14855
14856         * README: Cut down references to pre-2.6 Linux kernels and
14857         Linuxthreads.  Update lists of configurations in libc and ports
14858         and sort alphabetically.  Say "or newer" with Linux kernel version
14859         requirements.
14860
14861         * config.h.in [IS_IN_build]: Allow compiling without optimization.
14862
14863 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14864
14865         [BZ #887]
14866         * math/libm-test.inc (logb_test_downward): New test to expose
14867         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
14868         rounding mode.
14869
14870 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14871
14872         [BZ #14027]
14873         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
14874         to be done.
14875         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
14876         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
14877
14878 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
14879
14880         * sysdeps/unix/i386/brk.S: Remove file.
14881         * sysdeps/unix/i386/dl-brk.S: Likewise.
14882         * sysdeps/unix/i386/pipe.S: Likewise.
14883         * sysdeps/unix/i386/sigreturn.S: Likewise.
14884         * sysdeps/unix/i386/syscall.S: Likewise.
14885         * sysdeps/unix/i386/vfork.S: Likewise.
14886         * sysdeps/unix/i386/wait.S: Likewise.
14887
14888         * sysdeps/unix/common/tcsendbrk.c: Move to ...
14889         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
14890
14891         * configure.in (arm*-none*): Do not allow without
14892         --enable-hacker-mode.
14893         (netbsd*): Remove case setting base_os.
14894         (386bsd*): Likewise.
14895         (freebsd*): Likewise.
14896         (bsdi*): Likewise.
14897         (osf*): Likewise.
14898         (sunos*): Likewise.
14899         (ultrix*): Likewise.
14900         (newsos*): Likewise.
14901         (dynix*): Likewise.
14902         (*bsd*): Likewise.
14903         (sysv*): Likewise.
14904         (isc*): Likewise.
14905         (esix*): Likewise.
14906         (sco*): Likewise.
14907         (minix*): Likewise.
14908         (irix4*): Likewise.
14909         (irix6*): Likewise.
14910         (solaris[2-9]*): Likewise.
14911         (none): Likewise.
14912         * configure: Regenerated.
14913
14914 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14915
14916         [BZ #11521]
14917         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
14918         overflow or cancellation in calculating denominator.
14919         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
14920         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
14921         down expression to avoid unexpected rounding in newer GCCs.
14922         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
14923
14924 2012-04-26  David S. Miller  <davem@davemloft.net>
14925
14926         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
14927         long-double compat symbols.
14928         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14929         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
14930         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
14931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
14932         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
14933         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
14934         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
14935         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
14936         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
14937         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
14938         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
14939         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
14940         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
14941
14942 2012-04-25  David S. Miller  <davem@davemloft.net>
14943
14944         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
14945         HWCAP_* values only after the memory barriers have been defined.
14946         (atomic_full_barrier): Define.
14947         (atomic_read_barrier): Define.
14948         (atomic_write_barrier): Define.
14949
14950 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14951
14952         * shlib-versions: Add libgcc_s version information.
14953         * sysdeps/generic/libgcc_s.h: Remove.
14954         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
14955         libgcc_s.h.
14956         * sysdeps/gnu/unwind-resume.c: Likewise.
14957         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
14958
14959 2012-04-25  David S. Miller  <davem@davemloft.net>
14960
14961         * sysdeps/unix/sparc/brk.S: Delete.
14962         * sysdeps/unix/sparc/dl-brk.S: Delete.
14963         * sysdeps/unix/sparc/pipe.S: Delete.
14964         * sysdeps/unix/sparc/sysdep.S: Delete.
14965         * sysdeps/unix/sparc/sysdep.h: Delete.
14966         * sysdeps/unix/sparc/vfork.S: Delete.
14967         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
14968         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
14969         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
14970         ret_ERRVAL, r0, r1, MOVE): Define.
14971         (JUMPTARGET): Remove.
14972         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
14973         sysdeps/unix/sparc/sysdep.h
14974         (ENTRY, END): Remove.
14975         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14976
14977 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
14978
14979         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
14980         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
14981         -DIS_IN_build.
14982
14983         * timezone/README: Update upstream location and email address for
14984         tzcode and tzdata.
14985         * timezone/zdump.c: Update from tzcode 2012b.
14986         * timezone/zic.c: Likewise.
14987
14988         * configure.in (libc_cv_as_needed): Remove test.
14989         * configure: Regenerated.
14990         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
14991         conditional definition.
14992         [$(have-as-needed) != yes] (no-as-needed): Likewise.
14993         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
14994         * config.make.in (have-as-needed): Remove variable.
14995
14996 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14997             Paul Pluzhnikov  <ppluzhnikov@google.com>
14998
14999         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
15000         strings correctly.
15001
15002 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
15003
15004         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
15005         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
15006         * sysdeps/sh/strlen.S: Likewise.
15007
15008 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15009
15010         * sysdeps/unix/fork.S: Remove file.
15011         * sysdeps/unix/i386/fork.S: Likewise.
15012         * sysdeps/unix/sparc/fork.S: Likewise.
15013
15014         * sysdeps/unix/system.c: Remove file.
15015         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
15016
15017         * sysdeps/unix/getegid.S: Remove file.
15018         * sysdeps/unix/geteuid.S: Likewise.
15019
15020 2012-04-24  Roland McGrath  <roland@hack.frob.com>
15021
15022         * scripts/check-localplt.awk: New file.
15023         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
15024         of diff.
15025         * scripts/data/localplt-generic.data: Add a comment.
15026
15027         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
15028         NODE when __dir_mkfile failed.
15029         * sysdeps/mach/hurd/symlinkat.c: Likewise.
15030         Reported by Ludovic Courtès <ludo@gnu.org>.
15031
15032 2012-04-24  Andreas Jaeger  <aj@suse.de>
15033
15034         * Makerules (common-clean): Also remove gen-as-const-headers
15035         files.
15036
15037 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15038
15039         * Makerules (native-compile): Do not change working directory for
15040         build.  Use $(OUTPUT_OPTION) in command.
15041         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
15042
15043 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15044
15045         [BZ #13886]
15046         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
15047         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
15048         * math/libm-test.inc (floor_test): Add more tests.
15049         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
15050
15051 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
15052
15053         * sysdeps/unix/getdents.c: Remove file.
15054         * sysdeps/unix/sysv/getdents.c: Likewise.
15055         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
15056
15057         * sysdeps/unix/syscalls.list (madvise): Add syscall from
15058         sysdeps/unix/mman/syscalls.list.
15059         (mmap): Likewise.
15060         (mprotect): Likewise.
15061         (msync): Likewise.
15062         (munmap): Likewise.
15063         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
15064         * sysdeps/unix/mman/syscalls.list: Remove.
15065         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
15066
15067         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
15068         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
15069         * configure: Regenerated.
15070         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
15071         $(libgcc_s_suffix).
15072         * config.make.in (libgcc_s_suffix): Remove variable.
15073
15074 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
15075
15076         * sysdeps/unix/sysv/gethostname.c: Move to ...
15077         * sysdeps/posix/gethostname.c: ... here.
15078
15079         * sysdeps/unix/execve.S: Remove file.
15080
15081         * sysdeps/unix/_exit.S: Remove file.
15082
15083 2012-04-23  Andreas Jaeger  <aj@suse.de>
15084
15085         [BZ #13739]
15086         * manual/Makefile: Remove make dist support, there's no
15087         need for a stand-alone documentation tar ball.
15088         (TEXI2DVI): Define always, it's not in Makeconfig.
15089         (dist): Removed.
15090         (tar-it): Removed.
15091         (edition): Removed.
15092         (glibc-doc-$(edition).tar): Removed
15093         (%.Z): Removed.
15094         (%.gz): Removed.
15095         (%.uu): Removed.
15096         (ETAGS): Remove, it's in Makeconfig.
15097         (move-if-change): Remove, it's in Makeconfig.
15098
15099 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
15100
15101         [BZ #13970]
15102         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
15103         (strtod, strtof, strtold, strtol, strtoul, strtoq)
15104         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
15105         (strtod_l, strtof_l, strtold_l): Remove __wur.
15106         It is not necessarily an error to ignore strtol's return value.
15107         One can reliably look at the stored endptr to decide whether
15108         the number had valid syntax.
15109
15110 2012-04-21  Andreas Jaeger  <aj@suse.de>
15111
15112         [BZ #13739]
15113         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
15114
15115 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
15116
15117         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
15118         * sysdeps/unix/sysv/Versions: Remove file.
15119
15120 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
15121
15122         [BZ #13927]
15123         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15124
15125 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
15126
15127         [BZ #7064]
15128         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
15129         version from __vm86.
15130
15131 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
15132
15133         * sysdeps/unix/common/lxstat.c: Remove file.
15134         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
15135
15136         * sysdeps/unix/sysv/Makefile: Remove file.
15137
15138         * sysdeps/unix/sysv/direct.h: Remove file.
15139
15140         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
15141         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
15142         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
15143         * sysdeps/unix/sysv/bits/signum.h: Likewise.
15144         * sysdeps/unix/sysv/bits/stat.h: Likewise.
15145         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
15146         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
15147
15148         * sysdeps/unix/sysv/setrlimit.c: Remove file.
15149
15150         * sysdeps/unix/xmknod.c: Remove file.
15151         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
15152
15153         * sysdeps/unix/sysv/settimeofday.c: Remove file.
15154
15155         * sysdeps/unix/sysv/i386/time.S: Remove file.
15156
15157         * sysdeps/unix/fxstat.c: Remove file.
15158         * sysdeps/unix/xstat.c: Likewise.
15159         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
15160
15161         * sysdeps/unix/sysv/sigaction.c: Remove file.
15162
15163         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
15164         (sysdep_headers): Remove variable.
15165         [termio.h not in sysdep_headers] (generated): Likewise.
15166         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
15167         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
15168         * sysdeps/unix/sysv/tcdrain.c: Likewise.
15169         * sysdeps/unix/sysv/tcflow.c: Likewise.
15170         * sysdeps/unix/sysv/tcflush.c: Likewise.
15171         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
15172         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
15173         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
15174         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
15175         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
15176
15177         * sysdeps/unix/siglist.c: Remove file.
15178
15179         * sysdeps/unix/getppid.S: Remove file.
15180
15181         * sysdeps/unix/mkdir.c: Remove file.
15182         * sysdeps/unix/rmdir.c: Likewise.
15183
15184 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
15185
15186         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
15187         ERR_MAX value.
15188         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
15189         errlist-compat value.
15190
15191 2012-04-18  David S. Miller  <davem@davemloft.net>
15192
15193         * sysdeps/generic/memcopy.h (reg_char): Delete.
15194         * debug/strcat_chk.c: Use char, not reg_char.
15195         * debug/strcpy_chk.c: Likewise.
15196         * debug/strncat_chk.c: Likewise.
15197         * debug/strncpy_chk.c: Likewise.
15198         * string/memchr.c: Likewise.
15199         * string/memrchr.c: Likewise.
15200         * string/rawmemchr.c: Likewise.
15201         * string/strcat.c: Likewise.
15202         * string/strchr.c: Likewise.
15203         * string/strchrnul.c: Likewise.
15204         * string/strcmp.c: Likewise.
15205         * string/strcpy.c: Likewise.
15206         * string/strncat.c: Likewise.
15207         * string/strncmp.c: Likewise.
15208         * string/strncpy.c: Likewise.
15209
15210 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15211
15212         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
15213         __builtin_memcopy is called when src and dest ranges are known to not
15214         overlap.
15215
15216 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15217
15218         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
15219         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
15220         fwd_align_merge macro call.
15221         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
15222         bwd_align_merge macro call.
15223         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15224
15225 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15226
15227         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
15228         bwd_align_merge macros.
15229         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
15230         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
15231         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15232
15233 2012-04-18  David S. Miller  <davem@davemloft.net>
15234
15235         * sysdeps/sparc/sparc64/memcopy.h: Delete.
15236
15237 2012-04-18  Andreas Jaeger  <aj@suse.de>
15238
15239         [BZ# 6794]
15240         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
15241         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
15242         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15243
15244         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
15245         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
15246         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15247
15248         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
15249         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
15250         Adjust for changed ldbl-128 files.
15251
15252         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
15253         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
15254         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15255
15256 2012-04-17  David S. Miller  <davem@davemloft.net>
15257
15258         * sysdeps/sparc/sparc32/memcopy.h: Delete.
15259
15260 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
15261
15262         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
15263         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
15264         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
15265         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
15266         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
15267         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
15268
15269 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15270
15271         [BZ #6794]
15272         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
15273         * math/libm-test.inc: Add ilogb errno and exception tests.
15274         * math/w_ilogb.c: New file: ilogb wrapper.
15275         * math/w_ilogbf.c: New file: ilogbf wrapper.
15276         * math/w_ilogbl.c: New file: ilogbl wrapper.
15277         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
15278         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
15279         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
15280         exception being thrown with 0.0 as argument.
15281         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
15282         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
15283         exception being thrown with 0.0 as argument.
15284         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
15285         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
15286         exception being thrown with 0.0 as argument.
15287         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
15288         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
15289         exception being thrown with 0.0 as argument.
15290         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
15291         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
15292         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
15293         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
15294         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
15295         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
15296         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
15297         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
15298         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
15299
15300 2012-04-17  Petr Baudis  <pasky@ucw.cz>
15301
15302         * include/sys/uio.h: Change __vector to __iovec to avoid clash
15303         with altivec.
15304
15305 2012-04-16  Marek Polacek  <polacek@redhat.com>
15306
15307         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
15308
15309 2012-04-16  Marek Polacek  <polacek@redhat.com>
15310
15311         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
15312         operands of fdivp instruction.
15313
15314 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
15315
15316         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
15317         * elf/tst-auditmod3b.c: Likewise.
15318         * elf/tst-auditmod4b.c: Likewise.
15319         * elf/tst-auditmod5b.c: Likewise.
15320         * elf/tst-auditmod6b.c: Likewise.
15321         * elf/tst-auditmod6c.c: Likewise.
15322         * elf/tst-auditmod7b.c: Likewise.
15323         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
15324         * sysdeps/x86_64/preconfigure.in: Likewise.
15325         * sysdeps/x86_64/preconfigure: Regenerated.
15326
15327 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
15328
15329         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
15330         __ILP32__.
15331
15332 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
15333
15334         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15335         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
15336
15337 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
15338
15339         [BZ #13973]
15340         * locale/iso-639.def: Fix gl language name. Spotted by
15341         Yaron Shahrabani.
15342
15343 2012-04-12  Roland McGrath  <roland@hack.frob.com>
15344
15345         [BZ #2074]
15346         * libio/libio.h (__io_write_fn): Update comment.
15347
15348 2012-04-12  Petr Baudis  <pasky@ucw.cz>
15349
15350         [BZ #2074]
15351         * stdio.texi (Hook Functions): The user provided writer function
15352         is not allowed to return -1.
15353
15354 2012-04-11  David S. Miller  <davem@davemloft.net>
15355
15356         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15357
15358 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
15359
15360         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
15361         Add a leading slash to rtkaio.
15362
15363 2012-04-11  Jim Meyering  <meyering@redhat.com>
15364
15365         [BZ #11959]
15366         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
15367         It is not necessarily an error to ignore fwrite's return
15368         value.  One can reliably use ferror to test for errors after
15369         the fact.
15370
15371 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
15372
15373         * bits/types.h (__snseconds_t): New type.
15374         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
15375
15376         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
15377         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15378         (__SNSECONDS_T_TYPE): Likewise.
15379         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15380         (__SNSECONDS_T_TYPE): Likewise.
15381         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15382         (__SNSECONDS_T_TYPE): Likewise.
15383
15384 2012-04-10  Andreas Jaeger  <aj@suse.de>
15385
15386         [BZ #2636]
15387         * manual/time.texi (Processor Time): Return type of times is
15388         elapsed real time since an arbitrary point in the past.
15389         (CPU Time): Move CLK_TCK from here...
15390         (Processor Time): ...to here.  Correct description.
15391         * manual/conf.texi (Constants for Sysconf): Correct description of
15392         _SC_CLK_TCK.
15393
15394 2012-04-10  David S. Miller  <davem@davemloft.net>
15395
15396         [BZ #13967]
15397         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
15398         where the is a gap between DT_REL(A) and DT_JMPREL.
15399
15400 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
15401
15402         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
15403         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
15404         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
15405
15406 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15407
15408         * elf/dl-support.c (_dl_inhibit_cache): New variable.
15409         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
15410         (dl_main): Handle --inhibit-cache.
15411         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
15412         _dl_inhibit_cache.
15413         * elf/dl-load.c (_dl_map_object): Use it.
15414         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
15415
15416 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
15417
15418         [BZ #13872]
15419         * sysdeps/i386/fpu/e_powl.S (p78): New object.
15420         (__ieee754_powl): Saturate large exponents rather than testing for
15421         overflow of y*log2(x).
15422         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15423         * math/libm-test.inc (pow_test): Do not permit spurious overflow
15424         exceptions.
15425
15426         [BZ #11521]
15427         * math/s_ctan.c: Include <float.h>.
15428         (__ctan): Avoid internal overflow or cancellation in calculating
15429         denominator.
15430         * math/s_ctanf.c: Likewise.
15431         * math/s_ctanl.c: Likewise.
15432         * math/s_ctanh.c: Likewise.
15433         * math/s_ctanhf.c: Likewise.
15434         * math/s_ctanhl.c: Likewise.
15435         * math/libm-test.inc (ctan_test): Add more tests.
15436         (ctanh_test): Likewise.
15437         * sysdeps/i386/fpu/libm-test-ulps: Update.
15438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15439
15440 2012-04-09  Andreas Jaeger  <aj@suse.de>
15441
15442         [BZ #6894]
15443         * manual/filesys.texi (Directory Entries): Mention that d_namlen
15444         is an optional BSD extension.
15445
15446         [BZ #10254]
15447         * manual/stdio.texi (Opening Streams): Document additional fopen
15448         parameters.
15449
15450 2012-04-09  Roland McGrath  <roland@hack.frob.com>
15451
15452         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
15453         %eax without telling the compiler.
15454
15455 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
15456
15457         [BZ # 13963]
15458         * manual/install.texi: Use sourceware.org.
15459
15460 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
15461
15462         [BZ #13873]
15463         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
15464         (__ieee754_pow): Generate overflow and underflow using huge*huge
15465         and tiny*tiny rather than just returning constant infinity or zero
15466         for large exponents.
15467         * math/libm-test.inc (pow_test): Require overflow exceptions for
15468         applicable cases of large exponents.
15469
15470         [BZ #706]
15471         * sysdeps/i386/fpu/e_pow.S (p10): New object.
15472         (__ieee754_pow): Use iterative multiplication algorithm only for
15473         integer exponents with absolute value below 1024.  Check for odd
15474         integer exponents when using algorithm for real exponents.
15475         * math/libm-test.inc (pow_test): Add more tests.
15476         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15477
15478 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
15479
15480         [BZ #13705]
15481         * math/libm-test.inc (exp_test): Do not allow overflow exception
15482         on underflow test.
15483
15484 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
15485
15486         [BZ #13705]
15487         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
15488         instead of __kernel_standard_f.
15489
15490 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
15491
15492         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
15493         * sysdeps/x86_64/memset_chk.S: Likewise.
15494
15495 2012-04-08  Andreas Jaeger  <aj@suse.de>
15496
15497         [BZ #10153]
15498         * manual/startup.texi (Environment Access): Describe return value
15499         for putenv and setenv.
15500
15501         [BZ #6895]
15502         * manual/filesys.texi (Directory Entries): Add description for
15503         DT_LNK.
15504
15505         [BZ #6890]
15506         * manual/filesys.texi (Directory Entries): Clarify that it's file
15507         system not operating system in the description of DT_UNKNOWN.
15508
15509         [BZ #6578]
15510         * manual/syslog.texi (closelog): Fix reference, it's openlog.
15511
15512 2012-04-08  Stephen Compall  <s11@member.fsf.org>
15513
15514         [BZ #6649]
15515         * manual/llio.texi (Opening and Closing Files): Add cross
15516         reference to explain mode argument.
15517
15518 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
15519
15520         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
15521         * sysdeps/x86_64/memset_chk.S: Likewise.
15522
15523 2012-04-07  David S. Miller  <davem@davemloft.net>
15524
15525         * elf/elf.h (R_SPARC_WDISP10): Define.
15526         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
15527         R_SPARC_SIZE32.
15528         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
15529         R_SPARC_SIZE64 and R_SPARC_H34.
15530
15531 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
15532
15533         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
15534         conditions and remove no longer applicable assertion.
15535
15536 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
15537
15538         * bits/byteswap.h: Include <features.h>.
15539         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
15540         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
15541
15542 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
15543
15544         * bits/byteswap.h (__bswap_16): Removed.
15545         Include <bits/byteswap-16.h> to get __bswap_16.
15546         * sysdeps/i386/bits/byteswap.h: Likewise.
15547         * sysdeps/s390/bits/byteswap.h: Likewise.
15548         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15549         * bits/byteswap-16.h: New file.
15550         * sysdeps/i386/bits/byteswap-16.h: Likewise.
15551         * sysdeps/s390/bits/byteswap-16.h: Likewise.
15552         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
15553         * string/Makefile (headers): Add bits/byteswap-16.h.
15554
15555 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
15556
15557         [BZ #13895]
15558         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
15559         extra indirection.
15560         * nss/Makefile (tests-static, tests): Add tst-nss-static.
15561         * nss/tst-nss-static.c: New.
15562
15563 2012-04-06  Robert Millan  <rmh@gnu.org>
15564
15565         [BZ #6486]
15566         * manual/llio.texi (File Position Primitive): lseek
15567         refers to WHENCE when it really means OFFSET.
15568
15569 2012-04-06  Andreas Jaeger  <aj@suse.de>
15570
15571         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
15572         strncmp declarations.
15573
15574         * abilist/libc.abilist: Add __poll and __ppoll.
15575
15576 2012-04-05  David S. Miller  <davem@davemloft.net>
15577
15578         * scripts/check-local-headers.sh: Accept a host triplet in the
15579         path matched by the exclude regexp.
15580
15581         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
15582         definition.
15583         * sysdeps/powerpc/powerpc32/dl-machine.h
15584         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
15585         * sysdeps/s390/s390-32/dl-machine.h
15586         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
15587         * sysdeps/sparc/sparc32/dl-machine.h
15588         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
15589         * sysdeps/sparc/sparc64/dl-machine.h
15590         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
15591
15592         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
15593         lazy binding.
15594         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
15595         undefined symbol errors.
15596
15597         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
15598         DT_NEEDED entries.
15599
15600 2012-04-05  Michael Matz  <matz@suse.de>
15601
15602         [BZ #13592]
15603         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
15604
15605 2012-04-05  Andreas Jaeger  <aj@suse.de>
15606
15607         [BZ #13908]
15608         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
15609         comment.
15610
15611 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15612
15613         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
15614         which ROUND is no valid rounding mode.
15615
15616 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15617
15618         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
15619         read again.
15620         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
15621
15622 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15623
15624         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
15625         an exception using FPU order intentionally.
15626
15627 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15628
15629         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
15630         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
15631         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
15632         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
15633
15634 2012-04-05  Simon Josefsson  <simon@josefsson.org>
15635
15636         [BZ #12340]
15637         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
15638         EINVAL when BUFLEN is too smal.
15639
15640 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
15641
15642         [BZ #13553]
15643         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
15644         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
15645
15646 2012-04-03  Andreas Jaeger  <aj@suse.de>
15647
15648         [BZ #13938]
15649         * manual/setjmp.texi (System V contexts): Fix sentence.
15650
15651         [BZ #13926]
15652         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
15653         New macro for this case.
15654         [!__GNUC__] (__bswap_64): New inline function for this case.
15655         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15656         * bits/byteswap.h: Likewise.
15657         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
15658         ull, guard with __GLIBC_HAVE_LONG_LONG.
15659
15660         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
15661         __GLIBC_HAVE_LONG_LONG.
15662
15663         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
15664         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
15665
15666 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15667
15668         [BZ #13691]
15669         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
15670         inptr and inend, rather than using last_ch.
15671
15672 2012-04-02  David S. Miller  <davem@davemloft.net>
15673
15674         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
15675         * stdio-common/printf-parse.h (read_int): Change return type to
15676         'int', return -1 on INT_MAX overflow.
15677         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
15678         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
15679         overflows INT_MAX.  Check for overflow of in-format-string precision
15680         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
15681         SIZE_MAX not INT_MAX for integer overflow test.
15682         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
15683         skip the construct in the format string but do not record anything.
15684         * stdio-common/bug22.c: Adjust to test both width/prevision
15685         INT_MAX overflow as well as total length INT_MAX overflow.  Check
15686         explicitly for proper errno values.
15687
15688 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
15689
15690         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
15691         CHAR_MAX.
15692         * string/test-strcmp.c [! WIDE]: Likewise.
15693         * time/tst-mktime2.c: Likewise for INT_MAX.
15694         * string/test-string.h: #include <sys/param.h> for MIN.
15695
15696         * csu/init-first.c (__libc_init_first): Call __ctype_init.
15697         * sysdeps/i386/init-first.c (init): Likewise.
15698         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
15699         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
15700         * sysdeps/sh/init-first.c (init): Likewise.
15701
15702 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
15703
15704         * po/ru.po: Update from translation team.
15705         * po/vi.po: Likewise.
15706
15707 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15708
15709         * resolv/nss_dns/dns-host.c: Merge copyright years.
15710
15711 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15712
15713         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15714         Optimize memcpy with prefetch if
15715         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
15716         src, dst pointers have unequal 16 byte alignments.
15717
15718 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15719
15720         [BZ #13928]
15721         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
15722         from a CNAME entry and return the minimum ttl for the query.
15723         (gaih_getanswer_slice): Likewise.
15724
15725 2012-03-30  Jeff Law  <law@redhat.com>
15726
15727         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
15728         due to long keys.
15729         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
15730         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
15731
15732         * resolv/nss_dns/dns-host.c: Update copyright year.
15733
15734 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
15735
15736         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
15737         requests to save a system call.  Fix check that all bytes are sent.
15738
15739         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
15740         comments for sendmmsg.
15741
15742 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15743
15744         [BZ #13691]
15745         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
15746         with only 1 character between 0x0041 and 0x01b0.
15747         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
15748         * wcsmbs/tst-mbsnrtowcs.c: New file.
15749
15750 2012-03-29  David S. Miller  <davem@davemloft.net>
15751
15752         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
15753         small copies by hand.
15754
15755 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15756
15757         [BZ #13761]
15758         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
15759         _nss_compat_initgroups_dyn): Fall back to malloc/free
15760         for large group memberships.
15761
15762 2012-03-28  David S. Miller  <davem@davemloft.net>
15763
15764         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
15765         that branches into memcpy.
15766         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
15767         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
15768         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
15769         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
15770         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
15771         bits.
15772         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
15773         implementation too.
15774         * sysdeps/sparc/mempcpy.S: New file.
15775
15776         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
15777         the IFUNC routine in the libc case.
15778         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
15779
15780         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
15781         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
15782         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
15783         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
15784         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
15785         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
15786         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
15787         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
15788
15789         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
15790         loop to 256 bytes instead of 64 bytes and fix test signedness.
15791
15792         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
15793         * sysdeps/sparc/sparc32/Makefile: rather than here...
15794         * sysdeps/sparc/sparc64/Makefile: and here.
15795
15796 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
15797
15798         * malloc/mallocbug.c: Avoid warnings about unused variables.
15799
15800 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
15801
15802         [BZ #13760]
15803         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
15804         in the right place. Discard and retry query if response is
15805         larger than input buffer size.
15806
15807 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
15808
15809         [BZ #369]
15810         [BZ #2678]
15811         [BZ #3866]
15812         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
15813         x for large integer exponent.
15814         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
15815         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
15816         sign of result as needed afterwards.
15817         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
15818         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
15819         result for underflowing pow the same as for overflow.
15820         (__kernel_standard_l): Handle powl overflow and underflow here
15821         rather than calling __kernel_standard.
15822         * math/libm-test.inc (pow_test): Add more tests.
15823
15824         [BZ #3868]
15825         [BZ #13879]
15826         [BZ #13910]
15827         [BZ #13911]
15828         [BZ #13912]
15829         [BZ #13913]
15830         [BZ #13915]
15831         [BZ #13916]
15832         [BZ #13917]
15833         [BZ #13918]
15834         [BZ #13919]
15835         [BZ #13920]
15836         [BZ #13921]
15837         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
15838         * sysdeps/ieee754/k_standard.c: Include <float.h>.
15839         (__kernel_standard_l): New function.
15840         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
15841         __kernel_standard.
15842         * math/w_acosl.c (__acosl): Likewise.
15843         * math/w_asinl.c (__asinl): Likewise.
15844         * math/w_atan2l.c (__atan2l): Likewise.
15845         * math/w_atanhl.c (__atanhl): Likewise.
15846         * math/w_coshl.c (__coshl): Likewise.
15847         * math/w_exp10l.c (__exp10l): Likewise.
15848         * math/w_exp2l.c (__exp2l): Likewise.
15849         * math/w_fmodl.c (__fmodl): Likewise.
15850         * math/w_hypotl.c (__hypotl): Likewise.
15851         * math/w_j0l.c (__j0l, __y0l): Likewise.
15852         * math/w_j1l.c (__j1l, __y1l): Likewise.
15853         * math/w_jnl.c (__jnl, __ynl): Likewise.
15854         * math/w_lgammal.c (__lgammal): Likewise.
15855         * math/w_log10l.c (__log10l): Likewise.
15856         * math/w_log2l.c (__log2l): Likewise.
15857         * math/w_logl.c (__logl): Likewise.
15858         * math/w_powl.c (__powl): Likewise.
15859         * math/w_remainderl.c (__remainderl): Likewise.
15860         * math/w_scalbl.c (sysv_scalbl): Likewise.
15861         * math/w_sinhl.c (__sinhl): Likewise.
15862         * math/w_sqrtl.c (__sqrtl): Likewise.
15863         * math/w_tgammal.c (__tgammal): Likewise.
15864         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
15865         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
15866         * math/libm-test.inc (acos_test): Add more tests.
15867         (acosh_test): Likewise.
15868         (asin_test): Likewise.
15869         (atanh_test): Likewise.
15870         (exp_test): Likewise.
15871         (exp10_test): Likewise.
15872         (exp2_test): Likewise.
15873         (expm1_test): Likewise.
15874         (lgamma_test): Likewise.
15875         (log_test): Likewise.
15876         (log10_test): Likewise.
15877         (log1p_test): Likewise.
15878         (log2_test): Likewise.
15879         (pow_test): Do not allow some spurious overflow exceptions.
15880         (sqrt_test): Add more tests.
15881         (tgamma_test): Likewise.
15882         (y0_test): Likewise.
15883         (y1_test): Likewise.
15884         (yn_test): Likewise.
15885
15886 2012-03-27  Anton Blanchard  <anton@samba.org>
15887
15888         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
15889         MAP_HUGETLB.
15890         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15891         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15892         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15893
15894 2012-03-27  David S. Miller  <davem@davemloft.net>
15895
15896         * conform/Makefile: Run run-conformtest.sh using $(BASH).
15897
15898         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
15899         have-as-vis3 check.
15900
15901 2012-03-27  Andreas Jaeger  <aj@suse.de>
15902
15903         * sysdeps/x86_64/elf/configure.in: Moved to ...
15904         * sysdeps/x86_64/configure.in: ... here.
15905         * sysdeps/x86_64/elf/start.S: Moved to ...
15906         * sysdeps/x86_64/start.S: ... here.
15907         * sysdeps/x86_64/elf/configure: Delete.
15908
15909         * sysdeps/x86_64/configure.in: Merge contents from
15910         sysdeps/i386/configure.in (without i686 check).
15911
15912         * sysdeps/i386/elf/Versions: Merge into ...
15913         * sysdeps/i386/Versions: ... this.
15914         * sysdeps/i386/elf/Versions: Delete file.
15915         * sysdeps/i386/elf/start.S: Moved to ...
15916         * sysdeps/i386/start.S: ...here.
15917         * sysdeps/i386/elf/configure.in: Merge into...
15918         * sysdeps/i386/configure.in: ...here.
15919         * sysdeps/i386/elf/configure.in: Delete file.
15920         * sysdeps/i386/elf/configure: Delete file.
15921
15922         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
15923         * debug/backtracesyms.c: ... here.
15924         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
15925         * debug/backtracesymsfd.c: ... here.
15926         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
15927         * sysdeps/generic/ifunc-sel.h: ... here.
15928
15929         * sysdeps/unix/i386/start.c: Delete file.
15930         * sysdeps/unix/sparc/start.c: Delete file.
15931         * sysdeps/unix/start.c: Delete file.
15932
15933         * sysdeps/sh/elf/configure.in: Moved to ...
15934         * sysdeps/sh/configure.in: ... here.
15935         * sysdeps/sh/elf/start.S: Moved to ...
15936         * sysdeps/sh/start.S: ... here.
15937         * sysdeps/sh/elf/configure: Delete file.
15938
15939         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
15940         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
15941         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
15942         * sysdeps/powerpc/powerpc64/entry.h: ... here.
15943         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
15944         * sysdeps/powerpc/powerpc64/start.S: here.
15945         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
15946         * sysdeps/powerpc/powerpc64/Makefile: ... this.
15947         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
15948         * sysdeps/powerpc/powerpc64/configure.in: ... this.
15949         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
15950
15951         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
15952         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
15953         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
15954         * sysdeps/powerpc/powerpc32/start.S: ... here.
15955         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
15956         * sysdeps/powerpc/powerpc32/configure.in: ... this.
15957         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
15958
15959         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
15960         * sysdeps/powerpc/ifunc-sel.h: ... here.
15961         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
15962         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
15963
15964         * sysdeps/sparc/elf/configure.in: Moved to ...
15965         * sysdeps/sparc/configure.in: ... here.
15966         * sysdeps/sparc/elf/configure: Delete file.
15967         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
15968         * sysdeps/sparc/sparc32/start.S: ... here.
15969         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
15970         * sysdeps/sparc/sparc64/start.S: ... here.
15971         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
15972         * sysdeps/sparc/sparc32/Makefile: ... this.
15973         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
15974         * sysdeps/sparc/sparc64/Makefile: ... this.
15975
15976         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
15977         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
15978         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
15979         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
15980         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
15981         * sysdeps/s390/s390-32/setjmp.S: ... here.
15982         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
15983         * sysdeps/s390/s390-32/configure.in: ... here.
15984         * sysdeps/s390/s390-32/elf/configure: Delete file.
15985         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
15986         * sysdeps/s390/s390-32/start.S: ... here.
15987
15988         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
15989         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
15990         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
15991         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
15992         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
15993         * sysdeps/s390/s390-64/setjmp.S: ... here.
15994         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
15995         * sysdeps/s390/s390-64/configure.in: ... here
15996         * sysdeps/s390/s390-64/elf/configure: Delete file.
15997         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
15998         * sysdeps/s390/s390-64/start.S: ... here.
15999         * sysdeps/s390/s390-64/elf/configure: Delete.
16000
16001         * configure.in: Remove support for elf directories in sysdeps.
16002
16003         * configure: Regenerated.
16004         * sysdeps/i386/configure: Regenerated.
16005         * sysdeps/powerpc/powerpc32/configure: Regenerated.
16006         * sysdeps/powerpc/powerpc64/configure: Regenerated.
16007         * sysdeps/s390/s390-32/configure: Regenerated.
16008         * sysdeps/s390/s390-64/configure: Regenerated.
16009         * sysdeps/sh/configure: Regenerated.
16010         * sysdeps/sparc/configure: Regenerated.
16011         * sysdeps/x86_64/configure: Regenerated.
16012
16013 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
16014
16015         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16016
16017         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
16018         denormal result into account.
16019
16020 2012-03-25  Roland McGrath  <roland@hack.frob.com>
16021
16022         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
16023         Reported by Allan McRae <allan@archlinux.org>.
16024
16025 2012-03-23  Jeff Law  <law@redhat.com>
16026
16027         * nss/getnssent.c (__nss_getent): Fix typo.
16028
16029 2012-03-23  David S. Miller  <davem@davemloft.net>
16030
16031         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16032
16033 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
16034
16035         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
16036         to pad to uint64_t for each field.
16037         (dl_tls_index): Replace unsigned long with uint64_t.
16038
16039 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
16040         Paul Pluzhnikov  <ppluzhnikov@google.com>
16041
16042         [BZ #6528]
16043         * grp/Makefile (otherlibs): Don't set it.
16044         * inet/Makefile (otherlibs): Likewise.
16045         * login/Makefile (otherlibs): Likewise.
16046         * nscd/Makefile (otherlibs): Likewise.
16047         * posix/Makefile (otherlibs): Likewise.
16048         * pwd/Makefile (otherlibs): Likewise.
16049         * rt/Makefile (otherlibs): Likewise.
16050         * sunrpc/Makefile (otherlibs): Likewise.
16051         * nss/Makefile (otherlibs): Likewise.
16052         Add libnss_files to routines and static-only-routines.
16053         ($(objpfx)getent): Remove rule.
16054         * resolv/Makefile: Add libnss_dns and libresolv to routines and
16055         static-only-routines.
16056
16057 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
16058
16059         [BZ #13892]
16060         * math/s_cexp.c: Include <float.h>.
16061         (__cexp): Handle exp result overflowing not necessarily
16062         overflowing both real and imaginary parts of result.
16063         * math/s_cexpf.c: Likewise.
16064         * math/s_cexpl.c: Likewise.
16065         * math/libm-test.inc (cexp_test): Add more tests.
16066         * sysdeps/i386/fpu/libm-test-ulps: Update.
16067         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16068
16069 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16070
16071         * include/link.h (ELFW): New macro.
16072         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
16073         Replace ELF64_R_TYPE with ELFW(R_TYPE).
16074
16075 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16076
16077         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
16078         with uint64_t.
16079
16080 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16081
16082         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
16083         declaration.
16084         (struct La_x32_retval): Likewise.
16085
16086 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
16087
16088         * sysdeps/x86_64/preconfigure.in: New file.
16089         * sysdeps/x86_64/preconfigure: New generated file.
16090
16091 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
16092
16093         [BZ #13824]
16094         * math/e_exp2l.c: Include <float.h>.
16095         (__ieee754_exp2l): Handle overflow and underflow cases
16096         separately.  Only pass fractional part of argument to
16097         __ieee754_expl.
16098         * math/libm-test.inc (exp2_test): Add more tests.
16099
16100         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
16101         negating x to take absolute value.
16102         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
16103         Likewise.
16104         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
16105         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
16106         Likewise.
16107         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
16108         computing low part if x was negated.
16109         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
16110
16111 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16112
16113         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
16114         la_x32_gnu_pltexit.
16115         (pltexit): Cast int_retval to ptrdiff_t.
16116         * elf/tst-auditmod3b.c: Likewise.
16117         * elf/tst-auditmod4b.c: Likewise.
16118         * elf/tst-auditmod5b.c: Likewise.
16119         * elf/tst-auditmod6b.c: Likewise.
16120         * elf/tst-auditmod6c.c: Likewise.
16121         * elf/tst-auditmod7b.c: Likewise.
16122
16123         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
16124         and x32_gnu_pltexit.
16125
16126         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
16127         __ELF_NATIVE_CLASS.
16128         (La_x32_regs): New macro.
16129         (La_x32_retval): Likewise.
16130         (la_x32_gnu_pltenter): New function prototype.
16131         (la_x32_gnu_pltexit): Likewise.
16132
16133 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
16134
16135         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
16136         exponent.
16137
16138         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16139
16140         * configure.in (libc_cv_cc_nofma): Check for option to disable
16141         generation of FMA instructions.
16142         * configure: Regenerate.
16143         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
16144         * sysdeps/ieee754/dbl-64/Makefile: New file.
16145         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16146         Remove brandred-fma4.
16147         (CFLAGS-brandred-fma4.c): Remove.
16148         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
16149         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
16150         define.
16151         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
16152         define.
16153
16154 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16155
16156         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
16157         LLONG_MAX != LONG_MAX.
16158         (_itoa_word): Use _ITOA_WORD_TYPE on value.
16159         (_fitoa_word): Likewise.
16160         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
16161         LLONG_MAX != LONG_MAX.
16162         * stdio-common/_itowa.h: Include <_itoa.h>.
16163         (_itowa_word): Use _ITOA_WORD_TYPE on value.
16164         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
16165         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
16166         only if not defined.
16167         (_ITOA_WORD_TYPE): Likewise.
16168         (_itoa_word): Use _ITOA_WORD_TYPE on value.
16169         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
16170
16171 2012-03-21  David S. Miller  <davem@davemloft.net>
16172
16173         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16174
16175 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16176
16177         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
16178         of x86_64 when setting libc_cv_slibdir, libdir and
16179         libc_cv_localedir.
16180         * sysdeps/unix/sysv/linux/configure: Regenerated.
16181
16182 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16183
16184         * manual/lang.texi (Old Varargs): Remove section.
16185         (How Variadic): Update menu.
16186         (va_start): Do not mention varargs.h.
16187
16188 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
16189             Joseph Myers  <joseph@codesourcery.com>
16190
16191         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
16192         link test.
16193         * configure: Regenerated.
16194
16195 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
16196
16197         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
16198         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
16199         conformtest.pl
16200
16201 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16202
16203         * NOTES: Remove.
16204         * Makefile (files-for-dist): Remove NOTES.
16205         (NOTES): Remove rule.
16206         * README: Don't refer to NOTES.
16207         * manual/creature.texi: Don't include macros.texi.
16208         * manual/intro.texi (creature.texi): Remove comment referring to
16209         NOTES.
16210
16211         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
16212         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
16213         * configure: Regenerated.
16214         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
16215         LIBC_TRY_CC_OPTION.
16216         (libc_cv_as_i686): Likewise.
16217         (libc_cv_cc_avx): Likewise.
16218         (libc_cv_cc_sse2avx): Likewise.
16219         (libc_cv_cc_fma4): Likewise.
16220         (libc_cv_cc_novzeroupper): Likewise.
16221         * sysdeps/i386/configure: Regenerated.
16222
16223         [BZ #13883]
16224         * sysdeps/i386/fpu/s_cexp.S: Remove.
16225         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
16226         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
16227         * math/libm-test.inc (cexp_test): Add more tests.
16228         * sysdeps/i386/fpu/libm-test-ulps: Update.
16229         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16230
16231 2012-03-21  Allan McRae  <allan@archlinux.org>
16232
16233         * timezone/Makefile: Do not install iso3166.tab and zone.tab
16234
16235 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16236
16237         [BZ #13871]
16238         * math/w_exp2.c: Do not include <float.h>.
16239         (o_threshold, u_threshold): Remove.
16240         (__exp2): Calculate result before checking finiteness and calling
16241         __kernel_standard.
16242         * math/w_exp2f.c: Likewise.
16243         * math/w_exp2l.c: Likewise.
16244         * math/libm-test.inc (exp2_test): Require overflow exception for
16245         1e6 input.
16246
16247         [BZ #3866]
16248         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
16249         range of signed 64-bit integers before using fistpll.  Remove
16250         checks for whether integers fit in mantissa bits.
16251         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
16252         the range of signed 32-bit integers before using fistpl.  Remove
16253         checks for whether integers fit in mantissa bits.
16254         * sysdeps/i386/fpu/e_powl.S (p64): New object.
16255         (__ieee754_powl): Test for y outside the range of signed 64-bit
16256         integers before using fistpll.  Reduce 64-bit values to 63-bit
16257         ones as needed.
16258         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
16259         divide-by-zero is raised for zero to large negative powers.
16260         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
16261         (__ieee754_powl): Test for y outside the range of signed 64-bit
16262         integers before using fistpll.  Reduce 64-bit values to 63-bit
16263         ones as needed.
16264         * math/libm-test.inc (pow_test): Add more tests.
16265
16266 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16267
16268         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
16269         <stdio-common/_itoa.h>.
16270         * debug/segfault.c: Likewise.
16271         * elf/dl-cache.c: Likewise.
16272         * elf/dl-minimal.c: Likewise.
16273         * elf/dl-misc.c: Likewise.
16274         * elf/dl-sysdep.c: Likewise.
16275         * elf/dl-version.c: Likewise.
16276         * elf/rtld.c: Likewise.
16277         * hurd/hurdsock.c: Likewise.
16278         * hurd/lookup-retry.c: Likewise.
16279         * malloc/malloc.c: Likewise.
16280         * malloc/mtrace.c: Likewise.
16281         * nscd/nscd_getgr_r.c: Likewise.
16282         * nscd/nscd_getpw_r.c: Likewise.
16283         * nscd/nscd_getserv_r.c: Likewise.
16284         * posix/getopt_init.c: Likewise.
16285         * posix/wordexp.c: Likewise.
16286         * stdio-common/_itoa.c: Likewise.
16287         * stdio-common/printf_fphex.c: Likewise.
16288         * stdio-common/vfprintf.c: Likewise.
16289         * string/_strerror.c: Likewise.
16290         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
16291         * sysdeps/i386/i686/hp-timing.h: Likewise.
16292         * sysdeps/mach/_strerror.c: Likewise.
16293         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
16294         * sysdeps/mach/hurd/sethostid.c: Likewise.
16295         * sysdeps/mach/hurd/xmknodat.c: Likewise.
16296         * sysdeps/mach/xpg-strerror.c: Likewise.
16297         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16298         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
16299         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
16300         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
16301         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
16302         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
16303         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
16304         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
16305         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
16306         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
16307         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
16308         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
16309         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
16310         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16311         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16312         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
16313         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
16314         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
16315         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
16316         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
16317         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
16318
16319         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
16320
16321         * stdio-common/_itoa.h: Moved to ...
16322         * sysdeps/generic/_itoa.h: Here.
16323
16324         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
16325
16326         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
16327         instead of "_itoa.h" and "_itowa.h".
16328         * stdio-common/vfprintf.: Likewise.
16329
16330 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16331
16332         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
16333         <bits/wordsize.h>.
16334         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
16335         (__signbit): Likwise.
16336         (llrintf): Likwise.
16337         (llrint): Likwise.
16338
16339 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16340
16341         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
16342         __WORDSIZE != 64.
16343
16344 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
16345
16346         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
16347         OVERFLOW_EXCEPTION_OK.
16348         * math/libm-test.inc ("Philosophy"): Update comment about
16349         exception testing.
16350         (OVERFLOW_EXCEPTION): Define.
16351         (OVERFLOW_EXCEPTION_OK): Likewise.
16352         (INVALID_EXCEPTION_OK): Renumber.
16353         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
16354         (IGNORE_ZERO_INF_SIGN): Likewise.
16355         (test_exceptions): Handle FE_OVERFLOW.
16356         (exp10_test): Expect overflow exceptions.
16357         (exp2_test): Likewise.
16358         (expm1_test): Likewise.
16359         (nextafter_test): Likewise.
16360         (pow_test): Likewise.
16361         (scalbn_test): Likewise.
16362         (scalbln_test): Likewise.
16363
16364 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16365
16366         * sysdeps/x86_64/bits/atomic.h
16367         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
16368         64bit integer.
16369         (atomic_exchange_acq): Likewise.
16370         (__arch_exchange_and_add_body): Likewise.
16371         (__arch_add_body): Likewise.
16372         (atomic_add_negative): Likewise.
16373         (atomic_add_zero): Likewise.
16374
16375 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16376
16377         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
16378         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
16379
16380 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16381
16382         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
16383         Check __x86_64__ instead of __WORDSIZE.
16384
16385 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16386
16387         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
16388
16389 2012-03-19  David S. Miller  <davem@davemloft.net>
16390
16391         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16392
16393         * sysdeps/sparc/fpu/fenv_private.h: New file.
16394         * sysdeps/sparc/fpu/math_private.h: Use it.
16395         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
16396         Remove.
16397         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
16398         (libc_feholdexcept_setroundl): Remove.
16399         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
16400         Remove.
16401         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
16402         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
16403
16404 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16405
16406         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
16407         int64_t instead of long int.
16408         (INSERT_WORDS64): Likwise.
16409
16410 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16411
16412         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
16413         _Unwind_GetCFA return to _Unwind_Ptr first.
16414
16415 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
16416
16417         [BZ #13629]
16418         * math/s_clog.c: Include <float.h>.
16419         (__clog): Scale large or subnormal inputs.
16420         * math/s_clogf.c: Likewise.
16421         * math/s_clogl.c: Likewise.
16422         * math/s_clog10.c: Include <float.h>.
16423         (M_LOG10_2): Define.
16424         (__clog10): Scale large or subnormal inputs.
16425         * math/s_clog10f.c: Likewise.
16426         * math/s_clog10l.c: Likewise.
16427         * math/libm-test.inc (clog_test): Add more tests.
16428         (clog10_test): Likewise.
16429         * sysdeps/i386/fpu/libm-test-ulps: Update.
16430         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16431
16432         [BZ #11451]
16433         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
16434         x and y.
16435         * math/libm-test.inc (atan2_test): Add another test.
16436
16437         * Makerules (common-objdir-compile): Remove.
16438         * sysdeps/unix/Makefile (config-generated): Do not add
16439         $(unix-generated) to variable.
16440         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
16441         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
16442         Remove rule.
16443         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
16444         Likewise.
16445         [generic bits/local_lim.h] (before-compile): Do not append to
16446         variable.
16447         [generic bits/local_lim.h] (common-generated): Likewise.
16448         [generic sys/param.h] (before-compile): Do not append to variable.
16449         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
16450         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
16451         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
16452         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
16453         include.
16454         [generic sys/param.h] (sys/param.h-includes): Remove variable.
16455         [generic sys/param.h] (sys/param.h-includes): Remove rule.
16456         [generic sys/param.h] ($(addprefix
16457         $(common-objpfx),$(sys/param.h-includes))): Likewise.
16458         [generic sys/param.h] (common-generated): Do not append to
16459         variable.
16460         [generic sys/param.h] (sysdep_headers): Likewise.
16461         [generic bits/errno.h] (before-compile): Do not append to
16462         variable.
16463         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
16464         rule.
16465         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
16466         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
16467         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
16468         [generic bits/errno.h] (common-generated): Do not append to
16469         variable.
16470         [generic bits/ioctls.h] (before-compile): Do not append to
16471         variable.
16472         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
16473         rule.
16474         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
16475         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
16476         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
16477         rule.
16478         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
16479         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
16480         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
16481         [generic bits/ioctls.h] (common-generated): Do not append to
16482         variable.
16483         [generic sys/syscall.h] (syscall.h): Remove variable.
16484         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
16485         rule.
16486         [generic sys/syscall.h] (before-compile): Do not append to
16487         variable.
16488         [generic sys/syscall.h] (common-generated): Likewise.
16489         * sysdeps/unix/errnos-tmpl.c: Remove file.
16490         * sysdeps/unix/errnos.awk: Likewise.
16491         * sysdeps/unix/ioctls-tmpl.c: Likewise.
16492         * sysdeps/unix/ioctls.awk: Likewise.
16493         * sysdeps/unix/mk-local_lim.c: Likewise.
16494         * sysdeps/unix/snarf-ioctls: Likewise.
16495
16496 2012-03-19  Richard Henderson  <rth@twiddle.net>
16497
16498         * sysdeps/i386/fpu/fenv_private.h: New file.
16499         * sysdeps/i386/fpu/math_private.h: Use it.
16500         (math_opt_barrier, math_force_eval): Remove.
16501         (libc_feholdexcept_setround_53bit): Remove.
16502         (libc_feupdateenv_53bit): Remove.
16503         * sysdeps/x86_64/fpu/math_private.h: Likewise.
16504         (math_opt_barrier, math_force_eval): Remove.
16505         (libc_feholdexcept): Remove.
16506         (libc_feholdexcept_setround): Remove.
16507         (libc_fetestexcept, libc_fesetenv): Remove.
16508         (libc_feupdateenv_test): Remove.
16509         (libc_feupdateenv, libc_feholdsetround): Remove.
16510         (libc_feresetround): Remove.
16511
16512         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
16513         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
16514
16515         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
16516         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
16517         (libc_feupdateenv_testl): New.
16518         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
16519         (libc_feupdateenv_testf): New.
16520         (libc_feupdateenv): Use libc_feupdateenv_test.
16521         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
16522         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
16523
16524         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
16525         (libc_feholdsetroundf, libc_feholdsetroundl): New.
16526         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
16527         (libc_feresetround_noex): New.
16528         (libc_feresetround_noexf): New.
16529         (libc_feresetround_noexl): New.
16530         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
16531         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
16532         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
16533         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
16534         SET_RESTORE_ROUND.
16535         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
16536         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
16537         (__cos): Likewise.
16538         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
16539         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
16540         SET_RESTORE_ROUND_NOEX.
16541         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
16542         SET_RESTORE_ROUND_NOEXF.
16543         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
16544         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
16545         (libc_feholdsetroundf): New.
16546         (libc_feresetround, libc_feresetroundf): New.
16547
16548         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
16549         (libc_feholdexcept_setround_53bit): Convert from macro to function.
16550         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
16551
16552         * sysdeps/generic/math_private.h: Include <fenv.h>.
16553         (default_libc_feholdexcept): New.
16554         (default_libc_feholdexcept_setround): New.
16555         (default_libc_fesetenv, default_libc_feupdateenv): New.
16556         (libc_feholdexcept): Only define if undefined.
16557         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
16558         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
16559         (libc_feholdexcept_setroundl): Likewise.
16560         (libc_feholdexcept_setround_53bit): Likewise.
16561         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
16562         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
16563         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
16564         (libc_feupdateenv_53bit): Likewise.
16565         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
16566         (libc_feholdexcept): Convert from macro to inline function.
16567         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
16568         (libc_fesetenv, libc_feupdateenv): Likewise.
16569
16570         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
16571         not previously defined.
16572         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
16573         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
16574         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
16575         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
16576         * sysdeps/ieee754/flt-32/math_private.h: New file.
16577         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
16578         math_private.h below SET_FLOAT_WORD.
16579         (__isnan, __isinf_ns, __finite): Remove.
16580         (__isnanf, __isinf_nsf, __finitef): Remove.
16581
16582 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
16583
16584         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16585
16586 2012-03-17  David S. Miller  <davem@davemloft.net>
16587
16588         [BZ #6471]
16589         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
16590         for 2.16.
16591
16592 2012-03-16  David S. Miller  <davem@davemloft.net>
16593
16594         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
16595         warnings.
16596
16597         [BZ #6471]
16598         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
16599         properly.
16600         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
16601         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
16602         sysdep_routines when subdir is sysvipc.
16603         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
16604         __getshmlba helper.
16605
16606         * sysdeps/sparc/fpu/libm-test/ulps: Update.
16607
16608 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16609
16610         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
16611         [__LP64__].
16612
16613 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16614
16615         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
16616         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
16617         (__lround): Renamed to ...
16618         (__llround): This.  Replace long int with long long int.
16619         Define lround functions as aliases of llround functions.
16620         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
16621
16622 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16623
16624         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
16625         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
16626         adresses to uintptr_t.  Replace "long int" and "unsigned long
16627         int" with "greg_t" on va_arg.
16628
16629 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16630
16631         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
16632         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
16633
16634         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
16635         Move e_machine check before EI_CLASS check.  Handle x32
16636         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
16637         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
16638         SKIP_EM_IA_64 and include
16639         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
16640
16641         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
16642         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
16643         (add_system_dir): New macro.
16644
16645         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
16646         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
16647
16648 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
16649
16650         [BZ #2551]
16651         [BZ #2552]
16652         [BZ #2553]
16653         [BZ #2554]
16654         [BZ #2562]
16655         [BZ #2563]
16656         [BZ #2565]
16657         [BZ #2566]
16658         [BZ #2576]
16659         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
16660         (y0): Likewise.
16661         * math/w_j0f.c (j0f): Likewise.
16662         (y0f): Likewise.
16663         * math/w_j0l.c (__j0l): Likewise.
16664         (__y0l): Likewise.
16665         * math/w_j1.c (j1): Likewise.
16666         (y1): Likewise.
16667         * math/w_j1f.c (j1f): Likewise.
16668         (y1f): Likewise.
16669         * math/w_j1l.c (__j1l): Likewise.
16670         (__y1l): Likewise.
16671         * math/w_jn.c (jn): Likewise.
16672         (yn): Likewise.
16673         * math/w_jnf.c (jnf): Likewise.
16674         (ynf): Likewise.
16675         * math/w_jnl.c (__jnl): Likewise.
16676         (__ynl): Likewise.
16677         * math/libm-test.inc (j0_test): Add more tests.
16678         (j1_test): Likewise.
16679         (jn_test): Likewise.  Add trailing semicolon to existing test.
16680         (y0_test): Likewise.
16681         (y1_test): Likewise.
16682         * sysdeps/i386/fpu/libm-test-ulps: Update.
16683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16684
16685         [BZ #13851]
16686         [BZ #13854]
16687         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
16688         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
16689         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
16690         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
16691         (__tanl): Set errno for infinite argument.
16692         * sysdeps/i386/fpu/mptan.c: Remove.
16693         * sysdeps/i386/fpu/s_tan.S: Likewise.
16694         * sysdeps/i386/fpu/s_tanl.S: Likewise.
16695         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
16696         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
16697         * math/libm-test.inc (tan_test): Add more tests and enable more
16698         tests for double and long double.
16699         * sysdeps/i386/fpu/libm-test-ulps: Update.
16700         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16701
16702 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
16703
16704         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
16705         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
16706
16707 2012-03-16  Roland McGrath  <roland@hack.frob.com>
16708
16709         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
16710         * configure.in: Use it for both main tree and add-ons.
16711         * configure: Regenerated.
16712
16713 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16714
16715         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
16716
16717 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
16718
16719         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
16720         in comment.
16721
16722         [BZ #13851]
16723         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
16724         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
16725         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
16726         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
16727         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
16728         infinite argument.
16729         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
16730         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
16731         != 0 for prec == 2.
16732         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
16733         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
16734         * sysdeps/i386/fpu/s_cosl.S: Likewise.
16735         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
16736         * sysdeps/i386/fpu/s_sinl.S: Likewise.
16737         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
16738         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
16739         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
16740         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
16741         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
16742         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
16743         * math/libm-test.inc (cos_test): Add more tests and enable more
16744         tests for long double.
16745         (sin_test): Likewise.
16746         (sincos_test): Likewise.
16747         * sysdeps/i386/fpu/libm-test-ulps: Update.
16748         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16749
16750 2012-03-16  David S. Miller  <davem@davemloft.net>
16751
16752         * sysdeps/sparc/fpu/math_private.h: New file.
16753
16754 2012-03-15  David S. Miller  <davem@davemloft.net>
16755
16756         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
16757         file.
16758         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
16759         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
16760         file.
16761         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
16762         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
16763         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
16764         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
16765         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
16766         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
16767         sysdep routines.
16768         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16769
16770         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
16771         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
16772
16773         * sysdeps/sparc/sparc-ifunc.h: New file.
16774         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
16775         sparc-ifunc.h
16776         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
16777         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
16778         Likewise.
16779         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
16780         Likewise.
16781         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
16782         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
16783         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16784         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
16785         Likewise.
16786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16787         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
16788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
16790         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
16791         Likewise.
16792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
16793         Likewise.
16794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
16796         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
16797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
16798         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
16799         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
16800         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
16801         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
16802         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
16803         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
16804         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
16805         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
16806         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
16807         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
16808         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
16809         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
16810         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
16811         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
16812         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
16813         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
16814         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
16815         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
16816         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
16817         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
16818
16819 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16820
16821         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
16822         scaling.
16823         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16824
16825 2012-03-15  Andreas Jaeger  <aj@suse.de>
16826
16827         [BZ #13852]
16828         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
16829         ieee754/flt-32 implementation for sin, cos and sincos.
16830         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
16831         * sysdeps/i386/fpu/s_cosf.S: Likewise.
16832         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
16833         * sysdeps/i386/fpu/s_sinf.S: Likewise.
16834         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
16835         ieee754/flt-32 implementation for tan.
16836
16837         * math/libm-test.inc (cos_test): Enable some large input tests for
16838         float as well
16839         (sin_test): Likewise.
16840         (sincos_test): Likewise.
16841         (tan_test): Add tests for large input.
16842
16843         * sysdeps/i386/fpu/libm-test-ulps: Update.
16844
16845 2012-03-15  Andreas Jaeger  <aj@suse.de>
16846
16847         [BZ #13658]
16848         * math/libm-test.inc (cos_test): Add more test cases.
16849         (sin_test): Likewise.
16850         (sincos_test): Likewise.
16851
16852 2012-03-15  Andreas Jaeger  <aj@suse.de>
16853
16854         [BZ #13837]
16855         * math/libm-test.inc (cos_test): Add a test case for large input
16856         value.
16857         (sin_test): Likewise.
16858         (sincos_test): Likewise.
16859
16860 2012-03-15  Andreas Jaeger  <aj@suse.de>,
16861         Joseph Myers  <joseph@codesourcery.com>
16862
16863         [BZ #13658]
16864         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
16865         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
16866         * sysdeps/i386/fpu/branred.c: Likewise.
16867         * sysdeps/i386/fpu/dosincos.c: Likewise.
16868         * sysdeps/i386/fpu/mpa.c: Likewise.
16869         * sysdeps/i386/fpu/s_cos.S: Likewise.
16870         * sysdeps/i386/fpu/s_sin.S: Likewise.
16871         * sysdeps/i386/fpu/s_sincos.S: Likewise.
16872         * sysdeps/i386/fpu/sincos32.c: Likewise.
16873
16874         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
16875         Define.
16876         (libc_feupdateenv_53bit): Define.
16877         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
16878         Define.
16879         (libc_feupdateenv_53bit): Define.
16880
16881         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
16882         53 bit (without extend i386 double precision).
16883
16884         * math/libm-test.inc (sincos_test): Add tests for large input.
16885         (sin): Likewise.
16886         (cos): Likewise.
16887
16888         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
16889
16890 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16891
16892         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16893
16894 2012-03-15  David S. Miller  <davem@davemloft.net>
16895
16896         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
16897         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
16898         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
16899         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
16900         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
16901         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
16902         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
16903         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
16904         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
16905         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
16906         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
16907         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
16908         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
16909         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
16910         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
16911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
16912         file.
16913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
16914         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
16915         file.
16916         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
16917         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
16918         file.
16919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
16920         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
16921         file.
16922         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
16923         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
16924         fmin/fmax sysdep routines.
16925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16926
16927 2012-03-14  David S. Miller  <davem@davemloft.net>
16928
16929         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
16930         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
16931         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
16932         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
16933         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
16934         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
16935         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
16936         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
16937         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
16938         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
16939         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
16940         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
16941         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
16942         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
16943         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
16944         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
16945         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
16946         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
16947         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
16948         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
16949         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
16950         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
16951         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
16952         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
16953         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
16954         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
16955         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
16956         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
16957         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
16958         routines.
16959         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
16960         file.
16961         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
16962         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
16963         file.
16964         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
16965         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
16966         file.
16967         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
16968         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
16969         file.
16970         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
16971         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
16972         file.
16973         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
16974         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
16975         file.
16976         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
16977         file.
16978         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
16979         file.
16980         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
16981         file.
16982         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
16983         New file.
16984         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
16985         file.
16986         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
16987         file.
16988         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
16989         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
16990         file.
16991         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
16992         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
16993         file.
16994         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
16995         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
16996         file.
16997         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
16998         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
16999         VIS3 routines.
17000
17001         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
17002         New file.
17003
17004         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17005
17006         * sysdeps/sparc/configure.in: New file.
17007         * sysdeps/sparc/configure: Generate.
17008         * configure.in (libc_cv_sparc_as_vis3): Substitute.
17009         * configure: Regenerate.
17010         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
17011         * config.make.in (have-as-vis3): New.
17012         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
17013         available use -Av9d instead of -Av9a.
17014         * sysdeps/sparc/sparc64/Makefile: Likewise.
17015         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
17016         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
17017         New file.
17018         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
17019         file.
17020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
17021         New file.
17022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
17023         file.
17024         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
17025         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
17026         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
17027         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
17028         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
17029
17030         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
17031         fzeros/fnegs to load 0x80000000 into a float register instead of
17032         using the stack.
17033         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
17034
17035 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
17036
17037         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17038         bits/syscall.h.
17039         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
17040         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
17041         ($(inst_includedir)/bits/syscall.h): Remove rule.
17042         ($(objpfx)bits/syscall.d): Include instead of
17043         $(objpfx)syscall-list.d.
17044         (generated): Change syscall-list.h and syscall-list.d to
17045         bits/syscall.h and bits/syscall.d.
17046
17047 2012-03-14  Roland McGrath  <roland@hack.frob.com>
17048
17049         [BZ #13846]
17050         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
17051
17052 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
17053
17054         [BZ #13841]
17055         * math/s_csqrt.c: Include <float.h>.
17056         (__csqrt): Scale large or subnormal inputs.
17057         * math/s_csqrtf.c: Likewise.
17058         * math/s_csqrtl.c: Likewise.
17059         * math/libm-test.inc (csqrt_test): Add more tests.
17060         * sysdeps/i386/fpu/libm-test-ulps: Update.
17061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17062
17063         [BZ #13840]
17064         * math/libm-test.inc (hypot_test): Add more tests.
17065
17066 2012-03-13  David S. Miller  <davem@davemloft.net>
17067
17068         [BZ #13840]
17069         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
17070         double-precision for the calculation instead of scaling.
17071
17072 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
17073
17074         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
17075         manipulate bits before adding and subtracting TWO52[sx].
17076         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
17077         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
17078         Likewise.
17079         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
17080
17081 2012-03-13  David S. Miller  <davem@davemloft.net>
17082
17083         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
17084         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
17085         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
17086         rtld-global-offsets.h
17087         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
17088
17089         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
17090         large parameters.
17091
17092         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
17093
17094         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
17095         'err' in the ifdef scope in which it is actually used.
17096
17097         * nss/nss_db/db-init.c: Include string.h
17098
17099 2012-03-12  David S. Miller  <davem@davemloft.net>
17100
17101         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
17102         masking out of the most significant byte of random value used.
17103         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17104         Fix coding style in previous change.
17105
17106         * sysdeps/unix/sysv/linux/kernel-features.h
17107         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
17108         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
17109         expression.
17110         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
17111         later.
17112
17113 2012-03-11  David S. Miller  <davem@davemloft.net>
17114
17115         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
17116         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
17117         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
17118         for 'resultvar' otherwise things get truncated on 64-bit.
17119
17120         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
17121         Fix masking out of the most significant byte of random value used.
17122
17123         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17124
17125 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
17126
17127         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17128
17129 2012-03-09  David S. Miller  <davem@davemloft.net>
17130
17131         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
17132         variables with appropriate CPP guards.
17133         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
17134         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
17135         on resulting framesize and the management of the outregs buffer for pltexit.
17136         Preserve floating point return values across _dl_call_pltexit call.
17137         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
17138         framesize and the management of the outregs buffer for pltexit.
17139         Preserve floating point return values across _dl_call_pltexit
17140         call.
17141         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
17142         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
17143         (print_exit): Fix format string for return register value.
17144
17145 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
17146
17147         * sunrpc/Makefile (others): Add rpcgen.
17148         ($(objpfx)rpcgen): Remove special build rule and dependency on
17149         libc.
17150         * sunrpc/rpcgen.c: New file.
17151
17152 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
17153
17154         [BZ #13673]
17155         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
17156         * stdio-common/bug-vfprintf-nargs.c: Likewise.
17157         * sysdeps/i386/crti.S: Likewise.
17158         * sysdeps/i386/crtn.S: Likewise.
17159         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
17160         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
17161         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
17162         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
17163         * sysdeps/sh/crti.S: Likewise.
17164         * sysdeps/sh/crtn.S: Likewise.
17165         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
17166
17167         [BZ #13673]
17168         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
17169         with URL.
17170         * locale/programs/locfile-kw.gperf: Likewise.
17171         * locale/programs/charmap-kw.h: Regenerated.
17172         * locale/programs/locfile-kw.h: Likewise.
17173
17174         [BZ #13673]
17175         * intl/plural.y: Replace FSF snail mail address with URL.
17176         * intl/plural.c: Regenerated.
17177
17178 2012-03-09  Richard Henderson  <rth@twiddle.net>
17179
17180         * include/math_private.h: Remove file.
17181         * math/math_private.h: Move file ...
17182         * sysdeps/generic/math_private.h: ... here.
17183
17184         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
17185         * sysdeps/powerpc/fpu/math_private.h: Likewise.
17186         * sysdeps/x86_64/fpu/math_private.h: Likewise.
17187
17188         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
17189         and <math_private.h>.
17190         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
17191         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
17192         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17193         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17194         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17195         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
17196         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
17197         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17198         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17199         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17200         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17201         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17202         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17203         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17204         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17205         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17206         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17207         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17208         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17209         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17210         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17211         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17212         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17213         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17214         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
17215         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17216         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17217         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17218         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17219         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17220         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17221         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17222         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
17223         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
17224         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
17225         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17226         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17227         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
17228         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
17229         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17230         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
17231         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
17232         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
17233         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
17234         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
17235         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
17236         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17237         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
17238         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17239         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
17240         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17241         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
17242         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
17243         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17244         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
17245         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17246         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
17247         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
17248         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
17249         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
17250         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17251         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17252         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17253         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17254         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
17255         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
17256         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
17257         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17258         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
17259         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
17260         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17261         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17262         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17263         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17264         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
17265         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
17266         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
17267         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17268         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
17269         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
17270         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17271         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17272         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17273         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17274         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17275         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
17276         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
17277         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
17278         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17279         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17280         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17281         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17282         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17283         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17284         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17285         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17286         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17287         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17288         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17289         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17290         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17291         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17292         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17293         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17294         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
17295         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17296         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17297         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17298         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
17299         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17300         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17301         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17302         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17303         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17304         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
17305         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17306         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
17307         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
17308         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17309         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17310         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
17311         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
17312         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17313         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
17314         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
17315         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
17316         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17317         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
17318         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
17319         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17320         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
17321         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17322         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
17323         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17324         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
17325         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
17326         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17327         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17328         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
17329         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17330         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
17331         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
17332         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
17333         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
17334         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
17335         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17336         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
17337         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17338         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
17339         * sysdeps/ieee754/k_standard.c: Likewise.
17340         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17341         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17342         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17343         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17344         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17345         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17346         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17347         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17348         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17349         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17350         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17351         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17352         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17353         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17354         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17355         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17356         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
17357         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17358         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17359         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
17360         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17361         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17362         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17363         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17364         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17365         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17366         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
17367         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
17368         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
17369         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17370         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17371         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
17372         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
17373         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
17374         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
17375         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
17376         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
17377         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
17378         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
17379         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
17380         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
17381         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
17382         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17383         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
17384         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
17385         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
17386         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
17387         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17388         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17389         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17390         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17391         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
17392         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
17393         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
17394         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
17395         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
17396         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
17397         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
17398         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
17399         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17400         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
17401         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
17402         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17403         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17404         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17405         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17406         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17407         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17408         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17409         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17410         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17411         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17412         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17413         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17414         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17415         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17416         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
17417         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17418         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17419         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
17420         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17421         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17422         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17423         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17424         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17425         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
17426         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
17427         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17428         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17429         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17430         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
17431         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
17432         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
17433         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
17434         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
17435         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
17436         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
17437         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
17438         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
17439         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
17440         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
17441         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
17442         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17443         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17444         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
17445         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
17446         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
17447         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
17448         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
17449         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
17450         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17451         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
17452         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17453         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17454         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17455         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17456         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17457         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17458         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17459         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17460         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17461         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17462         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17463         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17464         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17465         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
17466         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
17467         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
17468         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
17469         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17470         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
17471         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
17472         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
17473         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
17474         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
17475         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
17476         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
17477         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
17478         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
17479         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
17480         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
17481         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
17482         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
17483         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
17484         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
17485         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
17486         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
17487         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17488         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17489         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
17490         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
17491         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
17492         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
17493         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
17494         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
17495         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
17496         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
17497         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17498         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
17499         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
17500         * sysdeps/ieee754/s_lib_version.c: Likewise.
17501         * sysdeps/ieee754/s_matherr.c: Likewise.
17502         * sysdeps/ieee754/s_signgam.c: Likewise.
17503         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17504         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17505         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
17506         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
17507         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
17508         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
17509         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
17510         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
17511         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
17512         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
17513         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
17514         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
17515         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
17516         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
17517         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
17518         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
17519         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
17520         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
17521         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
17522         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
17523         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
17524
17525 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
17526
17527         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
17528         * sunrpc/rpc_main.c: Likewise.
17529         * sunrpc/rpc_svcout.c: Likewise.
17530
17531 2012-03-09  David S. Miller  <davem@davemloft.net>
17532
17533         * include/math_private.h: New file.
17534
17535 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
17536
17537         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
17538         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
17539         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
17540         from <bits/socket_type.h>.
17541         (enum __socket_type): Don't define here.
17542         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
17543         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17544         bits/socket_type.h.
17545
17546         [BZ #13566]
17547         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
17548         checking __USE_GNU.
17549
17550         * Makerules ($(inst_includedir)/%.h): New rule.
17551         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
17552         (install-others): Remove variable setting.
17553         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
17554
17555 2012-03-08  Richard Henderson  <rth@twiddle.net>
17556
17557         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
17558         from macro to inline function; merge with the
17559         !__LIBC_INTERNAL_MATH_INLINES version.
17560         (__ieee754_sqrtf): Likewise.
17561
17562         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
17563         to inline function.
17564         (__rintf, __floor, __floorf): Likewise.
17565
17566         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
17567         macro to inline function.
17568         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
17569
17570         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
17571         not <math/math_private.h>.
17572
17573 2012-03-08  David S. Miller  <davem@davemloft.net>
17574
17575         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
17576         copyright year.
17577         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
17578
17579 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
17580
17581         * resolv/gai_misc.c (handle_requests): Fix struct timespec
17582         normalization.
17583         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
17584         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
17585
17586 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
17587
17588         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
17589         be defined individually, they must be defined as a block.  Define
17590         S for printing a string instead of hidint the different by using a
17591         macro for adding the 'l'.
17592         * stdio-common/tst-fphex-wide.c: Adjust.
17593
17594 2012-03-07  Marek Polacek  <polacek@redhat.com>
17595
17596         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
17597
17598 2012-03-08  Marek Polacek  <polacek@redhat.com>
17599
17600         [BZ #13806]
17601         * stdio-common/Makefile (tests): Add tst-fphex-wide.
17602         * stdio-common/tst-fphex.c: Define a few macros to make the
17603         test reusable.  Use them.
17604         * stdio-common/tst-fphex-wide.c: New file.
17605
17606 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
17607
17608         [BZ #6911]
17609         * manual/macros.texi (gnusystems): New macro.
17610         (nongnusystems): Likewise.
17611         (gnulinuxhurdsystems): Likewise.
17612         (gnuhurdsystems): Likewise..
17613         (gnulinuxsystems): Likewise.
17614         * manual/charset.texi: Use new macros or @theglibc{} to refer to
17615         variants of the GNU system, not "GNU system".
17616         * manual/conf.texi: Likewise.
17617         * manual/errno.texi: Likewise.  Update example of errno macro
17618         expansion.
17619         * manual/filesys.texi: Likewise.
17620         (getumask): Document as specific to GNU/Hurd.
17621         * manual/install.texi: Likewise.  Reword some references to
17622         GNU/Linux.
17623         * manual/intro.texi: Likewise.
17624         * manual/io.texi: Likewise.
17625         (File Name Portability): Detail which constraints are inapplicable
17626         to all GNU systems and which are only inapplicable to GNU/Hurd.
17627         * manual/job.texi: Likewise.
17628         * manual/llio.texi: Likewise.
17629         (O_NOCTTY): Document as present on GNU/Linux.
17630         * manual/maint.texi: Likewise.
17631         * manual/memory.texi: Likewise.
17632         * manual/pattern.texi: Likewise.
17633         * manual/pipe.texi: Likewise.
17634         * manual/process.texi: Likewise.
17635         * manual/resource.texi: Likewise.
17636         (RUSAGE_CHILDREN): Remove statement about specifying a particular
17637         child on GNU/Hurd.
17638         * manual/setjmp.texi: Likewise.
17639         * manual/signal.texi: Likewise.
17640         * manual/startup.texi: Likewise.
17641         * manual/stdio.texi: Likewise.
17642         * manual/terminal.texi: Likewise.
17643         (ONLCR): Document as POSIX.
17644         (OXTABS): Document availability on GNU/Linux as XTABS.
17645         (ONOEOT): Document availability separately from other bits.
17646         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
17647         * manual/time.texi: Likewise.
17648         * manual/users.texi: Likewise.
17649         * INSTALL: Regenerated.
17650         * sysdeps/gnu/errlist.c: Regenerated.
17651
17652         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
17653         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
17654         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
17655         puts.
17656         * configure: Regenerated.
17657
17658 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
17659
17660         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
17661         default includes instead of AC_HEADER_CHECK.
17662         * sysdeps/i386/configure: Regenerated.
17663
17664         [BZ #10716]
17665         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
17666         * math/s_cacoshf.c (__cacoshf): Likewise.
17667         * math/s_cacoshl.c (__cacoshl): Likewise.
17668         * math/s_casinh.c (__casinh): Set signs of result from argument.
17669         * math/s_casinhf.c (__casinhf): Likewise.
17670         * math/s_casinhl.c (__casinhl): Likewise.
17671         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
17672         (casinh_test): Add more tests.
17673         * sysdeps/i386/fpu/libm-test-ulps: Update.
17674         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17675
17676 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
17677
17678         * po/zh_TW.po: Update from translation team.
17679
17680         * login/Makefile (distribute): Remove variable.
17681         * catgets/Makefile: Likewise.
17682         * mach/Makefile: Likewise.
17683         * malloc/Makefile: Likewise.
17684         * misc/Makefile: Likewise.
17685         * iconv/Makefile: Likewise.
17686         * nscd/Makefile: Likewise.
17687         * hurd/Makefile: Likewise.
17688         * manual/Makefile: Likewise.
17689         * locale/Makefile: Likewise.
17690         * intl/Makefile: Likewise.
17691         * conform/Makefile: Likewise.
17692         * nss/Makefile: Likewise.
17693         * time/Makefile: Likewise.
17694         * soft-fp/Makefile: Likewise.
17695         * dirent/Makefile: Likewise.
17696         * gmon/Makefile: Likewise.
17697         * po/Makefile: Likewise.
17698         * rt/Makefile: Likewise.
17699         * socket/Makefile: Likewise.
17700         * math/Makefile: Likewise.
17701         * signal/Makefile: Likewise.
17702         * debug/Makefile: Likewise.
17703         * elf/Makefile: Likewise.
17704         * timezone/Makefile: Likewise.
17705         * stdlib/Makefile: Likewise.
17706         * iconvdata/Makefile: Likewise.
17707         * sunrpc/Makefile: Likewise.
17708         * io/Makefile: Likewise.
17709         * argp/Makefile: Likewise.
17710         * inet/Makefile: Likewise.
17711         * hesiod/Makefile: Likewise.
17712         * grp/Makefile: Likewise.
17713         * csu/Makefile: Likewise.
17714         * wctype/Makefile: Likewise.
17715         * crypt/Makefile: Likewise.
17716         * libio/Makefile: Likewise.
17717         * string/Makefile: Likewise.
17718         * nis/Makefile: Likewise.
17719         * resolv/Makefile: Likewise.
17720         * stdio-common/Makefile: Likewise.
17721         * wcsmbs/Makefile: Likewise.
17722         * dlfcn/Makefile: Likewise.
17723         * posix/Makefile: Likewise.
17724
17725         [BZ #6959]
17726         * timezone/Makefile: Don't install timezone files, just the programs
17727         and scripts.
17728
17729 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
17730
17731         * nss/databases.def: Add missing gshadow entry.
17732
17733         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
17734
17735 2012-03-06  Marek Polacek  <polacek@redhat.com>
17736
17737         [BZ #13726]
17738         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
17739         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
17740         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
17741         * stdio-common/tst-long-dbl-fphex.c: New file.
17742
17743 2012-03-06  David S. Miller  <davem@davemloft.net>
17744
17745         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17746         (set_obp_int): New function.
17747         (get_obp_int): New function.
17748         (__get_clockfreq_via_dev_openprom): Likewise.
17749         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
17750         Avoid unused variable warnings on 'val' and use builtin_expect.
17751         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
17752         __builtin_expect.
17753         (INLINE_CLONE_SYSCALL): Likewise.
17754
17755 2012-03-05  David S. Miller  <davem@davemloft.net>
17756
17757         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17758
17759 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
17760
17761         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17762
17763         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
17764         only for |x| >= 40.
17765         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17766
17767 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
17768
17769         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
17770         Replace gettimeofday with __vdso_gettimeofday.
17771
17772         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17773         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
17774         __vdso_clock_gettime and __vdso_getcpu.
17775
17776         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
17777         time with __vdso_time.
17778
17779 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17780
17781         * manual/lang.texi (size_t): Note types to which size_t may be
17782         equivalent with the GNU C Library, but do not describe when
17783         differences between them are significant.
17784
17785 2012-03-05  Andreas Jaeger  <aj@suse.de>
17786
17787         * sysdeps/i386/fpu/libm-test-ulps: Update.
17788
17789 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17790
17791         [BZ #3976]
17792         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
17793         (__ieee754_pow): Save and restore rounding mode and use
17794         round-to-nearest for main computations.
17795         * math/libm-test.inc (pow_test_tonearest): New function.
17796         (pow_test_towardzero): Likewise.
17797         (pow_test_downward): Likewise.
17798         (pow_test_upward): Likewise.
17799         (main): Call the new functions.
17800         * sysdeps/i386/fpu/libm-test-ulps: Update.
17801         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17802
17803         [BZ #3976]
17804         * math/libm-test.inc (cosh_test_tonearest): New function.
17805         (cosh_test_towardzero): Likewise.
17806         (cosh_test_downward): Likewise.
17807         (cosh_test_upward): Likewise.
17808         (sinh_test_tonearest): Likewise.
17809         (sinh_test_towardzero): Likewise.
17810         (sinh_test_downward): Likewise.
17811         (sinh_test_upward): Likewise.
17812         (main): Call the new functions.
17813         * sysdeps/i386/fpu/libm-test-ulps: Update.
17814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17815
17816 2012-03-05  Tom de Vries  <tom@codesourcery.com>
17817
17818         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
17819         default stack guard is set in last bytes.
17820         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
17821
17822 2012-03-05  Kees Cook  <keescook@chromium.org>
17823
17824         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
17825
17826         [BZ #13656]
17827         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
17828         possibly allocate from heap instead of stack.
17829         * stdio-common/bug-vfprintf-nargs.c: New file.
17830         * stdio-common/Makefile (tests): Add nargs overflow test.
17831
17832 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17833
17834         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17835
17836 2012-03-03  Marek Polacek  <polacek@redhat.com>
17837
17838         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
17839         * math/math_private.h: Likewise.
17840         * stdlib/tst-strtod.c: Likewise.
17841         * sysdeps/i386/i486/bits/atomic.h: Likewise.
17842         * sysdeps/x86_64/bits/atomic.h: Likewise.
17843
17844 2012-03-02  David S. Miller  <davem@davemloft.net>
17845
17846         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
17847         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
17848         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
17849         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
17850         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
17851         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
17852         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
17853         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
17854
17855 2012-03-02  Roland McGrath  <roland@hack.frob.com>
17856
17857         [BZ #13792]
17858         * manual/examples/README: New file, says the example source files
17859         can be used under GPL>=2.
17860         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
17861         line containing just "*/".
17862         * manual/examples/add.c: Add copyright header (GPL>=2).
17863         * manual/examples/argp-ex1.c: Likewise.
17864         * manual/examples/argp-ex2.c: Likewise.
17865         * manual/examples/argp-ex3.c: Likewise.
17866         * manual/examples/argp-ex4.c: Likewise.
17867         * manual/examples/atexit.c: Likewise.
17868         * manual/examples/db.c: Likewise.
17869         * manual/examples/dir.c: Likewise.
17870         * manual/examples/dir2.c: Likewise.
17871         * manual/examples/execinfo.c: Likewise.
17872         * manual/examples/filecli.c: Likewise.
17873         * manual/examples/filesrv.c: Likewise.
17874         * manual/examples/fmtmsgexpl.c: Likewise.
17875         * manual/examples/genpass.c: Likewise.
17876         * manual/examples/inetcli.c: Likewise.
17877         * manual/examples/inetsrv.c: Likewise.
17878         * manual/examples/isockad.c: Likewise.
17879         * manual/examples/longopt.c: Likewise.
17880         * manual/examples/memopen.c: Likewise.
17881         * manual/examples/memstrm.c: Likewise.
17882         * manual/examples/mkfsock.c: Likewise.
17883         * manual/examples/mkisock.c: Likewise.
17884         * manual/examples/mygetpass.c: Likewise.
17885         * manual/examples/pipe.c: Likewise.
17886         * manual/examples/popen.c: Likewise.
17887         * manual/examples/rprintf.c: Likewise.
17888         * manual/examples/search.c: Likewise.
17889         * manual/examples/select.c: Likewise.
17890         * manual/examples/setjmp.c: Likewise.
17891         * manual/examples/sigh1.c: Likewise.
17892         * manual/examples/sigusr.c: Likewise.
17893         * manual/examples/stpcpy.c: Likewise.
17894         * manual/examples/strdupa.c: Likewise.
17895         * manual/examples/strftim.c: Likewise.
17896         * manual/examples/strncat.c: Likewise.
17897         * manual/examples/subopt.c: Likewise.
17898         * manual/examples/swapcontext.c: Likewise.
17899         * manual/examples/termios.c: Likewise.
17900         * manual/examples/testopt.c: Likewise.
17901         * manual/examples/testpass.c: Likewise.
17902         * manual/examples/timeval_subtract.c: Likewise.
17903
17904         [BZ #13792]
17905         * manual/time.texi (Elapsed Time): Move timeval_subtract example
17906         function to ...
17907         * manual/timeval_subtract.c.texi: ... here, new file.
17908
17909 2012-03-02  David S. Miller  <davem@davemloft.net>
17910
17911         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
17912
17913 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
17914
17915         [BZ #3976]
17916         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
17917         (__sin): Save and restore rounding mode and use round-to-nearest
17918         for all computations.
17919         (__cos): Save and restore rounding mode and use round-to-nearest
17920         for all computations.
17921         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
17922         <fenv.h>.
17923         (tan): Save and restore rounding mode and use round-to-nearest for
17924         all computations.
17925         * math/libm-test.inc (cos_test_tonearest): New function.
17926         (cos_test_towardzero): Likewise.
17927         (cos_test_downward): Likewise.
17928         (cos_test_upward): Likewise.
17929         (sin_test_tonearest): Likewise.
17930         (sin_test_towardzero): Likewise.
17931         (sin_test_downward): Likewise.
17932         (sin_test_upward): Likewise.
17933         (tan_test_tonearest): Likewise.
17934         (tan_test_towardzero): Likewise.
17935         (tan_test_downward): Likewise.
17936         (tan_test_upward): Likewise.
17937         (main): Call the new functions.
17938         * sysdeps/i386/fpu/libm-test-ulps: Update.
17939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17940
17941         [BZ #10135]
17942         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
17943         small n, then large n, before computing and testing k+n.
17944         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
17945         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
17946         Likewise.
17947         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
17948         Likewise.
17949         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
17950         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
17951         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
17952         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
17953         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
17954         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
17955         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
17956         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
17957         * math/libm-test.inc (scalbn_test): Add more tests.
17958         (scalbln_test): Likewise.
17959
17960         * manual/filesys.texi (mode_t): Describe constraints on size and
17961         signedness, not exact equivalence to a particular type.
17962         (ino_t): Likewise.
17963         (ino64_t): Likewise.
17964         (dev_t): Likewise.
17965         (nlink_t): Likewise.
17966         (blkcnt_t): Likewise.
17967         (blkcnt64_t): Likewise.
17968         * manual/llio.texi (off_t): Likewise.
17969
17970         [BZ #3976]
17971         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
17972         (__ieee754_exp): Save and restore rounding mode and use
17973         round-to-nearest for all computations.
17974         * math/libm-test.inc (exp_test_tonearest): New function.
17975         (exp_test_towardzero): Likewise.
17976         (exp_test_downward): Likewise.
17977         (exp_test_upward): Likewise.
17978         (main): Call the new functions.
17979         * sysdeps/i386/fpu/libm-test-ulps: Update.
17980         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17981
17982 2012-03-01  Chris Demetriou  <cgd@google.com>
17983
17984         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
17985         have predictable order.
17986
17987 2012-03-01  David S. Miller  <davem@davemloft.net>
17988
17989         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
17990
17991         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
17992         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
17993         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
17994         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
17995
17996         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
17997         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
17998         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
17999         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
18000         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
18001         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
18002         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
18003         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
18004         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
18005
18006         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18007
18008         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
18009         * sysdeps/sparc/fpu/libm-test-ulps: to here.
18010         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
18011
18012         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
18013         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
18014         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
18015         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
18016         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
18017         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
18018         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
18019         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
18020         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
18021         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
18022         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
18023         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
18024         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
18025         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
18026         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
18027         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18028         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
18029         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
18030         * sysdeps/sparc/elf/configure: Regenerated.
18031
18032 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
18033
18034         * configure.in (AS, LD): Require binutils 2.20 or later.
18035         * configure: Regenerated.
18036         * manual/install.texi (Tools for Compilation): Give binutils 2.20
18037         as required minimum version.
18038         * INSTALL: Regenerated.
18039
18040         [BZ #2541]
18041         [BZ #4108]
18042         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
18043         before squaring exponent.
18044         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
18045         bottom long double and 27 bits of top long double before squaring
18046         exponent.
18047         * math/libm-test.inc (erfc_test): Add more tests.
18048         * sysdeps/i386/fpu/libm-test-ulps: Update.
18049         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18051
18052 2012-03-01  Kai Tietz  <ktietz@redhat.com>
18053
18054         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
18055         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
18056         containing bit-fields.
18057         * soft-fp/extended.h (_FP_UNION_E): Likewise.
18058         * soft-fp/single.h (_FP_UNION_S): Likewise.
18059         * soft-fp/double.h (_FP_UNION_D): Likewise.
18060
18061 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
18062
18063         [BZ #13786]
18064         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
18065         not include ../strcmp.S.
18066         [USE_AS_STRNCASECMP_L]: Likewise.
18067         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
18068         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
18069         * sysdeps/i386/i686/multiarch/strncase_l-c.c
18070         (__strncasecmp_l_ia32): Define as alias to
18071         __strncasecmp_l_nonascii.
18072
18073         [BZ #5794]
18074         * math/libm-test.inc (expm1_test): Add test for bug 5794.
18075         * sysdeps/i386/fpu/libm-test-ulps: Update.
18076         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18077
18078         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
18079         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18080
18081 2012-02-29  Jeff Law  <law@redhat.com>
18082
18083         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
18084         out of bounds read.
18085
18086 2012-02-29  Marek Polacek  <polacek@redhat.com>
18087
18088         [BZ #13706]
18089         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
18090         * elf/Makefile: Add rules to run tst-unused-dep.out.
18091
18092 2012-02-28  David S. Miller  <davem@davemloft.net>
18093
18094         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
18095         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
18096         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
18097         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
18098         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
18099         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
18100
18101 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
18102
18103         * math/libm-test.inc (llround_test): Move one test from
18104         lround_test.  Use TEST_f_L in moved test.
18105         (lround_test): Move misplaced test to llround_test.  Add testcase
18106         from bug 2561.
18107
18108 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
18109
18110         * sysdeps/x86_64/fpu/e_expf.S: New file.
18111         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
18112
18113 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
18114
18115         [BZ #13637]
18116         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
18117         of remain_len that may cause incomplete multi-byte character and
18118         false match.
18119         * posix/bug-regex33.c: New file.
18120         * posix/Makefile (tests): Add bug-regex33.
18121
18122 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
18123
18124         * manual/macros.texi: New file.
18125         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
18126         * manual/libc.texinfo: Include macros.texi.
18127         * manual/creatute.texi: Likewise.
18128         * manual/install.texi: Likewise.
18129         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
18130         @glibcadj{} in references to the GNU C Library.
18131         * manual/charset.texi: Likewise.
18132         * manual/conf.texi: Likewise.
18133         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
18134         when not using those macros.
18135         * manual/creature.texi: Likewise.
18136         * manual/crypt.texi: Likewise.
18137         * manual/errno.texi: Likewise.
18138         * manual/filesys.texi: Likewise.
18139         * manual/header.texi: Likewise.
18140         * manual/install.texi: Likewise.
18141         * manual/intro.texi: Likewise.
18142         * manual/io.texi: Likewise.
18143         * manual/job.texi: Likewise.
18144         * manual/lang.texi: Likewise.
18145         * manual/libc.texiinfo: Likewise.
18146         * manual/llio.texi: Likewise.
18147         * manual/locale.texi: Likewise.
18148         * manual/maint.texi: Likewise.
18149         * manual/math.texi: Likewise.
18150         * manual/memory.texi: Likewise.
18151         * manual/message.texi: Likewise.
18152         * manual/nss.texi: Likewise.
18153         * manual/pattern.texi: Likewise.
18154         * manual/process.texi: Likewise.
18155         * manual/resource.texi: Likewise.
18156         * manual/search.texi: Likewise.
18157         * manual/setjmp.texi: Likewise.
18158         * manual/signal.texi: Likewise.
18159         * manual/socket.texi: Likewise.
18160         * manual/startup.texi: Likewise.
18161         * manual/stdio.texi: Likewise.
18162         * manual/string.texi: Likewise.
18163         * manual/sysinfo.texi: Likewise.
18164         * manual/syslog.texi: Likewise.
18165         * manual/terminal.texi: Likewise.
18166         * manual/time.texi: Likewise.
18167         * manual/users.texi: Likewise.
18168         * INSTALL: Regenerated.
18169         * NOTES: Regenerated.
18170         * sysdeps/gnu/errlist.c: Regenerated.
18171
18172 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
18173
18174         * include/dirent.h: Include <dirstream.h> before
18175         <dirent/dirent.h>.
18176
18177 2012-02-28  David S. Miller  <davem@davemloft.net>
18178
18179         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
18180         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
18181         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
18182         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
18183
18184 2012-02-27  David S. Miller  <davem@davemloft.net>
18185
18186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
18187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
18188         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
18189         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
18190
18191         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
18192         frame pointer instead of stack pointer relative arg slot.
18193         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
18194         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
18195         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
18196
18197 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
18198
18199         [BZ #3992]
18200         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
18201
18202 2012-02-27  David S. Miller  <davem@davemloft.net>
18203
18204         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
18205         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
18206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
18207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
18208         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
18209         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
18210         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
18211         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
18212
18213 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
18214
18215         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
18216         later.  Allow versions 5-9.
18217         * configure: Regenerated.
18218         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
18219         required minimum version and 4.6 as recommended version.  Do not
18220         mention bugs in GCC 2.7 and 2.8.
18221         * INSTALL: Regenerated.
18222
18223 2012-02-27  David S. Miller  <davem@davemloft.net>
18224
18225         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
18226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
18227         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
18228         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
18229         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
18230         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
18231         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
18232         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
18233
18234         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
18235         manipulate bits before adding and subtracting TWO112[sx].
18236         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
18237
18238 2012-02-27  Roland McGrath  <roland@hack.frob.com>
18239
18240         [BZ #13775]
18241         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
18242         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
18243         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
18244         being in POSIX, because they are in 1003.1-2008.
18245
18246         * rt/tst-aio.c: Include <fcntl.h>.
18247         * rt/tst-aio7.c: Likewise.
18248         * rt/tst-aio64.c: Likewise.
18249
18250         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
18251
18252 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
18253
18254         * manual/install.texi (--with-headers): Describe headers as
18255         interface headers, not private headers.
18256         (Specific advice for GNU/Linux systems): Describe use of headers
18257         from "make headers_install", not private headers from older
18258         kernels.
18259         * INSTALL: Regenerated.
18260         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
18261         Change to 2.6.19.
18262         * sysdeps/unix/sysv/linux/configure: Regenerated.
18263
18264         * manual/llio.texi (fclean): Remove documentation.
18265
18266         * manual/Makefile (libc-texi-generated): New variable.  Include
18267         version.texi.
18268         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
18269         $(libc-texi-generated), not duplicated list of files.
18270         (version.texi, stamp-version): New rules.
18271         (realclean): Remove $(libc-texi-generated), not individual files
18272         from that list.  Do not remove dir-add.texinfo.
18273         * manual/libc.texinfo: Comment out uses of edition numbers and
18274         references to printed manual.  Remove last-updated dates.
18275         (EDITION): Comment out.
18276         (ISBN): Likewise.
18277         (VERSION, UPDATED): Remove.
18278         (version.texi): Include.
18279
18280 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
18281
18282         * sysdeps/posix/spawni.c: Include <signal.h>.
18283         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
18284         * sysdeps/pthread/aio_fsync.c: Likewise.
18285
18286 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
18287
18288         * conform/Makefile (tests): Run only when not cross-compiling and
18289         when fast-check is not defined.
18290
18291         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
18292         * conform/data/limits.h-data: Fixes for POSIX2008.
18293         * conform/run-conformtest.sh: Run all tests.
18294         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
18295         headers.
18296         * include/bits/dlfcn.h: Likewise.
18297         * include/langinfo.h: Likewise.
18298         * include/monetary.h: Likewise.
18299         * include/sys/poll.h: Likewise.
18300
18301         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
18302         for __USE_GNU.
18303         * posix/spawn.h: Define __need_sigset_t.
18304         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
18305         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
18306         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
18307         to get sigevent_t only.
18308         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
18309         only for __USE_GNU.
18310         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18311         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
18312         process_vm_writev only for __USE_GNU.
18313         * termios/termios.h: Declare tcgetsid also for POSIX2008.
18314
18315         * conform/Makefile: For now ignore errors from run-conformtest.
18316         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
18317         POSIX to avoid namespace pollution.  Don't prepend headers.
18318         * conform/data/aio.h-data: Fixes for POSIX testing.
18319         * conform/data/fcntl.h-data: Likewise.
18320         * conform/data/glob.h-data: Likewise.
18321         * conform/data/grp.h-data: Likewise.
18322         * conform/data/pthread.h-data: Likewise.
18323         * conform/data/pwd.h-data: Likewise.
18324         * conform/data/signal.h-data: Likewise.
18325         * conform/data/spawn.h-data: Likewise.
18326         * conform/data/stdio.h-data: Likewise.
18327         * conform/data/stdlib.h-data: Likewise.
18328         * conform/data/stropts.h-data: Likewise.
18329         * conform/data/sys/mman.h-data: Likewise.
18330         * conform/data/sys/stat.h-data: Likewise.
18331         * conform/data/sys/types.h-data: Likewise.
18332         * conform/data/sys/wait.h-data: Likewise.
18333         * conform/data/time.h-data: Likewise.
18334         * conform/data/unistd.h-data: Likewise.
18335         * conform/data/utime.h-data: Likewise.
18336
18337         * io/sys/stat.h: fchmod was always in POSIX.
18338         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
18339         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
18340         * rt/aio.h: Define __need_timespec before including <time.h>.
18341         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
18342         struct.  Add forward declaration of pthread_attr_t and use it in
18343         sigevent.
18344         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18345         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18346         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
18347         always remove CLK_TCK definition.
18348
18349 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
18350
18351         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
18352
18353 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
18354
18355         * conform/run-conformtest.sh: New file.
18356         * conform/Makefile: Run run-conformtest for tests.
18357         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
18358         support.
18359
18360         * conform/data/uchar.h-data: New file.
18361         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
18362         * conform/data/arpa/inet.h-data: Likewise.
18363         * conform/data/assert.h-data: Likewise.
18364         * conform/data/complex.h-data: Likewise.
18365         * conform/data/cpio.h-data: Likewise.
18366         * conform/data/ctype.h-data: Likewise.
18367         * conform/data/dirent.h-data: Likewise.
18368         * conform/data/dlfcn.h-data: Likewise.
18369         * conform/data/errno.h-data: Likewise.
18370         * conform/data/fcntl.h-data: Likewise.
18371         * conform/data/float.h-data: Likewise.
18372         * conform/data/fmtmsg.h-data: Likewise.
18373         * conform/data/fnmatch.h-data: Likewise.
18374         * conform/data/ftw.h-data: Likewise.
18375         * conform/data/glob.h-data: Likewise.
18376         * conform/data/grp.h-data: Likewise.
18377         * conform/data/iconv.h-data: Likewise.
18378         * conform/data/inttypes.h-data: Likewise.
18379         * conform/data/langinfo.h-data: Likewise.
18380         * conform/data/libgen.h-data: Likewise.
18381         * conform/data/limits.h-data: Likewise.
18382         * conform/data/locale.h-data: Likewise.
18383         * conform/data/math.h-data: Likewise.
18384         * conform/data/monetary.h-data: Likewise.
18385         * conform/data/mqueue.h-data: Likewise.
18386         * conform/data/ndbm.h-data: Likewise.
18387         * conform/data/net/if.h-data: Likewise.
18388         * conform/data/netdb.h-data: Likewise.
18389         * conform/data/netinet/in.h-data: Likewise.
18390         * conform/data/nl_types.h-data: Likewise.
18391         * conform/data/poll.h-data: Likewise.
18392         * conform/data/pthread.h-data: Likewise.
18393         * conform/data/pwd.h-data: Likewise.
18394         * conform/data/regex.h-data: Likewise.
18395         * conform/data/sched.h-data: Likewise.
18396         * conform/data/search.h-data: Likewise.
18397         * conform/data/semaphore.h-data: Likewise.
18398         * conform/data/setjmp.h-data: Likewise.
18399         * conform/data/signal.h-data: Likewise.
18400         * conform/data/spawn.h-data: Likewise.
18401         * conform/data/stdarg.h-data: Likewise.
18402         * conform/data/stdio.h-data: Likewise.
18403         * conform/data/stdlib.h-data: Likewise.
18404         * conform/data/string.h-data: Likewise.
18405         * conform/data/strings.h-data: Likewise.
18406         * conform/data/stropts.h-data: Likewise.
18407         * conform/data/sys/ipc.h-data: Likewise.
18408         * conform/data/sys/mman.h-data: Likewise.
18409         * conform/data/sys/msg.h-data: Likewise.
18410         * conform/data/sys/resource.h-data: Likewise.
18411         * conform/data/sys/select.h-data: Likewise.
18412         * conform/data/sys/sem.h-data: Likewise.
18413         * conform/data/sys/shm.h-data: Likewise.
18414         * conform/data/sys/socket.h-data: Likewise.
18415         * conform/data/sys/stat.h-data: Likewise.
18416         * conform/data/sys/statvfs.h-data: Likewise.
18417         * conform/data/sys/time.h-data: Likewise.
18418         * conform/data/sys/timeb.h-data: Likewise.
18419         * conform/data/sys/times.h-data: Likewise.
18420         * conform/data/sys/types.h-data: Likewise.
18421         * conform/data/sys/uio.h-data: Likewise.
18422         * conform/data/sys/un.h-data: Likewise.
18423         * conform/data/sys/utsname.h-data: Likewise.
18424         * conform/data/sys/wait.h-data: Likewise.
18425         * conform/data/syslog.h-data: Likewise.
18426         * conform/data/tar.h-data: Likewise.
18427         * conform/data/termios.h-data: Likewise.
18428         * conform/data/utime.h-data: Likewise.
18429         * conform/data/utmpx.h-data: Likewise.
18430         * conform/data/varargs.h-data: Likewise.
18431         * conform/data/wchar.h-data: Likewise.
18432         * conform/data/wctype.h-data: Likewise.
18433         * conform/data/wordexp.h-data: Likewise.
18434
18435         * include/stropts.h: New file.
18436         * include/uchar.h: New file.
18437         * include/aio.h: Changes to allow conformtest.pl to use the headers.
18438         * include/assert.h: Likewise.
18439         * include/ctype.h: Likewise.
18440         * include/dirent.h: Likewise.
18441         * include/dlfcn.h: Likewise.
18442         * include/fcntl.h: Likewise.
18443         * include/fnmatch.h: Likewise.
18444         * include/glob.h: Likewise.
18445         * include/grp.h: Likewise.
18446         * include/libio.h: Likewise.
18447         * include/locale.h: Likewise.
18448         * include/math.h: Likewise.
18449         * include/net/if.h: Likewise.
18450         * include/netdb.h: Likewise.
18451         * include/netinet/in.h: Likewise.
18452         * include/pthread.h: Likewise.
18453         * include/pwd.h: Likewise.
18454         * include/regex.h: Likewise.
18455         * include/sched.h: Likewise.
18456         * include/search.h: Likewise.
18457         * include/setjmp.h: Likewise.
18458         * include/signal.h: Likewise.
18459         * include/stdio.h: Likewise.
18460         * include/stdlib.h: Likewise.
18461         * include/string.h: Likewise.
18462         * include/sys/cdefs.h: Likewise.
18463         * include/sys/mman.h: Likewise.
18464         * include/sys/msg.h: Likewise.
18465         * include/sys/resource.h: Likewise.
18466         * include/sys/select.h: Likewise.
18467         * include/sys/socket.h: Likewise.
18468         * include/sys/stat.h: Likewise.
18469         * include/sys/statvfs.h: Likewise.
18470         * include/sys/time.h: Likewise.
18471         * include/sys/times.h: Likewise.
18472         * include/sys/uio.h: Likewise.
18473         * include/sys/utsname.h: Likewise.
18474         * include/sys/wait.h: Likewise.
18475         * include/termios.h: Likewise.
18476         * include/time.h: Likewise.
18477         * include/ulimit.h: Likewise.
18478         * include/unistd.h: Likewise.
18479         * include/utime.h: Likewise.
18480         * include/wchar.h: Likewise.
18481         * include/wctype.h: Likewise.
18482         * include/wordexp.h: Likewise.
18483
18484         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
18485
18486         * time/time.h: TIME_UTC must be a macro.
18487         Make timespec_get available for ISO C11 only as well.
18488
18489 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
18490
18491         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
18492         Reported by Peng Haitao <penght@cn.fujitsu.com>.
18493
18494 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
18495
18496         * configure.in: Use -o not -a in test for unsupported multi-arch.
18497
18498 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
18499
18500         * manual/texinfo.tex: Update to version 2012-01-19.16.
18501
18502 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
18503
18504         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
18505
18506 2012-02-24  Roland McGrath  <roland@hack.frob.com>
18507
18508         [BZ #13738]
18509         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
18510         * manual/fdl-1.3.texi: New file.
18511         * manual/fdl-1.1.texi: File removed.
18512
18513         [BZ #13738]
18514         * manual/libc.texinfo (FDL_VERSION): New @set.
18515         Use it for mention of FDL in cover text.
18516         (Documentation License): Use it in @include file name.
18517
18518 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18519             Roland McGrath  <roland@hack.frob.com>
18520
18521         [BZ #5461]
18522         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
18523         not LONG_LONG_MAX and LONG_LONG_MIN.
18524         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
18525         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
18526         name.
18527         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
18528
18529 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18530
18531         [BZ #2547]
18532         [BZ #11365]
18533         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
18534         manipulate bits before adding and subtracting TWO23[sx].
18535         * math/libm-test.inc (nearbyint_test): Add more tests.
18536
18537 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18538
18539         [BZ #2548]
18540         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
18541         bits before adding and subtracting TWO23[sx].
18542         * math/libm-test.inc (rint_test): Add more tests.
18543         (rint_test_tonearest): Likewise.
18544         (rint_test_towardzero): Likewise.
18545         (rint_test_downward): Likewise.
18546         (rint_test_upward: Likewise.
18547
18548 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18549
18550         [BZ #10110]
18551         * include/stdc-predef.h: New file.  Extracted from features.h.
18552         * include/features.h: Include stdc-predef.h.
18553         * Makefile (headers): Add stdc-predef.h.
18554         * CONFORMANCE (Compiler limitations): Update.
18555
18556 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18557
18558         * manual/libc.texinfo (VERSION, UPDATED): Revert.
18559
18560 2012-02-21  David S. Miller  <davem@davemloft.net>
18561
18562         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
18563         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
18564
18565 2012-02-20  David S. Miller  <davem@davemloft.net>
18566
18567         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
18568         using a normal save/restore sequence, rather than allocating a
18569         dummy stack frame just to store a frame pointer and restore.
18570         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
18571
18572 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
18573
18574         * manual/install.texi: Fix stray word in line-wrapped comment.
18575
18576 2012-02-20  David S. Miller  <davem@davemloft.net>
18577
18578         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
18579         both binutils and gcc support GOTDATA.
18580
18581         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
18582         "rd %pc" in the PIC register setup sequences.
18583
18584         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
18585         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
18586         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
18587         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
18588         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
18589         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
18590         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18591         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
18592         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
18593         (SYSCALL_ERROR_HANDLER): Likewise.
18594         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
18595         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
18596         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
18597         (SYSCALL_ERROR_HANDLER): Likewise.
18598
18599         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
18600         (HAVE_GCC_GOTDATA): New.
18601         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
18602         relocation support in both binutils and gcc.
18603         * sysdeps/sparc/elf/configure: Regenerate.
18604
18605         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
18606         * sysdeps/sparc/sparc32/elf/configure: Delete.
18607         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
18608         * sysdeps/sparc/sparc64/elf/configure: Delete.
18609         * sysdeps/sparc/elf/configure.in: New file.
18610         * sysdeps/sparc/elf/configure: Generate.
18611
18612         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
18613         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
18614         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
18615         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
18616         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
18617
18618 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
18619
18620         * manual/install.texi: Do not mention specific glibc version
18621         numbers.
18622         * manual/libc.texinfo (VERSION, UPDATED): Update.
18623         (@copying): Use @copyright{} and range of years.
18624
18625 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
18626
18627         [BZ #13695]
18628         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
18629         [crti.S not in sysdirs] (generated): Do not append.
18630         [crti.S not in sysdirs] (omit-deps): Likewise.
18631         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
18632         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
18633         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
18634         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
18635         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
18636         Likewise.
18637         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
18638         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
18639         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
18640         * csu/defs.awk: Remove file.
18641         * sysdeps/generic/initfini.c: Likewise.
18642         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
18643         variable.
18644         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
18645         Likewise.
18646
18647 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18648
18649         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
18650         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
18651         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
18652         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
18653         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
18654         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
18655         <bits/epoll.h>.
18656         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
18657         (__EPOLL_PACKED): Define to empty if not defined by
18658         <bits/epoll.h>.
18659         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
18660         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18661         bits/epoll.h.
18662
18663 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18664
18665         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
18666         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
18667         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
18668         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
18669         <bits/timerfd.h>.
18670         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
18671         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18672         bits/timerfd.h.
18673
18674 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18675
18676         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
18677         in C locale.
18678         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18679         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18680         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
18681         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18682
18683 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
18684
18685         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18686         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
18687
18688 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
18689
18690         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
18691         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
18692         defined.
18693         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
18694         Likewise.
18695         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
18696         entry for 2.16.
18697
18698 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
18699
18700         * math/w_acos.c: Use non-signaling floating-point comparisons.
18701         * math/w_acosf.c: Likewise.
18702         * math/w_acosh.c: Likewise.
18703         * math/w_acoshf.c: Likewise.
18704         * math/w_acoshl.c: Likewise.
18705         * math/w_acosl.c: Likewise.
18706         * math/w_asin.c: Likewise.
18707         * math/w_asinf.c: Likewise.
18708         * math/w_asinl.c: Likewise.
18709         * math/w_atanh.c: Likewise.
18710         * math/w_atanhf.c: Likewise.
18711         * math/w_atanhl.c: Likewise.
18712         * math/w_exp2.c: Likewise.
18713         * math/w_exp2f.c: Likewise.
18714         * math/w_exp2l.c: Likewise.
18715         * math/w_j0.c: Likewise.
18716         * math/w_j0f.c: Likewise.
18717         * math/w_j0l.c: Likewise.
18718         * math/w_j1.c: Likewise.
18719         * math/w_j1f.c: Likewise.
18720         * math/w_j1l.c: Likewise.
18721         * math/w_jn.c: Likewise.
18722         * math/w_jnf.c: Likewise.
18723         * math/w_log.c: Likewise.
18724         * math/w_log10.c: Likewise.
18725         * math/w_log10f.c: Likewise.
18726         * math/w_log10l.c: Likewise.
18727         * math/w_log2.c: Likewise.
18728         * math/w_log2f.c: Likewise.
18729         * math/w_log2l.c: Likewise.
18730         * math/w_logf.c: Likewise.
18731         * math/w_logl.c: Likewise.
18732         * math/w_sqrt.c: Likewise.
18733         * math/w_sqrtf.c: Likewise.
18734         * math/w_sqrtl.c: Likewise.
18735         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18736         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
18737         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18738         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
18739         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
18740
18741 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18742
18743         [BZ #9739]
18744         * manual/string.texi (strnlen): Use correct parameter name in
18745         equivalent expression.
18746
18747 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18748
18749         [BZ #11174]
18750         * manual/users.texi (seteuid): Consistently use neweuid for
18751         argument name.
18752
18753 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18754
18755         [BZ #13704]
18756         * manual/nss.texi (Services in the NSS configuration): Correct
18757         list of services in example configuration file.
18758
18759 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
18760
18761         [BZ #11322]
18762         * manual/arith.texi: Remove statements about negative zero
18763         behaving identically to zero.
18764
18765 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18766
18767         [BZ #5993]
18768         * manual/install.texi: Do not document upgrading from libc5.
18769
18770 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18771
18772         [BZ #4596]
18773         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
18774
18775 2012-02-18  David S. Miller  <davem@davemloft.net>
18776
18777         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
18778         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
18779         %o7 across the call.
18780         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
18781         instead.
18782         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
18783         SETUP_PIC_REG_LEAF.
18784         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18785         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
18786         * sysdeps/sparc/crtn.S: Likewise.
18787
18788 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
18789
18790         * aout/Makefile: Remove.
18791
18792 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
18793
18794         [BZ #13058]
18795         * manual/examples/argp-ex1.c (main): Format definition in GNU
18796         style.
18797         * manual/examples/argp-ex2.c (main): Likewise.
18798         * manual/examples/argp-ex3.c (main): Likewise.
18799         * manual/examples/argp-ex4.c (main): Likewise.
18800         * manual/examples/longopt.c (main): Use new-style prototype
18801         definition.
18802         * manual/examples/strncat.c (main): Specify return type and use
18803         (void) for arguments.
18804         * manual/examples/subopt.c (main): Use char **argv argument.
18805
18806 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18807
18808         [BZ #5077]
18809         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
18810         rounding modes.
18811
18812 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
18813
18814         [BZ #6907]
18815         * manual/string.texi (strchr): Change when strchrnul is
18816         recommended.
18817
18818 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
18819
18820         [BZ #174]
18821         * manual/locale.texi (setlocale): Document LOCPATH.
18822
18823 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18824
18825         [BZ #10210]
18826         * manual/process.texi (execle): Move @dots{} before last argument.
18827
18828 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
18829
18830         [BZ #12047]
18831         * manual/charset.texi (Generic Charset Conversion): Fix typo
18832         (LC_TYPE -> LC_CTYPE).
18833
18834 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
18835
18836         [BZ #5805]
18837         * manual/arith.texi (scalbn): Use @var{} on parameter names.
18838         (scalbnf): Likewise.
18839         (scalbnl): Likewise.
18840         (scalbln): Likewise.
18841         (scalblnf): Likewise.
18842         (scalblnl): Likewise.
18843         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
18844         (vwarnx): Likewise.
18845         (verr): Likewise.
18846         (verrx): Likewise.
18847         * manual/filesys.texi (telldir): Use braces around return type.
18848         * manual/llio.texi (mmap): Add space after comma.
18849         (mmap64): Likewise.
18850         * manual/math.texi (jn): Use @var{} on parameter names.
18851         (jnf): Likewise.
18852         (jnl): Likewise.
18853         (yn): Likewise.
18854         (ynf): Likewise.
18855         (ynl): Likewise.
18856         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
18857         line.
18858         * manual/resource.texi (ulimit): Use @dots{} instead of literal
18859         "...".
18860         (sched_get_priority_min): Remove semicolon on @deftypefun line.
18861         (sched_get_priority_max): Likewise.
18862         * manual/signal.texi (sigvec): Add space after comma.
18863         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
18864         names.
18865         (if_indextoname): Likewise.
18866         (if_freenameindex): Likewise.
18867         (sendto): Use ',' instead of '.' in prototype.
18868         * manual/startup.texi (syscall): Use @dots{} instead of literal
18869         "...".
18870         * manual/stdio.texi (__fpending): Separate initial words of
18871         paragraph from @deftypefun line.
18872         * manual/syslog.texi (syslog): Use @dots{} instead of literal
18873         "...".
18874         (vsyslog): Use @var{} on parameter names.
18875         * manual/terminal.texi (stty): Use @var{} on parameter names.
18876         * manual/users.texi (getutmp): Use @var{} on parameter names.
18877         (getutmpx): Likewise.
18878
18879 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18880
18881         [BZ #6884]
18882         * manual/stdio.texi (fopen): Fix typos in description of
18883         ",ccs=STRING".
18884
18885 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
18886
18887         [BZ #4026]
18888         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
18889         get clock_id definition.
18890
18891 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
18892
18893         [BZ #4822]
18894         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
18895         (madvise): Cast every argument to void on its own.
18896
18897 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18898
18899         [BZ #9902]
18900         * manual/startup.texi (Exit Status): Fix typo.
18901
18902 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18903
18904         [BZ #10140]
18905         * manual/examples/argp-ex1.c: Include <stdlib.h>.
18906         * manual/examples/argp-ex2.c: Likewise.
18907         * manual/examples/argp-ex3.c: Likewise.
18908
18909 2012-02-16  Richard Henderson  <rth@redhat.com>
18910
18911         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
18912         * sysdeps/s390/s390-32/initfini.c: Remove.
18913         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
18914         * sysdeps/s390/s390-64/initfini.c: Remove.
18915
18916 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18917
18918         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
18919         compiler output for sysdeps/generic/initfini.c.
18920         * sysdeps/sh/elf/initfini.c: Remove file.
18921
18922 2012-02-16  David S. Miller  <davem@davemloft.net>
18923
18924         [BZ #11494]
18925         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
18926
18927         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
18928         * sysdeps/sparc/crti.S: New file.
18929         * sysdeps/sparc/crtn.S: New file.
18930         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
18931         * sysdeps/sparc/sparc64/Makefile: Likewise.
18932
18933 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
18934
18935         [BZ #3335]
18936         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
18937
18938 2012-02-15  Roland McGrath  <roland@hack.frob.com>
18939
18940         [BZ #4822]
18941         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
18942
18943         * mach/devstream.c (cookie_io_functions_t): Macro removed.
18944         (write, read, close): Likewise.
18945         Patch by Aurelien Jarno <aurelien@aurel32.net>.
18946
18947 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
18948
18949         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
18950         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
18951         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
18952         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
18953         <bits/signalfd.h>.
18954         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
18955         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18956         bits/signalfd.h.
18957
18958 2012-02-14  Marek Polacek  <polacek@redhat.com>
18959
18960         * sysdeps/x86_64/crti.S: New file.
18961         * sysdeps/x86_64/crtn.S: New file.
18962         * sysdeps/x86_64/elf/initfini.c: Remove file.
18963
18964 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18965
18966         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
18967         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
18968         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
18969         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
18970         <bits/inotify.h>.
18971         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
18972         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18973         bits/inotify.h.
18974
18975 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18976
18977         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
18978         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
18979         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
18980         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
18981         <bits/eventfd.h>.
18982         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
18983         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18984         bits/eventfd.h.
18985
18986 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
18987
18988         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
18989         __feraiseexcept instead of feraiseexcept.
18990
18991         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
18992         nanosleep invocations.
18993         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
18994         strings, and add error checking for a nanosleep invocations.
18995
18996 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18997
18998         Replace FSF snail mail address with URLs, as per GNU coding standards.
18999         Most of the snail mail addresses were wrong anyway, and omitting
19000         them makes the source code easier to maintain.  Almost all of the
19001         changes are to license notices and to locale LC_IDENTIFICATION
19002         addresses, except for this one:
19003         * manual/libc.texinfo: In "Published by", give the FSF's URL,
19004         not its snail mail address.
19005
19006 2012-02-09  Richard Henderson  <rth@twiddle.net>
19007
19008         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
19009         of kernel-features.h.
19010
19011         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
19012
19013 2012-02-08  Marek Polacek  <polacek@redhat.com>
19014
19015         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
19016         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
19017         * sysdeps/gnu/_G_config.h: Likewise.
19018         * sysdeps/generic/_G_config.h: Likewise.
19019
19020 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
19021
19022         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
19023         tests.
19024         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19025
19026         * sysdeps/powerpc/powerpc32/crti.S: New file.
19027         * sysdeps/powerpc/powerpc32/crtn.S: New file.
19028         * sysdeps/powerpc/powerpc64/crti.S: New file.
19029         * sysdeps/powerpc/powerpc64/crtn.S: New file.
19030
19031         * Makeconfig (have-initfini): Don't set.
19032         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
19033         * configure.in (nopic_initfini): Don't substitute.
19034         * config.h.in (HAVE_INITFINI): Don't #undef.
19035         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
19036         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
19037
19038 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
19039
19040         Support crti.S and crtn.S provided directly by architectures.
19041         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
19042         [crti.S in sysdirs] (omit-deps): Likewise.
19043         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
19044         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
19045         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
19046         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
19047         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
19048         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
19049         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
19050         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
19051         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
19052         compiler output for sysdeps/generic/initfini.c.
19053         * sysdeps/i386/elf/Makefile: Remove file.
19054         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
19055
19056 2012-02-07  Marek Polacek  <polacek@redhat.com>
19057
19058         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
19059         * sysdeps/gnu/_G_config.h: Likewise.
19060         * sysdeps/mach/hurd/_G_config.h: Likewise.
19061
19062 2012-02-07  Marek Polacek  <polacek@redhat.com>
19063
19064         * math/Makefile (tests): Add tst-CMPLX2.
19065         * math/tst-CMPLX2.c: New file.
19066
19067 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
19068
19069         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
19070
19071         * math/libm-test.inc (jn_test): Add missing L suffix.
19072
19073 2012-02-06  Marek Polacek  <polacek@redhat.com>
19074
19075         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
19076         * sysdeps/i386/fpu/e_powf.S: Likewise.
19077         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
19078         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
19079         * sysdeps/i386/fpu/e_acosh.S: Likewise.
19080         * sysdeps/i386/fpu/e_pow.S: Likewise.
19081         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
19082         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
19083         * sysdeps/i386/fpu/s_expm1.S: Likewise.
19084         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
19085         * sysdeps/i386/fpu/e_log2.S: Likewise.
19086         * sysdeps/i386/fpu/e_log2l.S: Likewise.
19087         * sysdeps/i386/fpu/e_scalb.S: Likewise.
19088         * sysdeps/i386/fpu/e_powl.S: Likewise.
19089         * sysdeps/i386/fpu/s_log1p.S: Likewise.
19090         * sysdeps/i386/fpu/e_log10f.S: Likewise.
19091         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
19092         * sysdeps/i386/fpu/e_logl.S: Likewise.
19093         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
19094         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
19095         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
19096         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
19097         * sysdeps/i386/fpu/e_log2f.S: Likewise.
19098         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
19099         * sysdeps/i386/fpu/e_log.S: Likewise.
19100         * sysdeps/i386/fpu/s_cexp.S: Likewise.
19101         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
19102         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
19103         * sysdeps/i386/fpu/e_logf.S: Likewise.
19104         * sysdeps/i386/fpu/e_log10l.S: Likewise.
19105         * sysdeps/i386/fpu/e_atanh.S: Likewise.
19106         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
19107         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
19108         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
19109         * sysdeps/i386/fpu/e_log10.S: Likewise.
19110         * sysdeps/i386/fpu/s_frexp.S: Likewise.
19111         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
19112         * sysdeps/i386/fpu/s_asinh.S: Likewise.
19113         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
19114         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
19115         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
19116         * sysdeps/i386/asm-syntax.h: Likewise.
19117         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
19118         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
19119         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
19120         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
19121         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
19122         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
19123         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
19124         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
19125         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
19126         * sysdeps/powerpc/sysdep.h: Likewise.
19127         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19128         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
19129
19130 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
19131
19132         [BZ #411]
19133         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
19134
19135 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
19136
19137         * sysdeps/i386/sysdep.h: Include <features.h>.
19138         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
19139         version.
19140
19141 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
19142
19143         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
19144         Define.
19145         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
19146         LOAD_PIC_REG_STR.
19147
19148 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19149
19150         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
19151         (SETUP_PIC_REG): Use GET_PC_THUNK.
19152         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
19153         macro.
19154
19155 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19156
19157         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
19158         for non-PIC compilation.
19159         (SETUP_PIC_REG): Add .p2align directive.
19160         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
19161         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
19162         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
19163         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
19164         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
19165         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
19166         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
19167         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19168         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
19169         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
19170         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
19171         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
19172         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
19173         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
19174         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
19175         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
19176         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
19177         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
19178         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
19179         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
19180         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
19181         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
19182         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
19183         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
19184         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
19185         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
19186         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19187         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
19188         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
19189         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
19190         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
19191         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19192         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
19193         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
19194         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
19195         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
19196         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
19197         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
19198         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
19199         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
19200         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
19201
19202 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19203
19204         * math/tst-CMPLX.c: Include <stdio.h>.
19205
19206 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
19207
19208         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
19209         float.
19210         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
19211         * sysdeps/sparc/bits/mathdef.h: Likewise.
19212
19213 2012-01-31  Marek Polacek  <polacek@redhat.com>
19214
19215         * libio/libio.h: Don't define _PARAMS.
19216         * locale/programs/config.h: Don't define PARAMS.
19217         * stdlib/strtol_l.c: Likewise.
19218         (__strtol_l): Remove PARAMS from the prototype.
19219
19220 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
19221
19222         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
19223         names.  Just use the correct names.  Remove unnecessary wrapper
19224         functions.
19225         * malloc/arena.c: Likewise.
19226         * malloc/hooks.c: Likewise.
19227
19228         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
19229         ARENA_TEST says not to.  Simplify test for creation of a new arena.
19230         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
19231
19232 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
19233
19234         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
19235         into tail calls.
19236         (update_get_addr): New function.
19237         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
19238         GET_ADDR_MODULE parameter.
19239
19240 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
19241
19242         * crypt/cert.c: Remove __STDC__ conditionals.
19243         * crypt/crypt-entry.c: Likewise.
19244         * crypt/crypt_util.c: Likewise.
19245         * libio/filedoalloc.c: Likewise.
19246         * libio/fileops.c: Likewise.
19247         * libio/genops.c: Likewise.
19248         * libio/iofclose.c: Likewise.
19249         * libio/iofdopen.c: Likewise.
19250         * libio/iofopen.c: Likewise.
19251         * libio/iofopen64.c: Likewise.
19252         * libio/iogetdelim.c: Likewise.
19253         * libio/iopopen.c: Likewise.
19254         * libio/obprintf.c: Likewise.
19255         * libio/oldfileops.c: Likewise.
19256         * libio/oldiofclose.c: Likewise.
19257         * libio/oldiofdopen.c: Likewise.
19258         * libio/oldiofopen.c: Likewise.
19259         * libio/oldiopopen.c: Likewise.
19260         * libio/wfiledoalloc.c: Likewise.
19261         * libio/wgenops.c: Likewise.
19262         * locale/programs/xmalloc.c: Likewise.
19263         * misc/syslog.c: Likewise.
19264         * stdio-common/xbug.c: Likewise.
19265         * string/memchr.c: Likewise.
19266         * string/memcmp.c: Likewise.
19267         * string/memrchr.c: Likewise.
19268         * string/rawmemchr.c: Likewise.
19269         * sysdeps/posix/getcwd.c: Likewise.
19270         * time/strftime_l.c: Likewise.
19271
19272 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
19273
19274         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
19275         * config.make.in (config-cflags-sse2avx): Define.
19276         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
19277         Fix typo.
19278
19279 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
19280
19281         * scripts/config.guess: Update from upstream config git repository.
19282         * scripts/config.sub: Likewise.
19283
19284 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
19285
19286         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
19287         (EM_NUM): Update.
19288         (R_TILEPRO_*, R_TILEGX_*): New macros.
19289
19290         * scripts/firstversions.awk: Fix bug in version range handling.
19291
19292         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
19293
19294         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
19295
19296         * include/sys/epoll.h: New file.
19297         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
19298         libc_hidden_def.
19299
19300 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
19301
19302         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
19303         Avoid unnecessary __WORDSIZE == 64 test.
19304         (fmaxf): Use VEX format if possible.
19305         (fmax): Likewise.
19306         (fminf): Likewise.
19307         (fmin): Likewise.
19308
19309         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
19310         * math/math_private.h: Remove libc_fegetround* and
19311         libc_fesetround*.
19312         * sysdeps/i386/configure.in: Check for -msse2avx.
19313         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
19314         also if SSE2AVX is defined.
19315         Remove libc_fegetround* and libc_fesetround*.
19316         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
19317         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
19318         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
19319         of HAS_YMM_USABLE.
19320         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19321         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19322         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19323         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19324         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19325
19326         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
19327
19328 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19329
19330         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
19331         size is not set.
19332         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19333
19334 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
19335
19336         [BZ #13618]
19337         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
19338         relocation.
19339         * Makeconfig (libm): Define.
19340         * elf/Makefile: Add rules to build and run tst-relsort1.
19341         * elf/tst-relsort1.c: New file.
19342         * elf/tst-relsort1mod1.c: New file.
19343         * elf/tst-relsort1mod2.c: New file.
19344
19345 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
19346
19347         * math/s_ldexp.c: Remove __STDC__ conditionals.
19348         * math/s_ldexpf.c: Likewise.
19349         * math/s_ldexpl.c: Likewise.
19350         * math/s_nextafter.c: Likewise.
19351         * math/s_nexttowardf.c: Likewise.
19352         * math/s_significand.c: Likewise.
19353         * math/s_significandf.c: Likewise.
19354         * math/s_significandl.c: Likewise.
19355         * math/w_jnl.c: Likewise.
19356         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19357         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19358         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19359         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19360         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19361         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19362         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
19363         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19364         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19365         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19366         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19367         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19368         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19369         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19370         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19371         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19372         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19373         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19374         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19375         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19376         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19377         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19378         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19379         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19380         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19381         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19382         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19383         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19384         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19385         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19386         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19387         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19388         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19389         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19390         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19391         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19392         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19393         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19394         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19395         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19396         * sysdeps/ieee754/k_standard.c: Likewise.
19397         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19398         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19399         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19400         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19401         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19402         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19403         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19404         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19405         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19406         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19407         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19408         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19409         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19410         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19411         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19412         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19413         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19414         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19415         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19416         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19417         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19418         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19419         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19420         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19421         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19422         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19423         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19424         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19425         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19426         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19427         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19428         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
19429         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19430         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19431         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19432         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19433         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
19434         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19435         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19436         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
19437         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
19438         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19439         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
19440         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
19441         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19442         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
19443         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
19444         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19445         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19446         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
19447         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
19448         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19449         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19450         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19451         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19452         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19453         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
19454         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19455         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19456         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19457         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19458         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19459         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19460         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19461         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19462         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19463         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19464         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19465         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19466         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19467         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19468         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19469         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19470         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19471         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19472         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19473         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19474         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19475         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19476         * sysdeps/ieee754/s_matherr.c: Likewise.
19477         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19478         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19479         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19480         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19481
19482 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
19483
19484         * crypt/md5.h: Remove __STDC__ conditionals.
19485         * libio/libioP.h: Likewise.
19486         * locale/programs/config.h: Likewise.
19487         * sysdeps/generic/sysdep.h: Likewise.
19488         * sysdeps/i386/asm-syntax.h: Likewise.
19489         * sysdeps/s390/asm-syntax.h: Likewise.
19490         * sysdeps/unix/sysdep.h: Likewise.
19491         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
19492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
19493
19494 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
19495
19496         * libio/libio.h: Remove __STDC__ conditionals.
19497         * malloc/obstack.h: Likewise.
19498         * math/complex.h: Likewise.
19499         * math/math.h: Likewise.
19500         * sysdeps/generic/_G_config.h: Likewise.
19501         * sysdeps/gnu/_G_config.h: Likewise.
19502         * sysdeps/mach/hurd/_G_config.h: Likewise.
19503         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19504         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
19505         * sysdeps/sparc/bits/mathdef.h: Likewise.
19506
19507 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
19508
19509         [BZ #13583]
19510         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
19511         Clean up HAS_* macros.
19512         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
19513         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
19514         possible.
19515         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
19516         HAS_AVX.
19517         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19518         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19519         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19520         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19521         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19522
19523 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
19524
19525         * elf/tst-unique3.cc (gets): Remove declaration.
19526         * elf/tst-unique3lib.cc (gets): Likewise.
19527         * elf/tst-unique3lib2.cc (gets): Likewise.
19528         * elf/tst-unique4.cc (gets): Likewise.
19529
19530 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
19531
19532         * include/stdio.h: Add C++ protection.  Add gets declarations and
19533         definitions.
19534         * debug/tst-chk1.c: Don't declare gets here.
19535         * stdio-common/tst-gets.c: Likewise.
19536
19537 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
19538
19539         * posix/glob: Remove directory.
19540
19541 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
19542
19543         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
19544
19545 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
19546
19547         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
19548         of the non-standard EPFNOSUPPORT.
19549
19550 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19551
19552         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
19553         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
19554         ANYWHERE set to 1 only on KERN_NO_SPACE error.
19555
19556 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
19557
19558         * wcsmbs/uchar.h: Test __STDC_VERSION__.
19559
19560 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
19561
19562         * nscd/aicache.c (addhstaiX): Do not cache negative results of
19563         transient errors.
19564         * nscd/grpcache.c (cache_addgr): Likewise.
19565         * nscd/hstcache.c (cache_addhst): Likewise.
19566         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19567         * nscd/pwdcache.c (cache_addpw): Likewise.
19568         * nscd/servicescache.c (cache_addserv): Likewise.
19569
19570 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
19571
19572         * malloc/malloc.c: Various cleanups.
19573         * malloc/hooks.c: Likewise.
19574
19575         * stdlib/Makefile (tests): Add bug-fmtmsg1.
19576         * stdlib/bug-fmtmsg1.c: New file.
19577
19578         * stdlib/fmtmsg.c (init): Add missing unlock.
19579         Patch by Peng Haitao <penght@cn.fujitsu.com>.
19580
19581 2012-01-12  Marek Polacek  <polacek@redhat.com>
19582
19583         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
19584         and _GNU_SOURCE.
19585
19586 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
19587
19588         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
19589         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
19590         macro to ensure uniqueness of label name.
19591         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
19592         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
19593
19594 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
19595
19596         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
19597
19598         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
19599         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19600         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19601         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
19602
19603 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
19604
19605         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
19606
19607         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
19608         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19609         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19610
19611         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
19612
19613         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
19614         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19615         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19616         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
19617
19618         * math/bits/math-finite.h: Add ldexp support.
19619
19620 2012-01-10  Marek Polacek  <polacek@redhat.com>
19621
19622         * locale/programs/localedef.h (show_archive_content): Add noreturn
19623         attribute.
19624
19625 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
19626
19627         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
19628
19629 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19630
19631         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
19632
19633         * io/Makefile (headers): Add bits/poll2.h.
19634
19635 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
19636
19637         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
19638         typo #include statement.
19639
19640 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19641
19642         * include/sys/cdefs.h: Define __attribute_alloc_size.
19643         * catgets/gencat.c: Add alloc_size attribute and apply consistently
19644         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
19645         * elf/pldd.c: Likewise.
19646         * iconv/iconv_charmap.c: Likewise.
19647         * iconv/iconvconfig.c: Likewise.
19648         * iconv/strtab.c: Likewise.
19649         * locale/programs/locale.c: Likewise.
19650         * locale/programs/localedef.h: Likewise.
19651         * locale/programs/simple-hash.c: Likewise.
19652         * nscd/nscd.h: Likewise.
19653         * nss/makedb.c: Likewise.
19654         * sysdeps/generic/ldconfig.h: Likewise.
19655         * locale/programs/localedef.c: Remove xmalloc prototype.
19656         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
19657
19658 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19659
19660         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
19661         appropriate.
19662
19663 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19664
19665         * math/Makefile (tests): Add tst-CMPLX.
19666         * math/tst-CMPLX.c: New file.
19667
19668         * math/complex.h (CMPLXL): Fix typo.
19669
19670         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
19671         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
19672         GLIBC_2.16.
19673         * debug/tst-chk1.c: Add poll and ppoll tests.
19674         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
19675         * include/sys/poll.h: Add hidden proto for ppoll.
19676         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
19677         * sysdeps/mach/hurd/ppoll.c: Likewise.
19678         * io/ppoll.c: Likewise.
19679         * debug/poll_chk.c: New file.
19680         * debug/ppoll_chk.c: New file.
19681         * include/bits/poll2.h: New file.
19682         * io/bits/poll2.h: New file.
19683
19684         [BZ #1350]
19685         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
19686
19687         * configure.in: static is always set to yes.  Remove.
19688         * config.make.in: Don't set build-static.
19689         * Makeconfig: Remove use of build-static.
19690         * dlfcn/Makefile: Likewise.
19691         * elf/Makefile: Likewise.
19692         * math/Makefile: Likewise.
19693         * misc/Makefile: Likewise.
19694         * nptl/Makefile: Likewise.
19695         * sysdeps/mach/hurd/Makefile: Likewise.
19696
19697         * configure.in: PWD_P is not used anymore.
19698         * config.make.in: Remove PWD_P entry.
19699
19700         * configure.in: Remove last remnants of RANLIB.
19701         No need to check for signed size_t anymore.
19702         Don't set libc_commonpagesize and libc_relro_required here for Alpha
19703         and IA-64.
19704         Remove __builtin_expect test because we require at least gcc 3.4.
19705         * aclocal.m4: Likewise.
19706
19707         * wcsmbs/mbrtoc16.c: Implement using towc function.
19708         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
19709         * wcsmbs/wcsmbsload.c: Likewise.
19710         * iconv/gconv_simple.c: Likewise.
19711         * iconv/gconv_int.h: Likewise.
19712         * iconv/gconv_builtin.h: Likewise.
19713         * iconv/iconv_prog.c: Remove CHAR16 handling.
19714
19715         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
19716
19717         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
19718
19719         * configure.in: Remove --with-elf and --enable-bounded options.
19720         Dont set base_machine for ia64.  More non-ELF conditions removed.
19721         Remove testing and setting of leading underscore information.
19722         * config.make.in (build-bounded): Set to no.
19723         * config.h.in: Remove NO_UNDERSCORES entry.
19724         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
19725         them.
19726         * csu/start.c: Remove !NO_UNDERSCORE code.
19727         * locale/localeinfo.h: Likewise.
19728         * sysdeps/generic/machine-gmon.h: Likewise.
19729         * sysdeps/generic/sysdep.h: Likewise.
19730         * sysdeps/i386/sysdep.h: Likewise.
19731         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19732         * sysdeps/mach/sysdep.h: Likewise.
19733         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19734         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19735         * sysdeps/sh/sysdep.h: Likewise.
19736         * sysdeps/sparc/sparc32/alloca.S: Likewise.
19737         * sysdeps/unix/i386/sysdep.S: Likewise.
19738         * sysdeps/unix/sparc/start.c: Likewise.
19739         * sysdeps/unix/sparc/sysdep.S: Likewise.
19740         * sysdeps/unix/sparc/sysdep.h: Likewise.
19741         * sysdeps/unix/start.c: Likewise.
19742         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19743         * sysdeps/x86_64/sysdep.h: Likewise.
19744
19745 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
19746
19747         [BZ #13553]
19748         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
19749         for non-gcc.
19750         * argp/argp-fmtstream.h: Use const instead __const.
19751         * argp/argp.h: Likewise.
19752         * assert/assert.h: Likewise.
19753         * bits/fenv.h: Likewise.
19754         * bits/sched.h: Likewise.
19755         * bits/sigset.h: Likewise.
19756         * bits/sigthread.h: Likewise.
19757         * catgets/nl_types.h: Likewise.
19758         * conform/data/pthread.h-data: Likewise.
19759         * crypt/crypt-private.h: Likewise.
19760         * crypt/crypt.h: Likewise.
19761         * crypt/crypt_util.c: Likewise.
19762         * ctype/ctype.h: Likewise.
19763         * debug/execinfo.h: Likewise.
19764         * debug/mbsnrtowcs_chk.c: Likewise.
19765         * debug/mbsrtowcs_chk.c: Likewise.
19766         * debug/wcsnrtombs_chk.c: Likewise.
19767         * debug/wcsrtombs_chk.c: Likewise.
19768         * debug/wcstombs_chk.c: Likewise.
19769         * dirent/dirent.h: Likewise.
19770         * dlfcn/dlfcn.h: Likewise.
19771         * elf/neededtest4.c: Likewise.
19772         * grp/grp.h: Likewise.
19773         * gshadow/gshadow.h: Likewise.
19774         * iconv/gconv.h: Likewise.
19775         * iconv/gconv_int.h: Likewise.
19776         * iconv/gconv_simple.c: Likewise.
19777         * iconv/iconv.h: Likewise.
19778         * iconv/loop.c: Likewise.
19779         * iconv/skeleton.c: Likewise.
19780         * include/aio.h: Likewise.
19781         * include/aliases.h: Likewise.
19782         * include/argz.h: Likewise.
19783         * include/arpa/inet.h: Likewise.
19784         * include/assert.h: Likewise.
19785         * include/dirent.h: Likewise.
19786         * include/dlfcn.h: Likewise.
19787         * include/execinfo.h: Likewise.
19788         * include/fcntl.h: Likewise.
19789         * include/fenv.h: Likewise.
19790         * include/glob.h: Likewise.
19791         * include/grp.h: Likewise.
19792         * include/libintl.h: Likewise.
19793         * include/mntent.h: Likewise.
19794         * include/netdb.h: Likewise.
19795         * include/pwd.h: Likewise.
19796         * include/rpc/netdb.h: Likewise.
19797         * include/sched.h: Likewise.
19798         * include/search.h: Likewise.
19799         * include/shadow.h: Likewise.
19800         * include/signal.h: Likewise.
19801         * include/stdio.h: Likewise.
19802         * include/stdlib.h: Likewise.
19803         * include/string.h: Likewise.
19804         * include/sys/socket.h: Likewise.
19805         * include/sys/stat.h: Likewise.
19806         * include/sys/statfs.h: Likewise.
19807         * include/sys/statvfs.h: Likewise.
19808         * include/sys/syslog.h: Likewise.
19809         * include/sys/time.h: Likewise.
19810         * include/sys/uio.h: Likewise.
19811         * include/time.h: Likewise.
19812         * include/unistd.h: Likewise.
19813         * include/utmp.h: Likewise.
19814         * include/wchar.h: Likewise.
19815         * include/wctype.h: Likewise.
19816         * inet/aliases.h: Likewise.
19817         * inet/arpa/inet.h: Likewise.
19818         * inet/netinet/ether.h: Likewise.
19819         * inet/netinet/in.h: Likewise.
19820         * intl/libintl.h: Likewise.
19821         * io/bits/fcntl2.h: Likewise.
19822         * io/fcntl.h: Likewise.
19823         * io/ftw.h: Likewise.
19824         * io/sys/poll.h: Likewise.
19825         * io/sys/stat.h: Likewise.
19826         * io/sys/statfs.h: Likewise.
19827         * io/sys/statvfs.h: Likewise.
19828         * io/utime.h: Likewise.
19829         * libio/bits/stdio.h: Likewise.
19830         * libio/bits/stdio2.h: Likewise.
19831         * libio/libio.h: Likewise.
19832         * libio/libioP.h: Likewise.
19833         * libio/stdio.h: Likewise.
19834         * locale/lc-ctype.c: Likewise.
19835         * locale/locale.h: Likewise.
19836         * login/utmp.h: Likewise.
19837         * malloc/arena.c: Likewise.
19838         * malloc/malloc.c: Likewise.
19839         * malloc/malloc.h: Likewise.
19840         * malloc/mcheck.c: Likewise.
19841         * malloc/mtrace.c: Likewise.
19842         * math/bits/mathcalls.h: Likewise.
19843         * math/fenv.h: Likewise.
19844         * math/math_private.h: Likewise.
19845         * misc/bits/error.h: Likewise.
19846         * misc/bits/syslog.h: Likewise.
19847         * misc/err.h: Likewise.
19848         * misc/error.h: Likewise.
19849         * misc/fstab.h: Likewise.
19850         * misc/mntent.h: Likewise.
19851         * misc/regexp.h: Likewise.
19852         * misc/search.h: Likewise.
19853         * misc/sgtty.h: Likewise.
19854         * misc/sys/mman.h: Likewise.
19855         * misc/sys/syslog.h: Likewise.
19856         * misc/sys/uio.h: Likewise.
19857         * misc/sys/xattr.h: Likewise.
19858         * misc/ttyent.h: Likewise.
19859         * nis/rpcsvc/ypclnt.h: Likewise.
19860         * nss/nss.h: Likewise.
19861         * posix/bits/unistd.h: Likewise.
19862         * posix/fnmatch.h: Likewise.
19863         * posix/glob.h: Likewise.
19864         * posix/sched.h: Likewise.
19865         * posix/spawn.h: Likewise.
19866         * posix/sys/wait.h: Likewise.
19867         * posix/unistd.h: Likewise.
19868         * posix/wordexp.h: Likewise.
19869         * pwd/pwd.h: Likewise.
19870         * resolv/netdb.h: Likewise.
19871         * resource/sys/resource.h: Likewise.
19872         * rt/aio.h: Likewise.
19873         * rt/bits/mqueue2.h: Likewise.
19874         * rt/mqueue.h: Likewise.
19875         * shadow/shadow.h: Likewise.
19876         * signal/signal.h: Likewise.
19877         * socket/send.c: Likewise.
19878         * socket/sendto.c: Likewise.
19879         * socket/sys/socket.h: Likewise.
19880         * stdio-common/printf.h: Likewise.
19881         * stdlib/bits/stdlib.h: Likewise.
19882         * stdlib/fmtmsg.h: Likewise.
19883         * stdlib/monetary.h: Likewise.
19884         * stdlib/stdlib.h: Likewise.
19885         * stdlib/ucontext.h: Likewise.
19886         * streams/stropts.h: Likewise.
19887         * string/argz.h: Likewise.
19888         * string/bits/string2.h: Likewise.
19889         * string/string.h: Likewise.
19890         * string/strings.h: Likewise.
19891         * sunrpc/rpc/auth.h: Likewise.
19892         * sunrpc/rpc/auth_des.h: Likewise.
19893         * sunrpc/rpc/clnt.h: Likewise.
19894         * sunrpc/rpc/netdb.h: Likewise.
19895         * sunrpc/rpc/pmap_clnt.h: Likewise.
19896         * sunrpc/rpc/xdr.h: Likewise.
19897         * sysdeps/generic/inttypes.h: Likewise.
19898         * sysdeps/generic/net/if.h: Likewise.
19899         * sysdeps/generic/sys/swap.h: Likewise.
19900         * sysdeps/gnu/net/if.h: Likewise.
19901         * sysdeps/gnu/utmpx.h: Likewise.
19902         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
19903         * sysdeps/i386/i486/bits/string.h: Likewise.
19904         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
19905         * sysdeps/s390/bits/string.h: Likewise.
19906         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
19907         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
19908         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
19909         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
19910         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
19911         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
19912         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
19913         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
19914         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
19915         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
19916         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
19917         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
19918         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
19919         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
19920         * sysdeps/unix/sysv/linux/readv.c: Likewise.
19921         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
19922         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
19923         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19924         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19925         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19926         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
19927         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
19928         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
19929         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
19930         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
19931         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
19932         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
19933         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19934         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
19935         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
19936         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
19937         * sysvipc/sys/ipc.h: Likewise.
19938         * sysvipc/sys/msg.h: Likewise.
19939         * sysvipc/sys/sem.h: Likewise.
19940         * sysvipc/sys/shm.h: Likewise.
19941         * termios/termios.h: Likewise.
19942         * time/sys/time.h: Likewise.
19943         * time/time.h: Likewise.
19944         * wcsmbs/bits/wchar2.h: Likewise.
19945         * wcsmbs/uchar.h: Likewise.
19946         * wcsmbs/wchar.h: Likewise.
19947         * wctype/wctype.h: Likewise.
19948
19949         [BZ #13551]
19950         * Makeconfig: Remove all but ELF support including AIX support.
19951         * Makerules: Likewise.
19952         * config.h.in: Likewise.
19953         * config.make.in: Likewise.
19954         * configure: Likewise.
19955         * configure.in: Likewise.
19956         * csu/Makefile: Likewise.
19957         * csu/version.c: Likewise.
19958         * debug/Makefile: Likewise.
19959         * dlfcn/Makefile: Likewise.
19960         * elf/Makefile: Likewise.
19961         * extra-lib.mk: Likewise.
19962         * iconv/Makefile: Likewise.
19963         * include/libc-symbols.h: Likewise.
19964         * include/shlib-compat.h: Likewise.
19965         * resolv/Makefile: Likewise.
19966         * resolv/res_libc.c: Likewise.
19967         * rt/Makefile: Likewise.
19968         * sysdeps/i386/asm-syntax.h: Likewise.
19969         * sysdeps/i386/sysdep.h: Likewise.
19970         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19971         * sysdeps/mach/sysdep.h: Likewise.
19972         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
19973         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
19974         * sysdeps/s390/asm-syntax.h: Likewise.
19975         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19976         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19977         * sysdeps/sh/sysdep.h: Likewise.
19978         * sysdeps/unix/sparc/sysdep.h: Likewise.
19979         * sysdeps/wordsize-32/divdi3.c: Likewise.
19980         * sysdeps/x86_64/sysdep.h: Likewise.
19981
19982         * argp/Versions: Remove _argp_unlock_xxx.
19983
19984         [BZ #13559]
19985         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
19986         * abilist/libBrokenLocale.abilist: Likewise.
19987         * abilist/libanl.abilist: Likewise.
19988         * abilist/libc.abilist: Likewise.
19989         * abilist/libcrypt.abilist: Likewise.
19990         * abilist/libdl.abilist: Likewise.
19991         * abilist/libm.abilist: Likewise.
19992         * abilist/libnsl.abilist: Likewise.
19993         * abilist/libpthread.abilist: Likewise.
19994         * abilist/libresolv.abilist: Likewise.
19995         * abilist/librt.abilist: Likewise.
19996         * abilist/libthread_db.abilist: Likewise.
19997         * abilist/libutil.abilist: Likewise.
19998         * abilist/libnss_db.abilist: New file.
19999
20000         * scripts/abilist.awk: Add support for indirect functions.
20001
20002         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
20003
20004         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
20005
20006         * shlib-versions: Remove entries for ports architectures.
20007
20008         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
20009         files in ports.
20010         * elf/stackguard-macros.h: Remove support for IA-64.
20011         * elf/tst-auditmod1.c: Likewise.
20012         * sysdeps/generic/ldsodefs.h: Likewise.
20013
20014         * sysdeps/unix/sysv/linux/configure.in: Ports should define
20015         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
20016         configure files.
20017
20018         [BZ #13552]
20019         * configure.in: Remove --enable-omitfp support.
20020         * FAQ.in: Adjust.
20021         * config.make.in: Likewise.
20022         * Makeconfig: Likewise.
20023         * manual/install.texi: Likewise.
20024
20025         In case anyone cares, the IA-64 architecture could move to ports.
20026         * sysdeps/ia64/*: Removed.
20027         * sysdeps/unix/sysv/linux/ia64/*: Removed.
20028         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
20029
20030         [BZ #13555]
20031         * configure.in: Remove entries for unsupported architectures.
20032
20033         [BZ #13533]
20034         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
20035         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
20036         routines.
20037         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
20038         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
20039         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
20040         fall back to using wcrtomb.
20041         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
20042         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
20043         renaming.
20044         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
20045         * wcsmbs/tst-c16c32-1.c: New file.
20046
20047         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
20048         local variable.
20049
20050         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
20051
20052         * elf/tst-unique3.cc: Add explicit declaration of gets.
20053         * elf/tst-unique3lib.cc: Likewise.
20054         * elf/tst-unique3lib2.cc: Likewise.
20055         * elf/tst-unique4.cc: Likewise.
20056
20057         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
20058
20059 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
20060
20061         [BZ #13566]
20062         * assert/assert.h (static_assert): Don't define for C++.
20063         * libio/stdio.h (gets): Do declare for C++ <= C++11.
20064         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
20065
20066 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
20067
20068         * iconv/loop.c (single loop): Fix assertion in storing of
20069         remaining bytes.
20070
20071         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
20072
20073 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
20074
20075         * posix/getconf.c: Update copyright year.
20076         * nss/getent.c: Likewise.
20077         * nss/makedb.c: Likewise.
20078         * iconv/iconvconfig.c: Likewise.
20079         * iconv/iconv_prog.c: Likewise.
20080         * elf/ldconfig.c: Likewise.
20081         * elf/pldd.c: Likewise.
20082         * elf/sotruss.ksh: Likewise.
20083         * catgets/gencat.c: Likewise.
20084         * csu/version.c: Likewise.
20085         * elf/ldd.bash.in: Likewise.
20086         * elf/sprof.c (print_version): Likewise.
20087         * locale/programs/locale.c: Likewise.
20088         * locale/programs/localedef.c: Likewise.
20089         * login/programs/pt_chown.c: Likewise.
20090         * nscd/nscd.c (print_version): Likewise.
20091         * debug/xtrace.sh: Likewise.
20092         * malloc/memusage.sh: Likewise.
20093         * malloc/mtrace.pl: Likewise.
20094         * debug/catchsegv.sh: Likewise.
20095
20096 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
20097
20098         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
20099         pure attribute.
20100
20101 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
20102
20103         [BZ #13533]
20104         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
20105         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
20106         transformations.
20107         * iconv/gconv_int.h: Likewise.
20108         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
20109         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
20110         from libc for GLIBC_2.16.
20111         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
20112         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
20113         * wcsmbs/uchar.h: Really define mbstate_t.
20114         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
20115         * wcsmbs/c16rtomb.c: New file.
20116         * wcsmbs/mbrtoc16.c: New file.
20117         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
20118         for C/POSIX locale.
20119         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
20120         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
20121
20122         * wcsmbs/wchar.h: Add missing __restrict.
20123
20124 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
20125
20126         [BZ #13532]
20127         * time/Makefile (routines): Add timespec_get.
20128         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
20129         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
20130         timespec for ISO C11.
20131         * time/timespec_get.c: New file.
20132         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
20133         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
20134
20135         [BZ #13531]
20136         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
20137         * stdlib/stdlib.h: Declare aligned_alloc.
20138         * Versions.def: Add GLIBC_2.16 for libc.
20139         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
20140
20141         [BZ 13527]
20142         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
20143         ISO C11.
20144
20145         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
20146         code.
20147
20148         [BZ #13528]
20149         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
20150
20151         [BZ #13529]
20152         * assert/assert.h (static_assert): Define.
20153
20154         * version.h: Update for 2.16 development version.
20155
20156         [BZ #13526]
20157         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
20158         _ISOC11_SOURCE.
20159
20160         * version.h (RELEASE): Bump for 2.15 release.
20161         * include/features.h (__GLIBC_MINOR__): Bump to 15.
20162
20163         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
20164         Patch by Marek Polacek <mpolacek@redhat.com>.
20165
20166         * bits/byteswap.h: Protect long long constants with __extension__.
20167         * sysdeps/i386/bits/byteswap.h: Likewise.
20168         * sysdeps/ia64/bits/byteswap.h: Likewise.
20169         * sysdeps/s390/bits/byteswap.h: Likewise.
20170         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20171
20172 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20173
20174         [BZ #13540]
20175         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
20176         destination buffer.
20177         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
20178
20179 2011-12-23  Marek Polacek  <polacek@redhat.com>
20180
20181         * elf/dl-addr.c (determine_info): Add inline keyword.
20182         * elf/tst-auditmod4b.c (check_avx): Likewise.
20183         * elf/tst-auditmod6b.c (check_avx): Likewise.
20184         * elf/tst-auditmod6c.c (check_avx): Likewise.
20185         * elf/tst-auditmod7b.c (check_avx): Likewise.
20186
20187 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
20188
20189         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
20190         !__SSE_MATH__.
20191
20192 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20193
20194         [BZ #13540]
20195         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
20196         processing for last bytes.
20197
20198 2011-08-06  Bruno Haible  <bruno@clisp.org>
20199
20200         [BZ #13061]
20201         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
20202         U+0385, not to U+1FEE.
20203
20204         [BZ #13062]
20205         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
20206         entry for U+00A5 U+0301.
20207
20208 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
20209
20210         [BZ #13166]
20211         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
20212         buffer for the output is too small.
20213
20214         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
20215         optimization.
20216
20217         [BZ #13185]
20218         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
20219         SSE flags if possible.
20220
20221 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20222
20223         [BZ #13540]
20224         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
20225         processing for last bytes.
20226
20227 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
20228
20229         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
20230         (syscall-list-default-options, syscall-list-default-condition)
20231         (syscall-list-includes): Define.
20232         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
20233         list of ABIs and options and #if conditions for each ABI.  Do not
20234         handle common syscalls between ABIs specially.
20235         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
20236         Remove.
20237         (syscall-list-variants, syscall-list-32bit-options)
20238         (syscall-list-32bit-condition, syscall-list-64bit-options)
20239         (syscall-list-64bit-condition): Define.
20240         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
20241         (syscall-list-variants, syscall-list-32bit-options)
20242         (syscall-list-32bit-condition, syscall-list-64bit-options)
20243         (syscall-list-64bit-condition): Define.
20244         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
20245         Remove.
20246         (syscall-list-variants, syscall-list-32bit-options)
20247         (syscall-list-32bit-condition, syscall-list-64bit-options)
20248         (syscall-list-64bit-condition): Define.
20249         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
20250         Remove.
20251         (syscall-list-variants, syscall-list-32bit-options)
20252         (syscall-list-32bit-condition, syscall-list-64bit-options)
20253         (syscall-list-64bit-condition): Define.
20254
20255 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
20256
20257         * locale/iso-639.def: Add brx entry.
20258
20259         [BZ #13328]
20260         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
20261         Proposed by Mariusz_Cukr <marcukr@op.pl>.
20262
20263         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
20264         __feraiseexcept_renamed.
20265
20266 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
20267
20268         [BZ #13538]
20269         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
20270         EPOLLET with unsigned values.
20271         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20272         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
20273
20274         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
20275         to large cancellation.
20276         * math/s_cacoshf.c: Likewise.
20277         * math/s_cacoshl.c: Likewise.
20278
20279 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
20280
20281         [BZ #13305]
20282         [BZ #12786]
20283         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
20284         * math/s_cacoshf.c: Likewise.
20285         * math/s_cacoshl.c: Likewise.
20286
20287 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
20288
20289         [BZ #13439]
20290         * iconv/gconv.h: Define __GCONV_SWAP.
20291         * iconvdata/unicode.c: The swap bit must be stored in __flags.
20292         * iconvdata/utf-16.c: Likewise.
20293         * iconvdata/utf-32.c: Likewise.
20294
20295 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
20296
20297         [BZ #13524]
20298         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
20299         numerator after shifting it by one limb.
20300
20301 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
20302
20303         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
20304         under [__USE_EXTERN_INLINES].
20305
20306 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
20307
20308         [BZ #13446]
20309         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
20310
20311 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20312
20313         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
20314         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
20315         optimized code.
20316         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
20317         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
20318         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
20319         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
20320         for strncasecmp/strncasecmp_l compilation.
20321         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
20322         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
20323
20324 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
20325
20326         [BZ #13484]
20327         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
20328         of __asm__.
20329
20330 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
20331
20332         [BZ #13506]
20333         * time/tzfile.c (__tzfile_read): Check values from file header.
20334
20335 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20336
20337         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
20338         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
20339         * powerpc/powerpc32/dl-start.S: Likewise.
20340         * powerpc/powerpc32/elf/start.S: Likewise.
20341         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
20342         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
20343         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
20344         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
20345         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
20346         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
20347         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
20348         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
20349         * powerpc/powerpc32/fpu/s_round.S: Likewise.
20350         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
20351         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
20352         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
20353         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
20354         * powerpc/powerpc32/memset.S: Likewise.
20355         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
20356         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
20357         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
20358         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
20359         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
20360         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
20361         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
20362         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
20363         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
20364         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
20365         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
20366         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
20367         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
20368
20369 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20370
20371         * math/libm-test.inc: Added more nearbyint tests.
20372         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
20373         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
20374         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
20375         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
20376
20377 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
20378
20379         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
20380         FD_CLOEXEC.
20381
20382 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20383
20384         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
20385         Add wcscpy-ssse3 wcscpy-c.
20386         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
20387         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
20388         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
20389         * sysdeps/x86_64/wcschr.S: New file.
20390         * sysdeps/x86_64/wcsrchr.S: New file.
20391         * string/test-strcmp.c: Remove checking of wcscmp function for
20392         wrong alignments.
20393         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
20394         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
20395         wcsrchr-sse2 wcsrchr-c.
20396         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
20397         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
20398         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
20399         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
20400         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
20401         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
20402         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
20403         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
20404         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
20405         * wcsmbc/wcschr.c (WCSCHR): New macro.
20406
20407 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20408
20409         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
20410         * wcsmbs/test-wcsrchr.c: New file.
20411         * string/test-strrchr.c: Add wcsrchr support.
20412         (WIDE): New macro.
20413         * wcsmbs/test-wcscpy.c: New file.
20414         * string/test-strcpy.c: Add wcscpy support.
20415         (WIDE): New macro.
20416
20417 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
20418
20419         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
20420         the inner loop.
20421
20422 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
20423
20424         [BZ #13472]
20425         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
20426
20427 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
20428
20429         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
20430         Minor optimizations.
20431
20432         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
20433         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
20434         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
20435
20436 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
20437
20438         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
20439         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
20440         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
20441         for gcc to avoid warnings.
20442         * inet/Makefile (tests): Add tst-checks.
20443         * inet/tst-checks.c: New file.
20444
20445         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
20446         warning.
20447
20448         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
20449         __wmemcmp_sse2.
20450
20451         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
20452         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
20453
20454         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
20455
20456 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
20457
20458         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
20459         problem.
20460
20461         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
20462
20463 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
20464
20465         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
20466         conditional on GCC version.
20467         (__arch_compare_and_exchange_val_8_acq)
20468         (__arch_compare_and_exchange_val_16_acq)
20469         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
20470         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
20471         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
20472
20473 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
20474
20475         * sysdeps/sh/backtrace.c: New file.
20476
20477 2011-12-02  Andreas Schwab  <schwab@redhat.com>
20478
20479         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
20480         parenthesis.
20481
20482 2011-12-01  Andreas Schwab  <schwab@redhat.com>
20483
20484         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
20485         falling back to utime.
20486
20487 2011-11-30  Andreas Schwab  <schwab@redhat.com>
20488
20489         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
20490         expectations for float.
20491
20492 2011-11-29  Andreas Schwab  <schwab@redhat.com>
20493
20494         * locale/weight.h (findidx): Add parameter len.
20495         * locale/weightwc.h (findidx): Likewise.
20496         * posix/fnmatch_loop.c (FCT): Adjust caller.
20497         * posix/regcomp.c (build_equiv_class): Likewise.
20498         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
20499         * posix/regexec.c (check_node_accept_bytes): Likewise.
20500         * string/strcoll_l.c (STRCOLL): Likewise.
20501         * string/strxfrm_l.c (STRXFRM): Likewise.
20502
20503 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
20504
20505         * Makefile.in: Remove CVSOPT handling.
20506         * configure.in: Remove use of AC_REVISION.
20507         * iconvdata/Makefile (distribute): No need to filter out CVS.
20508         * scripts/list-sources.sh: Remove CVS, subversion and monotone
20509         handling.
20510
20511 2011-11-16  Andreas Schwab  <schwab@redhat.com>
20512
20513         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
20514         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
20515         [USE_AS_STRNCASECMP_L]: Likewise.
20516         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
20517         NO_TLS_DIRECT_SEG_REFS.
20518         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
20519         Fix argument offsets for non-PIC.
20520         [USE_AS_STRNCASECMP_L]: Likewise.
20521         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
20522         NO_TLS_DIRECT_SEG_REFS.
20523
20524 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
20525
20526         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
20527         O_CLOEXEC.
20528         * locale/loadlocale.c (_nl_load_locale): Likewise.
20529
20530 2011-11-15  Andreas Schwab  <schwab@redhat.com>
20531
20532         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
20533         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
20534         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
20535         (SYSCALL_GETTIME): Set errno on error.
20536
20537         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
20538         count references to noai6ai_cached.
20539
20540 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
20541
20542         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
20543
20544         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
20545         FD_CLOEXEC for /proc/self/maps.
20546
20547         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
20548         FD_CLOEXEC for /proc/meminfo.
20549
20550         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
20551         gai.conf.
20552
20553         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
20554         FD_CLOEXEC for given file.
20555
20556         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
20557
20558         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
20559         FD_CLOEXEC for /etc/hosts.
20560         (_gethtent): Likewise.
20561
20562         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
20563
20564         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
20565         cancellation and set FD_CLOEXEC for /etc/netgroup.
20566
20567         * nss/nss_files/files-key.c (search): Don't allow cancellation when
20568         reading /etc/publickey.
20569
20570         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
20571         allow cancellation when reading /etc/group.
20572
20573         * nss/nss_files/files-alias.c (internal_setent): Don't allow
20574         cancellation.
20575         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
20576
20577         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
20578         when using data file.
20579
20580         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
20581
20582         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
20583         (write_nis_obj): Use "c" and "e" in fopen.
20584
20585         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
20586
20587         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
20588
20589         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
20590
20591         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
20592
20593         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
20594         locale.alias.
20595
20596         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
20597
20598         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
20599
20600         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
20601
20602         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
20603         file parsing and set FD_CLOEXEC.
20604
20605 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
20606
20607         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
20608
20609 2011-11-14  Andreas Schwab  <schwab@redhat.com>
20610
20611         * malloc/arena.c (arena_get2): Don't call reused_arena when
20612         _int_new_arena failed.
20613
20614 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
20615
20616         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
20617         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
20618         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
20619         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20620         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20621         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
20622         to compile strcasecmp and strncasecmp.
20623         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
20624         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
20625
20626         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
20627
20628 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
20629
20630         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
20631         locale-defines.sym to gen-as-const-headers.
20632         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
20633         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
20634         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
20635         to compile strcasecmp and strncasecmp.
20636         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
20637         strcasecmp_l and strncasecmp_l.
20638         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
20639         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
20640         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
20641         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
20642         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
20643         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
20644         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
20645         * sysdeps/i386/i686/multiarch/strncase.S: New file.
20646         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
20647         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
20648         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
20649
20650 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
20651
20652         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
20653         result of SYSDEP_GETTIME_CPU to retval.
20654         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
20655         parameter list to macro.  Remove trailing semicolon.  Adjust users.
20656
20657         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
20658         variable.
20659
20660         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
20661         mantissa words.
20662         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20663
20664         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
20665         from unused variable.
20666
20667         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
20668         DWARF definitions.
20669         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
20670         for assembling.
20671
20672         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
20673         over namespaces.
20674
20675         * sunrpc/rpc_prot.c (rejected): Fix case value.
20676
20677         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
20678         unsigned long long int to avoid warnings in shift.
20679
20680         * posix/regex_internal.c (re_string_reconstruct): Actually use result
20681         of use of trans.
20682         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
20683         variable tmp.
20684
20685         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
20686         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
20687         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
20688
20689         * nis/nis_table.c (nis_list): Use variable of correct type for
20690         result of __follow_path call.
20691
20692 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20693
20694         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
20695         of math functions ceil, trunc, floor, round, and sqrt, when
20696         avaliable on the platform.
20697         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
20698         name clash.
20699         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
20700         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
20701         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
20702
20703 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
20704
20705         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
20706         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
20707
20708 2011-11-11  Roland McGrath  <roland@hack.frob.com>
20709
20710         * include/unistd.h: Fix __readlink return type.
20711         Reported by Chris Metcalf <cmetcalf@tilera.com>.
20712
20713 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
20714
20715         * stdlib/ucontext.h: Undo last change for makecontext.
20716
20717 2011-11-11  Andreas Schwab  <schwab@redhat.com>
20718
20719         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
20720
20721         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
20722         * setjmp/setjmp.h: Mark functions as non-leaf.
20723         * setjmp/bits/setjmp2.h: Likewise.
20724         * stdlib/ucontext.h: Likewise.
20725
20726 2011-11-10  Andreas Schwab  <schwab@redhat.com>
20727
20728         * malloc/arena.c (_int_new_arena): Don't increment narenas.
20729         (reused_arena): Don't check arena limit.
20730         (arena_get2): Atomically check arena limit.
20731
20732 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
20733
20734         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
20735         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
20736
20737         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
20738         instructions.
20739
20740 2011-11-07  Andreas Schwab  <schwab@redhat.com>
20741
20742         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
20743         handler when locking.
20744
20745         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
20746         Fix size of allocated buffer.
20747
20748 2011-11-04  Andreas Schwab  <schwab@redhat.com>
20749
20750         [BZ #10103]
20751         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
20752         declarations for long double functions.
20753         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
20754
20755         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
20756
20757 2011-11-03  Andreas Schwab  <schwab@redhat.com>
20758
20759         * nscd/nscd.c (main): Don't start AVC thread until credentials are
20760         installed.
20761
20762         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
20763         is disabled.
20764
20765 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20766
20767         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
20768
20769 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
20770
20771         * include/alloca.h (stackinfo_alloca_round): Define.
20772         (extend_alloca): Use it.
20773         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
20774         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
20775         here.
20776
20777         * scripts/check-local-headers.sh: Ignore libaudit.h.
20778
20779         * nscd/Makefile (extra-objs): Make recursively expanded.
20780
20781 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
20782
20783         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
20784         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
20785
20786         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
20787         * posix/tst-rfc3484-2.c: Likewise.
20788         * posix/tst-rfc3484-3.c: Likewise.
20789
20790         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20791         process_vm_writev.
20792         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
20793         process_vm_writev.
20794         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
20795         process_vm_writev from libc using GLIBC_2.15 version.
20796
20797         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
20798
20799 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
20800
20801         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
20802         stack usage.
20803
20804 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
20805
20806         [BZ #13367]
20807         * nss/getent.c (initgroups_keys): Show error message in case no group
20808         names are given.
20809
20810         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
20811         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
20812         __bump_nl_timestamp.
20813         * nscd/connections (nscd_init): When host database is served open
20814         netlink socket and request notification about configuration changes.
20815         (main_loop_poll): Track netlink file descriptor and bump timestamp
20816         in case data becomes available.
20817         (main_loop_epoll): Likewise.
20818         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
20819         (database_pers_head): Add extra_data fileds.
20820         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
20821         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
20822         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
20823         Adjust caller.
20824         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
20825         in6ai data, call __free_in6ai.
20826         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
20827         Add -DHAVE_NETLINK.
20828         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
20829         interface information.  Reuse previous data if netlink timestamp
20830         is not changed.
20831         (__bump_nl_timestamp): New function.
20832         (__free_in6ai): New function.
20833
20834 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
20835
20836         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
20837         close_not_cancel_no_status here.
20838         (__check_pf): Reorganize code a bit to not call close twice if OOM.
20839
20840 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20841
20842         [BZ #13276]
20843         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
20844         return value.
20845
20846         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
20847         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
20848         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
20849
20850 2011-07-03  Andreas Jaeger  <aj@suse.de>
20851
20852         [BZ #10709]
20853         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
20854         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
20855         * math/libm-test.inc (sin_test): Add test case.
20856
20857 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20858
20859         [BZ #13337]
20860         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
20861         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20862
20863         * elf/chroot_canon.c (chroot_canon): Cleanups.
20864
20865         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
20866
20867         [BZ #13335]
20868         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
20869         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20870
20871         * string/test-strchr.c: Make usable for strchrnul testing.
20872         * string/test-strchrnul.c: New file.
20873         * string/Makefile (strop-tests): Add strchrnul.
20874
20875         * po/it.po: Update from translation team.
20876         * po/es.po: Likewise.
20877
20878 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
20879
20880         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
20881         the three constants needed as parameters.  Drop the others.
20882         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
20883         __m128i_strloadu_tolower.
20884         Create and initialize variable zero and use it in all the places
20885         where _mm_setzero_si128 was used.
20886
20887         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
20888         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
20889         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
20890         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
20891         anymore.
20892         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
20893         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
20894         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
20895         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
20896         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
20897         __mpranred, __mptan.
20898         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
20899         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
20900         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
20901         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
20902         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
20903         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
20904         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
20905         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
20906         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
20907
20908 2011-10-28  Andreas Schwab  <schwab@redhat.com>
20909
20910         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
20911         redefine if SHARED.
20912         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
20913
20914         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
20915         wide char related routines to wcsmbs subdir.
20916
20917 2011-10-27  Andreas Schwab  <schwab@redhat.com>
20918
20919         [BZ #13344]
20920         * misc/sys/cdefs.h (__THROWNL): Define.
20921         * posix/unistd.h: Use __THREADNL instead of __THREAD
20922         for memory synchronization functions.
20923
20924 2011-10-26  Roland McGrath  <roland@hack.frob.com>
20925
20926         [BZ #13349]
20927         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
20928         doesn't exist.
20929         * manual/stdio.texi (Obstack Streams): Node removed.
20930
20931 2011-10-26  Andreas Schwab  <schwab@redhat.com>
20932
20933         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
20934         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20935         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20936
20937         * math/math_private.h (math_force_eval): Allow non-addressable
20938         arguments.
20939         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
20940
20941 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20942
20943         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
20944         file is not needed.
20945
20946         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
20947         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20948         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20949         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20950         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20951         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20952         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20953         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
20954         Add AVX variants.
20955         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
20956         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
20957         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
20958         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
20959         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
20960         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
20961         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
20962         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
20963         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
20964         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
20965         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
20966         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
20967         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
20968         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
20969         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
20970         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
20971         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
20972         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
20973         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
20974
20975         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
20976         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
20977
20978         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
20979         place.  Use VEX encoding when compiling for AVX.
20980
20981 2011-10-25  Andreas Schwab  <schwab@redhat.com>
20982
20983         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
20984         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
20985
20986         * string/test-strchr.c (do_test): Don't generate NUL bytes.
20987
20988 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20989
20990         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
20991         useless if() expression.
20992         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20993         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20994         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20995         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20996         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20997         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20998         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20999         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
21000         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
21001         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21002         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
21003         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
21004         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
21005         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
21006         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
21007         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
21008         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21009         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21010         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
21011
21012         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
21013
21014 2011-10-25  Andreas Schwab  <schwab@redhat.com>
21015
21016         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
21017         condition.
21018         * elf/dl-fini.c (_dl_sort_fini): Likewise.
21019
21020 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
21021
21022         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
21023         .text section.  Avoid duplicate constants.
21024         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
21025         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21026         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21027         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21028         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21029         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21030         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21031         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21032         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
21033         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
21034         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
21035         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
21036         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
21037         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
21038         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
21039         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
21040         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
21041         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
21042         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
21043         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21044         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
21045         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
21046         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
21047         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
21048         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
21049         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
21050         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
21051         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
21052         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
21053         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
21054         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
21055         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
21056         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
21057         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
21058         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
21059         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
21060         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
21061         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
21062         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
21063         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
21064         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
21065         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
21066         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
21067         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
21068         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
21069
21070 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
21071
21072         * sysdeps/x86_64/dla.h: Move to ...
21073         * sysdeps/x86_64/fpu/dla.h: ...here.
21074         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
21075         situations.  Use __builtin_fma only for gcc 4.6 and up.
21076
21077         * config.make.in: Add have-mfma4 entry.
21078         * configure.in: Substitute libc_cv_cc_fma4.
21079         * math/Makefile (dbl-only-routines): Add sincostab.
21080         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
21081         Use __sincostab not sincos.
21082         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
21083         name is a macro.
21084         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21085         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21086         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21087         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
21088         using __copysign.
21089         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
21090         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
21091         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
21092         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
21093         and __inv.
21094         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
21095         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
21096         __copysign.
21097         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
21098         define aliases when function name is a macro.
21099         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
21100         sysdeps/ieee754/dbl-64/sincos.tbl.
21101         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
21102         fma4-enabled routines.
21103         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
21104         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
21105         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
21106         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
21107         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
21108         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
21109         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
21110         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
21111         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
21112         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
21113         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
21114         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
21115         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
21116         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
21117         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
21118         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
21119         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
21120         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
21121         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
21122         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
21123         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
21124         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
21125         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
21126         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
21127         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
21128         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
21129         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
21130         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
21131         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
21132         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
21133
21134         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
21135         rename.
21136         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21137         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21138         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21139         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21140         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21141         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21142         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21143         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21144
21145 2011-10-24  Andreas Schwab  <schwab@redhat.com>
21146
21147         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
21148
21149 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21150
21151         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
21152
21153         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
21154         prediction.
21155         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
21156
21157         * string/strnlen.c: Don't define STRNLEN, reverse logic.
21158         Remove unused variable magic_bits.
21159         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
21160
21161         * string/strnlen.c: Define and use STRNLEN macro.
21162         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
21163         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
21164         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
21165         * wcsmbs/wcslen.c: Define and use WCSLEN.
21166         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
21167         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
21168         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
21169         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
21170         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
21171         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
21172         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
21173
21174 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21175
21176         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21177         strnlen-sse2-no-bsf.
21178         Rename strlen-no-bsf to strlen-sse2-no-bsf.
21179         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
21180         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
21181         Add strnlen support.
21182         (USE_AS_STRNLEN): New macro.
21183         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
21184         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
21185         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
21186         * sysdeps/x86_64/wcslen.S: New file.
21187
21188 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
21189
21190         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
21191         XMM-moves are used for copying on small sizes.
21192
21193 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21194
21195         * wcsmbs/Makefile (strop-tests): Add wcschr.
21196         * wcsmbs/test-wcschr.c: New file.
21197         * string/test-strchr.c: Update.
21198         Add wcschr support.
21199         (WIDE): New macro.
21200
21201 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21202
21203         * wcsmbs/Makefile (strop-tests): Add wcslen.
21204         * wcsmbs/test-wcslen.c: New file.
21205         * string/test-strlen.c: Update.
21206         Add wcslen support.
21207         (WIDE): New macro.
21208
21209 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21210
21211         * po/it.po: Update from translation team.
21212
21213 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21214
21215         * sysdeps/x86_64/wcscmp.S: Update.
21216         Fix wrong comparison semantics.
21217         wcscmp shall use signed comparison not unsigned.
21218         Don't use substraction to avoid overflow bug.
21219         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
21220         * wcsmbc/wcscmp.c: Likewise.
21221         * string/test-strcmp.c: Likewise.
21222         Add new tests to check cases with negative values.
21223
21224 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21225
21226         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
21227         * sysdeps/x86_64/dla.h: ...here.  New file.
21228         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
21229         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21230         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21231         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21232         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21233         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21234         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21235         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21236         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21237
21238 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
21239
21240         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
21241         __ynl_finite aliases.
21242
21243 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
21244
21245         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21246
21247         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
21248         define DLA_FMA.
21249         [DLA_FMA] (EMULV): Use DLA_FMA.
21250         [DLA_FMA] (MUL12): Use EMULV.
21251         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
21252         that are not needed.
21253         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21254         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21255         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21256         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21257         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21258         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21259         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21260
21261 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
21262
21263         * math/s_nan.c: Undef __nan.
21264         * math/s_nanf.c: Undef __nanf.
21265         * math/s_nanl.c: Undef __nanl.
21266         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
21267         "math_private.h".
21268
21269 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
21270
21271         * math/s_catan.c: Add branch predictions.
21272         * math/s_catanf.c: Likewise.
21273         * math/s_catanh.c: Likewise.
21274         * math/s_catanhf.c: Likewise.
21275         * math/s_catanhl.c: Likewise.
21276         * math/s_catanl.c: Likewise.
21277         * math/s_cexp.c: Likewise.
21278         * math/s_cexpf.c: Likewise.
21279         * math/s_cexpl.c: Likewise.
21280         * math/s_clog.c: Likewise.
21281         * math/s_clog10.c: Likewise.
21282         * math/s_clog10f.c: Likewise.
21283         * math/s_clog10l.c: Likewise.
21284         * math/s_clogf.c: Likewise.
21285         * math/s_clogl.c: Likewise.
21286         * math/s_csqrt.c: Likewise.
21287         * math/s_csqrtf.c: Likewise.
21288         * math/s_csqrtl.c: Likewise.
21289         * math/s_ctanf.c: Likewise.
21290         * math/s_ctanh.c: Likewise.
21291         * math/s_ctanhf.c: Likewise.
21292         * math/s_ctanhl.c: Likewise.
21293         * math/s_ctanl.c: Likewise.
21294
21295         * math/math_private.h: Define __nan, __nanf, __nanl.
21296         * math/s_cacosh.c: Include <math_private.h>.
21297         * math/s_cacoshl.c: Likewise.
21298         * math/s_casinh.c: Likewise.
21299         * math/s_casinhf.c: Likewise.
21300         * math/s_casinhl.c: Likewise.
21301         * math/s_ccos.c: Rely entire on ccosh.
21302         * math/s_ccosf.c: Rely entire on ccoshf.
21303         * math/s_ccosl.c: Rely entirely on ccoshl.
21304         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
21305         Remove tests for FE_INVALID.
21306         * math/s_ccoshf.c: Likewise.
21307         * math/s_ccoshl.c: Likewise.
21308         * math/s_csin.c: Likewise.
21309         * math/s_csinf.c: Likewise.
21310         * math/s_csinh.c Likewise.
21311         * math/s_csinhf.c: Likewise.
21312         * math/s_csinhl.c: Likewise.
21313         * math/s_csinl.c: Likewise.
21314         * math/s_ctan.c: Likewise.
21315         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
21316         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
21317         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
21318
21319 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
21320
21321         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
21322         compilation problems.
21323
21324         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
21325         __builtin_expect.
21326
21327 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
21328
21329         * sysdeps/i386/configure.in: Test for -mfma4 option.
21330         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
21331         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
21332         COMMON_CPUID_INDEX_80000001.
21333         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
21334         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
21335         use it if FMA3 is not supported.
21336         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
21337
21338         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
21339         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21340
21341 2011-10-20  Andreas Schwab  <schwab@redhat.com>
21342
21343         [BZ #12892]
21344         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
21345         it would create a cycle with a link time dependency.
21346
21347 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
21348
21349         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
21350         instruction.
21351         * string/Makefile (strop-tests): Add rawmemchr.
21352         * string/test-rawmemchr.c: New file.
21353
21354         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
21355         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
21356         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
21357         when compiling str{,n}casecmp and when AVX is available.  Hook up
21358         new optimized code in initializers.
21359
21360 2011-10-19  Andreas Schwab  <schwab@redhat.com>
21361
21362         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
21363         __feraiseexcept instead of feraiseexcept.
21364
21365 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
21366
21367         * math/math_private.h: Define defaults for libc_fetestexcept and
21368         libc_feupdateenv.
21369         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
21370         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
21371         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
21372         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
21373         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
21374         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
21375         libc_fetestexcept and libc_feupdateenv.
21376
21377         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
21378         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
21379         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
21380         * sysdeps/x86_64/fpu/math_private.h: Define special version of
21381         libc_feholdexcept_setround.
21382
21383         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
21384         Add s_nearbyint-c and s_nearbyintf-c.
21385         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
21386         nearbyintf inlines.
21387         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
21388         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
21389         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
21390         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
21391
21392         * math/math_private.h: Define defaults for libc_fegetround,
21393         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
21394         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
21395         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
21396         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
21397         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
21398         standard functions.
21399         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
21400         Remove comments and hacks for old compiler versions.
21401         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
21402         libc_fegetround, libc_fesetround, libc_feholdexcept, and
21403         libc_feholdexceptl.
21404
21405 2011-10-18  Andreas Schwab  <schwab@redhat.com>
21406
21407         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
21408         (__feraiseexcept_renamed): Add __NTH.
21409         (feraiseexcept): Add __NTH.  Rename local variables to fix
21410         namespace violations.
21411
21412 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
21413
21414         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
21415
21416         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
21417
21418         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
21419         recently added interfaces.
21420         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
21421
21422         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
21423         about macro parameter expansion.
21424
21425         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
21426         __NO_MATH_INLINES is defined.  Cleanups.
21427
21428         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
21429         and __floorf is target has SSE4.1.
21430         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
21431         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
21432         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
21433         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
21434
21435         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
21436         name.
21437         (floorf): Likewise.
21438
21439         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
21440
21441 2011-10-17  Andreas Schwab  <schwab@redhat.com>
21442
21443         * misc/sys/cdefs.h: Fix last change.
21444
21445         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
21446         database lookup.
21447
21448 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
21449
21450         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
21451
21452         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
21453         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21454         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
21455         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
21456         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
21457         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
21458         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
21459         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
21460         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
21461         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
21462         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
21463         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
21464         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
21465         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
21466         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
21467         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
21468         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
21469         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
21470         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
21471         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
21472         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
21473         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
21474
21475         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
21476         ceil, ceilf, floor, floorf.
21477
21478         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
21479         Perform IRELATIVE relocations last.
21480
21481         * elf/do-rel.h: Add another parameter nrelative, replacing the
21482         local variable with the same name.  Change name of the function
21483         to end in Rel or Rela (uppercase).
21484         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
21485         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
21486         elf_dynamic_do_##reloc function.
21487
21488 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
21489
21490         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
21491         is sufficient, at least on modern CPUs.
21492
21493         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
21494
21495         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
21496         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
21497
21498         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
21499         __expl_finite.
21500         * math/bits/math-finite.h: Add entries for exp.
21501         * math/e_expl.c: Add __*_finite alias.
21502         * sysdeps/i386/fpu/e_exp.S: Likewise.
21503         * sysdeps/i386/fpu/e_expf.S: Likewise.
21504         * sysdeps/i386/fpu/e_expl.c: Likewise.
21505         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21506         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
21507         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
21508         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
21509         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
21510         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
21511         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
21512
21513         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
21514         is sufficient, at least on modern CPUs.
21515
21516         * ctype/ctype-info.c (__ctype_init): Define.
21517         * include/ctype.h (__ctype_init): Declare.
21518         (__ctype_b_loc): The variable is always initialized.
21519         (__ctype_toupper_loc): Likewise.
21520         (__ctype_tolower_loc): Likewise.
21521         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
21522         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
21523
21524 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
21525
21526         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
21527
21528         * configure.in: Also look in $cxxmachine/include for C++ system
21529         headers.
21530
21531 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21532
21533         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
21534         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
21535         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
21536         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
21537         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
21538         (USE_AS_WMEMCMP): New macro.
21539         Fixing indents.
21540         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
21541         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
21542         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
21543         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
21544         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21545         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
21546         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
21547         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
21548         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
21549         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
21550         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
21551         (USE_AS_WMEMCMP): New macro.
21552         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
21553         * sysdeps/string/test-memcmp.c: Update.
21554         Fix simple_wmemcmp.
21555         Add new tests.
21556         * wcsmbs/wmemcmp.c: Update.
21557         (WMEMCMP): New macro.
21558         Fix overflow bug.
21559
21560 2011-10-12  Andreas Jaeger  <aj@suse.de>
21561
21562         [BZ #13268]
21563         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
21564
21565 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
21566
21567         * libio/iofwide.c (do_length): Avoid warning.
21568
21569         * ctype/ctype.h (__isctype_f): Add missing __THROW.
21570
21571 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
21572
21573         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
21574
21575         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
21576         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
21577         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
21578         * sysdeps/i386/i686/fpu/e_log.S: New file.
21579         * sysdeps/i386/i686/fpu/e_logf.S: New file.
21580         * sysdeps/i386/i686/fpu/e_logl.S: New file.
21581
21582         * ctype/ctype.h: Add support for inlined isXXX functions when
21583         compiling C++ code.
21584
21585 2011-10-14  Andreas Schwab  <schwab@redhat.com>
21586
21587         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21588
21589         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
21590
21591 2011-10-13  Roland McGrath  <roland@hack.frob.com>
21592
21593         [BZ #13291]
21594         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
21595
21596 2011-10-13  Andreas Schwab  <schwab@redhat.com>
21597
21598         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
21599         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
21600         feraiseexcept.
21601
21602         * sysdeps/x86_64/memrchr.S: Check for zero size.
21603
21604         * string/stratcliff.c: Add memrchr tests.
21605
21606 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21607
21608         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21609         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
21610         rawmemchr-sse2 rawmemchr-sse2-bsf.
21611         * sysdeps/i386/i686/multiarch/memchr.S: New file.
21612         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
21613         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
21614         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
21615         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
21616         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
21617         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
21618         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
21619         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
21620         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
21621         * string/memrchr.c (MEMRCHR): New macro.
21622
21623 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
21624
21625         Add integration with gcc's -ffinite-math-only and optimize wrapper
21626         functions in libm.
21627         * Versions.def: Define GLIBC_2.15 version for libm.
21628         * math/Makefile (headers): Add bits/math-finite.h.
21629         * math/bits/math-finite.h: New file.
21630         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
21631         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
21632         * math/e_acoshl.c: Add __*_finite alias.
21633         * math/e_acosl.c: Likewise.
21634         * math/e_asinl.c: Likewise.
21635         * math/e_atan2l.c: Likewise.
21636         * math/e_atanhl.c: Likewise.
21637         * math/e_coshl.c: Likewise.
21638         * math/e_exp10.c: Likewise.
21639         * math/e_exp10f.c: Likewise.
21640         * math/e_exp10l.c: Likewise.
21641         * math/e_exp2l.c: Likewise.
21642         * math/e_fmodl.c: Likewise.
21643         * math/e_gammal_r.c: Likewise.
21644         * math/e_hypotl.c: Likewise.
21645         * math/e_j0l.c: Likewise.
21646         * math/e_j1l.c: Likewise.
21647         * math/e_jnl.c: Likewise.
21648         * math/e_lgammal_r.c: Likewise.
21649         * math/e_log10l.c: Likewise.
21650         * math/e_log2l.c: Likewise.
21651         * math/e_logl.c: Likewise.
21652         * math/e_powl.c: Likewise.
21653         * math/e_sinhl.c: Likewise.
21654         * math/e_sqrtl.c: Likewise.
21655         * math/e_scalb.c: Completely rewritten and optimized.
21656         * math/e_scalbf.c: Likewise.
21657         * math/e_scalbl.c: Likewise.
21658         * math/w_acos.c: Likewise.
21659         * math/w_acosf.c: Likewise.
21660         * math/w_acosl.c: Likewise.
21661         * math/w_acosh.c: Likewise.
21662         * math/w_acoshf.c: Likewise.
21663         * math/w_acoshl.c: Likewise.
21664         * math/w_asin.c: Likewise.
21665         * math/w_asinf.c: Likewise.
21666         * math/w_asinl.c: Likewise.
21667         * math/w_atan2.c: Likewise.
21668         * math/w_atan2f.c: Likewise.
21669         * math/w_atan2l.c: Likewise.
21670         * math/w_atanh.c: Likewise.
21671         * math/w_atanhf.c: Likewise.
21672         * math/w_atanhl.c: Likewise.
21673         * math/w_exp10.c: Likewise.
21674         * math/w_exp10f.c: Likewise.
21675         * math/w_exp10l.c: Likewise.
21676         * math/w_fmod.c: Likewise.
21677         * math/w_fmodf.c: Likewise.
21678         * math/w_fmodl.c: Likewise.
21679         * math/w_j0.c: Likewise.
21680         * math/w_j0f.c: Likewise.
21681         * math/w_j0l.c: Likewise.
21682         * math/w_j1.c: Likewise.
21683         * math/w_j1f.c: Likewise.
21684         * math/w_j1l.c: Likewise.
21685         * math/w_jn.c: Likewise.
21686         * math/w_jnf.c: Likewise.
21687         * math/w_log.c: Likewise.
21688         * math/w_logf.c: Likewise.
21689         * math/w_logl.c: Likewise.
21690         * math/w_log10.c: Likewise.
21691         * math/w_log10f.c: Likewise.
21692         * math/w_log10l.c: Likewise.
21693         * math/w_log2.c: Likewise.
21694         * math/w_log2f.c: Likewise.
21695         * math/w_log2l.c: Likewise.
21696         * math/w_pow.c: Likewise.
21697         * math/w_powf.c: Likewise.
21698         * math/w_powl.c: Likewise.
21699         * math/w_remainder.c: Likewise.
21700         * math/w_remainderf.c: Likewise.
21701         * math/w_remainderl.c: Likewise.
21702         * math/w_scalb.c: Likewise.
21703         * math/w_scalbf.c: Likewise.
21704         * math/w_scalbl.c: Likewise.
21705         * math/w_sqrt.c: Likewise.
21706         * math/w_sqrtf.c: Likewise.
21707         * math/w_sqrtl.c: Likewise.
21708         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
21709         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
21710         used.
21711         * math/math_private.h: Declare __kernel_standard_f.
21712         * math/w_cosh.c: Remove cruft and optimize a bit.
21713         * math/w_coshf.c: Likewise.
21714         * math/w_coshl.c: Likewise.
21715         * math/w_exp2.c: Likewise.
21716         * math/w_exp2f.c: Likewise.
21717         * math/w_exp2l.c: Likewise.
21718         * math/w_hypot.c: Likewise.
21719         * math/w_hypotf.c: Likewise.
21720         * math/w_hypotl.c: Likewise.
21721         * math/w_lgamma.c: Likewise.
21722         * math/w_lgamma_r.c: Likewise.
21723         * math/w_lgammaf.c: Likewise.
21724         * math/w_lgammaf_r.c: Likewise.
21725         * math/w_lgammal.c: Likewise.
21726         * math/w_lgammal_r.c: Likewise.
21727         * math/w_sinh.c: Likewise.
21728         * math/w_sinhf.c: Likewise.
21729         * math/w_sinhl.c: Likewise.
21730         * math/w_tgamma.c: Likewise.
21731         * math/w_tgammaf.c: Likewise.
21732         * math/w_tgammal.c: Likewise.
21733         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21734         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21735         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
21736         Minor optimizations.  Pretty printing.  Remove cruft.
21737         * sysdeps/i386/fpu/e_acosf.S: Likewise.
21738         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21739         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21740         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21741         * sysdeps/i386/fpu/e_acosl.c: Likewise.
21742         * sysdeps/i386/fpu/e_asin.S: Likewise.
21743         * sysdeps/i386/fpu/e_asinf.S: Likewise.
21744         * sysdeps/i386/fpu/e_atan2.S: Likewise.
21745         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
21746         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
21747         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21748         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21749         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21750         * sysdeps/i386/fpu/e_exp10.S: Likewise.
21751         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
21752         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
21753         * sysdeps/i386/fpu/e_exp2.S: Likewise.
21754         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
21755         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
21756         * sysdeps/i386/fpu/e_fmod.S: Likewise.
21757         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
21758         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
21759         * sysdeps/i386/fpu/e_hypot.S: Likewise.
21760         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
21761         * sysdeps/i386/fpu/e_log.S: Likewise.
21762         * sysdeps/i386/fpu/e_log10.S: Likewise.
21763         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21764         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21765         * sysdeps/i386/fpu/e_log2.S: Likewise.
21766         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21767         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21768         * sysdeps/i386/fpu/e_logf.S: Likewise.
21769         * sysdeps/i386/fpu/e_logl.S: Likewise.
21770         * sysdeps/i386/fpu/e_pow.S: Likewise.
21771         * sysdeps/i386/fpu/e_powf.S: Likewise.
21772         * sysdeps/i386/fpu/e_powl.S: Likewise.
21773         * sysdeps/i386/fpu/e_remainder.S: Likewise.
21774         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
21775         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
21776         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21777         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21778         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21779         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
21780         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
21781         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
21782         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
21783         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21784         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21785         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
21786         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
21787         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
21788         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
21789         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
21790         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
21791         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
21792         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
21793         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
21794         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21795         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
21796         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
21797         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21798         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
21799         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
21800         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21801         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21802         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
21803         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
21804         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21805         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21806         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
21807         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
21808         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
21809         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
21810         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
21811         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
21812         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
21813         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
21814         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21815         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
21816         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
21817         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
21818         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
21819         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
21820         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
21821         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
21822         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
21823         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
21824         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
21825         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
21826         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21827         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
21828         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
21829         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
21830         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
21831         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
21832         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
21833         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
21834         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
21835         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21836         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
21837         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
21838         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
21839         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
21840         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
21841         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
21842         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
21843         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
21844         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21845         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21846         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
21847         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
21848         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
21849         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
21850         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
21851         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
21852         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
21853         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
21854         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
21855         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
21856         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
21857         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
21858         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
21859         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
21860         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21861         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
21862         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21863         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
21864         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
21865         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21866         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21867         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
21868         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21869         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
21870         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
21871         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
21872         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21873         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
21874         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
21875         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
21876         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
21877         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
21878         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
21879         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
21880         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
21881         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
21882         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
21883         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
21884         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
21885         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
21886         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21887         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21888         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21889         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21890         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
21891         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21892         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
21893         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
21894         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
21895         (__isnanf): Likewise.
21896         (__isinf_ns): Likewise.
21897         (__isinf_nsf): Likewise.
21898         (__finite): Likewise.
21899         (__finitef): Likewise.
21900         (__ieee754_sqrt): Define as macro.
21901         (__ieee754_sqrtf): Define as macro.
21902         (__ieee754_sqrtl): Define as macro.
21903         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
21904         inlined copy.
21905         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
21906         __FINITE_MATH_ONLY__ consistent.
21907         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
21908
21909 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
21910
21911         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
21912         of rawmemchr.
21913
21914         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
21915
21916 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
21917
21918         * po/ja.po: Update from translation team.
21919
21920 2011-10-08  Roland McGrath  <roland@hack.frob.com>
21921
21922         * locale/programs/locarchive.c (prepare_address_space): New function.
21923         (create_archive, enlarge_archive, open_archive): Use it.
21924
21925         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
21926         inside [SHARED], where it is used.
21927
21928         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
21929
21930         * nss/getent.c (netgroup_keys): Remove unused variable.
21931         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
21932
21933 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
21934
21935         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
21936         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
21937         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
21938         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
21939         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
21940         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
21941         * math/Makefile (libm-calls): Add s_isinf_ns.
21942         * math/divtc3.c: Use __isinf_nsl instead of isinf.
21943         * math/multc3.c: Likewise.
21944         * math/s_casin.c: Likewise.
21945         * math/s_casinf.c: Likewise.
21946         * math/s_casinl.c: Likewise.
21947         * math/s_ccos.c: Likewise.
21948         * math/s_ccosf.c: Likewise.
21949         * math/s_ccosl.c: Likewise.
21950         * math/s_ctan.c: Likewise.
21951         * math/s_ctanf.c: Likewise.
21952         * math/s_ctanh.c: Likewise.
21953         * math/s_ctanhf.c: Likewise.
21954         * math/s_ctanhl.c: Likewise.
21955         * math/s_ctanl.c: Likewise.
21956         * math/w_fmod.c: Likewise.
21957         * math/w_fmodf.c: Likewise.
21958         * math/w_fmodl.c: Likewise.
21959         * math/w_remainder.c: Likewise.
21960         * math/w_remainderf.c: Likewise.
21961         * math/w_remainderl.c: Likewise.
21962         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
21963         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
21964         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
21965         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
21966         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
21967         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
21968         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
21969         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
21970
21971         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
21972         of the number.
21973         * stdio-common/printf_fphex.c: Likewise.
21974         * stdio-common/printf_size.c: Likewise.
21975
21976         * math/e_exp10.c: Include math_private.h using <...> not "...".
21977         * math/e_exp10f.c: Likewise.
21978         * math/e_exp10l.c: Likewise.
21979         * math/e_exp2l.c: Likewise.
21980         * math/e_j0l.c: Likewise.
21981         * math/e_j1l.c: Likewise.
21982         * math/e_jnl.c: Likewise.
21983         * math/e_lgammal_r.c: Likewise.
21984         * math/e_rem_pio2l.c: Likewise.
21985         * math/e_scalb.c: Likewise.
21986         * math/e_scalbf.c: Likewise.
21987         * math/e_scalbl.c: Likewise.
21988         * math/k_cosl.c: Likewise.
21989         * math/k_sinl.c: Likewise.
21990         * math/k_tanl.c: Likewise.
21991         * math/s_cacoshf.c: Likewise.
21992         * math/s_catan.c: Likewise.
21993         * math/s_catanf.c: Likewise.
21994         * math/s_catanh.c: Likewise.
21995         * math/s_catanhf.c: Likewise.
21996         * math/s_catanhl.c: Likewise.
21997         * math/s_catanl.c: Likewise.
21998         * math/s_ccosh.c: Likewise.
21999         * math/s_ccoshf.c: Likewise.
22000         * math/s_ccoshl.c: Likewise.
22001         * math/s_cexp.c: Likewise.
22002         * math/s_cexpf.c: Likewise.
22003         * math/s_cexpl.c: Likewise.
22004         * math/s_clog.c: Likewise.
22005         * math/s_clog10.c: Likewise.
22006         * math/s_clog10f.c: Likewise.
22007         * math/s_clog10l.c: Likewise.
22008         * math/s_clogf.c: Likewise.
22009         * math/s_clogl.c: Likewise.
22010         * math/s_csin.c: Likewise.
22011         * math/s_csinf.c: Likewise.
22012         * math/s_csinh.c: Likewise.
22013         * math/s_csinhf.c: Likewise.
22014         * math/s_csinhl.c: Likewise.
22015         * math/s_csinl.c: Likewise.
22016         * math/s_csqrt.c: Likewise.
22017         * math/s_csqrtf.c: Likewise.
22018         * math/s_csqrtl.c: Likewise.
22019         * math/s_ctan.c: Likewise.
22020         * math/s_ctanf.c: Likewise.
22021         * math/s_ctanh.c: Likewise.
22022         * math/s_ctanhf.c: Likewise.
22023         * math/s_ctanhl.c: Likewise.
22024         * math/s_ctanl.c: Likewise.
22025         * math/s_ldexp.c: Likewise.
22026         * math/s_ldexpf.c: Likewise.
22027         * math/s_ldexpl.c: Likewise.
22028         * math/s_significand.c: Likewise.
22029         * math/s_significandf.c: Likewise.
22030         * math/s_significandl.c: Likewise.
22031         * math/w_acos.c: Likewise.
22032         * math/w_acosf.c: Likewise.
22033         * math/w_acosh.c: Likewise.
22034         * math/w_acoshf.c: Likewise.
22035         * math/w_acoshl.c: Likewise.
22036         * math/w_acosl.c: Likewise.
22037         * math/w_asin.c: Likewise.
22038         * math/w_asinf.c: Likewise.
22039         * math/w_asinl.c: Likewise.
22040         * math/w_atan2.c: Likewise.
22041         * math/w_atan2f.c: Likewise.
22042         * math/w_atan2l.c: Likewise.
22043         * math/w_atanh.c: Likewise.
22044         * math/w_atanhf.c: Likewise.
22045         * math/w_atanhl.c: Likewise.
22046         * math/w_cosh.c: Likewise.
22047         * math/w_coshf.c: Likewise.
22048         * math/w_coshl.c: Likewise.
22049         * math/w_dremf.c: Likewise.
22050         * math/w_exp10.c: Likewise.
22051         * math/w_exp10f.c: Likewise.
22052         * math/w_exp10l.c: Likewise.
22053         * math/w_exp2.c: Likewise.
22054         * math/w_exp2f.c: Likewise.
22055         * math/w_fmod.c: Likewise.
22056         * math/w_fmodf.c: Likewise.
22057         * math/w_fmodl.c: Likewise.
22058         * math/w_hypot.c: Likewise.
22059         * math/w_hypotf.c: Likewise.
22060         * math/w_hypotl.c: Likewise.
22061         * math/w_j0.c: Likewise.
22062         * math/w_j0f.c: Likewise.
22063         * math/w_j0l.c: Likewise.
22064         * math/w_j1.c: Likewise.
22065         * math/w_j1f.c: Likewise.
22066         * math/w_j1l.c: Likewise.
22067         * math/w_jn.c: Likewise.
22068         * math/w_jnf.c: Likewise.
22069         * math/w_jnl.c: Likewise.
22070         * math/w_lgamma.c: Likewise.
22071         * math/w_lgamma_r.c: Likewise.
22072         * math/w_lgammaf.c: Likewise.
22073         * math/w_lgammaf_r.c: Likewise.
22074         * math/w_lgammal.c: Likewise.
22075         * math/w_lgammal_r.c: Likewise.
22076         * math/w_log.c: Likewise.
22077         * math/w_log10.c: Likewise.
22078         * math/w_log10f.c: Likewise.
22079         * math/w_log10l.c: Likewise.
22080         * math/w_log2.c: Likewise.
22081         * math/w_log2f.c: Likewise.
22082         * math/w_log2l.c: Likewise.
22083         * math/w_logf.c: Likewise.
22084         * math/w_logl.c: Likewise.
22085         * math/w_pow.c: Likewise.
22086         * math/w_powf.c: Likewise.
22087         * math/w_powl.c: Likewise.
22088         * math/w_remainder.c: Likewise.
22089         * math/w_remainderf.c: Likewise.
22090         * math/w_remainderl.c: Likewise.
22091         * math/w_scalb.c: Likewise.
22092         * math/w_scalbf.c: Likewise.
22093         * math/w_scalbl.c: Likewise.
22094         * math/w_sinh.c: Likewise.
22095         * math/w_sinhf.c: Likewise.
22096         * math/w_sinhl.c: Likewise.
22097         * math/w_sqrt.c: Likewise.
22098         * math/w_sqrtf.c: Likewise.
22099         * math/w_sqrtl.c: Likewise.
22100         * math/w_tgamma.c: Likewise.
22101         * math/w_tgammaf.c: Likewise.
22102         * math/w_tgammal.c: Likewise.
22103
22104         * po/ja.po: Update from translation team.
22105
22106 2011-09-29  Andreas Jaeger  <aj@suse.de>
22107
22108         [BZ #13179]
22109         * sunrpc/netname.c (netname2host): Fix logic.
22110
22111         [BZ #6779]
22112         [BZ #6783]
22113         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
22114         correctly.
22115         * math/w_remainder.c (__remainder): Likewise.
22116         * math/w_remainderf.c (__remainderf): Likewise.
22117         * math/libm-test.inc (remainder_test): Add test cases.
22118
22119 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22120
22121         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
22122         sdiv_qrnnd.
22123
22124 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
22125
22126         * string/test-memcmp.c: Avoid unncessary #defines.
22127         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22128
22129 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22130
22131         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
22132         Use new sse2 version for core i3 - i7 as it's faster
22133         than sse42 version.
22134         (bit_Prefer_PMINUB_for_stringop): New.
22135         * sysdeps/x86_64/rawmemchr.S: Update.
22136         Replace with faster SSE2 version.
22137         * sysdeps/x86_64/memrchr.S: New file.
22138         * sysdeps/x86_64/memchr.S: Update.
22139         Replace with faster SSE2 version.
22140
22141 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
22142
22143         * elf/dl-load.c (lose): Add cast to avoid warning.
22144
22145 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
22146
22147         * po/ca.po: Update from translation team.
22148
22149         * inet/getnetgrent_r.c: Hook up nscd.
22150         * nscd/Makefile (routines): Add nscd_netgroup.
22151         (nscd-modules): Add netgroupcache.
22152         (CFLAGS-netgroupcache.c): Define.
22153         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
22154         (cache_search): Add const to second parameter.
22155         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
22156         INNETGR.
22157         (dbs): Add netgrdb entry.
22158         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
22159         (verify_persistent_db): Handle netgrdb.
22160         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
22161         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
22162         GETFDNETGR.
22163         (netgroup_response_header): Define.
22164         (innetgroup_response_header): Define.
22165         (datahead): Add netgroup_response_header and innetgroup_response_header
22166         elements.
22167         * nscd/nscd.conf: Add entries for netgroup cache.
22168         * nscd/nscd.h (dbtype): Add netgrdb.
22169         (_PATH_NSCD_NETGROUP_DB): Define.
22170         (netgroup_iov_disabled): Declare.
22171         (xmalloc, xcalloc, xrealloc): Move declarations here.
22172         (cache_search): Adjust prototype.
22173         Add netgroup-related prototypes.
22174         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
22175         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
22176         (__nscd_innetgr): Declare.
22177         * nscd/selinux.c (perms): Use access_vector_t as element type and
22178         add netgroup-related initializers.
22179         * nscd/netgroupcache.c: New file.
22180         * nscd/nscd_netgroup.c: New file.
22181         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
22182         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
22183         For four parameters use innetgr.
22184         * nss/nss_files/files-init.c: Add definition and callback for netgr.
22185         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
22186         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
22187         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
22188
22189         * nscd/connections.c (register_traced_file): Don't register file
22190         for disabled databases.
22191
22192 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
22193
22194         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
22195
22196         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
22197         from tree and freeing node.
22198
22199 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
22200
22201         * nss/nsswitch.c (__nss_database_lookup): Handle
22202         nss_parse_service_list out of memory case.
22203
22204 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
22205
22206         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
22207         out of memory case.
22208
22209 2011-10-04  Andreas Schwab  <schwab@redhat.com>
22210
22211         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
22212         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
22213         pass it down.
22214         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
22215         elf_machine_rela, elf_machine_lazy_rel.
22216         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
22217         (ELF_DYNAMIC_DO_REL): Likewise.
22218         (ELF_DYNAMIC_DO_RELA): Likewise.
22219         (ELF_DYNAMIC_RELOCATE): Likewise.
22220         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
22221         to ELF_DYNAMIC_DO_REL.
22222         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
22223         (dl_main): In trace mode always set __RTLD_NOIFUNC.
22224         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
22225         elf_machine_rela.
22226         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
22227         skip_ifunc, don't call ifunc function if non-zero.
22228         (elf_machine_rela): Likewise.
22229         (elf_machine_lazy_rel): Likewise.
22230         (elf_machine_lazy_rela): Likewise.
22231         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
22232         (elf_machine_lazy_rel): Likewise.
22233         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
22234         Likewise.
22235         (elf_machine_lazy_rel): Likewise.
22236         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22237         Likewise.
22238         (elf_machine_lazy_rel): Likewise.
22239         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
22240         (elf_machine_lazy_rel): Likewise.
22241         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
22242         (elf_machine_lazy_rel): Likewise.
22243         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
22244         (elf_machine_lazy_rel): Likewise.
22245         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
22246         (elf_machine_lazy_rel): Likewise.
22247         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
22248         (elf_machine_lazy_rel): Likewise.
22249         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
22250         (elf_machine_lazy_rel): Likewise.
22251
22252 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
22253
22254         * nss/nss_files/files-init.c (_nss_files_init): Use static
22255         initialization for all the *_traced_file variables.
22256
22257 2011-09-28  Andreas Schwab  <schwab@redhat.com>
22258
22259         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22260
22261 2011-09-27  Roland McGrath  <roland@hack.frob.com>
22262
22263         [BZ #13226]
22264         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
22265
22266 2011-09-27  Andreas Schwab  <schwab@redhat.com>
22267
22268         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22269         Reread the line before reparsing it.
22270
22271 2011-09-26  Andreas Schwab  <schwab@redhat.com>
22272
22273         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
22274
22275 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
22276             Maxim Kuvyrkov  <maxim@codesourcery.com>
22277             Joseph Myers  <joseph@codesourcery.com>
22278
22279         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
22280         if needed for __stack_chk_guard.
22281
22282 2011-09-19  Roland McGrath  <roland@hack.frob.com>
22283
22284         * sysdeps/posix/spawni.c (script_execute): Always define it.
22285         It will be optimized away if unused.
22286         (maybe_script_execute): New function.
22287         (__spawni): Call it.
22288
22289         * Makerules: Don't include tls.make.
22290         (config-tls): Always set to thread.
22291         * tls.make.c: File removed.
22292
22293 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
22294
22295         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
22296         * config.make.in (CPPFLAGS-config): New substituted variable.
22297
22298 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
22299
22300         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
22301
22302         [BZ #13192]
22303         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
22304         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
22305
22306 2011-09-15  Roland McGrath  <roland@hack.frob.com>
22307
22308         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
22309         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
22310         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
22311         (CALL_FAIL): Likewise.
22312         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
22313         (CALL_FAIL): Macro removed.
22314         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
22315
22316 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
22317
22318         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
22319         for __FINITE_MATH_ONLY__ == 1.
22320
22321 2011-09-15  Andreas Schwab  <schwab@redhat.com>
22322
22323         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
22324         __ieee754_sqrt instead of sqrt.
22325         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
22326         __ieee754_sqrtf instead of sqrtf.
22327         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
22328         __floorf instead of floorf.
22329         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
22330         __floorf, __truncf instead of floorf, truncf.
22331
22332 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
22333
22334         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
22335
22336         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
22337         __extern_always_inline.
22338         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
22339         32-bit.
22340
22341 2011-09-14  Andreas Schwab  <schwab@redhat.com>
22342
22343         * elf/rtld.c (dl_main): Also relocate in dependency order when
22344         doing symbol dependency testing.
22345
22346 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
22347
22348         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22349         Always define `refsym'.
22350
22351 2011-09-13  Andreas Schwab  <schwab@redhat.com>
22352
22353         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
22354         (__FD_ELT): Renamed from __FDELT.
22355         * misc/bits/select2.h (__FD_ELT): Likewise.
22356         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
22357         __FD_MASK instead of __FDELT, __FDMASK.
22358         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
22359         Likewise.
22360         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
22361         Likewise.
22362
22363         * elf/Makefile (gen-ldd): Fix pattern.
22364
22365         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
22366         (init_tls): Likewise.
22367
22368 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
22369
22370         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
22371
22372 2011-09-12  Andreas Schwab  <schwab@redhat.com>
22373
22374         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
22375         `struct cmsghdr *' instead of `void *'.
22376         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
22377         Likewise.
22378
22379 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
22380
22381         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
22382         if non-absolute.
22383         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
22384         ldd_rewrite_script.
22385
22386 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
22387
22388         * configure.in: Remove --with-tls option.
22389         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
22390         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
22391         out in case it is missing.
22392         * sysdeps/ia64/elf/configure.in: Likewise.
22393         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
22394         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
22395         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
22396         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
22397         * sysdeps/sh/elf/configure.in: Likewise.
22398         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
22399         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
22400         * sysdeps/x86_64/elf/configure.in: Likewise.
22401         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
22402         * sysdeps/mach/hurd/tls.h: Likewise.
22403
22404         [BZ #13067]
22405         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
22406
22407         [BZ #13090]
22408         * configure.in: Fix use of AC_INIT.
22409
22410         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
22411
22412 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
22413
22414         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
22415         __set_errno.
22416         * malloc/hooks.c: Likewise.
22417
22418         [BZ #11929]
22419         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
22420         variables statically.
22421         (narenas): Initialize.
22422         (list_lock): Initialize.
22423         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
22424         initializtion of main_arena and list_lock.  Small cleanups.
22425         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
22426         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
22427         Add initializers to main_arena and mp_.
22428         (malloc_state): Remove pagesize member.  Change all users to use
22429         GLRO(dl_pagesize).
22430
22431         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
22432         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
22433         is always initialized.
22434
22435         * malloc/malloc.c: Removed unused configurations and dead code.
22436         * malloc/arena.c: Likewise.
22437         * malloc/hooks.c: Likewise.
22438         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
22439
22440         * include/tls.h: Removed.  USE___THREAD must always be defined.
22441         * bits/libc-tsd.h: Don't handle !USE___THREAD.
22442         * elf/dl-libc.c: Likewise.
22443         * elf/dl-tsd.c: Likewise.
22444         * include/errno.h: Likewise.
22445         * include/netdb.h: Likewise.
22446         * include/resolv.h: Likewise.
22447         * inet/herrno-loc.c: Likewise.
22448         * inet/herrno.c: Likewise.
22449         * malloc/arena.c: Likewise.
22450         * malloc/hooks.c: Likewise.
22451         * malloc/malloc.c: Likewise.
22452         * resolv/res-state.c: Likewise.
22453         * resolv/res_libc.c: Likewise.
22454         * sysdeps/i386/dl-machine.h: Likewise.
22455         * sysdeps/ia64/dl-machine.h: Likewise.
22456         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
22457         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
22458         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
22459         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
22460         * sysdeps/sh/dl-machine.h: Likewise.
22461         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
22462         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
22463         * sysdeps/unix/i386/sysdep.S: Likewise.
22464         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
22465         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
22466         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
22467         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22468         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
22469         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
22470         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
22471         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
22472         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22473         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
22474         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22475         * sysdeps/x86_64/dl-machine.h: Likewise.
22476         * tls.make.c: Likewise.
22477
22478         * configure.in: Remove --with-__thread option.  Make tests for
22479         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
22480         tls_model attribute fail if no support is available.  Remove
22481         USE_IN_LIBIO.
22482         * Makeconfig: Adjust for dropped configure option.  All features are
22483         now mandatory.
22484         * Makerules: Likewise.
22485         * Versions.def: Likewise.
22486         * argp/argp-fmtstream.c: Likewise.
22487         * argp/argp-fmtstream.h: Likewise.
22488         * argp/argp-help.c: Likewise.
22489         * assert/assert.c: Likewise.
22490         * config.h.in: Likewise.
22491         * config.make.in: Likewise.
22492         * configure: Likewise.
22493         * configure.in: Likewise.
22494         * csu/Versions: Likewise.
22495         * csu/init.c: Likewise.
22496         * elf/tst-audit2.c: Likewise.
22497         * elf/tst-tls10.c: Likewise.
22498         * elf/tst-tls10.h: Likewise.
22499         * elf/tst-tls11.c: Likewise.
22500         * elf/tst-tls12.c: Likewise.
22501         * elf/tst-tls14.c: Likewise.
22502         * elf/tst-tlsmod11.c: Likewise.
22503         * elf/tst-tlsmod12.c: Likewise.
22504         * elf/tst-tlsmod13.c: Likewise.
22505         * elf/tst-tlsmod13a.c: Likewise.
22506         * elf/tst-tlsmod14a.c: Likewise.
22507         * elf/tst-tlsmod15b.c: Likewise.
22508         * elf/tst-tlsmod16a.c: Likewise.
22509         * elf/tst-tlsmod16b.c: Likewise.
22510         * elf/tst-tlsmod7.c: Likewise.
22511         * elf/tst-tlsmod8.c: Likewise.
22512         * elf/tst-tlsmod9.c: Likewise.
22513         * gmon/gmon.c: Likewise.
22514         * grp/fgetgrent_r.c: Likewise.
22515         * grp/putgrent.c: Likewise.
22516         * hurd/fopenport.c: Likewise.
22517         * include/libc-symbols.h: Likewise.
22518         * include/tls.h: Likewise.
22519         * intl/gettextP.h: Likewise.
22520         * intl/loadinfo.h: Likewise.
22521         * locale/global-locale.c: Likewise.
22522         * locale/localeinfo.h: Likewise.
22523         * mach/devstream.c: Likewise.
22524         * malloc/arena.c: Likewise.
22525         * malloc/set-freeres.c: Likewise.
22526         * misc/err.c: Likewise.
22527         * misc/getttyent.c: Likewise.
22528         * misc/mntent_r.c: Likewise.
22529         * posix/getopt.c: Likewise.
22530         * posix/wordexp.c: Likewise.
22531         * pwd/fgetpwent_r.c: Likewise.
22532         * resolv/Versions: Likewise.
22533         * resolv/res_hconf.c: Likewise.
22534         * shadow/fgetspent_r.c: Likewise.
22535         * shadow/putspent.c: Likewise.
22536         * stdio-common/printf_fphex.c: Likewise.
22537         * stdio-common/tmpfile.c: Likewise.
22538         * stdlib/abort.c: Likewise.
22539         * stdlib/fmtmsg.c: Likewise.
22540         * sunrpc/auth_unix.c: Likewise.
22541         * sunrpc/clnt_perr.c: Likewise.
22542         * sunrpc/clnt_tcp.c: Likewise.
22543         * sunrpc/clnt_udp.c: Likewise.
22544         * sunrpc/clnt_unix.c: Likewise.
22545         * sunrpc/openchild.c: Likewise.
22546         * sunrpc/svc_simple.c: Likewise.
22547         * sunrpc/svc_tcp.c: Likewise.
22548         * sunrpc/svc_udp.c: Likewise.
22549         * sunrpc/svc_unix.c: Likewise.
22550         * sunrpc/xdr.c: Likewise.
22551         * sunrpc/xdr_array.c: Likewise.
22552         * sunrpc/xdr_rec.c: Likewise.
22553         * sunrpc/xdr_ref.c: Likewise.
22554         * sunrpc/xdr_stdio.c: Likewise.
22555
22556 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
22557
22558         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22559
22560 2011-07-03  Andreas Jaeger  <aj@suse.de>
22561
22562         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
22563         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
22564         regenerate with gen-libm-tests.pl.
22565
22566 2010-05-12  Petr Baudis  <pasky@suse.cz>
22567
22568         [BZ #11589]
22569         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
22570         around j0() zero points by switching to j1().
22571         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
22572         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
22573         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
22574         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
22575
22576 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
22577
22578         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
22579         instead of 0.
22580         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
22581         instead of 0.
22582         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22583         Patch in part by Pavel Roskin <proski@gnu.org>.
22584
22585         [BZ #13138]
22586         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
22587         realloc.
22588         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
22589         Free memory block if necessary.
22590
22591         [BZ #12847]
22592         * libio/genops.c (INTDEF): For string streams the _lock pointer can
22593         be NULL.  Don't lock in this case.
22594
22595 2011-09-09  Roland McGrath  <roland@hack.frob.com>
22596
22597         * elf/elf.h (ELFOSABI_GNU): New macro.
22598         (ELFOSABI_LINUX): Define to that.
22599
22600 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
22601
22602         * string/strncat.c (strncat): Undef the symbol in case it has been
22603         defined in bits/string.h.
22604
22605 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
22606
22607         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
22608
22609         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
22610         link map.
22611
22612 2011-08-17  Andreas Jaeger  <aj@suse.de>
22613
22614         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
22615
22616 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
22617             Ian Lance Taylor  <iant@google.com>
22618
22619         * math/libm-test.inc (lround_test): New testcase.
22620         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
22621
22622 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
22623
22624         * Makefile: Remove support for automatic cvs check-ins.
22625         * Makerules: Likewise.
22626         * config.make.in: Likewise.
22627         * configure.in: Likewise.
22628         * intl/Makefile: Likewise.
22629         * locale/Makefile: Likewise.
22630         * po/Makefile: Likewise.
22631         * posix/Makefile: Likewise.
22632         * sysdeps/gnu/Makefile: Likewise.
22633         * sysdeps/mach/hurd/Makefile: Likewise.
22634         * sysdeps/sparc/sparc32/Makefile: Likewise.
22635
22636         [BZ #13118]
22637         * posix/Makefile (bug-regex32-ENV): Define.
22638         Patch by John Stanley <jpsinthemix@verizon.net>.
22639
22640         * misc/Makefile (headers): Add bits/select2.h.
22641         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
22642         * misc/bits/select2.h: New file.
22643         * include/bits/select2.h: New file.
22644         * debug/Makefile (routines): Add fdelt_chk.
22645         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
22646         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
22647         FD_ISSET.
22648         * debug/fdelt_chk.c: New file.
22649
22650         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
22651         * wcsmbs/test-wmemcmp.c: Likewise.
22652         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
22653         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
22654
22655 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22656
22657         * string/Makefile (strop-tests): Add memcmp.
22658         * string/test-wmemcmp.c: New file.
22659         * string/test-memcmp.c: Add wmemcmp support.
22660
22661 2011-09-08  Roland McGrath  <roland@hack.frob.com>
22662
22663         [BZ #13153]
22664         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
22665         2011-07-19 change.
22666
22667         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
22668         garbage value in a __mach_port_mod_refs call in the cases of the
22669         task-self and thread-self ports.
22670
22671 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22672
22673         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
22674
22675 2011-09-08  Andreas Schwab  <schwab@redhat.com>
22676
22677         * elf/dl-load.c (lose): Check for non-null L.
22678
22679 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22680
22681         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
22682
22683         * elf/dl-libc.c (dlerror_run): Pass back error code from
22684         dl_catch_error.
22685
22686         [BZ #13123]
22687         * elf/dl-load.c (lose): Free l_origin if it is valid.
22688
22689         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
22690         names.
22691         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
22692         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22693         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
22694         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22695         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
22696         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
22697
22698 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22699
22700         * sysdeps/powerpc/fpu/e_hypot.c: New file.
22701         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
22702         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
22703         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
22704         * sysdeps/powerpc/fpu/k_cosf.c: New file.
22705         * sysdeps/powerpc/fpu/k_sinf.c: New file.
22706         * sysdeps/powerpc/fpu/s_cosf.c: New file.
22707         * sysdeps/powerpc/fpu/s_sinf.c: New file.
22708         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
22709         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
22710
22711 2011-08-15  Alan Modra  <amodra@gmail.com>
22712
22713         [BZ #13092]
22714         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
22715         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
22716         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
22717         ppc_mcount to static-only-routines.
22718         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
22719         __mcount_internal.
22720         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
22721         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
22722
22723 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
22724
22725         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
22726         for finite and infinity parameters.
22727
22728 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22729
22730         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
22731         and add nop instructions for throughput optimization.
22732         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22733
22734 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
22735
22736         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
22737         aligned copy for power7 with vector-scalar instructions.
22738         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
22739
22740 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
22741
22742         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
22743         AVX check.
22744
22745 2011-09-07  Andreas Schwab  <schwab@redhat.com>
22746
22747         [BZ #13144]
22748         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
22749         last change.
22750
22751 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22752
22753         * sysdeps/unix/sysv/linux/x86_64/init-first.c
22754         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
22755         syscall wrapper around clock_gettime in __vdso_clock_gettime.
22756         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
22757         clock_gettime.
22758
22759 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22760
22761         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
22762         Forgot to demangle the pointer.
22763
22764         * sysdeps/i386/sysdep.h: Define atom_text_section.
22765         * sysdeps/x86_64/sysdep.h: Likewise.
22766         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
22767         section with atom_text_section.
22768         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22769         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22770         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
22771         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
22772         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
22773
22774         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
22775         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
22776         already be defined.  Change to take two parameters and don't assign
22777         result to variable.  Adjust all users.
22778         Define INTERNAL_GETTIME if not already defined.
22779         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
22780         call.
22781         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
22782         HAVE_CLOCK_GETTIME_VSYSCALL.
22783         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
22784
22785         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
22786         gettimeofday vsyscall, just use time.
22787
22788 2011-09-06  Andreas Schwab  <schwab@redhat.com>
22789
22790         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
22791         <errno.h>.
22792
22793 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22794
22795         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
22796         syscall on x86-64.
22797         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
22798         syscall.
22799         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
22800         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
22801         syscall if possible.
22802
22803 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22804
22805         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
22806         e_ident.  Don't pass to find_mapsXX.
22807         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
22808
22809 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22810
22811         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22812         strchr-sse2-no-bsf strrchr-sse2-no-bsf
22813         * sysdeps/x86_64/multiarch/strchr.S: Update.
22814         Check bit_slow_BSF bit.
22815         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
22816         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
22817         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
22818
22819 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22820
22821         [BZ #13134]
22822         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
22823         before glibc 2.15.
22824         (tryshell): Define.
22825         (__spawni): Change last parameter to be flag.  Test
22826         SPAWN_XFLAGS_USE_PATH flag to use path or not.
22827         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
22828         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
22829         * posix/spawni.c: Likewise.
22830         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
22831         * posix/spawnp.c: Likewise.  Change normal version to use
22832         SPAWN_XFLAGS_USE_PATH.
22833         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
22834         SPAWN_XFLAGS_TRY_SHELL.
22835
22836         [BZ #13150]
22837         * posix/glob.h: Remove gcc 1.x support.
22838
22839         [BZ #13068]
22840         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
22841
22842 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22843
22844         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22845         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
22846         strrchr-sse2-bsf
22847         * sysdeps/i386/i686/multiarch/strchr.S: New file.
22848         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
22849         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
22850         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
22851         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
22852         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
22853
22854 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22855
22856         * sysdeps/x86_64/wcscmp.S: New file.
22857
22858         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
22859         wcscmp-c wcscmp-sse2
22860         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
22861         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
22862         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
22863         * wcsmbs/wcscmp.c: Allow renaming.
22864
22865 2011-09-05  David S. Miller  <davem@davemloft.net>
22866
22867         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
22868         stack slot, rather than the struct return pointer slot.
22869         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
22870         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
22871         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
22872         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
22873
22874 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22875
22876         * po/ja.po: Update from translation team.
22877
22878         [BZ #13144]
22879         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
22880         kernel in 64-bit binaries.
22881
22882 2011-09-01  David S. Miller  <davem@davemloft.net>
22883
22884         * elf/elf.h (HWCAP_SPARC_*): Move to..
22885         * sysdeps/sparc/sysdep.h: this new file and add new values.
22886         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
22887         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
22888         _DL_HWCAP_COUNT to 24.
22889         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
22890         entries.
22891         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
22892         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
22893         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
22894         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
22895         instead of magic constants.
22896         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22897
22898 2011-08-31  David S. Miller  <davem@davemloft.net>
22899
22900         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
22901         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
22902         Reimplement to do errno handling inline.
22903         (SYSCALL_ERROR_HANDLER): New macro.
22904         (__SYSCALL_STRING): Do not do errno handling in asm.
22905         (__CLONE_SYSCALL_STRING): Delete.
22906         (__INTERNAL_SYSCALL_STRING): Delete.
22907         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
22908         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
22909         (PSEUDO): Reimplement to do errno handling inline.
22910         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
22911         (SYSCALL_ERROR_HANDLER): New macro.
22912         (__SYSCALL_STRING): Do not do errno handling in asm.
22913         (__CLONE_SYSCALL_STRING): Delete.
22914         (__INTERNAL_SYSCALL_STRING): Delete.
22915         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
22916         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
22917         i386.
22918         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
22919         (inline_syscall*): Add 'err' argument.
22920         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
22921         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
22922         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
22923         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
22924
22925         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
22926         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
22927
22928 2011-08-30  Andreas Schwab  <schwab@redhat.com>
22929
22930         * elf/rtld.c (dl_main): Relocate objects in dependency order.
22931
22932 2011-08-29  Jiri Olsa <jolsa@redhat.com>
22933
22934         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
22935         directive.
22936
22937 2011-08-24  David S. Miller  <davem@davemloft.net>
22938
22939         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
22940
22941 2011-08-24  Andreas Schwab  <schwab@redhat.com>
22942
22943         * elf/Makefile: Add rules to build and run unload8 test.
22944         * elf/unload8.c: New file.
22945         * elf/unload8mod1.c: New file.
22946         * elf/unload8mod1x.c: New file.
22947         * elf/unload8mod2.c: New file.
22948         * elf/unload8mod3.c: New file.
22949
22950         * elf/dl-close.c (_dl_close_worker): Reset private search list if
22951         it wasn't used.
22952
22953 2011-08-23  David S. Miller  <davem@davemloft.net>
22954
22955         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
22956         subtract stack bias.
22957         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
22958         %sp not %fp in calculations.
22959         (_JMPBUF_UNWINDS_ADJ): Likewise.
22960
22961         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
22962         (aio_suspend): Call it to force an exception region around the
22963         AIO_MISC_WAIT() invocation.
22964
22965 2011-08-23  Andreas Schwab  <schwab@redhat.com>
22966
22967         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
22968         backslash.
22969
22970 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
22971
22972         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
22973         protection macro.
22974         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
22975         and <dl-machine.h>.
22976         (Elf64_FuncDesc): Remove.
22977
22978 2011-08-22  David S. Miller  <davem@davemloft.net>
22979
22980         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
22981         sigaltstack check, add missing cfi directives.
22982         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
22983         missing cfi directives, and sigaltstack handling.
22984
22985 2011-08-16  Andreas Schwab  <schwab@redhat.com>
22986
22987         [BZ #11724]
22988         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
22989         object is seen twice.
22990         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22991
22992         * elf/Makefile (distribute): Add tst-initorder2.c.
22993         (tests): Add tst-initorder2.
22994         (modules-names): Add tst-initorder2a tst-initorder2b
22995         tst-initorder2c tst-initorder2d.  Add rules to build them.
22996         ($(objpfx)tst-initorder2.out): New rule.
22997         * elf/tst-initorder2.c: New file.
22998         * elf/tst-initorder2.exp: New file.
22999
23000 2011-08-22  Andreas Schwab  <schwab@redhat.com>
23001
23002         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
23003
23004         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
23005         dependencies back to end of function.
23006
23007         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
23008         $(elfobjdir)/ld.so.
23009
23010 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
23011
23012         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
23013         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
23014         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
23015         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
23016         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
23017         of __vdso_gettimeofday.
23018         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
23019         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
23020         attribute_hidden.
23021         (_libc_vdso_platform_setup): Remove initialization of
23022         __vdso_gettimeofday and __vdso_time.
23023
23024 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
23025
23026         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
23027         and fgetc_unlocked.
23028         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
23029         getc_unlocked.
23030
23031         * elf/dl-open.c (add_to_global): Report additions to the global scope
23032         for LD_DEBUG=scopes.
23033         (dl_open_worker): Also print scope of newly loaded dependencies.
23034         (_dl_show_scope): Indicate if there is no scope.
23035
23036         [BZ #13114]
23037         * stdio-common/Makefile (tests): Add bug24.
23038         * stdio-common/bug24.c: New file.
23039
23040 2011-08-19  Andreas Jaeger  <aj@suse.de>
23041
23042         [BZ #13114]
23043         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
23044         non-existant file when using close-on-exec mode.
23045
23046 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
23047
23048         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
23049         the very first instruction.
23050
23051         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
23052         the CFI state in the end.
23053         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
23054         inclusion of dl-trampoline.h.
23055         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
23056
23057 2011-08-19  Andreas Schwab  <schwab@redhat.com>
23058
23059         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
23060         expectations for long double.
23061
23062         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
23063         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
23064
23065 2011-08-14  David S. Miller  <davem@davemloft.net>
23066
23067         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
23068         artificual limit depends upon the system page size.
23069
23070 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
23071
23072         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
23073         * resolv/Makefile: Define CFLAGS-libresolv.
23074
23075 2011-08-17  Andreas Schwab  <schwab@redhat.com>
23076
23077         * nss/makedb.c (compute_tables): Make variables used in nested
23078         function static.
23079
23080 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
23081
23082         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
23083         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
23084         if buffer was too small.
23085
23086         * elf/pldd.c (main): Attach to all threads in the process.
23087         Rewrite /proc handling to use *at functions.
23088
23089 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
23090
23091         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
23092         specifies first scope to show.
23093         (dl_open_worker): Update callers.  Move printing scope of new
23094         object to before the relocation.
23095         * elf/rtld.c (dl_main): Update _dl_show_scope call.
23096         * sysdeps/generic/ldsodefs.h: Update declaration.
23097
23098         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
23099         string for the scope number.
23100
23101 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
23102
23103         * nscd/servicescache.c (cache_addserv): Make sure written is always
23104         initialized.
23105
23106 2011-08-14  Roland McGrath  <roland@hack.frob.com>
23107
23108         * sysdeps/i386/i486/bits/atomic.h
23109         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
23110         statement expression, so as to suppress "set but not used" warning.
23111         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
23112
23113         * string/strncat.c (STRNCAT): Use prototype definition.
23114
23115         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
23116         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
23117         -Iprograms here.
23118         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
23119         (localedef-modules): Add localedef.
23120         (locale-modules): Add locale.
23121
23122         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
23123         * elf/rtld.c (dl_main): Invert order of assignment in last change,
23124         to avoid a warning.
23125
23126 2011-08-14  David S. Miller  <davem@davemloft.net>
23127
23128         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
23129         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
23130
23131 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
23132
23133         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
23134         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
23135         * elf/rtld.c (dl_main): Set l_name of vDSO.
23136         Call _dl_show_scope when DL_DEBUG_SCOPES.
23137         (process_dl_debug): Recognize scopes flag and also set it for all.
23138         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
23139         Declare _dl_show_scope.
23140
23141         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
23142         (do_dlopen): Pass caller_dlopen to dl_open.
23143         (__libc_dlopen_mode): Initialize caller_dlopen.
23144
23145         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
23146         of libc.  Make tolower call locale-independent.  Optimize a bit by
23147         using isdigit instead of isalnum.
23148         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
23149
23150 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
23151
23152         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
23153         was a dependency or dynamically loaded.
23154
23155 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
23156
23157         * intl/l10nflist.c: Allow architecture-specific pop function.
23158         * sysdeps/x86_64/l10nflist.c: New file.
23159
23160         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
23161         classification.
23162
23163 2011-08-10  Andreas Schwab  <schwab@redhat.com>
23164
23165         * include/dirent.h: Add libc_hidden_proto for scandirat and
23166         scandirat64.  Don't declare __scandirat64.
23167         * dirent/scandirat.c: Add libc_hidden_def.
23168         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
23169         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
23170
23171 2011-08-10  David S. Miller  <davem@davemloft.net>
23172
23173         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
23174         enum.
23175         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23176         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23177         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23178
23179 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
23180
23181         * Versions.def [libc]: Add GLIBC_2.15.
23182         * dirent/Makefile (routines): Add scandirat and scandirat64.
23183         * dirent/Versions [libc]: Export scandirat and scandirat64 for
23184         GLIBC_2.15.
23185         * dirent/dirent.h: Declare scandirat and scandirat64.
23186         * dirent/scandirat.c: New file.
23187         * dirent/scandirat64.c: New file.
23188         * sysdeps/wordsize-64/scandirat.c: New file.
23189         * sysdeps/wordsize-64/scandirat64.c: New file.
23190         * dirent/opendir.c: Define opendirat.
23191         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
23192         using scandirat.
23193         * dirent/scandir64.c: Adjust for scandir.c change.
23194         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
23195         __scandirat64, and __scandir_cancel_handler.
23196         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
23197         additional parameter and use openat instead of open (outside of ld.so).
23198         Add new __opendir as wrapper around __opendirat.
23199         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
23200         here without requiring old scandirat implementation.
23201
23202 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
23203
23204         * dirent/scandir.c (cancel_handler): Renamed to
23205         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
23206         defined.  Adjust users.
23207         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
23208         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
23209
23210 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
23211
23212         * string/test-string.h (IMPL): Use __STRING to expand name and then
23213         stringify it.
23214
23215         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
23216         of cleanups.
23217
23218 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23219
23220         * string/Makefile: Update.
23221         (strop-tests): Append strncat.
23222         * string/test-wcscmp.c: New file.
23223         New comprehensive test for wcscmp.
23224         * string/test-strcmp.c: Update.
23225         (WIDE): New define.
23226
23227 2011-07-22  Andreas Schwab  <schwab@redhat.com>
23228
23229         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
23230         line.
23231
23232 2011-07-26  Andreas Schwab  <schwab@redhat.com>
23233
23234         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
23235         encoding to ACE if AI_IDN.
23236
23237 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
23238
23239         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
23240         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
23241
23242 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23243
23244         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
23245         Fix overflow bug in strncat.
23246         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23247
23248         * string/test-strncat.c: Update.
23249         Add new tests for checking overflow bugs.
23250
23251 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23252
23253         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23254         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
23255         * sysdeps/i386/i686/multiarch/strcat.S: New file.
23256         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
23257         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
23258         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
23259         * sysdeps/i386/i686/multiarch/strncat.S: New file.
23260         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
23261         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
23262
23263         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
23264         (USE_AS_STRCAT): Define.
23265         Add strcat and strncat support.
23266         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23267
23268 2011-07-25  Andreas Schwab  <schwab@redhat.com>
23269
23270         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
23271         __n bigger than INT_MAX+1.
23272         (__strncmp_g): Likewise.
23273
23274 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
23275
23276         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
23277         * libio/stido.h: Likewise.
23278
23279         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
23280         (AF_NFC): Define.
23281         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
23282         (AF_NFC): Define.
23283
23284         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
23285         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23286         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23287         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23288         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23289
23290         [BZ #13021]
23291         * scripts/test-installation.pl: Don't expect libnss_test1 to be
23292         installed.
23293
23294         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
23295         typo.
23296         (_dl_x86_64_save_sse): Likewise.
23297
23298 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
23299
23300         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
23301         OSXSAVE.
23302         (_dl_x86_64_save_sse): Likewise.
23303
23304         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
23305
23306         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
23307
23308 2011-07-21  Andreas Schwab  <schwab@redhat.com>
23309
23310         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
23311         change.
23312         (_dl_x86_64_save_sse): Use correct AVX check.
23313
23314 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23315
23316         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
23317         bug in strncpy/strncat.
23318         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23319
23320 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
23321
23322         * string/tester.c (test_strcat): Add tests for different alignments
23323         of source and destination.
23324         (test_strncat): Likewise.
23325
23326 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
23327
23328         [BZ #12852]
23329         * posix/glob.c (glob): Check passed in values before using them in
23330         expressions to avoid some overflows.
23331         (glob_in_dir): Likewise.
23332
23333         [BZ #13007]
23334         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
23335         check for AVX enablement so that we don't crash with old kernels and
23336         new hardware.
23337         * elf/tst-audit4.c: Add same checks here.
23338         * elf/tst-audit6.c: Likewise.
23339
23340         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
23341
23342 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
23343
23344         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
23345
23346 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
23347
23348         * po/cs.po: Update from translation team.
23349         * po/bg.po: Likewise.
23350
23351 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
23352
23353         * misc/sys/cdefs.h: Add support for const attribute.
23354         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
23355         to gnu_dev_{major,minor,makedev} functions.
23356
23357 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
23358
23359         * intl/dcigettext.c (get_output_charset): Add missing bracket.
23360
23361 2011-07-20  Andreas Schwab  <schwab@redhat.com>
23362
23363         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
23364         strlen results.
23365
23366 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23367
23368         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
23369         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
23370         register in order to avoid conflicts with the soft frame pointer
23371         being held in r11 when necessary.
23372         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23373         (INTERNAL_VSYSCALL_NCS): Likewise.
23374
23375 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
23376
23377         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
23378         * elf/dl-fini.c (_dl_fini): Adjust caller.
23379         * elf/dl-close.c (_dl_close_worker): Likewise.
23380         * sysdeps/generic/ldsodefs.h: Adjust declaration.
23381
23382 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
23383
23384         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
23385         "aux_cache->nlibs < 0".
23386
23387         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
23388         in the reload-count case.
23389
23390 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23391
23392         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23393         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
23394         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
23395         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
23396         * sysdeps/x86_64/multiarch/strcat.S: New file.
23397         * sysdeps/x86_64/multiarch/strncat.S: New file.
23398         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
23399         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
23400         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
23401         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
23402         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
23403         (USE_AS_STRCAT): Define.
23404         Add strcat and strncat support.
23405         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
23406         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23407         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
23408         * string/strncat.c: Update.
23409         (USE_AS_STRNCAT): Define.
23410         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23411         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
23412         and i7.
23413         * sysdeps/x86_64/multiarch/init-arch.h
23414         (bit_Prefer_PMINUB_for_stringop): New.
23415         (index_Prefer_PMINUB_for_stringop): Likewise.
23416         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
23417         bit_Prefer_PMINUB_for_stringop.
23418
23419 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
23420
23421         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
23422         buffer64.
23423         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
23424         of casting of buffer.
23425         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
23426         buffer32 and buffer64.
23427         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
23428         writes instead of casting of buffer.
23429         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
23430         buffer32.
23431         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
23432         casting of buffer.
23433
23434 2011-07-19  Andreas Schwab  <schwab@redhat.com>
23435
23436         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
23437
23438 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
23439
23440         * nscd/nscd.c (termination_handler): Don't do anything for a database
23441         if it has not yet been initialized.
23442
23443 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
23444
23445         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
23446
23447 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
23448
23449         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
23450
23451 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
23452
23453         * po/nl.po: Update from translation team.
23454         * po/sv.po: Likewise.
23455
23456 2011-07-16  Roland McGrath  <roland@hack.frob.com>
23457
23458         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
23459         now disallowed by GCC.
23460
23461         * configure.in (use-default-link): Default to yes if a test -shared
23462         link meets our qualifications.
23463         * configure: Regenerated.
23464
23465         * config.make.in (output-format): New variable.
23466         * configure.in: Check for ld --print-output-format support.
23467         * configure: Regenerated.
23468         * Makerules ($(common-objpfx)format.lds)
23469         [$(output-format) != unknown]: Just use $(output-format),
23470         instead of the linker-script munging.
23471
23472 2011-07-14  Roland McGrath  <roland@hack.frob.com>
23473
23474         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
23475         of $(common-objpfx)shlib.lds.
23476         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
23477
23478         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
23479         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
23480
23481         * configure.in (-z relro check): Adjust test code to add a large
23482         writable data section after it.
23483         * configure: Regenerated.
23484
23485 2011-07-11  Roland McGrath  <roland@hack.frob.com>
23486
23487         * configure.in (-z relro check): Fix test code to make the variable
23488         truly const.
23489         * configure: Regenerated.
23490
23491 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
23492
23493         * nscd/nscd.h (struct traced_file): Define.
23494         (struct database_dyn): Remove inotify_descr, reset_res, and filename
23495         elements.  Add traced_files.
23496         (inotify_fd): Declare.
23497         (register_traced_file): Declare.
23498         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
23499         (inotify_fd): Export.
23500         (resolv_conf_descr): Remove.
23501         (nscd_init): Move inotify descriptor creation to main.
23502         Don't register files for notification here.
23503         (register_traced_file): New function.
23504         (invalidate_cache): Don't use reset_res to determine whether to call
23505         res_init, go through the list of registered files.
23506         (main_loop_poll): The inotify descriptors are now stored in the
23507         structures for the traced files.
23508         (main_loop_epoll): Likewise
23509         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
23510         to __nss_disable_nscd.
23511         * nscd/cache.c (prune_cache): There is no single inotify descriptor
23512         for a database anymore.  Check the records for all the registered
23513         files instead.
23514         * nss/Makefile (libnss_files-routines): Add files-init.
23515         (libnss_db-routines): Add db-init.
23516         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
23517         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
23518         * nss/nss_db/db-init.c: New file.
23519         * nss/nss_files/files-init.c: New file.
23520         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
23521         __nss_lookup_function.
23522         (__nss_lookup_function): Call nss_load_library.
23523         (nss_load_all_libraries): New function.
23524         (__nss_disable_nscd): Take parameter with callback function for files
23525         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
23526         used for the cached services.
23527         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
23528         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
23529         options for features to all the files in nscd.
23530
23531         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
23532
23533 2011-07-10  Roland McGrath  <roland@hack.frob.com>
23534
23535         * csu/elf-init.c (__libc_csu_init): Comment typo.
23536
23537 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
23538
23539         * po/pl.po: Update from translation team.
23540         * po/ja.po: Likewise.
23541         * po/ru.po: Likewise.
23542         * po/ko.po: Likewise.
23543         * po/fr.po: Likewise.
23544
23545 2011-07-09  Roland McGrath  <roland@hack.frob.com>
23546
23547         * configure.in (.ctors/.dtors header and trailer check):
23548         Use an empirical test on a built program.
23549         * configure: Regenerated.
23550
23551         * configure.in (-z relro check): Use an empirical test on a built DSO.
23552         Detect, but do not require, on ia64.
23553         * configure: Regenerated.
23554
23555         * configure.in (READELF): Find it with AC_CHECK_TOOL.
23556         Update tests that use readelf to use $READELF instead.
23557         * configure: Regenerated.
23558
23559 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
23560
23561         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
23562         if the result is not used.
23563
23564 2011-07-05  Andreas Jaeger  <aj@suse.de>
23565
23566         [BZ#9696]
23567         * stdlib/tst-strtod.c: Add testcase.
23568
23569 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
23570
23571         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
23572         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
23573         The latter has a higher limit.  Take additional parameter to pass to
23574         the new function.
23575         (__pathconf): Pass file to __statfs_link_max.
23576         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
23577         __statfs_link_max.
23578         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
23579         __statfs_link_max.
23580
23581         [BZ #12868]
23582         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
23583         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
23584         Handle Lustre.
23585         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
23586         (__statfs_filesize_max): Likewise.
23587         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
23588
23589 2011-07-05  Andreas Jaeger  <aj@suse.de>
23590
23591         * resolv/res_comp.c (dn_skipname): Remove unused variable.
23592
23593 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
23594
23595         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
23596         `status' variable.
23597         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
23598         Likewise.
23599
23600 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
23601
23602         * Makefile (strop-tests): Add strncat.
23603         * string/test-strncat.c: New file.
23604
23605 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
23606
23607         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
23608
23609 2011-06-21  Andreas Jaeger  <aj@suse.de>
23610
23611         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
23612         Copy rule from iconvdata/Makefile.
23613
23614 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
23615
23616         [BZ #12922]
23617         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
23618         but no long options are defined, just return 'W'.
23619
23620 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
23621
23622         [BZ #9696]
23623         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
23624
23625 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
23626
23627         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
23628         netgroups to read.
23629         (innetgr): Likewise.
23630
23631 2011-07-05  Roland McGrath  <roland@hack.frob.com>
23632
23633         * config.make.in (install_root): Default to $(DESTDIR).
23634
23635 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
23636
23637         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
23638
23639 2011-07-02  Roland McGrath  <roland@hack.frob.com>
23640
23641         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
23642
23643         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
23644         containing directory rather than embedding absolute directory names.
23645
23646         * scripts/check-local-headers.sh: Rewritten using awk.
23647         Match by word, not by line.  Print error messages for matches.
23648         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
23649
23650         * Makerules [shlib-lds-flags empty]:
23651         ($(common-objpfx)libc_pic.opts): New target.
23652         ($(common-objpfx)libc_pic.os.clean): New target.
23653         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
23654
23655         * config.make.in (OBJCOPY): New variable.
23656         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
23657         * configure: Regenerated.
23658
23659         * config.make.in (use-default-link): New variable.
23660         * configure.in (use_default_link): Grok --with-default-link to set it.
23661         * configure: Regenerated.
23662         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
23663         (shlib-lds, shlib-lds-flags): Define to empty.
23664
23665         * Makerules (shlib-lds): New variable.
23666         (shlib-lds-flags): New variable.
23667         (build-shlib, build-moduile, build-module-asneeded): Use it.
23668         ($(common-objpfx)libc.so): Use $(shlib-lds).
23669         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
23670         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
23671
23672         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
23673         DT_FLAGS/DT_FLAGS_1 with zero flags.
23674
23675         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
23676         linker script munging.
23677
23678 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
23679
23680         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
23681         as 128-bit value.
23682         * crypt/sha512.c (sha512_process_block): Perform total addition using
23683         128-bit if possible.
23684         (__sha512_finish_ctx): Likewise.
23685         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
23686         as 64-bit value.
23687         * crypt/sha256.c (SWAP64): Define.
23688         (sha256_process_block): Perform total addition using 64-bit if
23689         possible.
23690         (__sha256_finish_ctx): Likewise.
23691
23692 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
23693
23694         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
23695         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23696         * nscd/hstcache.c (cache_addhst): Likewise.
23697         * nscd/grpcache.c (cache_addgr): Likewise.
23698         * nscd/aicache.c (addhstaiX): Likewise
23699         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
23700
23701 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
23702
23703         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
23704         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23705         * nscd/hstcache.c (cache_addhst): Likewise.
23706         * nscd/grpcache.c (cache_addgr): Likewise.
23707         * nscd/aicache.c (addhstaiX): Likewise
23708
23709 2011-07-01  Andreas Schwab  <schwab@redhat.com>
23710
23711         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
23712         domain only when needed.
23713
23714 2011-06-30  Andreas Schwab  <schwab@redhat.com>
23715
23716         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
23717         is always restored.
23718
23719 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
23720
23721         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
23722         are re-adding the entry.
23723         * nscd/servicescache.c (cache_addserv): Likewise.
23724
23725 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
23726
23727         * sysdeps/generic/dl-irel.h: fix protection against multiple
23728         inclusions.
23729         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
23730
23731 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
23732
23733         [BZ #12935]
23734         * malloc/memusage.sh: Fix quoting in message.
23735         * debug/xtrace.sh: Likewise.
23736
23737         * configure.in: Remove support for --experimental-malloc option, make
23738         it the default.
23739         * config.make.in: Likewise.
23740         * malloc/Makefile: Likewise.
23741
23742 2011-06-27  Andreas Schwab  <schwab@redhat.com>
23743
23744         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
23745         two-byte characters.
23746
23747 2011-06-27  Roland McGrath  <roland@hack.frob.com>
23748
23749         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
23750         AC_CACHE_CHECK invocation.
23751         * configure: Regenerated.
23752
23753         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
23754
23755 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
23756
23757         [BZ #12350]
23758         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
23759         bit from old_res_options.
23760
23761         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
23762
23763         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
23764         value type for setfct.
23765
23766 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23767
23768         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23769         __gettimeofday instead of gettimeofday.
23770
23771 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
23772
23773         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
23774
23775 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
23776
23777         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
23778
23779         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
23780         info.
23781
23782 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23783
23784         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23785         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23786         strcpy-sse2-unaligned strncpy-sse2-unaligned
23787         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
23788         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
23789         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
23790         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
23791         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
23792         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
23793         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
23794         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
23795         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
23796         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
23797         (STRCPY): Support SSE2 and SSSE3 versions.
23798
23799 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
23800
23801         [BZ #12874]
23802         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
23803         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
23804         kernels which artificially limit size of requests.
23805
23806 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23807
23808         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23809         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23810         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
23811         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
23812         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
23813         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
23814         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
23815         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
23816         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
23817         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
23818         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
23819         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
23820         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
23821         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
23822         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
23823         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23824         Enable unaligned load optimization for Intel Core i3, i5 and i7
23825         processors.
23826         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
23827         Define.
23828         (index_Fast_Unaligned_Load): Define.
23829         (HAS_FAST_UNALIGNED_LOAD): Define.
23830
23831 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
23832
23833         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
23834
23835 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23836
23837         [BZ #12907]
23838         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
23839         until it is clear that the information is realy needed.
23840         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
23841
23842 2011-06-22  Andreas Schwab  <schwab@redhat.com>
23843
23844         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
23845
23846 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23847
23848         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23849         /sys/devices/system/cpu/online if it is usable.
23850
23851         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
23852         reading the information from the /proc filesystem to once a second.
23853
23854 2011-06-21  Andreas Jaeger  <aj@suse.de>
23855
23856         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
23857         NULL after inclusion of kernel headers.
23858
23859 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
23860
23861         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
23862         calls to internal_setent.
23863
23864         [BZ #12885]
23865         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
23866         addresses using gethostbyname4_r ignore IPv4 addresses.
23867
23868         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
23869         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
23870
23871         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
23872
23873 2011-06-20  David S. Miller  <davem@davemloft.net>
23874
23875         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
23876         inclusions.
23877         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
23878
23879         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
23880         (elf_irel): Use it.
23881         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
23882         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
23883         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
23884         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
23885         * sysdeps/x86_64/dl-irel.h: Likewise.
23886
23887         * elf/dl-runtime.c: Use elf_ifunc_invoke.
23888         * elf/dl-sym.c: Likewise.
23889
23890 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23891
23892         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
23893         need to dereference resplen2.
23894
23895 2011-06-14  Andreas Schwab  <schwab@redhat.com>
23896
23897         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
23898
23899 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23900
23901         * Makeconfig: Define vardbdir and inst_vardbdir.
23902         * nss/Makefile: Add rules to install db-Makefile.
23903
23904         * nss/nss_db/db-XXX.c: Cleanup.
23905
23906         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
23907         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
23908         GLIBC_PRIVATE.
23909         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
23910         * nss/makedb.c: Implement -g option to specify that value strings
23911         are generated and should not be added to table iterated over for
23912         get*ent calls.
23913         * nss/nss_db/db-initgroups.c: New file.
23914
23915         * nss/getent.c: Add support for initgroups lookups through getgrouplist
23916         interface.
23917
23918         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
23919         (internal_getgrouplist): Adjust to name change.
23920         Update use_initgroups_entry if this is not the first call.
23921         * nss/databases.def: Add initgroups entry.
23922
23923         * nss/makedb.c (compute_tables): Check result of multiple hash table
23924         sizes to minimize maximum chain length.
23925
23926 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
23927
23928         * Versions.def: Add entry for libnss_db.
23929         * shlib-versions: Likewise.
23930         * nss/Makefile: Add rules to build libnss_db.
23931         * nss/Versions: Add libnss_db information.  Organize libnss_files
23932         entries better.
23933         * nss/db-Makefile: Add gshadow support.  Change rules for the new
23934         makedb progra.  Some minor improvements to generate smaller files.
23935         * nss/nss_db/nss_db.h: Move NSS database header data structures to
23936         here from...
23937         * nss/makedb.c: ...here.
23938         Improve database format to be smaller and require less memory at
23939         runtime.
23940         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
23941         db anymore.
23942         * nss/nss_db/db-netgrp.c: Likewise.
23943         * nss/nss_db/db-open.c: Likewise.
23944         * nss/nss_files/flies-XXX.x: Adjust comments.
23945         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
23946         * nss/nss_files/files-grp.c: Likewise.
23947         * nss/nss_files/files-hosts.c: Likewise.
23948         * nss/nss_files/files-network.c: Likewise.
23949         * nss/nss_files/files-proto.c: Likewise.
23950         * nss/nss_files/files-pwd.c: Likewise.
23951         * nss/nss_files/files-rpc.c: Likewise.
23952         * nss/nss_files/files-service.c: Likewise.
23953         * nss/nss_files/files-sgrp.c: Likewise.
23954         * nss/nss_files/files-spwd.c: Likewise.
23955         * nss/nss_db/db-alias.c: Removed.
23956         * nss/nss_db/dummy-db.h: Removed.
23957
23958 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
23959
23960         * nss/makedb.c: Rewritten to not use database library.
23961         * nss/Makefile: Update to build new makedb program.
23962
23963 2011-06-14  Andreas Jaeger  <aj@suse.de>
23964
23965         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
23966         memset declaration.
23967
23968 2011-06-10  Andreas Schwab  <schwab@redhat.com>
23969
23970         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
23971         tmpbuf.
23972
23973 2011-06-10  Roland McGrath  <roland@hack.frob.com>
23974
23975         * Makerules (shlib.lds): Fail if the linker script comes out empty.
23976         * elf/Makefile ($(objpfx)ld.so): Likewise.
23977
23978         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
23979         Don't list ld.so twice in dependencies.
23980
23981         * posix/bug-regex31.c: Include <stdlib.h>.
23982
23983         * nscd/hstcache.c (cache_addhst): Remove unused variable.
23984
23985         * nis/nss_compat/compat-spwd.c
23986         (getspent_next_nss_netgr): Remove unused variable.
23987         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
23988
23989         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
23990         nonmembers" output to use the right array.
23991
23992         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
23993
23994         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
23995
23996         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
23997         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
23998         * catgets/gencat.c (read_input_file): Likewise.
23999         * locale/programs/locarchive.c (enlarge_archive): Likewise.
24000
24001         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
24002         variable definition inside #if's controlling its use.
24003
24004         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
24005
24006         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
24007
24008         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
24009
24010         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
24011         unreachable code.
24012
24013         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
24014
24015         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
24016         * configure: Regenerated.
24017
24018         * Makerules: Revert last change.
24019         * elf/Makefile: Likewise.
24020
24021 2011-06-09  Roland McGrath  <roland@hack.frob.com>
24022
24023         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
24024         * elf/Makefile ($(objpfx)librtld.os): Likewise.
24025         (reloc-link): Likewise.
24026
24027 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
24028
24029         * elf/Makefile: Add rules to build pldd.
24030         * elf/pldd.c: New file.
24031         * elf/pldd-xx.c: New file.
24032
24033 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
24034
24035         * version.h: Update for 2.15 development version.
24036
24037 2011-06-07  David S. Miller  <davem@davemloft.net>
24038
24039         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
24040         ifuncs.
24041         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
24042         elf_machine_lazy_rel): Likewise.
24043         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
24044         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
24045         elf_machine_lazy_rel): Likewise.
24046         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
24047         dl_hwcap via passed in argument.
24048         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
24049         Likewise.
24050
24051 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24052
24053         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
24054
24055 2011-06-06  Roland McGrath  <roland@hack.frob.com>
24056
24057         [BZ #12849]
24058         * manual/fdl-1.1.texi: New file, verbatim from:
24059         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
24060         * manual/lgpl-2.1.texi: New file, verbatim from:
24061         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
24062         * manual/Makefile (licenses): New variable, list those new file names.
24063         (texis): Use it.
24064         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
24065
24066         * manual/fdl.texi: File removed.
24067         * manual/lesser.texi: File removed.
24068         * manual/libc.texinfo (Copying, Documentation License):
24069         Use new @include file names, put @appendix directive before @include.
24070
24071 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
24072
24073         [BZ #12841]
24074         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
24075         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
24076         (mq_open): Add __NTH.
24077
24078 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
24079
24080         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24081         Assume Intel Core i3/i5/i7 processor if AVX is available.
24082
24083 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
24084
24085         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
24086         typo.
24087
24088 2011-05-31  Andreas Schwab  <schwab@redhat.com>
24089
24090         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
24091         memory.  Use alloca_account.  Fix memory leak when retrying.
24092
24093 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
24094
24095         * version.h (RELEASE): Bump for 2.14 release.
24096         * include/features.h (__GLIBC_MINOR__): Bump to 14.
24097
24098         * config.make.in (RANLIB): Remove entry.
24099
24100 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
24101
24102         * po/Makefile (po-sed-cmd): Add ksh to extensions.
24103         (libc.pot): Work around missing support for .ksh extension in xgettext.
24104
24105         [BZ #12684]
24106         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
24107         if both request failed.
24108         (send_dg): In case of server errors clear resplen or *resplen2.
24109
24110         [BZ #12454]
24111         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
24112         when there are multiple maps.
24113         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
24114         (_dl_fini): Remove test here.
24115
24116         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
24117
24118 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
24119
24120         [BZ #12350]
24121         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
24122         bit from old_res_options.
24123         (gaih_inet): Likewise.
24124
24125         [BZ #11099]
24126         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
24127         as signed.
24128
24129         * resolv/res_init.c (res_setoptions): Make the code more compact.
24130
24131         [BZ #11558]
24132         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
24133         set RES_USEVC.
24134
24135         [BZ #11634]
24136         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
24137
24138         * malloc/malloc.h: Mark malloc hook variables as deprecated.
24139
24140         [BZ #11781]
24141         * malloc/malloc.h: Declare malloc hook variables as volatile.
24142
24143         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
24144         in last patch.
24145
24146         [BZ #11799]
24147         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
24148         raise in the comment.
24149         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
24150         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
24151         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
24152
24153 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
24154
24155         [BZ #12811]
24156         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
24157         grow the buffers more if it already has to be sufficient.
24158         (build_wcs_upper_buffer): Likewise.
24159         * posix/regexec.c (check_matching): Likewise.
24160         (clean_state_log_if_needed): Likewise.
24161         (extend_buffers): Don't enlarge buffers beyond size of the input
24162         buffer.
24163         Patches mostly by Emil Wojak <emil@wojak.eu>.
24164         * posix/bug-regex32.c: New file.
24165         * posix/Makefile (tests): Add bug-regex32.
24166
24167         * locale/findlocale.c (_nl_find_locale): Return right away if
24168         _nl_explode_name failed.
24169         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
24170
24171         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
24172
24173         * debug/xtrace.sh: Unify messages.
24174         * malloc/memusage.sh: Likewise.
24175
24176         [BZ #12813]
24177         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
24178         time symbol from vDSO.  Substitute with vsyscall if not available.
24179         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
24180         __vdso_time.
24181
24182         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
24183         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
24184         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
24185         Add sendmmsg and internal_sendmmsg.
24186         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
24187         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
24188         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
24189
24190         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
24191         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
24192         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
24193
24194 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
24195
24196         [BZ #12813]
24197         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
24198         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
24199         available.
24200         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
24201         __vdso_getcpu.
24202
24203         [BZ #12814]
24204         * iconvdata/Makefile (tests): Add bug-iconv9.
24205         * iconvdata/bug-iconv9.c: New file.
24206
24207 2011-05-27  Andreas Schwab  <schwab@redhat.com>
24208
24209         [BZ #12814]
24210         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
24211
24212 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
24213
24214         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
24215         (struct user_regs_struct): Change intcs field back to cs.
24216
24217 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
24218
24219         * po/ja.po: Update from translation team.
24220
24221 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
24222
24223         [BZ #12795]
24224         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
24225         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
24226
24227 2011-05-20  Andreas Schwab  <schwab@redhat.com>
24228
24229         * stdlib/longlong.h: Update from GCC.
24230
24231 2011-05-23  Andreas Schwab  <schwab@redhat.com>
24232
24233         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
24234         parameter name.
24235         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
24236         Add parameter name.
24237         (__sysconf): Pass it down.
24238
24239 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
24240
24241         [BZ #12671]
24242         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
24243         some situations.
24244         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
24245         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
24246         add in in __libc_use_alloca calls.  Adjust callers.
24247         (glob): Use malloc in some situations.
24248
24249         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
24250         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
24251         pltexit.
24252
24253 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
24254
24255         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
24256         and CLOCK_BOOTTIME_ALARM.
24257
24258         [BZ #12782]
24259         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
24260         is returned.
24261
24262         * string/_strerror.c (__strerror_r): Print negative errors as signed
24263         numbers.
24264
24265         [BZ #12777]
24266         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
24267         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
24268         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
24269
24270         * configure.in: Fix typo in redirection and correct removal of test
24271         files in two cases.
24272
24273         [BZ #12788]
24274         * locale/setlocale.c (new_composite_name): Fix test to check for
24275         identical name of all categories.
24276
24277         [BZ #12792]
24278         * libio/filedoalloc.c (local_isatty): New function.
24279         (_IO_file_doallocate): Use local_isatty.
24280         * stdio-common/perror.c (perror): In case a new stream is used
24281         forward the stream error.
24282         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
24283         error flag.
24284
24285 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
24286
24287         [BZ #11869]
24288         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
24289         alloca.
24290         * include/alloca.h (extend_alloca_account): Define.
24291
24292         [BZ #11857]
24293         * posix/regex.h: Fix comments with documentation of user-accessible
24294         fields after compilation and describe correct free'ing of pattern
24295         after re_compile_pattern.
24296         Patch by Reuben Thomas <rrt@sc3d.org>.
24297
24298 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
24299
24300         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
24301         and -mno-altivec to prevent the compiler from using Altivec and/or
24302         VSX instructions when the corresponding registers are not available.
24303
24304 2011-05-19  Andreas Schwab  <schwab@redhat.com>
24305
24306         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
24307
24308 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
24309
24310         * libio/freopen.c (freopen): Use __dup2, not dup2.
24311         * libio/freopen64.c (freopen64): Likewise.
24312
24313 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24314
24315         [BZ #12775]
24316         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
24317         * math/Makefile (tests): Add test-powl.
24318         (CFLAGS-test-powl.c): Define.
24319         * math/test-powl.c: New file.
24320
24321 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24322
24323         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
24324
24325 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
24326
24327         [BZ #11837]
24328         * iconvdata/gb18030.c: Update to GB18020-2005.
24329
24330 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
24331
24332         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
24333         RE_SYNTAX_POSIX_AWK): Update to match recent development.
24334         Patch by Aharon Robbins <arnold@skeeve.com>.
24335
24336         [BZ #11892]
24337         * stdlib/putenv.c (putenv): Don't always create copy of the variable
24338         on the stack.
24339
24340         [BZ #11895]
24341         * misc/pselect.c (__pselect): Handle timeout value errors hidden
24342         through underflows.
24343
24344         [BZ #12766]
24345         * misc/error.c (error_at_line): Ensure file_name and old_file_name
24346         point to strings before performing equality test for error_one_per_line
24347         mode.
24348
24349         [BZ #11697]
24350         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
24351
24352         [BZ #11820]
24353         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
24354         (struct user_fpregs_struct): Avoid __uint*_t types.
24355
24356         [BZ #6420]
24357         * malloc/mtrace.c (tr_where): Add additional parameter to point to
24358         symbol info.  Use it instead of calling _dl_addr locally.
24359         (lock_and_info): New function.
24360         (tr_freehook): Call lock_and_info and pass symbol info as additional
24361         parameter to tr_where.
24362         (tr_mallochook): Likewise.
24363         (tr_reallochook): Likewise.
24364         (tr_memalignhook): Likewise.
24365
24366         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
24367         used and couldn't be at all thread-safe.
24368
24369 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
24370
24371         * libio/freopen.c (freopen): Don't close old file descriptor
24372         before the new one is opened.  Instead dup the new file descriptor
24373         to the old one after the new stream is created.
24374         * libio/freopen64.c (freopen64): Likewise.
24375         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
24376         * libio/fileops.c (_IO_new_file_close_it): Handle new
24377         _IO_FLAGS2_NOCLOSE flag.
24378         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
24379         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
24380         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
24381         _IO_FLAGS2_NOCLOSE flag.
24382         * include/unistd.h: Add hidden_proto for dup3.
24383         Define __have_dup3.
24384         * io/dup3.c: Define hidden symbol.
24385         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
24386
24387         [BZ #7101]
24388         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
24389         when an incomplete long option is used.
24390         * posix/tst-getopt_long1.c: New file.
24391         * posix/Makefile (tests): Add tst-getopt_long1.
24392
24393         [BZ #10138]
24394         * scripts/config.guess: Update from autoconf-2.68.
24395         * scripts/config.sub: Likewise.
24396
24397         [BZ #10157]
24398         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
24399         tests into ...
24400         (has_cpuclock): ...this.  New function.
24401         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
24402         macro here based on has_cpuclock code.
24403
24404         [BZ #10149]
24405         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24406         First byte (not low byte) is now always NUL.
24407         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
24408
24409         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24410         Use non-cancelable interfaces.
24411
24412         [BZ #9809]
24413         * locale/iso-639.def: Add entry for Sorani.
24414
24415         [BZ #11901]
24416         * include/stdlib.h: Move include protection to the right place.
24417         Define abort_msg_s.  Declare __abort_msg with it.
24418         * stdlib/abort.c (__abort_msg): Adjust type.
24419         * assert/assert.c (__assert_fail_base): New function.  Majority
24420         of code from __assert_fail.  Allocate memory for __abort_msg with
24421         mmap.
24422         (__assert_fail): Now call __assert_fail_base.
24423         * assert/assert-perr.c: Remove bulk of implementation.  Use
24424         __assert_fail_base.
24425         * include/assert.hL Declare __assert_fail_base.
24426         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
24427         mmap.
24428         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
24429
24430 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
24431
24432         [BZ #11952]
24433         [BZ #12453]
24434         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
24435         until all modules are registered in the DTV.
24436         * elf/Makefile: Add rules to build and run tst-tls19.
24437         * elf/tst-tls19.c: New file.
24438         * elf/tst-tls19mod1.c: New file.
24439         * elf/tst-tls19mod2.c: New file.
24440         * elf/tst-tls19mod3.c: New file.
24441         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
24442
24443         [BZ #12083]
24444         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
24445         correctly.
24446
24447         [BZ #12601]
24448         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
24449         two-byte sequence errors.
24450         * iconvdata/Makefile (tests): Add bug-iconv8.
24451         * iconvdata/bug-iconv8.c: New file.
24452
24453         [BZ #12626]
24454         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
24455         buf2 definition.
24456
24457         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
24458
24459         [BZ #12432]
24460         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
24461         (dummy_getcfa): New function.
24462         (init): Get _Unwind_GetCFA address, use dummy if not found.
24463         (backtrace_helper): In recursion check, also check whether CFA changes.
24464         (__backtrace): Completely initialize arg.
24465
24466         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
24467         storing incomplete byte sequence in state object.  Avoid testing for
24468         guaranteed too small input if we know there is enough data available.
24469
24470 2011-05-11  Andreas Schwab  <schwab@redhat.com>
24471
24472         * Makeconfig (+link-pie): Indent.
24473         * Rules (binaries-pie): Define if $(have-fpie) and
24474         $(build-shared).
24475         (binaries-shared): Also filter out $(binaries-pie).
24476         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
24477         * nscd/Makefile (others-pie): Add nscd.
24478         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
24479         ($(objpfx)nscd): Remove command override.
24480         * login/Makefile (others-pie): Add pt_chown.
24481         ($(objpfx)pt_chown): Remove command override.
24482         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
24483         remove command overrides.
24484
24485 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
24486
24487         * libio/tst_putwc.c: Fix error messages.
24488
24489         [BZ #12724]
24490         * libio/fileops.c (_IO_new_file_close_it): Always flush when
24491         currently writing and seek to current position when not.
24492         * libio/Makefile (tests): Add bug-fclose1.
24493         * libio/bug-fclose1.c: New file.
24494
24495 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
24496
24497         [BZ #12511]
24498         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
24499         don't set DF_1_NODELETE here.
24500         (do_lookup_x): When entering new entry test for copy relocation
24501         and if necessary set DF_1_NODELETE flag.
24502         * elf/tst-unique4.cc: New file.
24503         * elf/tst-unique4.h: New file.
24504         * elf/tst-unique4lib.cc: New file.
24505         * elf/Makefile: Add rules to build and run tst-unique4.
24506         Patch by Piotr Bury <pbury@goahead.com>.
24507
24508 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
24509
24510         [BZ #12052]
24511         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
24512
24513         [BZ #12625]
24514         * misc/mntent_r.c (addmntent): Flush the stream after the output
24515
24516         [BZ #12393]
24517         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
24518         (is_trusted_path_normalize): Skip initial colon.  Append slash
24519         to empty buffer.  Duplicate is_trusted_path code but allow
24520         constructed patch to be prefix.
24521         (is_dst): Allow $ORIGIN followed by /.
24522         (_dl_dst_substitute): Correct clearing of check_for_trusted.
24523         Correct testing of result of is_trusted_path_normalize
24524         (decompose_rpath): Fix warning.
24525
24526 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
24527
24528         [BZ #11257]
24529         * grp/initgroups.c (internal_getgrouplist): When we found the service
24530         list through the initgroups entry in nsswitch.conf do not always
24531         continue on a successful lookup.  Don't always use the
24532         __nss_group_database value if it is set.
24533         * nss/nsswitch.conf (initgroups): Change action for successful db
24534         lookup to continue for compatibility.
24535
24536 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
24537
24538         [BZ #11532]
24539         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
24540         and CP774 modules.
24541         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
24542         and CP774 modules.
24543         * iconvdata/tst-tables.sh: Likewise.
24544         * iconvdata/cp770.c: New file.
24545         * iconvdata/cp771.c: New file.
24546         * iconvdata/cp772.c: New file.
24547         * iconvdata/cp773.c: New file.
24548         * iconvdata/cp774.c: New file.
24549         * iconvdata/testdata/CP770: New file.
24550         * iconvdata/testdata/CP770..UTF8: New file.
24551         * iconvdata/testdata/CP771: New file.
24552         * iconvdata/testdata/CP771..UTF8: New file.
24553         * iconvdata/testdata/CP772: New file.
24554         * iconvdata/testdata/CP772..UTF8: New file.
24555         * iconvdata/testdata/CP773: New file.
24556         * iconvdata/testdata/CP773..UTF8: New file.
24557         * iconvdata/testdata/CP774: New file.
24558         * iconvdata/testdata/CP774..UTF8: New file.
24559
24560         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
24561         END CHARMAP line.
24562         * iconvdata/gen-8bit-gap.sh: Likewise.
24563         * iconvdata/gen-8bit.sh: Likewise.
24564
24565         * locale/iso-639.def: Add ary entry.
24566
24567         [BZ #11258]
24568         * locale/C-translit.h.in: Add U20A1 transliteration.
24569
24570         [BZ #12178]
24571         * locale/iso-639.def: Add wae entry.
24572         Patch by Kevin Bortis <bortis@translate-wae.ch>.
24573
24574         [BZ #12545]
24575         * locale/programs/localedef.c (construct_output_path): Use ssize_t
24576         for n.
24577
24578         [BZ #12711]
24579         * locale/C-translit.h.in: Add entry for U20B9.
24580         Patch by pravin.d.s@gmail.com.
24581
24582 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
24583
24584         [BZ #12713]
24585         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
24586         ENAMETOOLONG use generic getcwd.
24587         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
24588         in rtld.  Use *stat64.
24589         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
24590         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
24591         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
24592         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
24593         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
24594         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
24595         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
24596         __fstatat64 macros.
24597         * include/dirent.h: Add libc_hidden_proto for rewinddir.
24598         * dirent/rewinddir.c: Add libc_hidden_def.
24599         * sysdeps/mach/hurd/rewinddir.c: Likewise.
24600         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
24601
24602         * include/dirent.h (__alloc_dir): Add flags parameter.
24603         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
24604         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
24605         __alloc_dir.
24606         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
24607         from fdopendir if O_CLOEXEC is already set.
24608
24609 2011-03-15  Alan Modra  <amodra@gmail.com>
24610
24611         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
24612         l_tls_firstbyte_offset non-zero.  Save padding offset in
24613         l_tls_firstbyte_offset for later use.
24614         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
24615         freeing static tls block.
24616
24617 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
24618
24619         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
24620         where #ifdef was intended.  The intent is to prevent ARG_MAX from
24621         being defined by the kernel headers.
24622
24623 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
24624
24625         [BZ #12734]
24626         * resolv/resolv.h: Define RES_NOTLDQUERY.
24627         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
24628         no-tld-query and set RES_NOTLDQUERY.
24629         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
24630         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
24631         modern BIND to search name as TLD unless forbidden.
24632
24633 2011-05-07  Petr Baudis  <pasky@suse.cz>
24634             Ulrich Drepper  <drepper@gmail.com>
24635
24636         [BZ #12393]
24637         * elf/dl-load.c (fillin_rpath): Move trusted path check...
24638         (is_trusted_path): ...to here.
24639         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
24640         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
24641         using is_trusted_path_normalize() in setuid scripts.
24642
24643 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
24644
24645         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
24646         __BEGIN/__END_DECLS.
24647
24648 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
24649
24650         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
24651         NSS_STATUS_NOTFOUND if no record was found.
24652
24653 2011-05-05  Andreas Schwab  <schwab@redhat.com>
24654
24655         * sunrpc/Makefile (headers): Add rpc/netdb.h.
24656         (headers-not-in-tirpc): Remove rpc/netdb.h
24657         * resolv/netdb.h: Revert last change.
24658
24659 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24660
24661         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
24662         circular dependency between libgcc.a and libc.a.
24663
24664 2011-05-05  Andreas Schwab  <schwab@redhat.com>
24665
24666         * resolv/netdb.h: Don't include <rpc/netdb.h>.
24667         * nis/Makefile: Don't install rpcsvc/*.
24668         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
24669         instead of <rpc/types.h>.
24670         (MAXHOSTNAMELEN): Define.
24671
24672 2011-05-03  Andreas Schwab  <schwab@redhat.com>
24673
24674         * elf/ldconfig.c (add_dir): Don't crash on empty path.
24675
24676 2011-04-28  Maciej Babinski  <mbabinski@google.com>
24677
24678         [BZ #12714]
24679         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
24680         gethostbyname4_r when IPv6 results are possible.
24681
24682 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
24683
24684         [BZ #12723]
24685         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
24686         _PC_PIPE_BUF handling.
24687
24688 2011-04-30  Bruno Haible  <bruno@clisp.org>
24689
24690         [BZ #12717]
24691         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
24692         * resolv/netdb.h (getnameinfo): Change type of flags parameter
24693         to 'int'.
24694         * inet/getnameinfo.c (getnameinfo): Likewise.
24695
24696 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
24697
24698         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
24699         to groups setting in database lookup.
24700         * nss/nsswitch.conf: Add initgroups entry.
24701
24702 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
24703
24704         [BZ #12685]
24705         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
24706         mode string.
24707         Patch by Eric Blake <eblake@redhat.com>.
24708
24709 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
24710
24711         * sunrpc/Makefile (need-export-routines): Add svc_run.
24712         (routines): Remove svc_run.
24713         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
24714         * sunrpc/clnt_perr.c (clnt_perrno): Export.
24715         * sunrpc/svc_run.c (svc_run): Likewise.
24716         * sunrpc/svc_udp.c (svcudp_create): Likewise.
24717
24718 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
24719
24720         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
24721         problem in reallocation in last patch.
24722
24723 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
24724
24725         * sunrpc/Makefile: Move inclusion of Rules.
24726
24727 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24728
24729         * nss/nss_files/files-initgroups.c: New file.
24730         * nss/Makefile (libnss_files-routines): Add files-initgroups.
24731         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
24732         _nss_files_initgroups_dyn.
24733
24734 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
24735
24736         * elf/elf.h (R_ARM_IRELATIVE): Define.
24737
24738 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24739
24740         * po/ru.po: Update from translation team.
24741
24742 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24743
24744         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
24745         dependencies.
24746
24747 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
24748
24749         [BZ #12653]
24750         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
24751         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
24752         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24753         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24754         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24755
24756 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
24757
24758         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
24759         differing bytes.
24760         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
24761         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
24762         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24763
24764 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24765
24766         [BZ #12420]
24767         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
24768         storing it.
24769         * stdlib/bug-getcontext.c: New file.
24770         * stdlib/Makefile: Add rules to build and run bug-getcontext.
24771
24772 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24773
24774         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
24775         instructions into .machine "z9-109".
24776         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
24777         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
24778
24779 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24780
24781         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
24782         between environment variables and auxiliary vector.
24783
24784 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
24785
24786         * Makefile: Add rules to build linkobj/libc.so.
24787         * include/libc-symbols.h: Define libc_hidden_nolink.
24788         * include/rpc/auth.h: Mark functions which are to be hidden.
24789         * include/rpc/auth_des.h: Likewise.
24790         * include/rpc/auth_unix.h: Likewise.
24791         * include/rpc/clnt.h: Likewise.
24792         * include/rpc/des_crypt.h: Likewise.
24793         * include/rpc/key_prot.h: Likewise.
24794         * include/rpc/pmap_clnt.h: Likewise.
24795         * include/rpc/pmap_prot.h: Likewise.
24796         * include/rpc/pmap_rmt.h: Likewise.
24797         * include/rpc/rpc_msg.h: Likewise.
24798         * include/rpc/svc.h: Likewise.
24799         * include/rpc/svc_auth.h: Likewise.
24800         * include/rpc/xdr.h: Likewise.
24801         * nis/Makefile: Link all DSOs against linkobj/libc.so.
24802         * nss/Makefile: Likewise.
24803         * sunrpc/Makefile: Don't install headers.  Build library with normal
24804         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
24805         * sunrpc/auth_des.c: Hide exported symbols by default, export some
24806         for the compat linking library.  Remove use of INTDEF/INTUSE.
24807         * sunrpc/auth_none.c: Likewise.
24808         * sunrpc/auth_unix.c: Likewise.
24809         * sunrpc/authdes_prot.c: Likewise.
24810         * sunrpc/authuxprot.c: Likewise.
24811         * sunrpc/clnt_gen.c: Likewise.
24812         * sunrpc/clnt_perr.c: Likewise.
24813         * sunrpc/clnt_raw.c: Likewise.
24814         * sunrpc/clnt_simp.c: Likewise.
24815         * sunrpc/clnt_tcp.c: Likewise.
24816         * sunrpc/clnt_udp.c: Likewise.
24817         * sunrpc/clnt_unix.c: Likewise.
24818         * sunrpc/des_crypt.c: Likewise.
24819         * sunrpc/des_soft.c: Likewise.
24820         * sunrpc/get_myaddr.c: Likewise.
24821         * sunrpc/key_call.c: Likewise.
24822         * sunrpc/key_prot.c: Likewise.
24823         * sunrpc/netname.c: Likewise.
24824         * sunrpc/pm_getmaps.c: Likewise.
24825         * sunrpc/pm_getport.c: Likewise.
24826         * sunrpc/pmap_clnt.c: Likewise.
24827         * sunrpc/pmap_prot.c: Likewise.
24828         * sunrpc/pmap_prot2.c: Likewise.
24829         * sunrpc/pmap_rmt.c: Likewise.
24830         * sunrpc/publickey.c: Likewise.
24831         * sunrpc/rpc_cmsg.c: Likewise.
24832         * sunrpc/rpc_common.c: Likewise.
24833         * sunrpc/rpc_dtable.c: Likewise.
24834         * sunrpc/rpc_prot.c: Likewise.
24835         * sunrpc/rpc_thread.c: Likewise.
24836         * sunrpc/rtime.c: Likewise.
24837         * sunrpc/svc.c: Likewise.
24838         * sunrpc/svc_auth.c: Likewise.
24839         * sunrpc/svc_authux.c: Likewise.
24840         * sunrpc/svc_raw.c: Likewise.
24841         * sunrpc/svc_run.c: Likewise.
24842         * sunrpc/svc_simple.c: Likewise.
24843         * sunrpc/svc_tcp.c: Likewise.
24844         * sunrpc/svc_udp.c: Likewise.
24845         * sunrpc/svc_unix.c: Likewise.
24846         * sunrpc/svcauth_des.c: Likewise.
24847         * sunrpc/xcrypt.c: Likewise.
24848         * sunrpc/xdr.c: Likewise.
24849         * sunrpc/xdr_array.c: Likewise.
24850         * sunrpc/xdr_float.c: Likewise.
24851         * sunrpc/xdr_intXX_t.c: Likewise.
24852         * sunrpc/xdr_mem.c: Likewise.
24853         * sunrpc/xdr_rec.c: Likewise.
24854         * sunrpc/xdr_ref.c: Likewise.
24855         * sunrpc/xdr_sizeof.c: Likewise.
24856         * sunrpc/xdr_stdio.c: Likewise.
24857
24858 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
24859
24860         [BZ #12650]
24861         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
24862         * sysdeps/ia64/dl-tls.h: Likewise.
24863         * sysdeps/powerpc/dl-tls.h: Likewise.
24864         * sysdeps/s390/dl-tls.h: Likewise.
24865         * sysdeps/sh/dl-tls.h: Likewise.
24866         * sysdeps/sparc/dl-tls.h: Likewise.
24867         * sysdeps/x86_64/dl-tls.h: Likewise.
24868         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
24869
24870 2011-03-14  Andreas Schwab  <schwab@redhat.com>
24871
24872         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
24873         rpath element also skip the following colon.
24874         (expand_dynamic_string_token): Add is_path parameter and pass
24875         down to DL_DST_REQUIRED and _dl_dst_substitute.
24876         (decompose_rpath): Call expand_dynamic_string_token with
24877         non-zero is_path.  Ignore empty rpaths.
24878         (_dl_map_object_from_fd): Call expand_dynamic_string_token
24879         with zero is_path.
24880
24881 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
24882
24883         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
24884         Make cancelable.
24885
24886 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
24887
24888         [BZ #12655]
24889         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
24890         Patch by Filipe David Manana <fdmanana@apache.org>.
24891
24892 2011-04-07  Andreas Schwab  <schwab@redhat.com>
24893
24894         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
24895         Maintain aligned stack.
24896         (CHECK_RSP): Remove unused macro.
24897
24898 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
24899
24900         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
24901         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
24902
24903 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
24904
24905         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
24906
24907         * include/features.h: Mention __USE_XOPEN2K8 in comment.
24908
24909 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
24910
24911         [BZ #12518]
24912         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
24913         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
24914         * sysdeps/x86_64/memmove.c: New file.
24915         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
24916         (memcpy): Renamed to ...
24917         (__new_memcpy): This.
24918         (memcpy): Provide GLIBC_2_14 memcpy.
24919         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
24920         (memcpy): Provide GLIBC_2_2_5 memcpy.
24921
24922 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24923
24924         [BZ #12631]
24925         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
24926
24927 2011-03-30  Andreas Schwab  <schwab@redhat.com>
24928
24929         * misc/syncfs.c: New file.
24930         * misc/Makefile (routines): Add syncfs.
24931         * posix/unistd.h: Declare syncfs.
24932         * sysdeps/unix/syscalls.list: Add syncfs.
24933
24934 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24935
24936         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
24937         open_by_handle_at.
24938         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
24939         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24940         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24941         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24942         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24943         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
24944         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24945
24946 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24947
24948         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
24949         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24950         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
24951         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24952         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24953         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24954         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24955
24956         * io/Makefile: Compile fallocate.c, fallocate64.c, and
24957         sync_file_range.c with -fexceptions.
24958         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
24959         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
24960         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24961         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24962         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
24963         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
24964         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
24965         sync_file_range as cancellation point
24966         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
24967         now a wrapper around __call_sync_file_range with cancellation handling.
24968         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
24969         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
24970         function name to __call_sync_file_range.
24971         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
24972         Add call_sync_file_range.
24973
24974 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24975
24976         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24977         bits/timex.h.
24978
24979 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24980
24981         * iconv/iconv.h: Fix typo in comment.
24982         * io/fcntl.h: Likewise.
24983         * libio/stdio.h: Likewise.
24984         * posix/spawn.h: Likewise.
24985         * posix/unistd.h: Likewise.
24986         * stdlib/stdlib.h: Likewise.
24987         * time/time.h: Likewise.
24988         * wcsmbs/wchar.h: Likewise.
24989
24990         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
24991         open_by_handle): Add.
24992         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
24993         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
24994         Augment a few comments.
24995         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24996         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24997         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24998         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24999         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
25000         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
25001         open_by_handle.
25002
25003         * io/fcntl.h (AT_EMPTY_PATH): Define.
25004
25005 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
25006
25007         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
25008         * sysdeps/unix/sysv/linux/bits/time.h: New file.
25009         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
25010         to...
25011         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
25012         * Versions.def: Add GLIBC_2.14.
25013         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
25014         Export.
25015
25016 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
25017
25018         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
25019         round counter.
25020         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
25021
25022 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
25023
25024         [BZ #12597]
25025         * string/test-strncmp.c (do_page_test): New function.
25026         (check2): Likewise.
25027         (test_main): Call check2.
25028         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
25029
25030 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
25031
25032         [BZ #12587]
25033         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
25034         Handle cache information in CPU leaf 4.
25035         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
25036
25037 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
25038
25039         [BZ #12583]
25040         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
25041         character representation.
25042         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
25043
25044 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
25045
25046         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
25047         END(__isnan) to END(__isnanf) to match function entry point/label
25048         EALIGN(__isnanf,...).
25049
25050 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
25051
25052         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
25053
25054 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
25055
25056         [BZ #12510]
25057         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
25058         copy from the symbol referenced in the relocation to initialize the
25059         used variable.
25060         Patch by Piotr Bury <pbury@goahead.com>.
25061         * elf/Makefile: Add rules to build and tst-unique3.
25062         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
25063         * elf/tst-unique3.cc: New file.
25064         * elf/tst-unique3.h: New file.
25065         * elf/tst-unique3lib.cc: New file.
25066         * elf/tst-unique3lib2.cc: New file.
25067
25068         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
25069
25070 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
25071
25072         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
25073         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
25074         to _start.
25075
25076 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
25077
25078         * elf/dl-load.c (_dl_map_object): If we are looking for the first
25079         to-be-loaded object along a path to loader is ld.so.
25080
25081 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
25082             Ulrich Drepper  <drepper@gmail.com>
25083
25084         * sysdeps/x86_64/memset.S: After aligning destination, code
25085         branches to different locations depending on the value of
25086         misalignment, when multiarch is enabled. Fix this.
25087
25088 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
25089
25090         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
25091         Set _x86_64_preferred_memory_instruction for AMD processsors.
25092         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25093         Set bit_Prefer_SSE_for_memop for AMD processors.
25094
25095 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
25096
25097         * libio/fmemopen.c (fmemopen): Optimize a bit.
25098
25099 2011-03-03  Andreas Schwab  <schwab@redhat.com>
25100
25101         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
25102
25103 2011-03-03  Roland McGrath  <roland@redhat.com>
25104
25105         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
25106
25107 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
25108
25109         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
25110         __bzero_ultra1 instead of __memset_ultra1.
25111
25112 2011-02-23  Andreas Schwab  <schwab@redhat.com>
25113             Ulrich Drepper  <drepper@gmail.com>
25114
25115         [BZ #12509]
25116         * include/link.h (struct link_map): Add l_orig_initfini.
25117         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
25118         returning unsuccessfully.
25119         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
25120         close of a file loaded at startup, restore the original l_initfini
25121         list.
25122         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
25123         list, store the pointer.
25124         * elf/Makefile ($(objpfx)noload-mem): New rule.
25125         (noload-ENV): Define.
25126         (tests): Add $(objpfx)noload-mem.
25127         * elf/noload.c: Include <memcheck.h>.
25128         (main): Call mtrace.  Close all opened handles.
25129
25130 2011-02-17  Andreas Schwab  <schwab@redhat.com>
25131
25132         [BZ #12454]
25133         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
25134         dependencies are missing.
25135
25136 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25137
25138         Fix __if_freereq crash: Unlike the generic version which uses free,
25139         Hurd needs munmap.
25140         * sysdeps/mach/hurd/ifreq.h: New file.
25141
25142 2011-01-27  Petr Baudis  <pasky@suse.cz>
25143             Ulrich Drepper  <drepper@gmail.com>
25144
25145         [BZ 12445]#
25146         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
25147         to extend_alloca().
25148         * stdio-common/bug23.c: New file.
25149         * stdio-common/Makefile (tests): Add bug23.
25150
25151 2010-09-28  Andreas Schwab  <schwab@redhat.com>
25152             Ulrich Drepper  <drepper@gmail.com>
25153
25154         [BZ #12489]
25155         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
25156         before performing relro protection.  At old place add assertion
25157         to make sure nothing changed.
25158
25159 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
25160             Glauber de Oliveira Costa  <glommer@gmail.com>
25161
25162         * elf/elf.h: Add new ARM TLS relocs.
25163
25164 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
25165
25166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
25167         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
25168         cast from r3.
25169         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
25170         'tests' variable.
25171         * sysdeps/wordsize-64/tst-writev.c: New file.
25172
25173 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
25174
25175         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
25176         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
25177         insns in _dl_start to prevent a TOC reference before relocs are
25178         resolved.
25179
25180 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
25181
25182         [BZ #12469]
25183         * Makeconfig: Remove RANLIB definition.
25184         * Makerules: Don't use RANLIB.
25185         * aclocal.m4: Remove ranlib test.
25186         * configure.in: No need to check for ranlib.
25187         * elf/rtld-Rules: Don't use RANLIB.
25188
25189 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25190
25191         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
25192         protection macro.
25193         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
25194         inclusion protection macro.
25195
25196         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
25197         SIGRTMIN and SIGRTMAX and print information in that case only when
25198         SIGRTMIN is defined.
25199
25200 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
25201
25202         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
25203         arginfo fn returning -1.
25204
25205         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
25206         and thousands string is zero terminated.
25207
25208 2011-02-03  Andreas Schwab  <schwab@redhat.com>
25209
25210         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
25211         sysdeps/unix/sysv/linux/bits/socket.h.
25212
25213 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25214
25215         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
25216         (__CPU_COUNT): Remove old macros.
25217         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
25218         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
25219         (__CPU_ALLOC, __CPU_FREE): Add macros.
25220         (__sched_cpualloc, __sched_cpufree): Add declarations.
25221
25222 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
25223
25224         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
25225         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
25226         * nscd/aicache.c (addhstaiX): Return timeout of added value.
25227         (readdhstai): Return value of addhstaiX call.
25228         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
25229         (addgrbyX): Return value returned by cache_addgr.
25230         (readdgrbyname): Return value returned by addgrbyX.
25231         (readdgrbygid): Likewise.
25232         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
25233         (addpwbyX): Return value returned by cache_addpw.
25234         (readdpwbyname): Return value returned by addhstbyX.
25235         (readdpwbyuid): Likewise.
25236         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
25237         (addservbyX): Return value returned by cache_addserv.
25238         (readdservbyname): Return value returned by addservbyX:
25239         (readdservbyport): Likewise.
25240         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
25241         (addhstbyX): Return value returned by cache_addhst.
25242         (readdhstbyname): Return value returned by addhstbyX.
25243         (readdhstbyaddr): Likewise.
25244         (readdhstbynamev6): Likewise.
25245         (readdhstbyaddrv6): Likewise.
25246         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
25247         (readdinitgroups): Return value returned by addinitgroupsX.
25248         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
25249         (prune_cache): Keep track of timeout value of re-added entries.
25250         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
25251         * nscd/nscd.h: Adjust prototypes of readd* functions.
25252
25253 2011-02-04  Roland McGrath  <roland@redhat.com>
25254
25255         * nis/nis_server.c (nis_servstate): Use the right name for 0.
25256         (nis_stats): Likewise.
25257         * nis/nis_modify.c (nis_modify): Likewise.
25258         * nis/nis_remove.c (nis_remove): Likewise.
25259         * nis/nis_add.c (nis_add): Likewise.
25260
25261         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
25262
25263         * posix/fnmatch_loop.c: Add some consts.
25264
25265         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
25266
25267 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
25268
25269         [BZ #12460]
25270         * config.make.in (config-cflags-novzeroupper): Define.
25271         * configure.in: Substitute libc_cv_cc_novzeroupper.
25272         * elf/Makefile (AVX-CFLAGS): Define.
25273         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
25274         (CFLAGS-tst-auditmod4a.c): Likewise.
25275         (CFLAGS-tst-auditmod4b.c): Likewise.
25276         (CFLAGS-tst-auditmod6b.c): Likewise.
25277         (CFLAGS-tst-auditmod6c.c): Likewise.
25278         (CFLAGS-tst-auditmod7b.c): Likewise.
25279         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
25280
25281 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
25282
25283         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
25284         function to the callback.
25285         Patch partly by Jiri Olsa <jolsa@redhat.com>.
25286
25287 2011-02-02  Andreas Schwab  <schwab@redhat.com>
25288
25289         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
25290         of errno.
25291
25292 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
25293
25294         [BZ #11724]
25295         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
25296         of constructors.
25297         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
25298         of destructors.
25299         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
25300
25301         [BZ #11724]
25302         * elf/Makefile: Add rules to build and run new test.
25303         * elf/tst-initorder.c: New file.
25304         * elf/tst-initorder.exp: New file.
25305         * elf/tst-initordera1.c: New file.
25306         * elf/tst-initordera2.c: New file.
25307         * elf/tst-initordera3.c: New file.
25308         * elf/tst-initordera4.c: New file.
25309         * elf/tst-initorderb1.c: New file.
25310         * elf/tst-initorderb2.c: New file.
25311         * elf/tst-order-a1.c: New file.
25312         * elf/tst-order-a2.c: New file.
25313         * elf/tst-order-a3.c: New file.
25314         * elf/tst-order-a4.c: New file.
25315         * elf/tst-order-b1.c: New file.
25316         * elf/tst-order-b2.c: New file.
25317         * elf/tst-order-main.c: New file.
25318         New test case by George Gensure <werkt0@gmail.com>.
25319
25320 2010-10-01  Andreas Schwab  <schwab@redhat.com>
25321
25322         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25323         decoding ACE if AI_CANONIDN.
25324
25325 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
25326
25327         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
25328
25329 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
25330
25331         * version.h (RELEASE): Bump for 2.13 release.
25332         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
25333
25334         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
25335
25336         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
25337         MADV_NOHUGEPAGE.
25338         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
25339         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
25340         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
25341         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
25342         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
25343         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
25344
25345         * posix/getconf.c: Update copyright year.
25346         * catgets/gencat.c: Likewise.
25347         * csu/version.c: Likewise.
25348         * debug/catchsegv.sh: Likewise.
25349         * debug/xtrace.sh: Likewise.
25350         * elf/ldconfig.c: Likewise.
25351         * elf/ldd.bash.in: Likewise.
25352         * elf/sprof.c (print_version): Likewise.
25353         * iconv/iconv_prog.c: Likewise.
25354         * iconv/iconvconfig.c: Likewise.
25355         * locale/programs/locale.c: Likewise.
25356         * locale/programs/localedef.c: Likewise.
25357         * malloc/memusage.sh: Likewise.
25358         * malloc/mtrace.pl: Likewise.
25359         * nscd/nscd.c (print_version): Likewise.
25360         * nss/getent.c: Likewise.
25361
25362         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
25363         PF_CAIF, and PF_ALG.
25364         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25365
25366 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
25367
25368         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
25369         (modules-names): Use them.
25370         (ifunc-test-modules, ifunc-pie-tests): Define.
25371         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
25372         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
25373         (test-extras): Likewise.
25374         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
25375         $(compile-command.c).
25376         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
25377         (all-built-dso): Define.
25378         (check-textrel.out, check-execstack.out): Depend on it.
25379
25380         * configure.in: Don't override --enable-multi-arch.
25381
25382 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
25383
25384         [BZ #6812]
25385         * nscd/hstcache.c (tryagain): Define.
25386         (cache_addhst): Return tryagain not notfound for temporary errors.
25387         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
25388         failed.
25389
25390 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
25391
25392         [BZ #10563]
25393         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
25394         to make the syscall.
25395         * sysdeps/unix/sysv/linux/setgroups.c: New file.
25396
25397         [BZ #12378]
25398         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
25399         and fall back to matching as normal character if the string ends before
25400         the matching ']' is found.  This is what POSIX requires.
25401         * posix/testfnm.c: Adjust test result.
25402         * posix/globtest.sh: Adjust test result.  Add new test.
25403         * posix/tst-fnmatch.input: Likewise.
25404         * posix/tst-fnmatch2.c: Add new test.
25405
25406 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
25407
25408         * elf/Makefile (check-execstack): Revert last change.  Depend on
25409         check-execstack.h.
25410         (check-execstack.h): New target.
25411         (generated): Add check-execstack.h.
25412         * elf/check-execstack.c: Include "check-execstack.h".
25413         (main): Revert last change.
25414         (handle_file): Return zero if GNU_STACK is absent and
25415         DEFAULT_STACK_PERMS doesn't include PF_X.
25416
25417 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
25418
25419         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
25420         in child fails because the descriptor is already closed.
25421         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
25422         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
25423         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
25424
25425         [BZ #12397]
25426         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
25427         syscall.
25428
25429         [BZ #10484]
25430         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
25431         temporary buffer used to handle multi lookups locally.
25432         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
25433
25434 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
25435
25436         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
25437         loader is ld.so.
25438
25439 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
25440
25441         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
25442         alignment for SSE2.
25443
25444 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
25445
25446         [BZ #12394]
25447         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
25448         characters.  When rounding increased number of integer digits recompute
25449         number of groups.
25450         * stdio-common/tst-grouping.c: New file.
25451         * stdio-common/Makefile: Add rules to build and run tst-grouping.
25452
25453 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
25454
25455         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
25456         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
25457
25458         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
25459         void.
25460         * bits/select.h: Likewise.
25461
25462 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
25463
25464         * po/ja.po: Update from translation team.
25465
25466 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
25467
25468         [BZ #11155]
25469         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
25470         implementation just like for lxstat, fxstatat, et al.
25471
25472 2010-12-27  Jim Meyering  <meyering@redhat.com>
25473
25474         [BZ #12348]
25475         * posix/regexec.c (build_trtable): Return failure indication upon
25476         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25477
25478 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
25479
25480         [BZ #12201]
25481         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
25482         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
25483         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
25484         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
25485
25486         [BZ #12207]
25487         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
25488
25489         [BZ #12204]
25490         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
25491         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
25492
25493 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
25494
25495         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
25496         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
25497         script has SORT_BY_INIT_PRIORITY.
25498         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
25499         NO_CTORS_DTORS_SECTIONS is defined.
25500         * elf/soinit.c: Likewise.
25501         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
25502         NO_CTORS_DTORS_SECTIONS is defined.
25503         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
25504         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
25505         * sysdeps/sh/init-first.c: Likewise.
25506         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
25507
25508 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
25509
25510         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
25511         always use the slow path.
25512
25513 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
25514
25515         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
25516         similar rule which adds the sysdep directories to the header search in
25517         order to pick up the correct platform stackinfo.h.
25518         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
25519         perform test if it is, otherwise return successfully without testing.
25520         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
25521         DEFAULT_STACK_PERMS define in stackinfo.h.
25522         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
25523         defined in stackinfo.h.
25524         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
25525         DEFAULT_STACK_PERMS defined in stackinfo.h.
25526         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
25527         * sysdeps/ia64/stackinfo.h: Likewise.
25528         * sysdeps/s390/stackinfo.h: Likewise.
25529         * sysdeps/sh/stackinfo.h: Likewise.
25530         * sysdeps/sparc/stackinfo.h: Likewise.
25531         * sysdeps/x86_64/stackinfo.h: Likewise.
25532         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
25533         PF_X for powerpc64.  Retain PF_X for powerpc32.
25534
25535 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
25536
25537         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
25538         accurately.
25539         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
25540         GETDENTS_64BIT_ALIGNED.
25541
25542 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
25543
25544         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
25545
25546 2010-12-10  Andreas Schwab  <schwab@redhat.com>
25547
25548         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
25549         _GNU_SOURCE.
25550
25551         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
25552         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
25553         Remove __restrict.
25554         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
25555         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
25556
25557 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
25558
25559         [BZ #11655]
25560         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
25561         are initialized.
25562
25563 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
25564
25565         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
25566
25567 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
25568
25569         * po/it.po: Update from translation team.
25570
25571 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
25572
25573         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
25574         unused codes.
25575
25576 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
25577
25578         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
25579
25580 2010-11-24  Andreas Schwab  <schwab@redhat.com>
25581
25582         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
25583         specially.
25584         (gaih_getanswer_slice): Likewise.
25585
25586 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
25587
25588         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
25589
25590 2010-05-31  Petr Baudis  <pasky@suse.cz>
25591
25592         [BZ #11149]
25593         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
25594         silently even in the chroot mode.
25595
25596 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
25597
25598         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
25599         last patch a bit.  Pretty printing
25600
25601 2010-05-31  Petr Baudis <pasky@suse.cz>
25602
25603         [BZ #10085]
25604         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
25605         initialization of skip_initgroups_dyn.
25606
25607 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
25608
25609         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
25610         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
25611
25612 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
25613
25614         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
25615
25616 2010-11-11  Andreas Schwab  <schwab@redhat.com>
25617
25618         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
25619         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
25620         (tst-fnmatch-ENV): Set MALLOC_TRACE.
25621         ($(objpfx)tst-fnmatch-mem): New rule.
25622         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
25623         * posix/tst-fnmatch.c (main): Call mtrace.
25624
25625 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
25626
25627         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25628         Support Intel processor model 6 and model 0x2c.
25629
25630 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
25631
25632         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
25633           signed comparison.
25634
25635 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
25636
25637         [BZ #12205]
25638         * string/test-strncasecmp.c (check_result): New function.
25639         (do_one_test): Use it.
25640         (check1): New function.
25641         (test_main): Use it.
25642         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
25643         Support strcasecmp and strncasecmp.
25644
25645 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
25646
25647         [BZ #12194]
25648         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
25649         * sysdeps/x86_64/bits/byteswap.h: Likewise.
25650
25651 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25652
25653         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
25654         IFUNC support.
25655         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25656         memset-x86-64.
25657         * sysdeps/x86_64/multiarch/bzero.S: New file.
25658         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
25659         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
25660         * sysdeps/x86_64/multiarch/memset.S: New file.
25661         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
25662         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25663         Set bit_Prefer_SSE_for_memop for Intel processors.
25664         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
25665         Define.
25666         (index_Prefer_SSE_for_memop): Define.
25667         (HAS_PREFER_SSE_FOR_MEMOP): Define.
25668
25669 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
25670
25671         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
25672         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
25673
25674 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
25675
25676         [BZ #12191]
25677         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25678         (__x86_64_raw_data_cache_size_half): Likewise.
25679         (__x86_64_raw_shared_cache_size): Likewise.
25680         (__x86_64_raw_shared_cache_size_half): Likewise.
25681
25682         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25683         (__x86_64_raw_data_cache_size_half): Likewise.
25684         (__x86_64_raw_shared_cache_size): Likewise.
25685         (__x86_64_raw_shared_cache_size_half): Likewise.
25686         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
25687         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
25688         and __x86_64_raw_shared_cache_size_half.  Round
25689         __x86_64_data_cache_size_half, __x86_64_data_cache_size
25690         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
25691         to multiple of 256 bytes.
25692
25693 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
25694
25695         [BZ #12167]
25696         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
25697         of inacessible symlinks.  Verify result of symlink before returning it.
25698         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25699         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
25700
25701 2010-10-28  Erich Ritz  <erichritz@gmail.com>
25702
25703         * math/math.h (isinf): Fix typo in comment.
25704
25705 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
25706
25707         * po/da.po: Update from translation team.
25708
25709 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
25710
25711         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
25712         is added to the list.
25713
25714 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25715             Ulrich Drepper  <drepper@gmail.com>
25716
25717         * elf/dl-object.c (_dl_new_object): Don't append the new object to
25718         the global list here.  Move code to...
25719         (_dl_add_to_namespace_list): ...here.  New function.
25720         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
25721         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
25722         * elf/dl-load.c (lose): Don't remove the element from the list.
25723         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
25724         (_dl_map_object): Likewise.
25725
25726 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
25727
25728         [BZ #12159]
25729         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
25730         into all bytes of SSE register.
25731         Patch by Richard Li <richardpku@gmail.com>.
25732
25733 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
25734
25735         [BZ #12140]
25736         * malloc/malloc.c (_int_free): Fill correct number of bytes when
25737         perturbing.
25738
25739 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
25740
25741         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
25742         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
25743         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
25744         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
25745         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
25746         submachine.
25747         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
25748
25749 2010-10-22  Andreas Schwab  <schwab@redhat.com>
25750
25751         * include/dlfcn.h (__RTLD_SECURE): Define.
25752         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
25753         mode & __RTLD_SECURE instead.
25754         (open_path): Rename preloaded parameter to secure.
25755         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
25756         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
25757         * elf/dl-deps.c (openaux): Likewise.
25758         * elf/rtld.c (struct map_args): Remove is_preloaded.
25759         (map_doit): Don't use it.
25760         (dl_main): Likewise.
25761         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
25762         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
25763
25764 2010-09-09  Andreas Schwab  <schwab@redhat.com>
25765
25766         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
25767         (sysd-rules-targets): Remove duplicates.
25768         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
25769         rtld-%.$o dependency.
25770
25771 2010-10-18  Andreas Schwab  <schwab@redhat.com>
25772
25773         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
25774         _dl_map_object do it.
25775
25776 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
25777
25778         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
25779         fast fma builtins, define the macros in the C99 standard.
25780         (FP_FAST_FMAF): Likewise.
25781         (FP_FAST_FMAL): Likewise.
25782         * sysdeps/x86_64/bits/mathdef.h: Likewise.
25783
25784         * bits/mathdef.h: Update copyright year.
25785         * sysdeps/powerpc/bits/mathdef.h: Likewise.
25786
25787 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
25788
25789         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
25790         builtins, define the macros in the C99 standard.
25791         (FP_FAST_FMAF): Likewise.
25792         (FP_FAST_FMAL): Likewise.
25793         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
25794         multiply/add.
25795         (FP_FAST_FMAF): Likewise.
25796
25797 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
25798
25799         [BZ #3268]
25800         * math/libm-test.inc (fma_test): Some new testcases.
25801         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
25802         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
25803         y and infinite z.  Do multiplication by C already in long double.
25804         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
25805         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
25806         y and infinite z.  Do bitwise or of inexact bit into u.d.
25807         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
25808         * sysdeps/i386/fpu/s_fmaf.S: Removed.
25809         * sysdeps/i386/fpu/s_fma.S: Removed.
25810         * sysdeps/i386/fpu/s_fmal.S: Removed.
25811
25812 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
25813
25814         [BZ #3268]
25815         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
25816         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
25817         computation is not scheduled after fetestexcept.  Fix value
25818         of minimum denormal long double.
25819
25820 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
25821
25822         [BZ #3268]
25823         * math/libm-test.inc (fma_test): Add some more tests.
25824         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
25825         correctly.
25826
25827 2010-10-15  Andreas Schwab  <schwab@redhat.com>
25828
25829         * scripts/data/localplt-s390-linux-gnu.data: New file.
25830         * scripts/data/localplt-s390x-linux-gnu.data: New file.
25831
25832 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
25833
25834         [BZ #3268]
25835         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
25836         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
25837         instead of dbl-64.
25838         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
25839         inlines.
25840         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
25841         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
25842         if one of x and y is very large and the other is subnormal.
25843         * sysdeps/s390/fpu/s_fmaf.c: New file.
25844         * sysdeps/s390/fpu/s_fma.c: New file.
25845         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
25846         * sysdeps/powerpc/fpu/s_fma.S: New file.
25847         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
25848         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
25849         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
25850
25851 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
25852
25853         [BZ #3268]
25854         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
25855         fma tests.
25856         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
25857         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
25858         * sysdeps/i386/i686/multiarch/s_fma.c: Include
25859         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
25860         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
25861         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
25862         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
25863
25864 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
25865
25866         [BZ #12078]
25867         * posix/regcomp.c (parse_branch): One more memory leak plugged.
25868         * posix/bug-regex31.input: Add test case.
25869
25870 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25871
25872         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
25873         * posix/bug-regex31.input: New file.
25874
25875         [BZ #12078]
25876         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
25877         (parse_sub_exp): Fix last change, use postorder.
25878
25879         * posix/bug-regex31.c: New file.
25880         * posix/Makefile: Add rules to build and run bug-regex31.
25881
25882         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
25883
25884         [BZ #12078]
25885         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
25886
25887         [BZ #12108]
25888         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
25889         to have entries in sys_siglist.
25890
25891         [BZ #12093]
25892         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
25893         be NULL.
25894
25895 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
25896
25897         [BZ #3268]
25898         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
25899         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
25900         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
25901         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
25902         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
25903         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
25904         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
25905         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
25906         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
25907         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
25908         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
25909         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
25910         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25911         * math/ftestexcept.c (fetestexcept): Likewise.
25912         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
25913         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
25914         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
25915         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
25916         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
25917         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
25918         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
25919
25920 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25921
25922         [BZ #12107]
25923         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
25924         newline.
25925
25926 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
25927
25928         * string/bug-strstr1.c: New file.
25929         * string/Makefile: Add rules to build and run bug-strstr1.
25930
25931 2010-10-05  Eric Blake  <eblake@redhat.com>
25932
25933         [BZ #12092]
25934         * string/str-two-way.h (two_way_long_needle): Always clear memory
25935         when skipping input due to the shift table.
25936
25937 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
25938
25939         [BZ #12005]
25940         * malloc/mcheck.c: Handle large requests.
25941
25942         [BZ #12077]
25943         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
25944         for strncmp and strncasecmp.
25945         * string/stratcliff.c: Add tests for strcmp and strncmp.
25946         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
25947
25948 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25949
25950         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
25951         __set_fpscr.
25952
25953 2010-09-30  Andreas Jaeger  <aj@suse.de>
25954
25955         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
25956         (CGROUP_SUPER_MAGIC): Define.
25957         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25958         Handle btrfs and cgroup file systems.
25959         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
25960         Likewise.
25961
25962 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
25963
25964         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
25965         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
25966
25967 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25968
25969         [BZ #12067]
25970         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
25971         trying to locate the ELF header.
25972
25973 2010-09-27  Andreas Schwab  <schwab@redhat.com>
25974
25975         [BZ #11611]
25976         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
25977         Mask out sign-bit copies when constructing f_fsid.
25978
25979 2010-09-24  Petr Baudis <pasky@suse.cz>
25980
25981         * debug/stack_chk_fail_local.c: Add missing licence exception.
25982         * debug/warning-nop.c: Likewise.
25983
25984 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
25985
25986         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
25987         implementing getdents64 using getdents syscall, set d_type if
25988         __ASSUME_GETDENTS32_D_TYPE.
25989
25990 2010-09-16  Andreas Schwab  <schwab@redhat.com>
25991
25992         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
25993         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
25994
25995 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
25996
25997         [BZ #12037]
25998         * posix/unistd.h: Undo change of feature selection for ftruncate from
25999         2010-01-11.
26000
26001 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
26002
26003         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
26004         detection.
26005
26006 2010-09-20  Andreas Schwab  <schwab@redhat.com>
26007
26008         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
26009         fanotify_mark.
26010         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
26011
26012 2010-09-14  Andreas Schwab  <schwab@redhat.com>
26013
26014         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
26015         variables after CHECK_SP call.
26016         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
26017
26018 2010-09-13  Andreas Schwab  <schwab@redhat.com>
26019             Ulrich Drepper  <drepper@redhat.com>
26020
26021         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
26022         re-relocationg ld.so.
26023         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
26024         _dl_init_paths call.
26025         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
26026         here anymore.
26027
26028 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
26029
26030         * resolv/res_init.c (__res_vinit): Count the default server we added.
26031
26032 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
26033             Ulrich Drepper  <drepper@redhat.com>
26034
26035         [BZ #11968]
26036         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
26037         (____longjmp_chk): Use %ebx for saving value across system call.
26038         Add unwind info.
26039
26040 2010-09-06  Andreas Schwab  <schwab@redhat.com>
26041
26042         * manual/Makefile: Don't mix pattern rules with normal rules.
26043
26044 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
26045
26046         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
26047         operation.
26048         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
26049         * libio/iofopncook.c (_IO_cookie_init): Likewise.
26050         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
26051         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
26052         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
26053         Likewise.
26054
26055 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
26056
26057         [BZ #11979]
26058         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
26059         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
26060
26061 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
26062
26063         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
26064         * sysdeps/x86_64/addmul_1.S: Likewise.
26065         * sysdeps/x86_64/lshift.S: Likewise.
26066         * sysdeps/x86_64/mul_1.S: Likewise.
26067         * sysdeps/x86_64/rshift.S: Likewise.
26068         * sysdeps/x86_64/sub_n.S: Likewise.
26069         * sysdeps/x86_64/submul_1.S: Likewise.
26070
26071 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26072
26073         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
26074         Define __sched_param instead of SCHED_* and sched_param when
26075         <bits/sched.h> is included with __need_schedparam defined.
26076         * bits/sched.h [__need_schedparam]
26077         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
26078         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
26079         (__defined_schedparam): Define to 1.
26080         (__sched_param): New structure, identical to sched_param.
26081         (__need_schedparam): Undefine.
26082
26083 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
26084
26085         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
26086         (epoll_create1): Declare.
26087
26088         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
26089
26090 2010-08-31  Andreas Schwab  <schwab@redhat.com>
26091
26092         [BZ #7066]
26093         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
26094         shifting retval into place.
26095
26096 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
26097
26098         * nis/rpcsvc/nis.h: Update copyright notice.
26099         * nis/rpcsvc/nis.x: Likewise.
26100         * nis/rpcsvc/nis_callback.h: Likewise.
26101         * nis/rpcsvc/nis_callback.x: Likewise.
26102         * nis/rpcsvc/nis_object.x: Likewise.
26103         * nis/rpcsvc/nis_tags.h: Likewise.
26104         * nis/rpcsvc/yp.h: Likewise.
26105         * nis/rpcsvc/yp.x: Likewise.
26106         * nis/rpcsvc/ypupd.h: Likewise.
26107         * nis/yp_xdr.c: Likewise.
26108         * nis/ypupdate_xdr.c: Likewise.
26109
26110         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
26111         mainly the body of pmap_getport.  Add parameters to specify timeouts.
26112         (pmap_getport): Use __libc_rpc_getport.
26113         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
26114         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
26115         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
26116
26117 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
26118
26119         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
26120         fanotify_mark.
26121
26122 2010-08-27  Roland McGrath  <roland@redhat.com>
26123
26124         * sysdeps/i386/i686/multiarch/Makefile
26125         (CFLAGS-varshift.c): New variable.
26126
26127 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
26128
26129         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
26130         * sysdeps/i386/i686/multiarch/varshift.c: New file.
26131
26132         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
26133
26134         * sysdeps/x86_64/strlen.S: Minimal code improvement.
26135
26136 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26137
26138         * sysdeps/x86_64/strlen.S: Unroll the loop.
26139         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26140         strlen-sse2 strlen-sse2-bsf.
26141         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
26142         __strlen_no_bsf if bit_Slow_BSF is set.
26143         (__strlen_sse42): Removed.
26144         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
26145         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
26146
26147 2010-08-25  Roland McGrath  <roland@redhat.com>
26148
26149         * sysdeps/x86_64/multiarch/varshift.S: File removed.
26150         * sysdeps/x86_64/multiarch/varshift.c: New file.
26151         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
26152         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
26153         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
26154         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26155
26156 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26157
26158         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26159         strlen-sse2 strlen-sse2-bsf.
26160         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
26161         __strlen_sse2_bsf if bit_Slow_BSF is unset.
26162         (__strlen_sse2): Removed.
26163         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
26164         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
26165         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
26166         bit_Slow_BSF for Atom.
26167         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
26168         (index_Slow_BSF): Define.
26169         (HAS_SLOW_BSF): Define.
26170
26171 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
26172
26173         [BZ #10851]
26174         * resolv/res_init.c (__res_vinit): When no server address at all
26175         is given default to loopback.
26176
26177 2010-08-24  Roland McGrath  <roland@redhat.com>
26178
26179         * configure.in: Remove config-name.h generation.
26180         * configure: Regenerated.
26181         * config-name.in: File removed.
26182         * scripts/config-uname.sh: New file.
26183         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
26184         ($(objdir)config-name.h): New target.
26185
26186         * sunrpc/rpc_parse.h: Avoid nested comment.
26187
26188 2010-08-24  Richard Henderson  <rth@redhat.com>
26189             Ulrich Drepper  <drepper@redhat.com>
26190             H.J. Lu  <hongjiu.lu@intel.com>
26191
26192         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
26193         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
26194         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
26195         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
26196         _mm_alignr_epi8 with _mm_loadu_si128.
26197         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
26198         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
26199         (__m128i_shift_right): Removed.
26200         * sysdeps/i386/i686/multiarch/varshift.h: New file.
26201         * sysdeps/i386/i686/multiarch/varshift.S: New file.
26202         * sysdeps/x86_64/multiarch/varshift.h: New file.
26203         * sysdeps/x86_64/multiarch/varshift.S: New file.
26204
26205 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
26206
26207         * configure.in: Move assembler checks to before sysdep dir checking.
26208
26209 2010-08-20  Petr Baudis  <pasky@suse.cz>
26210
26211         * LICENSES: Sync the sunrpc license.
26212
26213 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
26214
26215         * sunrpc/auth_des.c: Update copyright notice once again.
26216         * sunrpc/auth_none.c: Likewise.
26217         * sunrpc/auth_unix.c: Likewise.
26218         * sunrpc/authdes_prot.c: Likewise.
26219         * sunrpc/authuxprot.c: Likewise.
26220         * sunrpc/bindrsvprt.c: Likewise.
26221         * sunrpc/clnt_gen.c: Likewise.
26222         * sunrpc/clnt_perr.c: Likewise.
26223         * sunrpc/clnt_raw.c: Likewise.
26224         * sunrpc/clnt_simp.c: Likewise.
26225         * sunrpc/clnt_tcp.c: Likewise.
26226         * sunrpc/clnt_udp.c: Likewise.
26227         * sunrpc/clnt_unix.c: Likewise.
26228         * sunrpc/des_crypt.c: Likewise.
26229         * sunrpc/des_soft.c: Likewise.
26230         * sunrpc/get_myaddr.c: Likewise.
26231         * sunrpc/getrpcport.c: Likewise.
26232         * sunrpc/key_call.c: Likewise.
26233         * sunrpc/key_prot.c: Likewise.
26234         * sunrpc/openchild.c: Likewise.
26235         * sunrpc/pm_getmaps.c: Likewise.
26236         * sunrpc/pm_getport.c: Likewise.
26237         * sunrpc/pmap_clnt.c: Likewise.
26238         * sunrpc/pmap_prot.c: Likewise.
26239         * sunrpc/pmap_prot2.c: Likewise.
26240         * sunrpc/pmap_rmt.c: Likewise.
26241         * sunrpc/rpc/auth.h: Likewise.
26242         * sunrpc/rpc/auth_unix.h: Likewise.
26243         * sunrpc/rpc/clnt.h: Likewise.
26244         * sunrpc/rpc/des_crypt.h: Likewise.
26245         * sunrpc/rpc/key_prot.h: Likewise.
26246         * sunrpc/rpc/netdb.h: Likewise.
26247         * sunrpc/rpc/pmap_clnt.h: Likewise.
26248         * sunrpc/rpc/pmap_prot.h: Likewise.
26249         * sunrpc/rpc/pmap_rmt.h: Likewise.
26250         * sunrpc/rpc/rpc.h: Likewise.
26251         * sunrpc/rpc/rpc_des.h: Likewise.
26252         * sunrpc/rpc/rpc_msg.h: Likewise.
26253         * sunrpc/rpc/svc.h: Likewise.
26254         * sunrpc/rpc/svc_auth.h: Likewise.
26255         * sunrpc/rpc/types.h: Likewise.
26256         * sunrpc/rpc/xdr.h: Likewise.
26257         * sunrpc/rpc_clntout.c: Likewise.
26258         * sunrpc/rpc_cmsg.c: Likewise.
26259         * sunrpc/rpc_common.c: Likewise.
26260         * sunrpc/rpc_cout.c: Likewise.
26261         * sunrpc/rpc_dtable.c: Likewise.
26262         * sunrpc/rpc_hout.c: Likewise.
26263         * sunrpc/rpc_main.c: Likewise.
26264         * sunrpc/rpc_parse.c: Likewise.
26265         * sunrpc/rpc_parse.h: Likewise.
26266         * sunrpc/rpc_prot.c: Likewise.
26267         * sunrpc/rpc_sample.c: Likewise.
26268         * sunrpc/rpc_scan.c: Likewise.
26269         * sunrpc/rpc_scan.h: Likewise.
26270         * sunrpc/rpc_svcout.c: Likewise.
26271         * sunrpc/rpc_tblout.c: Likewise.
26272         * sunrpc/rpc_util.c: Likewise.
26273         * sunrpc/rpc_util.h: Likewise.
26274         * sunrpc/rpcinfo.c: Likewise.
26275         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
26276         * sunrpc/rpcsvc/key_prot.x: Likewise.
26277         * sunrpc/rpcsvc/klm_prot.x: Likewise.
26278         * sunrpc/rpcsvc/mount.x: Likewise.
26279         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
26280         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
26281         * sunrpc/rpcsvc/rex.x: Likewise.
26282         * sunrpc/rpcsvc/rstat.x: Likewise.
26283         * sunrpc/rpcsvc/rusers.x: Likewise.
26284         * sunrpc/rpcsvc/sm_inter.x: Likewise.
26285         * sunrpc/rpcsvc/spray.x: Likewise.
26286         * sunrpc/rpcsvc/yppasswd.x: Likewise.
26287         * sunrpc/rtime.c: Likewise.
26288         * sunrpc/svc.c: Likewise.
26289         * sunrpc/svc_auth.c: Likewise.
26290         * sunrpc/svc_authux.c: Likewise.
26291         * sunrpc/svc_raw.c: Likewise.
26292         * sunrpc/svc_run.c: Likewise.
26293         * sunrpc/svc_simple.c: Likewise.
26294         * sunrpc/svc_tcp.c: Likewise.
26295         * sunrpc/svc_udp.c: Likewise.
26296         * sunrpc/svc_unix.c: Likewise.
26297         * sunrpc/svcauth_des.c: Likewise.
26298         * sunrpc/xcrypt.c: Likewise.
26299         * sunrpc/xdr.c: Likewise.
26300         * sunrpc/xdr_array.c: Likewise.
26301         * sunrpc/xdr_float.c: Likewise.
26302         * sunrpc/xdr_mem.c: Likewise.
26303         * sunrpc/xdr_rec.c: Likewise.
26304         * sunrpc/xdr_ref.c: Likewise.
26305         * sunrpc/xdr_sizeof.c: Likewise.
26306         * sunrpc/xdr_stdio.c: Likewise.
26307
26308         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
26309         handling.
26310
26311 2010-08-19  Andreas Schwab  <schwab@redhat.com>
26312
26313         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
26314
26315 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
26316
26317         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
26318         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
26319         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
26320         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
26321         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
26322         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
26323         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
26324         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
26325         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
26326         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
26327         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
26328         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
26329         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
26330         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
26331
26332 2010-07-26  Anton Blanchard  <anton@samba.org>
26333
26334         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
26335         * malloc/arena.c (heap_trim): Likewise.
26336
26337 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
26338
26339         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
26340         here.  Not...
26341         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
26342         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
26343
26344 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26345
26346         * sysdeps/i386/elf/Makefile: New file.
26347
26348 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
26349
26350         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
26351         from fanotify_init.
26352         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
26353         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
26354
26355 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
26356
26357         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
26358         of strncasecmp_l.
26359         * sysdeps/multiarch/strcmp.S: Likewise.
26360
26361 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
26362
26363         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
26364         strncase_l-nonascii.
26365         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
26366         Add strncase_l-ssse3.
26367         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
26368         * sysdeps/x86_64/strcmp.S: Likewise.
26369         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
26370         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
26371         * sysdeps/x86_64/strncase.S: New file.
26372         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
26373         * sysdeps/x86_64/strncase_l.S: New file.
26374         * string/Makefile (strop-tests): Add strncasecmp.
26375         * string/test-strncasecmp.c: New file.
26376
26377         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
26378         warning.
26379
26380         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
26381         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
26382
26383 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
26384
26385         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
26386
26387 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
26388
26389         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
26390         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
26391         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
26392
26393 2010-05-01  Alan Modra  <amodra@gmail.com>
26394
26395         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
26396         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
26397         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
26398         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
26399         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
26400         tidying.  Don't tail-call __sigjmp_save for static lib.
26401         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
26402         save location.
26403         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
26404         (CALL_MCOUNT): Add eh info, and nop after bl.
26405         (TAIL_CALL_SYSCALL_ERROR): New macro.
26406         (PSEUDO_RET): Use it.
26407         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
26408         Correct save location of integer regs and cr.
26409         (_dl_profile_resolve): Correct cr save location.  Delete nops
26410         after bl when SHARED.  Reduce cfi size a little by better
26411         placement of cfi directives.
26412         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
26413         make a stack frame.  Instead use parm save area as a temp.
26414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
26415         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
26416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
26417         Don't make a stack frame for parent, use parm save area.
26418         Increase child stack frame to 112 bytes.  Don't save unused reg,
26419         and adjust reg usage.  Set up cfi on error recovery and
26420         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
26421         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
26422         (__makecontext): Add dummy nop after jump to exit.
26423         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
26424         Use correct parm save area and cr save, reduce stack frame.
26425         Correct cfi for possible PSEUDO_RET frame setup.
26426         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
26427         Branch to local label emitted by PSEUDO_RET rather than
26428         __syscall_error.
26429
26430 2010-08-12  Andreas Schwab  <schwab@redhat.com>
26431
26432         [BZ #11904]
26433         * locale/programs/locale.c (print_assignment): New function.
26434         (show_locale_vars): Use it.
26435
26436 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
26437
26438         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
26439         field.
26440         (struct statfs64): Likewise.
26441         (_STATFS_F_FLAGS): Define.
26442         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
26443         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26444         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
26445         (ST_VALID): Define locally.
26446         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
26447         __statvfs_getflags, use the provided value.
26448         * sysdeps/unix/sysv/linux/kernel-features.h: Define
26449         __ASSUME_STATFS_F_FLAGS.
26450
26451         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
26452
26453         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
26454         Add sys/fanotify.h.
26455         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
26456         fanotify_mask for GLIBC_2.13.
26457         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
26458         fanotify_init and fanotify_mark.
26459         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
26460         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
26461
26462         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
26463         Add prlimit.
26464         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
26465         prlimit64 for GLIBC_2.13.
26466         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
26467         prlimit64.
26468         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
26469         syscall.
26470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
26471         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
26472         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
26473         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
26474         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
26475         add prlimit alias.
26476         * sysdeps/unix/sysv/linux/prlimit.c: New file.
26477
26478         [BZ #11903]
26479         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
26480         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
26481
26482         * nss/Makefile: Add rules to build and run tst-nss-test1.
26483         * shlib-versions: Add entry for libnss_test1.
26484         * nss/nss_test1.c: New file.
26485         * nss/tst-nss-test1.c: New file.
26486
26487         * nss/nsswitch.c (__nss_database_custom): Define new variable.
26488         (__nss_configure_lookup): Set appropriate entry in
26489         __nss_configure_lookup to true.
26490         * nss/nsswitch.h: Define enum with indeces of databases in
26491         databases and __nss_database_custom arrays.  Declare
26492         __nss_database_custom.
26493         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
26494         to avoid using nscd when custom rules are installed.
26495         * nss/getXXbyYY_r.c: Likewise.
26496         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
26497
26498         * nss/nss_files/files-parse.c: Whitespace fixes.
26499
26500 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
26501
26502         [BZ #11883]
26503         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
26504         * posix/fnmatch_loop.c: Likewise.
26505
26506 2010-07-17  Andi Kleen  <ak@linux.intel.com>
26507
26508         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
26509         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
26510         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
26511         * Versions.def [GLIBC_2.13]: Add.
26512
26513 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
26514
26515         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26516         Also fail if tpwd after pwuid call is NULL.
26517
26518 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26519
26520         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
26521         when converting to ms.
26522
26523 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26524
26525         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
26526         EOPNOTSUPP errors with ENOTTY.
26527         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
26528         EOPNOTSUPP errors with ENOTTY.
26529
26530 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
26531
26532         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
26533         Add strcasecmp_l-ssse3.
26534         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
26535         strcasecmp.
26536         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
26537         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
26538         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
26539
26540 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
26541
26542         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
26543
26544         * string/Makefile (strop-tests): Add strcasecmp.
26545         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
26546         strcasecmp_l-nonascii.
26547         (gen-as-const-headers): Add locale-defines.sym.
26548         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
26549         * sysdeps/x86_64/strcasecmp.S: New file.
26550         * sysdeps/x86_64/strcasecmp_l.S: New file.
26551         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
26552         * sysdeps/x86_64/locale-defines.sym: New file.
26553         * string/test-strcasecmp.c: New file.
26554
26555         * string/test-strcasestr.c: Test both ends of the range of characters.
26556         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
26557
26558 2010-07-29  Roland McGrath  <roland@redhat.com>
26559
26560         [BZ #11856]
26561         * manual/locale.texi (Yes-or-No Questions): Fix example code.
26562
26563 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
26564
26565         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
26566         for ld.so.
26567
26568 2010-07-27  Andreas Schwab  <schwab@redhat.com>
26569
26570         * manual/memory.texi (Malloc Tunable Parameters): Document
26571         M_PERTURB.
26572
26573 2010-07-26  Roland McGrath  <roland@redhat.com>
26574
26575         [BZ #11840]
26576         * configure.in (-fgnu89-inline check): Set and substitute
26577         gnu89_inline, not libc_cv_gnu89_inline.
26578         * configure: Regenerated.
26579         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
26580
26581 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
26582
26583         * string/test-strnlen.c: New file.
26584         * string/Makefile (strop-tests): Add strnlen.
26585         * string/tester.c (test_strnlen): Add a few more test cases.
26586         * string/tst-strlen.c: Better error reporting.
26587
26588         * sysdeps/x86_64/strnlen.S: New file.
26589
26590 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
26591
26592         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
26593         lower-latency instructions.
26594
26595 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
26596
26597         * string/test-strcasestr.c: New file.
26598         * string/test-strstr.c: New file.
26599         * string/Makefile (strop-tests): Add strstr and strcasestr.
26600         * string/str-two-way.h: Don't undefine MAX.
26601         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
26602
26603 2010-07-21  Andreas Schwab  <schwab@redhat.com>
26604
26605         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26606         strcasestr-nonascii.
26607         (CFLAGS-strcasestr-nonascii.c): Define.
26608         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
26609         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
26610         Remove unused attribute.
26611
26612 2010-07-20  Roland McGrath  <roland@redhat.com>
26613
26614         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
26615         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
26616         ld.so.cache was broken.  With it, there is no way to disable dsocaps
26617         like LD_HWCAP_MASK can disable hwcaps.
26618
26619 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
26620
26621         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
26622
26623 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
26624
26625         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
26626         call in strcasestr.
26627         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
26628         __strcasestr_sse42_nonascii.
26629         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
26630         strcasestr-nonascii.c.
26631         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
26632
26633 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
26634
26635         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
26636         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
26637         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
26638         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
26639
26640 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
26641
26642         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
26643         fcntl.
26644
26645 2010-07-06  Andreas Schwab  <schwab@redhat.com>
26646
26647         [BZ #11577]
26648         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
26649         dl_signal_cerror.
26650
26651 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
26652
26653         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
26654         _PC_PIPE_BUF using F_GETPIPE_SZ.
26655
26656 2010-07-05  Roland McGrath  <roland@redhat.com>
26657
26658         * manual/arith.texi (Rounding Functions): Fix rint description
26659         implicit in round description.
26660
26661 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
26662
26663         * elf/Makefile: Fix linking for a few tests to make recent linker
26664         happy.
26665
26666 2010-06-30  Andreas Schwab  <schwab@redhat.com>
26667
26668         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
26669         $(common-objpfx)libc_nonshared.a.
26670
26671 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
26672
26673         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
26674         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
26675         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26676         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26677         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
26678         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
26679         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26680         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26681         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
26682         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
26683         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
26684         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26685         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
26686         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
26688         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
26689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
26690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
26691         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26692         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
26693         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26694         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
26695         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
26696         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
26697         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
26698         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
26699         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
26700         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
26701         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
26702         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
26703         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
26704         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
26705         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
26706         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
26707         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
26708         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
26709         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
26710         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
26711         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
26712         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
26713         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
26714         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
26715         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
26716         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
26717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
26718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
26719         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
26720         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
26721
26722 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
26723
26724         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
26725         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
26726         * string/memmove.c (memmove): Renamed to ...
26727         (MEMMOVE): ...this.  Default to memmove.
26728         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
26729         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
26730         (END_CHK): Define.
26731         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26732         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
26733         mempcpy-ssse3-back memmove-ssse3-back.
26734         * sysdeps/x86_64/multiarch/bcopy.S: New file .
26735         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
26736         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
26737         * sysdeps/x86_64/multiarch/memcpy.S: New file.
26738         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
26739         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
26740         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
26741         * sysdeps/x86_64/multiarch/memmove.c: New file.
26742         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
26743         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
26744         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
26745         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
26746         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
26747         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
26748         Define.
26749         (index_Fast_Copy_Backward): Define.
26750         (HAS_ARCH_FEATURE): Define.
26751         (HAS_FAST_REP_STRING): Define.
26752         (HAS_FAST_COPY_BACKWARD): Define.
26753
26754 2010-06-21  Andreas Schwab  <schwab@redhat.com>
26755
26756         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26757         Restore proper fallback handling.
26758
26759 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
26760
26761         [BZ #11701]
26762         * posix/group_member.c (__group_member): Correct checking loop.
26763
26764         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
26765         OOM in getpwuid_r correctly.  Return error number when the caller
26766         should return, otherwise -1.
26767         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
26768         call returning > 0 value.
26769         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
26770
26771 2010-06-07  Andreas Schwab  <schwab@redhat.com>
26772
26773         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
26774         libc_nonshared.a from targets in modules-names.
26775
26776 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
26777
26778         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
26779         requires it.
26780
26781 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
26782
26783         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
26784         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
26785         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
26786         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
26787
26788 2010-06-02  Andreas Schwab  <schwab@redhat.com>
26789
26790         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
26791
26792 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
26793
26794         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
26795         and F_GETPIPE_SZ.
26796         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26797         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26798         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26799         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26800         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26801         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
26802
26803 2010-06-14  Roland McGrath  <roland@redhat.com>
26804
26805         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
26806
26807 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
26808
26809         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
26810         __REDIRECT followed by __THROW.
26811         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
26812         * posix/getopt.h (getopt): Likewise.
26813
26814 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
26815
26816         * hurd/lookup-at.c (__file_name_lookup_at): Accept
26817         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
26818         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
26819         in AT_FLAGS.
26820         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
26821         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
26822
26823 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
26824
26825         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
26826
26827 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
26828
26829         [BZ #11640]
26830         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26831         Properly check family and model.
26832
26833 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
26834
26835         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
26836
26837 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
26838
26839         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
26840
26841 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
26842
26843         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
26844         symbol reference.
26845
26846 2010-05-19  Andreas Schwab  <schwab@redhat.com>
26847
26848         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
26849         symbol reference.
26850
26851 2010-05-21  Andreas Schwab  <schwab@redhat.com>
26852
26853         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
26854         and internal_recvmmsg.
26855         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
26856         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
26857         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
26858         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
26859
26860         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
26861         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
26862         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
26863
26864 2010-05-20  Andreas Schwab  <schwab@redhat.com>
26865
26866         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
26867
26868 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
26869
26870         POWER7 optimizations.
26871         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
26872         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
26873
26874 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
26875
26876         * version.h: Update for 2.13 development version.
26877
26878 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
26879
26880         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
26881         exceptions.  Return 0.
26882
26883 2010-05-07  Roland McGrath  <roland@redhat.com>
26884
26885         * elf/ldconfig.c (main): Add a const.
26886
26887 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
26888
26889         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
26890         (args_options): Add no-idn option.
26891         (ahosts_keys_int): Add idn_flags to ai_flags.
26892         (parse_option): Handle 'i' option to clear idn_flags.
26893
26894         * malloc/malloc.c (_int_free): Possible race in the most recently
26895         added check.  Only act on the data if no current modification
26896         happened.
26897
26898 See ChangeLog.17 for earlier changes.