Remove PIPE_BUF Linux-specific code
[platform/upstream/glibc.git] / ChangeLog
1 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
2
3         [BZ #12723]
4         * posix/Makefile (tests): Add tst-pathconf.
5         * posix/tst-pathconf.c: New test case.
6         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
7         _PC_PIPE_BUF.
8         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
9
10 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
11
12         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
13
14 2013-03-06  Andreas Jaeger  <aj@suse.de>
15
16         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
17         definition via __MAP_ANONYMOUS.
18
19         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
20         it's not part of Linux headers.
21
22         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
23         (MAP_HUGE_MASK): Define.
24
25         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
26         Define.
27         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
28         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
29         Define.
30         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
31         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
32         Define.
33         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
34         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
35         Define.
36         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
37
38         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
39         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
40         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
41         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
42         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
43         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
44
45         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
46         Handle f2fs.
47
48         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
49         Handle f2fs and efivarfs.
50
51         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
52         f2fs.
53
54         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
55         (EFIVARFS_MAGIC): Add.
56         (F2FS_LINK_MAX): Add.
57
58 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
59
60         * stdio-common/vfprintf.c: Replace __builtin_expect with
61         __glibc_unlikely.
62
63 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
64
65         [BZ #13550]
66         * sysdeps/generic/bp-sym.h: Remove file.
67         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
68         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
69         <bp-sym.h> and <bp-asm.h>.
70         (__longjmp): Don't use BP_SYM.
71         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
72         and <bp-asm.h>.
73         (memcpy): Don't use BP_SYM.
74         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
75         <bp-sym.h> and <bp-asm.h>.
76         (memcpy): Don't use BP_SYM.
77         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
78         <bp-asm.h>.
79         (memcpy): Don't use BP_SYM.
80         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
81         <bp-asm.h>.
82         (memset): Don't use BP_SYM.
83         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
84         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
85         (__bzero): Don't use BP_SYM.
86         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
87         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
88         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
89         <bp-sym.h> and <bp-asm.h>.
90         (memcmp): Don't use BP_SYM.  Remove comment about bounded
91         pointers.
92         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
93         <bp-sym.h> and <bp-asm.h>.
94         (memcpy): Don't use BP_SYM.
95         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
96         <bp-sym.h> and <bp-asm.h>.
97         (memset): Don't use BP_SYM.
98         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
99         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
100         (__bzero): Don't use BP_SYM.
101         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
102         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
103         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
104         <bp-sym.h> and <bp-asm.h>.
105         (strncmp): Don't use BP_SYM.  Remove comment about bounded
106         pointers.
107         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
108         <bp-sym.h> and <bp-asm.h>.
109         (memcpy): Don't use BP_SYM.
110         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
111         <bp-sym.h> and <bp-asm.h>.
112         (memset): Don't use BP_SYM.
113         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
114         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
115         (__bzero): Don't use BP_SYM.
116         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
117         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
118         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
119         <bp-sym.h> and <bp-asm.h>.
120         (__memchr): Don't use BP_SYM.
121         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
122         <bp-sym.h> and <bp-asm.h>.
123         (memcmp): Don't use BP_SYM.  Remove comment about bounded
124         pointers.
125         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
126         <bp-sym.h> and <bp-asm.h>.
127         (memcpy): Don't use BP_SYM.
128         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
129         <bp-sym.h> and <bp-asm.h>.
130         (__mempcpy): Don't use BP_SYM.
131         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
132         <bp-sym.h> and <bp-asm.h>.
133         (__memrchr): Don't use BP_SYM.
134         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
135         <bp-sym.h> and <bp-asm.h>.
136         (memset): Don't use BP_SYM.
137         (__bzero): Likewise.
138         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
139         <bp-sym.h> and <bp-asm.h>.
140         (__rawmemchr): Don't use BP_SYM.
141         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
142         <bp-sym.h> and <bp-asm.h>.
143         (__STRCMP): Don't use BP_SYM.
144         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
145         <bp-sym.h> and <bp-asm.h>.
146         (strchr): Don't use BP_SYM.
147         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
148         <bp-sym.h> and <bp-asm.h>.
149         (__strchrnul): Don't use BP_SYM.
150         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
151         <bp-sym.h> and <bp-asm.h>.
152         (strlen): Don't use BP_SYM.
153         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
154         <bp-sym.h> and <bp-asm.h>.
155         (strncmp): Don't use BP_SYM.  Remove comment about bounded
156         pointers.
157         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
158         <bp-sym.h> and <bp-asm.h>.
159         (__strnlen): Don't use BP_SYM.
160         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
161         <bp-sym.h> and <bp-asm.h>.
162         (__GI__setjmp): Don't use BP_SYM.
163         (_setjmp): Likewise.
164         (__sigsetjmp): Likewise.
165         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
166         (L(start_addresses)): Don't use BP_SYM.
167         (_start): Likewise.
168         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
169         <bp-asm.h>.
170         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
171         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
172         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
173         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
174         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
175         <bp-asm.h>.
176         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
177         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
178         about bounded pointers.
179         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
180         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
181         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
182         <bp-asm.h>.
183         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
184         about bounded pointers.  Remove GKM FIXME comments.
185         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
186         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
187         <bp-asm.h>.
188         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
189         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
190         Remove GKM FIXME comments.
191         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
192         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
193         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
194         <bp-asm.h>.
195         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
196         about bounded pointers.  Remove GKM FIXME comment.
197         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
198         and <bp-asm.h>.
199         (strncmp): Don't use BP_SYM.  Remove comment about bounded
200         pointers.
201         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
202         <bp-sym.h> and <bp-asm.h>.
203         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
204         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
205         <bp-sym.h> and <bp-asm.h>.
206         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
207         comment.
208
209 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
210
211         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
212         call free(NULL).
213
214 2013-03-05  David S. Miller  <davem@davemloft.net>
215
216         * po/es.po: Update from translation team.
217
218 2013-03-05  Andreas Jaeger  <aj@suse.de>
219
220         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
221         <bits/mman-linux.h>.
222         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
223         is fine.
224         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
225         <bits/mman-linux.h> to end of file.
226         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
227         is fine.
228         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
229         <bits/mman-linux.h> to end of file.
230         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
231         is fine.
232         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
233         <bits/mman-linux.h> to end of file.
234
235         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
236         (MCL_CURRENT, MCL_FUTURE): Define here.
237
238 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
239
240         [BZ #15232]
241         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
242         attribute_hidden.
243         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
244
245 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
246
247         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
248         fourth parameter needed for rt_sigprocmask syscall.
249         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
250         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
251         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
252         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
253         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
254         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
255
256 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
257
258         [BZ #13550]
259         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
260         comment about bounded pointers.
261         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
262         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
263
264 2013-03-04  Andreas Jaeger  <aj@suse.de>
265
266         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
267         common definitions.
268
269         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
270         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
271         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
272         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
273         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
274         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
275
276 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
277
278         [BZ #15055]
279         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
280         __ieee754_sqrl instead of __sqrl.
281
282 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
283
284         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
285         * sysdeps/powerpc/fpu_control.h: ... here.
286         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
287         * sysdeps/powerpc/bits/fenvinline.h: ... here.
288         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
289         * sysdeps/powerpc/bits/mathinline.h: ... here.
290
291 2013-03-01  Roland McGrath  <roland@hack.frob.com>
292
293         * elf/dl-hwcaps.c (_dl_important_hwcaps):
294         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
295         to just [NEED_DL_SYSINFO_DSO].
296         * elf/dl-support.c: Likewise.
297         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
298         * elf/rtld.c (dl_main): Likewise.
299         * elf/setup-vdso.h (setup_vdso): Likewise.
300         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
301         * sysdeps/unix/sysv/linux/dl-sysdep.c
302         (_dl_discover_osversion): Likewise.
303
304 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
305
306         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
307         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
308
309 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
310
311         * NEWS: Mention libm performance improvements and non-x86 PI
312         futex support.
313
314         * csu/libc-start.c (__pthread_initialize_minimal): Change
315         function arguments.
316         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
317
318 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
319
320         [BZ #13550]
321         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
322         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
323         <bp-sym.h> and <bp-asm.h>.
324         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
325         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
326         and <bp-asm.h>.
327         (memcpy): Don't use BP_SYM.
328         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
329         <bp-asm.h>.
330         (__mpn_add_n): Don't use BP_SYM.
331         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
332         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
333         and <bp-asm.h>.
334         (__mpn_addmul_1): Don't use BP_SYM.
335         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
336         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
337         <bp-sym.h>.
338         (_setjmp): Don't use BP_SYM.
339         (__novmx_setjmp): Likewise.
340         (__GI__setjmp): Likewise.
341         (__vmx_setjmp): Likewise.
342         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
343         <bp-sym.h>.
344         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
345         (__bzero): Don't use BP_SYM.
346         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
347         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
348         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
349         <bp-sym.h> and <bp-asm.h>.
350         (memcpy): Don't use BP_SYM.
351         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
352         <bp-sym.h> and <bp-asm.h>.
353         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
354         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
355         <bp-sym.h> and <bp-asm.h>.
356         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
357         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
358         <bp-asm.h>.
359         (__mpn_lshift): Don't use BP_SYM.
360         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
361         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
362         <bp-asm.h>.
363         (memset): Don't use BP_SYM.
364         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
365         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
366         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
367         <bp-asm.h>.
368         (__mpn_mul_1): Don't use BP_SYM.
369         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
370         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
371         <bp-sym.h> and <bp-asm.h>.
372         (memcmp): Don't use BP_SYM.
373         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
374         <bp-sym.h> and <bp-asm.h>.
375         (memcpy): Don't use BP_SYM.
376         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
377         <bp-sym.h> and <bp-asm.h>.
378         (memset): Don't use BP_SYM.
379         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
380         <bp-sym.h> and <bp-asm.h>.
381         (strncmp): Don't use BP_SYM.
382         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
383         <bp-sym.h> and <bp-asm.h>.
384         (memcpy): Don't use BP_SYM.
385         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
386         <bp-sym.h> and <bp-asm.h>.
387         (memset): Don't use BP_SYM.
388         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
389         <bp-sym.h> and <bp-asm.h>.
390         (__memchr): Don't use BP_SYM.
391         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
392         <bp-sym.h> and <bp-asm.h>.
393         (memcmp): Don't use BP_SYM.
394         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
395         <bp-sym.h> and <bp-asm.h>.
396         (memcpy): Don't use BP_SYM.
397         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
398         <bp-sym.h> and <bp-asm.h>.
399         (__mempcpy): Don't use BP_SYM.
400         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
401         <bp-sym.h> and <bp-asm.h>.
402         (__memrchr): Don't use BP_SYM.
403         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
404         <bp-sym.h> and <bp-asm.h>.
405         (memset): Don't use BP_SYM.
406         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
407         <bp-sym.h> and <bp-asm.h>.
408         (__rawmemchr): Don't use BP_SYM.
409         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
410         <bp-sym.h> and <bp-asm.h>.
411         (__STRCMP): Don't use BP_SYM.
412         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
413         <bp-sym.h> and <bp-asm.h>.
414         (strchr): Don't use BP_SYM.
415         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
416         <bp-sym.h> and <bp-asm.h>.
417         (__strchrnul): Don't use BP_SYM.
418         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
419         <bp-sym.h> and <bp-asm.h>.
420         (strlen): Don't use BP_SYM.
421         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
422         <bp-sym.h> and <bp-asm.h>.
423         (strncmp): Don't use BP_SYM.
424         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
425         <bp-sym.h> and <bp-asm.h>.
426         (__strnlen): Don't use BP_SYM.
427         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
428         <bp-asm.h>.
429         (__mpn_rshift): Don't use BP_SYM.
430         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
431         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
432         <bp-sym.h> and <bp-asm.h>.
433         (__sigsetjmp): Don't use BP_SYM.
434         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
435         (L(start_addresses)): Don't use BP_SYM.
436         (_start): Likewise.
437         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
438         <bp-asm.h>.
439         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
440         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
441         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
442         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
443         <bp-asm.h>.
444         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
445         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
446         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
447         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
448         <bp-asm.h>.
449         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
450         comments.
451         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
452         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
453         <bp-asm.h>.
454         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
455         FIXME comments.
456         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
457         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
458         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
459         <bp-asm.h>.
460         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
461         comment.
462         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
463         and <bp-asm.h>.
464         (strncmp): Don't use BP_SYM,
465         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
466         <bp-asm.h>.
467         (__mpn_sub_n): Don't use BP_SYM.
468         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
469         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
470         and <bp-asm.h>.
471         (__mpn_submul_1): Don't use BP_SYM.
472         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
474         <bp-sym.h> and <bp-asm.h>.
475         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
477         <bp-sym.h> and <bp-asm.h>.
478         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
479         comment.
480
481 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
482
483         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
484         Use ZK to minimize writes to Z.
485         (sub_magnitudes): Simplify code a bit.
486         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
487         Use ZK to minimize writes to Z.
488         (sub_magnitudes): Simplify code a bit.
489
490 2013-02-27  Roland McGrath  <roland@hack.frob.com>
491
492         * csu/gmon-start.c: Add special exception to license text.
493
494 2013-02-27  Richard Henderson  <rth@redhat.com>
495
496         * scripts/config.guess: Update from config.git.
497         * scripts/config.sub: Likewise.
498
499 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
500
501         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
502
503         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
504
505         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
506
507         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
508
509         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
510
511 2013-02-26  Roland McGrath  <roland@hack.frob.com>
512
513         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
514         [$(build-shared = yes].
515
516 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
517
518         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
519         (__mul): Reduce iterations for calculating mantissa.
520
521         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
522         MPTWO.
523         (__mpranred): Likewise.
524
525         [BZ #15160]
526         * malloc/memusagestat.c (main): Draw graphs for heap and stack
527         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
528
529 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
530
531         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
532         Define __attribute__.
533
534 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
535
536         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
537         unused.
538         * posix/regex_internal.h (__attribute): Remove.
539         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
540         (re_string_context_at): Likewise.
541         (bitset_not): Use __attribute__ and mark function as possibly
542         unused.
543         (bitset_merge): Likewise.
544         (bitset_mask): Likewise.
545         (re_string_char_size_at): Likewise.
546         (re_string_wchar_at): Likewise.
547         (re_string_elem_size_at): Likewise.
548
549 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
550
551         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
552         code.
553         (cc32): Likewise.
554
555         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
556         (__acr): Likewise.
557         (__cpy): Likewise.
558         (norm): Likewise.
559         (denorm): Likewise.
560         (__dbl_mp): Likewise.
561         (add_magnitudes): Likewise.
562         (sub_magnitudes): Likewise.
563         (__mul): Likewise.
564         (__inv): Likewise.
565
566         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
567         style.
568
569         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
570         style.
571
572         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
573         code.
574
575         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
576         up changes with default code.
577         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
578         Likewise.
579
580 2013-02-24  Allan McRae  <allan@archlinux.org>
581
582         * manual/socket.texi (The Internet Namespace): Order menu items
583         to match that in the file.
584
585         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
586         node listing of the info page menu.
587
588 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
589
590         [BZ #13550]
591         * sysdeps/i386/bp-asm.h: Remove file.
592         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
593         (PARMS): Do not use macros from bp-asm.h.
594         (S1): Likewise.
595         (S2): Likewise.
596         (SIZE): Likewise.
597         (__mpn_add_n): Do not use BP_SYM
598         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
599         "bp-asm.h".
600         (PARMS): Do not use macros from bp-asm.h.
601         (S1): Likewise.
602         (SIZE): Likewise.
603         (__mpn_addmul_1): Do not use BP_SYM
604         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
605         "bp-asm.h".
606         (PARMS): Do not use macros from bp-asm.h.
607         (SIGMSK): Likewise.
608         (_setjmp): Likewise.  Do not use BP_SYM.
609         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
610         "bp-asm.h".
611         (PARMS): Do not use macros from bp-asm.h.
612         (SIGMSK): Likewise.
613         (setjmp): Likewise.  Do not use BP_SYM.
614         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
615         "bp-asm.h".
616         (PARMS): Do not use macros from bp-asm.h.
617         (__frexp): Do not use BP_SYM.
618         (frexp): Likewise.
619         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
620         "bp-asm.h".
621         (PARMS): Do not use macros from bp-asm.h.
622         (__frexpf): Do not use BP_SYM.
623         (frexpf): Likewise.
624         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
625         "bp-asm.h".
626         (PARMS): Do not use macros from bp-asm.h.
627         (__frexpl): Do not use BP_SYM.
628         (frexpl): Likewise.
629         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
630         "bp-asm.h".
631         (PARMS): Do not use macros from bp-asm.h.
632         (__remquo): Do not use BP_SYM.
633         (remquo): Likewise.
634         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
635         "bp-asm.h".
636         (PARMS): Do not use macros from bp-asm.h.
637         (__remquof): Do not use BP_SYM.
638         (remquof): Likewise.
639         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
640         "bp-asm.h".
641         (PARMS): Do not use macros from bp-asm.h.
642         (__remquol): Do not use BP_SYM.
643         (remquol): Likewise.
644         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
645         "bp-asm.h".
646         (PARMS): Do not use macros from bp-asm.h.
647         (DEST): Likewise.
648         (SRC): Likewise.
649         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
650         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
651         "bp-asm.h".
652         (PARMS): Do not use macros from bp-asm.h.
653         (strlen): Do not use BP_SYM.
654         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
655         "bp-asm.h".
656         (PARMS): Do not use macros from bp-asm.h.
657         (S1): Likewise.
658         (S2): Likewise.
659         (SIZE): Likewise.
660         (__mpn_add_n): Do not use BP_SYM.
661         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
662         "bp-asm.h".
663         (PARMS): Do not use macros from bp-asm.h.
664         (S1): Likewise.
665         (SIZE): Likewise.
666         (__mpn_addmul_1): Do not use BP_SYM.
667         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
668         weak_alias.
669         (bzero): Likewise.
670         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
671         "bp-asm.h".
672         (PARMS): Do not use macros from bp-asm.h.
673         (S): Likewise.
674         (SIZE): Likewise.
675         (__mpn_lshift): Do not use BP_SYM.
676         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
677         "bp-asm.h".
678         (PARMS): Do not use macros from bp-asm.h.
679         (DEST): Likewise.
680         (SRC): Likewise.
681         (LEN): Likewise.
682         (memcpy): Likewise.  Do not use BP_SYM.
683         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
684         libc_hidden_def and weak_alias.
685         (mempcpy): Do not use BP_SYM in weak_alias.
686         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
687         "bp-asm.h".
688         (PARMS): Do not use macros from bp-asm.h.
689         (DEST): Likewise.
690         (LEN): Likewise.
691         [!BZERO_P] (CHR): Likewise.
692         (memset): Likewise.  Do not use BP_SYM.
693         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
694         "bp-asm.h".
695         (PARMS): Do not use macros from bp-asm.h.
696         (S1): Likewise.
697         (SIZE): Likewise.
698         (__mpn_mul_1): Do not use BP_SYM.
699         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
700         "bp-asm.h".
701         (PARMS): Do not use macros from bp-asm.h.
702         (S): Likewise.
703         (SIZE): Likewise.
704         (__mpn_rshift): Do not use BP_SYM.
705         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
706         "bp-asm.h".
707         (PARMS): Do not use macros from bp-asm.h.
708         (STR): Likewise.
709         (CHR): Likewise.
710         (strchr): Likewise.  Do not use BP_SYM.
711         (index): Do not use BP_SYM in weak_alias.
712         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
713         "bp-asm.h".
714         (PARMS): Do not use macros from bp-asm.h.
715         (DEST): Likewise.
716         (SRC): Likewise.
717         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
718         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
719         "bp-asm.h".
720         (PARMS): Do not use macros from bp-asm.h.
721         (strlen): Do not use BP_SYM.
722         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
723         "bp-asm.h".
724         (PARMS): Do not use macros from bp-asm.h.
725         (S1): Likewise.
726         (S2): Likewise.
727         (SIZE): Likewise.
728         (__mpn_sub_n): Do not use BP_SYM.
729         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
730         "bp-asm.h".
731         (PARMS): Do not use macros from bp-asm.h.
732         (S1): Likewise.
733         (SIZE): Likewise.
734         (__mpn_submul_1): Do not use BP_SYM.
735         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
736         "bp-asm.h".
737         (PARMS): Do not use macros from bp-asm.h.
738         (S1): Likewise.
739         (S2): Likewise.
740         (SIZE): Likewise.
741         (__mpn_add_n): Do not use BP_SYM.
742         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
743         weak_alias.
744         (bzero): Likewise.
745         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
746         "bp-asm.h".
747         (PARMS): Do not use macros from bp-asm.h.
748         (BLK2): Likewise.
749         (LEN): Likewise.
750         (memcmp): Do not use BP_SYM.
751         (bcmp): Do not use BP_SYM in weak_alias.
752         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
753         "bp-asm.h".
754         (PARMS): Do not use macros from bp-asm.h.
755         (DEST): Likewise.
756         (SRC): Likewise.
757         (LEN): Likewise.
758         (memcpy): Likewise.  Do not use BP_SYM.
759         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
760         "bp-asm.h".
761         (PARMS): Do not use macros from bp-asm.h.
762         (DEST): Likewise.
763         (SRC): Likewise.
764         (LEN): Likewise.
765         (memmove): Likewise.  Do not use BP_SYM.
766         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
767         "bp-asm.h".
768         (PARMS): Do not use macros from bp-asm.h.
769         (DEST): Likewise.
770         (SRC): Likewise.
771         (LEN): Likewise.
772         (__mempcpy): Likewise.  Do not use BP_SYM.
773         (mempcpy): Do not use BP_SYM in weak_alias.
774         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
775         "bp-asm.h".
776         (PARMS): Do not use macros from bp-asm.h.
777         (DEST): Likewise.
778         (LEN): Likewise.
779         [!BZERO_P] (CHR): Likewise.
780         (memset): Likewise.  Do not use BP_SYM.
781         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
782         "bp-asm.h".
783         (PARMS): Do not use macros from bp-asm.h.
784         (STR2): Likewise.
785         (strcmp): Do not use BP_SYM.
786         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
787         "bp-asm.h".
788         (PARMS): Do not use macros from bp-asm.h.
789         (STR): Likewise.
790         (DELIM): Likewise.
791         [USE_AS_STRTOK_R] (SAVE): Likewise.
792         (FUNCTION): Likewise.  Do not use BP_SYM.
793         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
794         aliases.
795         (strtok_r): Likewise.
796         (__GI___strtok_r): Likewise.
797         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
798         (PARMS): Do not use macros from bp-asm.h.
799         (S): Likewise.
800         (SIZE): Likewise.
801         (__mpn_lshift): Do not use BP_SYM.
802         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
803         (PARMS): Do not use macros from bp-asm.h.
804         (STR): Likewise.
805         (CHR): Likewise.
806         (__memchr): Do not use BP_SYM.
807         (memchr): Do not use BP_SYM in weak_alias.
808         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
809         (PARMS): Do not use macros from bp-asm.h.
810         (BLK2): Likewise.
811         (LEN): Likewise.
812         (memcmp): Do not use BP_SYM.
813         (bcmp): Do not use BP_SYM in weak_alias.
814         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
815         (PARMS): Do not use macros from bp-asm.h.
816         (S1): Likewise.
817         (SIZE): Likewise.
818         (__mpn_mul_1): Do not use BP_SYM.
819         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
820         "bp-asm.h".
821         (PARMS): Do not use macros from bp-asm.h.
822         (STR): Likewise.
823         (CHR): Likewise.
824         (__rawmemchr): Do not use BP_SYM.
825         (rawmemchr): Do not use BP_SYM in weak_alias.
826         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
827         (PARMS): Do not use macros from bp-asm.h.
828         (S): Likewise.
829         (SIZE): Likewise.
830         (__mpn_rshift): Do not use BP_SYM.
831         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
832         (PARMS): Do not use macros from bp-asm.h.
833         (SIGMSK): Likewise.
834         (__sigsetjmp): Likewise.  Do not use BP_SYM.
835         * sysdeps/i386/start.S: Do not include "bp-sym.h".
836         (_start): Do not use BP_SYM.
837         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
838         (PARMS): Do not use macros from bp-asm.h.
839         (DEST): Likewise.
840         (SRC): Likewise.
841         (__stpcpy): Likewise.  Do not use BP_SYM.
842         (stpcpy): Do not use BP_SYM in weak_alias.
843         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
844         "bp-asm.h".
845         (PARMS): Do not use macros from bp-asm.h.
846         (DEST): Likewise.
847         (SRC): Likewise.
848         (LEN): Likewise.
849         (__stpncpy): Likewise.  Do not use BP_SYM.
850         (stpncpy): Do not use BP_SYM in weak_alias.
851         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
852         (PARMS): Do not use macros from bp-asm.h.
853         (STR): Likewise.
854         (CHR): Likewise.
855         (strchr): Likewise.  Do not use BP_SYM.
856         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
857         "bp-asm.h".
858         (PARMS): Do not use macros from bp-asm.h.
859         (STR): Likewise.
860         (CHR): Likewise.
861         (__strchrnul): Likewise.  Do not use BP_SYM.
862         (strchrnul): Do not use BP_SYM in weak_alias.
863         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
864         "bp-asm.h".
865         (PARMS): Do not use macros from bp-asm.h.
866         (STOP): Likewise.
867         (strcspn): Do not use BP_SYM.
868         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
869         "bp-asm.h".
870         (PARMS): Do not use macros from bp-asm.h.
871         (STR): Likewise.
872         (STOP): Likewise.
873         (strpbrk): Likewise.  Do not use BP_SYM.
874         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
875         "bp-asm.h".
876         (PARMS): Do not use macros from bp-asm.h.
877         (STR): Likewise.
878         (CHR): Likewise.
879         (strrchr): Likewise.  Do not use BP_SYM.
880         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
881         (PARMS): Do not use macros from bp-asm.h.
882         (SKIP): Likewise.
883         (strspn): Do not use BP_SYM.
884         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
885         (PARMS): Do not use macros from bp-asm.h.
886         (STR): Likewise.
887         (DELIM): Likewise.
888         (SAVE): Likewise.
889         (FUNCTION): Likewise.  Do not use BP_SYM.
890         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
891         aliases.
892         (strtok_r): Likewise.
893         (__GI___strtok_r): Likewise.
894         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
895         (PARMS): Do not use macros from bp-asm.h.
896         (S1): Likewise.
897         (S2): Likewise.
898         (SIZE): Likewise.
899         (__mpn_sub_n): Do not use BP_SYM.
900         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
901         "bp-asm.h".
902         (PARMS): Do not use macros from bp-asm.h.
903         (S1): Likewise.
904         (SIZE): Likewise.
905         (__mpn_submul_1): Do not use BP_SYM.
906         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
907         <bp-sym.h>.
908         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
909         and <bp-asm.h>.
910         (PARMS): Do not use macros from bp-asm.h.
911         (FLAGS): Likewise.
912         (PTID): Likewise.
913         (TLS): Likewise.
914         (CTID): Likewise.
915         (__clone): Do not use BP_SYM.
916         (clone): Do not use BP_SYM in weak_alias.
917         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
918         and <bp-asm.h>.
919         (PARMS): Do not use macros from bp-asm.h.
920         (LEN): Likewise.
921         (__mmap64): Do not use BP_SYM.
922         (mmap64): Do not use BP_SYM in weak_alias.
923         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
924         <bp-sym.h> and <bp-asm.h>.
925         (PARMS): Do not use macros from bp-asm.h.
926         (__posix_fadvise64_l64): Do not use BP_SYM.
927         * sysdeps/unix/sysv/linux/i386/semtimedop.S
928         (PARMS): Do not use macros from bp-asm.h.
929         (NSOPS): Likewise.
930         (semtimedop): Do not use BP_SYM.
931         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
932         and <bp-asm.h>.
933
934 2013-02-21  Allan McRae  <allan@archlinux.org>
935
936         * manual/message.texi (Charset conversion in gettext):
937         Move @end statement to beginning of line.
938
939 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
940
941         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
942         static.
943         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
944         Likewise.
945
946         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
947         (denorm): Likewise.
948         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
949         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
950
951 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
952
953         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
954         tail-call to the resolved function if pltexit isn't needed.
955
956 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
957
958         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
959         or Y being zero as being unlikely.
960         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
961         Likewise.
962
963 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
964
965         * manual/nss.texi (System Databases and Name Service Switch):
966         Remove frobnicate @pxref.
967
968 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
969
970         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
971         __attribute__ ((unused)) to __attribute__ ((__unused__)).
972
973 2013-02-20  Petr Machata  <pmachata@redhat.com>
974
975         * elf/elf.h (R_ARM_TARGET1): New macro.
976         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
977         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
978         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
979         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
980         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
981         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
982         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
983         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
984         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
985         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
986         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
987         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
988         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
989         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
990         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
991         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
992         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
993         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
994         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
995         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
996         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
997         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
998         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
999         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
1000         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
1001         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
1002         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
1003         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
1004         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
1005         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
1006         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
1007         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
1008         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
1009         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
1010         (R_ARM_THM_GOT_BREL12): Likewise.
1011         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
1012         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
1013         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
1014         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
1015         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
1016         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
1017         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
1018         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
1019         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
1020
1021 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
1022
1023         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
1024         __attribute_used__ to __attribute__ ((unused)).
1025
1026 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
1027
1028         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
1029         powerpc mpa.c.
1030         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
1031         comment formatting.
1032         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
1033
1034 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
1035
1036         [BZ #13550]
1037         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
1038         Remove macro.
1039         (ENTER): Remove both macro definitions.
1040         (LEAVE): Likewise.
1041         (CHECK_BOUNDS_LOW): Likewise.
1042         (CHECK_BOUNDS_HIGH): Likewise.
1043         (CHECK_BOUNDS_BOTH): Likewise.
1044         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
1045         (RETURN_BOUNDED_POINTER): Likewise.
1046         (RETURN_NULL_BOUNDED_POINTER): Likewise.
1047         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
1048         (POP_ERRNO_LOCATION_RETURN): Likewise.
1049         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
1050         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1051         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
1052         macros.
1053         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1054         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
1055         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
1056         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
1057         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
1058         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
1059         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
1060         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
1061         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
1062         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
1063         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
1064         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
1065         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1066         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
1067         removed macros.
1068         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1069         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
1070         macros.
1071         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1072         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
1073         * sysdeps/i386/i586/memset.S (memset): Likewise.
1074         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
1075         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1076         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
1077         macros.
1078         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1079         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
1080         Change uses of L(2) to L(out).
1081         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
1082         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
1083         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
1084         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1085         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
1086         removed macros.
1087         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1088         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
1089         macros.
1090         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1091         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
1092         (RETURN): Do not use macro LEAVE.
1093         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
1094         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
1095         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
1096         * sysdeps/i386/i686/memset.S (memset): Likewise.
1097         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
1098         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
1099         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
1100         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
1101         Likewise.
1102         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1103         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
1104         L(1_2) and L(1_3) into L(1).
1105         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
1106         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
1107         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1108         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
1109         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
1110         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
1111         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
1112         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1113         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
1114         macros.
1115         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
1116         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
1117         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
1118         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
1119         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
1120         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
1121         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
1122         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
1123         * sysdeps/i386/strcspn.S (strcspn): Likewise.
1124         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
1125         * sysdeps/i386/strrchr.S (strrchr): Likewise.
1126         * sysdeps/i386/strspn.S (strspn): Likewise.
1127         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
1128         conditional code.
1129         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
1130         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
1131         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
1132         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
1133         L(1_3) into L(1_1).
1134         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
1135         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
1136         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
1137         macros.
1138         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
1139
1140 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
1141
1142         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
1143         macro.
1144
1145 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
1146
1147         * math/atest-exp.c (exp_mpn): Remove ROUND.
1148         * math/atest-exp2.c (exp_mpn): Likewise.
1149         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
1150
1151         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
1152         * stdlib/tst-tls-atexit-lib.c: Likewise.
1153         * stdlib/tst-tls-atexit.c: Likewise.
1154
1155 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
1156
1157         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
1158         and __attribute_alloc_size__.
1159
1160 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
1161
1162         * include/programs/xmalloc.h: Change __attribute_alloc_size to
1163         __attribute_alloc_size__.
1164         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
1165         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
1166
1167 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
1168
1169         * include/programs/xmalloc.h: New file.
1170         * catgets/gencat.c: Include it.
1171         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
1172         * elf/pldd.c: Likewise.
1173         * iconv/iconv_charmap.c: Likewise.
1174         * iconv/iconvconfig.c: Likewise.
1175         * iconv/strtab.c: Likewise.
1176         * locale/programs/locale.c: Likewise.
1177         * locale/programs/localedef.h: Likewise.
1178         * locale/programs/simple-hash.c: Likewise.
1179         * nscd/nscd.h: Likewise.
1180         * nss/makedb.c: Likewise.
1181         * sysdeps/generic/ldconfig.h: Likewise.
1182
1183 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
1184
1185         * Versions.def: Add GLIBC_2.18.
1186         * include/link.h (struct link_map): New member l_tls_dtor_count.
1187         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
1188         (__call_tls_dtors): Likewise.
1189         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
1190         __cxa_thread_atexit_impl.
1191         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
1192         Likewise.
1193         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
1194         Likewise.
1195         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
1196         Likewise.
1197         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
1198         Likewise.
1199         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
1200         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
1201         Likewise.
1202         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
1203         Likewise.
1204         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
1205         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
1206         Likewise.
1207         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
1208         (tests): Add test case tst-tls-atexit.
1209         (modules-names): Add shared library for tst-tls-atexit.
1210         * stdlib/Versions (GLIBC_2.17): Add __cxa_thread_atexit_impl.
1211         (GLIBC_PRIVATE): Add __call_tls_dtors.
1212         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
1213         for libstdc++.
1214         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
1215         * stdlib/tst-tls-atexit.c: New test case.
1216         * stdlib/tst-tls-atexit-lib.c: New test case.
1217
1218         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
1219
1220         * elf/Versions (ld): Add _dl_find_dso_for_object.
1221         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
1222         * elf/dl-open.c (_dl_find_dso_for_object): New function.
1223         (dl_open_worker): Use _dl_find_dso_for_object.
1224         * elf/dl-sym.c (do_sym): Likewise.
1225         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
1226
1227 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1228
1229         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
1230         Syntactic changes only.
1231         (_dl_runtime_profile): Do a tail-call to the resolved function.
1232
1233 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
1234
1235         [BZ #13550]
1236         * sysdeps/x86_64/bp-asm.h: Remove file.
1237         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
1238         <bp-sym.h> and <bp-asm.h>.
1239         (__clone): Do not use BP_SYM.
1240         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
1241         <bp-sym.h> and <bp-asm.h>.
1242         * sysdeps/unix/x86_64/sysdep.S: Likewise.
1243         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
1244         "bp-asm.h".
1245         (_setjmp): Do not use BP_SYM.
1246         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
1247         "bp-asm.h".
1248         (setjmp): Do not use BP_SYM.
1249         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
1250         libc_hidden_def.
1251         (mempcpy): Do not use BP_SYM in weak_alias.
1252         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
1253         "bp-asm.h".
1254         (strchr): Do not use BP_SYM.
1255         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
1256         "bp-asm.h".
1257         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
1258         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
1259         (_start): Do not use BP_SYM.
1260         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
1261         "bp-asm.h".
1262         (strcat): Do not use BP_SYM.
1263         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
1264         "bp-asm.h".
1265         (STRCMP): Do not use BP_SYM.
1266         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
1267         "bp-asm.h".
1268         (STRCPY): Do not use BP_SYM.
1269         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
1270         "bp-asm.h".
1271         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
1272         "bp-asm.h".
1273         (FUNCTION): Do not use BP_SYM.
1274         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
1275         weak_alias.
1276         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
1277
1278 2013-02-17  Andreas Jaeger  <aj@suse.de>
1279
1280         * time/Versions: Sort entries.
1281         * string/Versions: Likewise.
1282         * resolv/Versions: Likewise.
1283         * posix/Versions: Likewise.
1284         * iconv/Versions: Likewise.
1285         * elf/Versions: Likewise.
1286         * wcsmbs/Versions: Likewise.
1287
1288 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1289
1290         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
1291         loop termination condition.
1292
1293         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
1294         variable to calculate EZ.
1295         (__sqr): Likewise.
1296
1297         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
1298         the lower precision input.
1299
1300 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
1301
1302         [BZ #13550]
1303         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
1304         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
1305         (run-via-rtld-prefix): Do not handle %-bp tests.
1306         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
1307         (all-object-suffixes): Remove .ob.
1308         (bppfx): Remove variable.
1309         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
1310         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
1311         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
1312         [$(build-bounded) = yes] (libtype.ob): Likewise.
1313         * Makerules (elide-routines.ob): Remove variable.
1314         (do-tests-clean): Do not handle *-bp.out.
1315         (common-mostlyclean): Do not handle *-bp and *-bp.out.
1316         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
1317         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
1318         (tests): Do not include $(tests-bp.out).
1319         (xtests): Do not include $(xtests-bp.out).
1320         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
1321         [$(build-bounded) = yes] ($(addprefix
1322         $(objpfx),$(binaries-bounded))): Remove rule.
1323         ($(objpfx)%-bp.out): Remove rule.
1324         * config.make.in (build-bounded): Remove variable.
1325         * crypt/Makefile [$(build-bounded) = yes]
1326         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
1327         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
1328         append to variable.
1329         [$(build-bounded) = yes] (install-lib): Likewise.
1330         [$(build-bounded) = yes] (generated): Likewise.
1331         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
1332         Remove rule.
1333         * intl/Makefile [$(build-bounded) = yes]
1334         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
1335         * math/Makefile [$(build-bounded) = yes]
1336         ($(tests:%=$(objpfx)%-bp): Likewise.
1337         * misc/Makefile [$(build-bounded) = yes]
1338         ($(objpfx)tst-tsearch-bp): Likewise.
1339         * nptl/Makeconfig (bounded-thread-library): Remove variable.
1340         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
1341         Remove dependency.
1342         * string/Makefile (o-objects.ob): Remove variable.
1343         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
1344         (CFLAGS-.ob): Remove variable.
1345         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
1346         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
1347         both definitions of variable.
1348         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
1349         (ASFLAGS-.ob): Remove variable.
1350
1351 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
1352
1353         [BZ #13550]
1354         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
1355         Remove __BOUNDED_POINTERS__ from condition.
1356         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
1357         * string/bits/string2.h [!__NO_STRING_INLINES &&
1358         !__BOUNDED_POINTERS__]: Likewise.
1359         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
1360         Likewise.
1361         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
1362         Remove conditional code.
1363         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
1364         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
1365         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
1366         condition.
1367
1368         [BZ #13550]
1369         * csu/libc-start.c: Do not include <bp-sym.h>.
1370         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
1371         * elf/dl-open.c: Do not include <bp-sym.h>.
1372         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
1373         * math/fegetenv.c: Do not include <bp-sym.h>.
1374         (fegetenv): Do not use BP_SYM in versioned symbols.
1375         * nptl/sysdeps/pthread/bits/libc-lockP.h
1376         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
1377         <bp-sym.h>.
1378         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1379         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
1380         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1381         (__pthread_mutex_destroy): Likewise.
1382         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1383         (__pthread_mutex_lock): Likewise.
1384         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1385         (__pthread_mutex_trylock): Likewise.
1386         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1387         (__pthread_mutex_unlock): Likewise.
1388         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1389         (__pthread_mutexattr_init): Likewise.
1390         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1391         (__pthread_mutexattr_destroy): Likewise.
1392         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1393         (__pthread_mutexattr_settype): Likewise.
1394         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1395         (__pthread_rwlock_init): Likewise.
1396         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1397         (__pthread_rwlock_destroy): Likewise.
1398         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1399         (__pthread_rwlock_rdlock): Likewise.
1400         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1401         (__pthread_rwlock_tryrdlock): Likewise.
1402         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1403         (__pthread_rwlock_wrlock): Likewise.
1404         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1405         (__pthread_rwlock_trywrlock): Likewise.
1406         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1407         (__pthread_rwlock_unlock): Likewise.
1408         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1409         (__pthread_key_create): Likewise.
1410         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1411         (__pthread_setspecific): Likewise.
1412         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1413         (__pthread_getspecific): Likewise.
1414         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
1415         Likewise.
1416         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1417         (_pthread_cleanup_push_defer): Likewise.
1418         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1419         (_pthread_cleanup_pop_restore): Likewise.
1420         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
1421         (pthread_setcancelstate): Likewise.
1422         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
1423         <bp-sym.h>.
1424         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
1425         (memchr): Do not use BP_SYM in weak_alias.
1426         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
1427         (fegetenv): Do not use BP_SYM in versioned symbols.
1428         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
1429         (fesetenv): Do not use BP_SYM in versioned symbols.
1430         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
1431         (feupdateenv): Do not use BP_SYM in versioned symbols.
1432         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
1433         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
1434         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
1435         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
1436         (open64): Do not use BP_SYM in weak_alias.
1437         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
1438         (fegetenv): Do not use BP_SYM in versioned symbols.
1439         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
1440         (fesetenv): Do not use BP_SYM in versioned symbols.
1441         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
1442         (feupdateenv): Do not use BP_SYM in versioned symbols.
1443         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
1444         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
1445         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
1446         (feraiseexcept): Do not use BP_SYM in versioned symbols.
1447         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
1448         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
1449         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
1450         <bp-sym.h>.
1451         (__libc_start_main): Do not use BP_SYM.
1452
1453 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1454
1455         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
1456         redundant return line.
1457         (norm): Likewise.
1458         (denorm): Likewise.
1459         (dbl_mp): Likewise.
1460         (sub_magnitudes): Likewise.
1461         (__add): Likewise.
1462         (__sub): Likewise.
1463         (__mul): Likewise.
1464         (__inv): Likewise.
1465         (__dvd): Likewise.
1466         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
1467         (norm): Likewise.
1468         (denorm): Likewise.
1469         (dbl_mp): Likewise.
1470         (sub_magnitudes): Likewise.
1471         (__add): Likewise.
1472         (__sub): Likewise.
1473         (__mul): Likewise.
1474         (__inv): Likewise.
1475         (__dvd): Likewise.
1476
1477         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
1478         instead of __mul.
1479         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
1480         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
1481         (cc32): Likewise.
1482
1483         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
1484         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
1485         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
1486         of __mul for squares.
1487         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
1488         function
1489         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
1490         Likewise.
1491         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
1492         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
1493
1494 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
1495
1496         [BZ #13550]
1497         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
1498         code.
1499         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
1500         prototype or function definition.  Rename ubp_* variables and
1501         parameters.  Remove argv definitions conditional on
1502         [__BOUNDED_POINTERS__].
1503         * debug/backtrace.c (__backtrace): Do not use __unbounded.
1504         * elf/dl-runtime.c (_dl_fixup): Likewise.
1505         * include/set-hooks.h (RUN_HOOK): Likewise.
1506         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
1507         definition.
1508         * string/strcpy.c (strcpy): Do not use __unbounded.
1509         * sysdeps/generic/frame.h (struct layout): Likewise.
1510         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
1511         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
1512         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
1513         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
1514         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
1515         (__backtrace): Likewise.
1516         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
1517         use __ptrvalue.
1518         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
1519         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
1520         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
1521         Likewise.
1522         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
1523         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
1524         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
1525         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
1526         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
1527         Do not use __unbounded.
1528         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
1529         Rename __unboundedrlimits parameter to rlimits in prototype.
1530         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
1531         Do not use __unbounded.
1532         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
1533         not use __ptrvalue.
1534         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
1535         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
1536         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
1537         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
1538         __ptrvalue or __unbounded.
1539         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
1540         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
1541         use __unbounded.
1542         (__new_msgctl): Do not use __ptrvalue.
1543         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
1544         __unbounded.
1545         (__libc_msgrcv): Do not use __ptrvalue.
1546         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
1547         startup_info): Do not use __unbounded.
1548         (__libc_start_main): Likewise.  Rename ubp_* variables and
1549         parameters.  Remove argv definitions conditional on
1550         [__BOUNDED_POINTERS__].
1551         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
1552         __ptrvalue.
1553         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
1554         use __unbounded.
1555         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
1556         or __ptrvalue.
1557         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
1558         use __unbounded.
1559         (__new_shmctl): Do not use __ptrvalue.
1560         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
1561         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
1562         Likewise.
1563         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
1564         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
1565         (__libc_sigaction): Likewise.
1566         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
1567         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
1568         Likewise.
1569         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
1570
1571 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
1572
1573         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
1574
1575         * string/mempcpy.c: Implement by calling memcpy.
1576
1577 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1578
1579         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
1580
1581         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
1582         evaluation.
1583
1584         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
1585         values in the mantissa.
1586
1587         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
1588         minimize writes to Z.
1589         (sub_magnitudes): Simplify code a bit.
1590
1591 2013-02-12  Roland McGrath  <roland@hack.frob.com>
1592
1593         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
1594         from the message.  The linker prefixes all warnings with that already.
1595
1596 2013-02-12  Andreas Schwab  <schwab@suse.de>
1597
1598         [BZ #15078]
1599         * posix/regexec.c (extend_buffers): Add parameter min_len.
1600         (check_matching): Pass minimum needed length.
1601         (clean_state_log_if_needed): Likewise.
1602         (get_subexp): Likewise.
1603         * posix/Makefile (tests): Add bug-regex34.
1604         (bug-regex34-ENV): Define.
1605         * posix/bug-regex34.c: New file.
1606
1607         [BZ #11561]
1608         * posix/regcomp.c (parse_bracket_exp): When looking up collating
1609         elements compare against the byte sequence of it, not its name.
1610         * posix/Makefile (tests): Add bug-regex35.
1611         (bug-regex35-ENV): Define.
1612         * posix/bug-regex35.c: New file.
1613
1614 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1615
1616         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
1617         comment.
1618         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
1619         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
1620         (CHECK_EOL): Add undef.
1621
1622 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
1623
1624         * bits/stdlib-bsearch.h: New file.
1625         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
1626         * stdlib/stdlib.h: Likewise.
1627
1628 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1629
1630         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
1631         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
1632         declaration.
1633         * manual/search.texi (Array Search Function): Add missing const in
1634         lfind prototype.
1635         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
1636         declaration to use rlim_t.
1637         (Basic Scheduling Functions): Remove erroneous const from
1638         sched_getparam prototype.  Remove erroneous * from
1639         sched_get_priority_max and sched_get_priority_min prototypes.
1640         (Resource Usage): Fix summary @comment on vtimes to refer to
1641         sys/vtimes.h rather than vtimes.h.
1642         Add missing *s in vtimes prototype.
1643         (Limits on Resources): Fix ulimit prototype to return long int.
1644         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
1645         prototypes to use long int rather than double.
1646         (BSD Random): Fix initstate and setstate to use char *, not void *.
1647         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
1648         prototype to make second argument 'struct aiocb64 *const[]'.
1649         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
1650         (Status of AIO Operations): Remove erroneous const in aio_return and
1651         aio_return64 prototypes.
1652         (Synchronizing I/O): Fix sync prototype to return void.
1653         * manual/startup.texi (Suboptions): Remove an erroneous const in
1654         getsubopt prototype.
1655         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
1656         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
1657         use size_t rather than int.
1658         (Scanning All Users): Likewise for getpwent_r.
1659         (Setting Groups): Add missing const to setgroups prototype.
1660         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
1661         * manual/socket.texi (Host Names): Fix gethostbyaddr and
1662         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
1663         'const void *' rather than 'const char *'.
1664         (Host Address Functions): Likewise for inet_ntop.
1665         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
1666         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
1667         ssize_t for return value.
1668         (Sending Data): Likewise for send, sendto, sendmsg.
1669         (Socket Option Functions): Add a missing const in setsockopt prototype.
1670         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
1671         use wchar_t for the argument.
1672         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
1673         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
1674         take no arguments.
1675         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
1676         double/float/long double for second argument.
1677         Fix return types of significand, significandf, significandl.
1678         * manual/filesys.texi (Setting Permissions): Use mode_t for second
1679         argument in fchmod prototype.
1680         (File Owner): Use uid_t and gid_t in fchown prototype.
1681         (File Times): Add const to utimes, futimes, and lutimes prototypes.
1682         (Making Special Files): Use mode_t and dev_t in mknod prototype.
1683         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
1684         use 'const struct dirent **' as argument types to CMP function pointer
1685         argument.
1686         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
1687         (File Times): Fix summary magic @comment for struct utimbuf and utime
1688         to refer to utime.h, not time.h.
1689         * manual/string.texi (Argz Functions): Add missing const in
1690         argz_extract and argz_next prototypes.
1691         (Finding Tokens in a String): Likewise for basename.
1692         (String/Array Comparison): Fix typo in wcscasecmp prototype.
1693         (Copying and Concatenation): Fix typo in wmemmove prototype.
1694         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
1695         (Signal Stack): Remove erroneous const in sigstack prototype.
1696         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
1697         prototype.
1698         (Simple Calendar Time): Likewise for stime.
1699         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
1700         prototype.
1701         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
1702         say sys/sysctl.h instead.
1703         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
1704         and vsyslog prototypes.
1705
1706 2013-02-11  Tom de Vries  <tom@codesourcery.com>
1707
1708         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
1709         Remove.
1710
1711 2013-02-11  Roland McGrath  <roland@hack.frob.com>
1712
1713         * misc/sys/mman.h: Fix typo in mremap comment.
1714
1715 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1716
1717         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
1718         the '\0' terminator.
1719
1720 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1721
1722         [BZ #13550]
1723         * debug/segfault.c: Don't include <bp-checks.h>.
1724         * sysdeps/generic/bp-checks.h: Remove file.
1725         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
1726         (__GETDENTS): Don't use CHECK_N.
1727         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
1728         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
1729         (__getgroups): Don't use CHECK_N.
1730         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
1731         (setgroups): Don't use CHECK_N.
1732         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
1733         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
1734         (__libc_msgrcv): Don't use CHECK_N.
1735         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
1736         (__libc_msgsnd): Don't use CHECK_N.
1737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
1738         <bp-checks.h>.
1739         (__libc_pread): Don't use CHECK_N.
1740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
1741         include <bp-checks.h>.
1742         (__libc_pread64): Don't use CHECK_N.
1743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
1744         include <bp-checks.h>.
1745         (__libc_pwrite): Don't use CHECK_N.
1746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
1747         include <bp-checks.h>.
1748         (__libc_pwrite64): Don't use CHECK_N.
1749         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
1750         <bp-checks.h>.
1751         (__libc_pread): Don't use CHECK_N.
1752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
1753         include <bp-checks.h>.
1754         (__libc_pread64): Don't use CHECK_N.
1755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
1756         include <bp-checks.h>.
1757         (__libc_pwrite): Don't use CHECK_N.
1758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
1759         include <bp-checks.h>.
1760         (__libc_pwrite64): Don't use CHECK_N.
1761         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
1762         (do_pread): Don't use CHECK_N.
1763         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
1764         (do_pread64): Don't use CHECK_N.
1765         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
1766         (do_pwrite): Don't use CHECK_N.
1767         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
1768         (do_pwrite64): Don't use CHECK_N.
1769         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
1770         (__libc_readv): Don't use CHECK_N.
1771         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
1772         (semop): Don't use CHECK_N.
1773         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
1774         <bp-checks.h>.
1775         (semtimedop): Don't use CHECK_N.
1776         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
1777         (__libc_pread): Don't use CHECK_N.
1778         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
1779         <bp-checks.h>.
1780         (__libc_pread64): Don't use CHECK_N.
1781         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
1782         <bp-checks.h>.
1783         (__libc_pwrite): Don't use CHECK_N.
1784         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
1785         <bp-checks.h>.
1786         (__libc_pwrite64): Don't use CHECK_N.
1787         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
1788         <bp-checks.h>.
1789         (__libc_msgrcv): Don't use CHECK_N.
1790         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
1791         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
1792         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
1793         (__libc_writev): Don't use CHECK_N.
1794
1795 2013-02-08  Roland McGrath  <roland@hack.frob.com>
1796
1797         * string/strcpy.c: Removed unused variable.
1798
1799         * Makeconfig (+sysdep-includes): Define with := rather than =.
1800         Use an existing include/ subdir of each sysdeps dir before it.
1801
1802 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1803
1804         * nscd/connection.c (register_traced_file): Comment function.
1805         [HAVE_INOTIFY] (union __inev): Define.
1806         [HAVE_INOTIFY] (inotify_check_files): New function.
1807         [HAVE_INOTIFY] (clear_db_cache): Likewise.
1808         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
1809         clear_db_cache.
1810         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
1811
1812 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1813
1814         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
1815         loaded if not already and that a failure is permanent.
1816
1817 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
1818
1819         [BZ #15006]
1820         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
1821         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
1822
1823 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
1824
1825         [BZ #13550]
1826         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
1827         (CHECK_1_NULL_OK): Likewise.
1828         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
1829         (__fxstat): Do not use CHECK_1.
1830         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
1831         <bp-checks.h>.
1832         (___fxstat64): Do not use CHECK_1.
1833         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
1834         <bp-checks.h>.
1835         (__fxstatat): Do not use CHECK_1.
1836         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
1837         <bp-checks.h>.
1838         (__fxstatat64): Do not use CHECK_1.
1839         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
1840         <bp-checks.h>.
1841         (__fxstat): Do not use CHECK_1.
1842         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
1843         <bp-checks.h>.
1844         (__fxstatat): Do not use CHECK_1.
1845         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
1846         <bp-checks.h>.
1847         (__getresgid): Do not use CHECK_1.
1848         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
1849         <bp-checks.h>.
1850         (__getresuid): Do not use CHECK_1.
1851         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
1852         <bp-checks.h>.
1853         (__lxstat): Do not use CHECK_1.
1854         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
1855         <bp-checks.h>.
1856         (__old_msgctl): Do not use CHECK_1.
1857         (__new_msgctl): Likewise.
1858         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
1859         <bp-checks.h>.
1860         (__new_setrlimit): Do not use CHECK_1.
1861         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
1862         <bp-checks.h>.
1863         (__old_shmctl): Do not use CHECK_1.
1864         (__new_shmctl): Likewise.
1865         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
1866         <bp-checks.h>.
1867         (__xstat): Do not use CHECK_1.
1868         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
1869         (__lxstat): Do not use CHECK_1.
1870         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
1871         <bp-checks.h>.
1872         (___lxstat64): Do not use CHECK_1.
1873         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
1874         (__old_msgctl): Do not use CHECK_1.
1875         (__new_msgctl): Likewise.
1876         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
1877         <bp-checks.h>.
1878         (__gettimeofday): Do not use CHECK_1.
1879         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
1880         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
1881         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
1882         <bp-checks.h>.
1883         (__gettimeofday): Do not use CHECK_1.
1884         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
1885         (__old_shmctl): Do not use CHECK_1_NULL_OK.
1886         (__new_shmctl): Do not use CHECK_1.
1887         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
1888         <bp-checks.h>.
1889         (do_sigtimedwait): Do not use CHECK_1.
1890         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
1891         <bp-checks.h>.
1892         (do_sigwaitinfo): Do not use CHECK_1.
1893         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
1894         <bp-checks.h>.
1895         (msgctl): Do not use CHECK_1.
1896         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
1897         <bp-checks.h>.
1898         (shmctl): Do not use CHECK_1.
1899         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
1900         (ustat): Do not use CHECK_1.
1901         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
1902         <bp-checks.h>.
1903         (__fxstat): Do not use CHECK_1.
1904         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
1905         <bp-checks.h>.
1906         (__fxstatat): Do not use CHECK_1.
1907         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
1908         <bp-checks.h>.
1909         (__lxstat): Do not use CHECK_1.
1910         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
1911         <bp-checks.h>.
1912         (__xstat): Do not use CHECK_1.
1913         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
1914         (__xstat): Do not use CHECK_1.
1915         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
1916         (___xstat64): Do not use CHECK_1.
1917
1918         [BZ #13550]
1919         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
1920         definitions.
1921         (CHECK_BOUNDS_HIGH): Likewise.
1922         * string/strcpy.c: Do not include <bp-checks.h>.
1923         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
1924
1925 2013-02-07  Roland McGrath  <roland@hack.frob.com>
1926
1927         * nscd/nscd-client.h (__nscd_drop_map_ref):
1928         Add __attribute__ ((unused)).
1929         * nis/nss-nisplus.h (niserr2nss): Likewise.
1930
1931         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
1932         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
1933
1934         * csu/libc-tls.c (init_static_tls, init_slotinfo):
1935         Remove inline keyword.
1936         * include/rounding-mode.h (round_away): Likewise.
1937         * libio/wfileops.c (adjust_wide_data): Likewise.
1938         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
1939         (__m128i_strloadu_tolower): Likewise.
1940         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
1941         (__m128i_strloadu_tolower): Likewise.
1942         * time/mktime.c (ydhms_diff): Likewise.
1943         * locale/elem-hash.h (elem_hash): Likewise.
1944         * locale/setlocale.c (setdata): Likewise.
1945         * posix/regex_internal.h (re_string_char_size_at): Likewise.
1946         (re_string_wchar_at): Likewise.
1947         (bitset_not, bitset_merge, bitset_mask): Likewise.
1948         [!(__GNUC__ > 3)] (inline): Remove macro.
1949         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
1950         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
1951         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
1952         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
1953         * string/memcmp.c (memcmp_bytes): Likewise.
1954         * locale/programs/locarchive.c (compute_hashval): Likewise.
1955         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
1956         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
1957         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
1958         * nss/getent.c (print_rpc, print_protocols): Likewise.
1959         (print_passwd, print_group, print_aliases): Likewise.
1960         * nis/nss-nisplus.h (niserr2nss): Likewise.
1961         * nscd/connections.c (restart_p): Likewise.
1962         Change return type to bool.
1963
1964 2013-02-05  Roland McGrath  <roland@hack.frob.com>
1965
1966         * Makeconfig (all-Depend-files): Add existing
1967         $(sorted-subdirs:=/Depend) files.
1968         (all-subdirs): Remove nss.
1969         * sysdeps/unix/inet/Subdirs: Add it here instead.
1970         * hesiod/Depend: New file.
1971
1972         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
1973         instead of calling alloca.
1974
1975         * io/lseek.c (__lseek): Rename to __libc_lseek.
1976         Define __lseek as an alias.
1977
1978         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
1979
1980 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
1981
1982         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
1983         else clause and remove check for non-standard endianness.
1984
1985 2013-02-04  David S. Miller  <davem@davemloft.net>
1986
1987         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1988
1989 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
1990
1991         [BZ #13550]
1992         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
1993         (__ubp_memchr): Remove prototype.
1994         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
1995         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1996         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
1997         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
1998         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
1999         Remove alias.
2000         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
2001         (__ubp_memchr): Likewise.
2002         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
2003         (__ubp_memchr): Likewise.
2004         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
2005         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
2006         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
2007         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
2008         CHECK_STRING.
2009         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
2010         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
2011         (__getcwd): Do not use CHECK_STRING.
2012         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
2013         <bp-checks.h>.
2014         (__real_chown): Do not use CHECK_STRING.
2015         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
2016         <bp-checks.h>.
2017         (fchownat): Do not use CHECK_STRING.
2018         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
2019         CHECK_STRING.
2020         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
2021         <bp-checks.h>.
2022         (__lchown): Do not use CHECK_STRING.
2023         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
2024         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
2025         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
2026         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
2027         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
2028         include <bp-checks.h>.
2029         (truncate64): Do not use CHECK_STRING.
2030         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
2031         <bp-checks.h>.
2032         (__real_chown): Do not use CHECK_STRING.
2033         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
2034         <bp-checks.h>.
2035         (__lchown): Do not use CHECK_STRING.
2036         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
2037         <bp-checks.h>.
2038         (__chown): Do not use CHECK_STRING.
2039         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
2040         <bp-checks.h>.
2041         (truncate64): Do not use CHECK_STRING.
2042         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
2043         Likewise.
2044         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
2045         (__xmknod): Do not use CHECK_STRING.
2046         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
2047         <bp-checks.h>.
2048         (__xmknodat): Do not use CHECK_STRING.
2049         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
2050         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
2051
2052 2013-02-04  Andreas Schwab  <schwab@suse.de>
2053
2054         [BZ #14142]
2055         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
2056         * include/netdb.h: Likewise for h_errno.
2057         * elf/tst-stackguard1.c: Include <tls.h>.
2058
2059 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
2060
2061         * elf/link.h (struct link_map): Extend the l_addr comment.
2062         * include/link.h (struct link_map): Likewise.
2063
2064 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
2065
2066         [BZ #13550]
2067         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
2068         (BOUNDED_1): Remove macro.
2069         * debug/backtrace.c: Don't include <bp-checks.h>.
2070         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
2071         (__backtrace): Likewise.
2072         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
2073         <bp-checks.h>.
2074         (__backtrace): Don't use BOUNDED_1.
2075         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
2076         <bp-checks.h>.
2077         (__backtrace): Don't use BOUNDED_1.
2078         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
2079         (__backtrace): Don't use BOUNDED_1.
2080         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
2081         (shmat): Don't use BOUNDED_N.
2082
2083 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
2084
2085         [BZ #13550]
2086         * sysdeps/generic/bp-start.h: Remove file.
2087         * csu/libc-start.c: Don't include <bp-start.h>.
2088         (LIBC_START_MAIN): Set up __environ directly instead of using
2089         INIT_ARGV_and_ENVIRON.
2090         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
2091         <bp-start.h>.
2092
2093         [BZ #13550]
2094         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
2095         definitions.
2096         (CHECK_FCNTL): Likewise.
2097         (CHECK_N_PAGES): Likewise.
2098
2099         [BZ #13550]
2100         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
2101         definitions.
2102         (CHECK_SIGSET_NULL_OK): Likewise.
2103         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
2104         <bp-checks.h>.
2105         (sigpending): Don't use CHECK_SIGSET.
2106         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
2107         <bp-checks.h>.
2108         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2109         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
2110         <bp-checks.h>.
2111         (do_sigsuspend): Don't use CHECK_SIGSET.
2112         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
2113         use CHECK_SIGSET.
2114         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
2115         (do_sigwait): Don't use CHECK_SIGSET.
2116         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
2117         use CHECK_SIGSET.
2118         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
2119         include <bp-checks.h>.
2120         (sigpending): Don't use CHECK_SIGSET.
2121         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
2122         include <bp-checks.h>.
2123         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2124         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
2125         <bp-checks.h>.
2126         (sigpending): Don't use CHECK_SIGSET.
2127         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
2128         <bp-checks.h>.
2129         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
2130
2131         [BZ #13550]
2132         * sysdeps/generic/bp-semctl.h: Remove file.
2133         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
2134         <bp-checks.h> and <bp-semctl.h>.
2135         (__old_semctl): Don't use CHECK_SEMCTL.
2136         (__new_semctl): Likewise.
2137         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
2138         and <bp-semctl.h>.
2139         (__old_semctl): Don't use CHECK_SEMCTL.
2140         (__new_semctl): Likewise.
2141         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
2142         <bp-checks.h> and <bp-semctl.h>.
2143         (__old_semctl): Don't use CHECK_SEMCTL.
2144         (__new_semctl): Likewise.
2145         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
2146         <bp-checks.h> and <bp-semctl.h>.
2147         (semctl): Don't use CHECK_SEMCTL.
2148
2149         [BZ #13550]
2150         * Makerules (elide-bp-thunks): Remove variable.
2151         (elide-routines.oS): Don't use $(elide-bp-thunks).
2152         (elide-routines.os): Likewise.
2153         (elide-routines.o): Likewise.
2154         (elide-routines.op): Likewise.
2155         (elide-routines.og): Likewise.
2156         (objects): Don't use $(bp-thunks).
2157         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
2158         include.
2159         (common-generated): Do not add s-proto-bp.d.
2160         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
2161         (int): Likewise.
2162         (typ): Likewise.
2163         Do not generate makefile rules for bounded-pointer thunks.
2164         * sysdeps/generic/bp-thunks.h: Remove file.
2165         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
2166         * sysdeps/unix/s-proto-bp.S: Likewise.
2167
2168         [BZ #15062]
2169         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
2170         parts of result separately when argument is not close to line from
2171         -i to i and one part of argument is small.
2172         * math/k_casinhf.c (__kernel_casinhf): Likewise.
2173         * math/k_casinhl.c (__kernel_casinhl): Likewise.
2174         * math/libm-test.inc (cacos_test): Add more tests.
2175         (casin_test): Likewise.
2176         (casinh_test): Likewise.
2177         * sysdeps/i386/fpu/libm-test-ulps: Update.
2178         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2179
2180 2013-01-31  David S. Miller  <davem@davemloft.net>
2181
2182         * po/de.po: Update from translation team.
2183
2184 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
2185
2186         * time/tzfile.c: Include stdint.h for SIZE_MAX.
2187
2188 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
2189
2190         * configure.in (_AC_PROG_CC_C89): New definition.
2191         * configure: Regenerate.
2192
2193         * configure.in (AC_PROG_CPP): New definition.
2194         * configure: Regenerate.
2195
2196 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
2197
2198         * debug/tst-backtrace.h: New file.
2199         * debug/tst-backtrace2.c: Include tst-backtrace.h.
2200         (ret): Remove variable.
2201         (x): Likewise.
2202         (FAIL): Remove macro.
2203         (NO_INLINE): Likewise.
2204         (fn1): Use match function instead of strstr.
2205         * debug/tst-backtrace3.c: Include tst-backtrace.h.
2206         (ret): Remove variable.
2207         (x): Likewise.
2208         (FAIL): Remove macro.
2209         (NO_INLINE): Likewise.
2210         (fn): Use match function instead of strstr.
2211         * debug/tst-backtrace4.c: Include tst-backtrace.h.
2212         (ret): Remove variable.
2213         (x): Likewise.
2214         (FAIL): Remove macro.
2215         (NO_INLINE): Likewise.
2216         (handle_signal): Use match function instead of strstr.
2217         * debug/tst-backtrace5.c: Include tst-backtrace.h.
2218         (ret): Remove variable.
2219         (x): Likewise.
2220         (FAIL): Remove macro.
2221         (NO_INLINE): Likewise.
2222         (handle_signal): Use match function instead of strstr.
2223
2224 2013-01-23  Roland McGrath  <roland@hack.frob.com>
2225
2226         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
2227
2228 2013-01-23  David S. Miller  <davem@davemloft.net>
2229
2230         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
2231         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
2232         argument of CAS if possible.
2233         * sysdeps/sparc/sparc64/bits/atomic.h
2234         (__arch_compare_and_exchange_val_32_acq): Likewise.
2235         (__arch_compare_and_exchange_val_64_acq): Likewise.
2236
2237 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
2238
2239         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
2240         * sysdeps/posix/ulimit.c: ... this.
2241         Include <limits.h>.
2242         * sysdeps/unix/bsd/ulimit.c: Remove file.
2243
2244 2013-01-23  Adam Conrad  <adconrad@0c3.net>
2245
2246         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
2247         (LDFLAGS-tst-array5): Likewise.
2248
2249 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
2250
2251         [BZ #15036]
2252         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
2253         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
2254         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
2255         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
2256
2257 2013-01-21  David S. Miller  <davem@davemloft.net>
2258
2259         * sysdeps/sparc/backtrace.c: New file.
2260         * sysdeps/sparc/sparc32/backtrace.h: New file.
2261         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
2262         * sysdeps/sparc/sparc64/backtrace.h: New file.
2263         * sysdeps/sparc/sparc64/backtrace.c: Delete.
2264         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
2265         -funwind-tables.
2266
2267 2013-01-21  Andreas Schwab  <schwab@suse.de>
2268
2269         [BZ #15020]
2270         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
2271         closed its stdout.
2272
2273 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
2274
2275         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
2276         "mpa2.h".
2277         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2278
2279 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
2280             Mark Mitchell  <mark@codesourcery.com>
2281             Tom de Vries  <tom@codesourcery.com>
2282             Paul Pluzhnikov  <ppluzhnikov@google.com>
2283
2284         * debug/tst-backtrace2.c: New file.
2285         * debug/tst-backtrace3.c: Likewise.
2286         * debug/tst-backtrace4.c: Likewise.
2287         * debug/tst-backtrace5.c: Likewise.
2288         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
2289         (CFLAGS-tst-backtrace3.c): Likewise.
2290         (CFLAGS-tst-backtrace4.c): Likewise.
2291         (CFLAGS-tst-backtrace5.c): Likewise.
2292         (LDFLAGS-tst-backtrace2): Likewise.
2293         (LDFLAGS-tst-backtrace3): Likewise.
2294         (LDFLAGS-tst-backtrace4): Likewise.
2295         (LDFLAGS-tst-backtrace5): Likewise.
2296         (tests): Add new tests tst-backtrace2, tst-backtrace3,
2297         tst-backtrace4 and tst-backtrace5.
2298
2299 2013-01-18  Anton Blanchard  <anton@samba.org>
2300             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2301
2302         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
2303         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
2304         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
2305         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
2306         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
2307         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
2308         "+r" and remove output regs list as redundant.  Add explicit inline
2309         asm to specify register of return val to work around compiler codegen
2310         bug.  Remove (int) cast on return value.  Add return type parameter to
2311         use in macro so that this macro does not truncate return value for
2312         64-bit values.
2313         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
2314         pass to INTERNAL_VSYSCALL_NCS.
2315         (INLINE_VSYSCALL): Add 'long int' as return type to
2316         INTERNAL_VSYSCALL_NCS macro invocation.
2317         (INTERNAL_VSYSCALL): Add 'long int' as return type to
2318         INTERNAL_VSYSCALL_NCS macro invocation.
2319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
2320
2321 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2322
2323         [BZ #14496]
2324         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
2325         Fix application of SIMD FP exception mask.
2326
2327         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
2328         mp_no from a power of two.
2329         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
2330         __mpexp_twomm1.  Use __pow_mp.
2331
2332         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
2333         multiplication.
2334
2335 2013-01-17  David S. Miller  <davem@davemloft.net>
2336
2337         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2338
2339 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
2340
2341         [BZ #15023]
2342         * include/complex.h: Condition contents on [!_COMPLEX_H].
2343         (__kernel_casinhf): New prototype.
2344         (__kernel_casinh): Likewise.
2345         (__kernel_casinhl): Likewise.
2346         * math/Makefile (libm_calls): Add k_casinh.
2347         * math/k_casinh.c: New file.
2348         * math/k_casinhf.c: Likewise.
2349         * math/k_casinhl.c: Likewise.
2350         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
2351         finite nonzero arguments.
2352         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
2353         finite nonzero arguments.
2354         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
2355         finite nonzero arguments.
2356         * math/s_casinh.c: Do not include <float.h>.
2357         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
2358         * math/s_casinhf.c: Do not include <float.h>.
2359         (__casinhf): Move code for finite nonzero arguments to
2360         k_casinhf.c.
2361         * math/s_casinhl.c: Do not include <float.h>.
2362         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
2363         redefine.
2364         (__casinhl): Move code for finite nonzero arguments to
2365         k_casinhl.c.
2366         * math/libm-test.inc (cacos_test): Add more tests.
2367         * sysdeps/i386/fpu/libm-test-ulps: Update.
2368         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2369
2370 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
2371
2372         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
2373         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
2374         [!HAVE_MREMAP]: Remove [defined linux] case.
2375         * malloc/arena.c: Do not include <malloc-sysdep.h>.
2376
2377 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2378
2379         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
2380
2381 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
2382
2383         * elf/elf.h (R_386_SIZE32): New relocation.
2384         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
2385         R_386_SIZE32.
2386         (elf_machine_rela): Likewise.
2387         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
2388         R_X86_64_SIZE64 and R_X86_64_SIZE32.
2389
2390 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
2391
2392         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
2393         (FP_FAST_FMA): Do not define.
2394         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
2395         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
2396         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
2397         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
2398         !_SOFT_FLOAT]: Likewise.
2399         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
2400         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
2401         value.
2402         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
2403         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
2404         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
2405         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
2406         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
2407         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
2408         file.
2409
2410 2013-01-16  Andreas Schwab  <schwab@suse.de>
2411
2412         [BZ #14327]
2413         * include/stdlib.h (__mktemp): Add declaration.
2414         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
2415         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
2416
2417 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
2418
2419         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
2420         definitions.
2421         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
2422         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
2423         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
2424         definitions here.
2425         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
2426         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
2427         definitions.
2428         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
2429         and ONE.
2430         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
2431         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
2432         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
2433         definitions.
2434         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
2435         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
2436         definitions.
2437         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
2438
2439         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
2440
2441 2013-01-15  David S. Miller  <davem@davemloft.net>
2442
2443         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2444         trunc{,f} to libm-sysdep_routes.
2445         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
2447         file.
2448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
2449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
2450         file.
2451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
2452         file.
2453         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
2454         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
2455         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
2456         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
2457         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
2458         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
2459         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
2460         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
2461
2462         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2463         nearbyint{,f} to libm-sysdep_routes.
2464         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2465         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
2466         New file.
2467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
2468         file.
2469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
2470         New file.
2471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
2472         file.
2473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
2474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
2475         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
2476         file.
2477         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
2478         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
2479         file.
2480         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
2481         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
2482         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
2483
2484         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2485         libc_feholdexcept and libc_fesetenv.
2486
2487 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
2488
2489         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
2490
2491 2013-01-14  David S. Miller  <davem@davemloft.net>
2492
2493         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
2494         (SPARC_ASM_VIS2_IFUNC): Likewise.
2495         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
2496         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
2497         use of 'siam' instruction.
2498         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
2499         Likewise.
2500         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
2501         Likewise.
2502         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
2503         Likewise.
2504         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
2505         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
2506         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
2507         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
2508         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
2509         file.
2510         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
2511         file.
2512         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
2513         file.
2514         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
2515         file.
2516         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
2517         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
2518         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
2519         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
2520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
2521         new VIS2 routines.
2522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
2523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
2524         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
2525         Likewise.
2526         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
2527         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
2528         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
2529         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
2530         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
2531         routines to libm-sysdep_routines.
2532         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
2533
2534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
2535         fdim/fdimf to libm-sysdep_routines.
2536         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
2537         file.
2538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
2539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
2540         file.
2541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
2542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
2543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
2544         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
2545         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
2546         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
2547         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
2548
2549 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
2550
2551         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
2552         to optimize copies.
2553
2554         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
2555         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2556         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
2557
2558         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
2559         local variable MPTWO.
2560         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
2561         Likewise.
2562
2563 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2564
2565         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
2566         GLOB_NOESCAPE.
2567
2568 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2569
2570         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
2571
2572 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
2573
2574         * manual/pattern.texi (glob_t): Document gl_flags.
2575         (glob64_t): Likewise.
2576
2577 2013-01-11  David S. Miller  <davem@davemloft.net>
2578
2579         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
2580         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
2581         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
2582         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
2583         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
2584         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
2585         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
2586         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
2587         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
2588         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
2589         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
2590         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
2591         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
2592
2593         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2594         sparc V9 rather than using V8 code.
2595         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2596         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2597
2598         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
2599         Move to...
2600         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
2601         Here.
2602
2603 2013-01-11  Roland McGrath  <roland@hack.frob.com>
2604
2605         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
2606         not in the main loop.
2607         * configure: Regenerated.
2608
2609 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
2610
2611         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
2612         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
2613         to just #else.
2614         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
2615         [!__GLIBC_HAVE_LONG_LONG] case.
2616         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
2617         condition to just #else.
2618         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
2619         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
2620         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
2621         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
2622         unconditional.
2623         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
2624         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2625         #elif condition to just #else.
2626         * sysdeps/unix/sysv/linux/sys/sysmacros.h
2627         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
2628         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
2629         #elif condition to just #else.
2630
2631 2013-01-11  Steve Ellcey  <sellcey@mips.com>
2632
2633         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
2634         (EF_MIPS_ARCH_64): Fix value.
2635         (EF_MIPS_ARCH_32R2): New.
2636         (EF_MIPS_ARCH_64R2): New.
2637
2638 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
2639
2640         * Makeconfig (+link-pie-before-libc): New.
2641         (+link-pie-after-libc): Likewise.
2642         (+link-pie-tests): Likewise.
2643         (+link-pie): Rewritten.
2644         (link-before-libc): Remove $(config-LDFLAGS).
2645         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
2646         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
2647         (config-LDFLAGS): Renamed to ...
2648         (rtld-LDFLAGS): This.
2649         (rtld-tests-LDFLAGS): New macro.
2650         (link-libc-rpath-link): Likewise.
2651         (link-libc-tests-rpath-link): Likewise.
2652         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
2653         (link-libc): Prepand $(link-libc-rpath-link).
2654         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
2655         (test-program-prefix): New macro.
2656         (test-via-rtld-prefix): Likewise.
2657         (test-program-cmd): Likewise.
2658         (host-test-program-cmd): Likewise.
2659         * Makefile ($(common-objpfx)testrun.sh): Replace
2660         $(run-program-prefix) with $(test-program-prefix).
2661         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
2662         $(rtld-LDFLAGS).
2663         ($(common-objpfx)shlib.lds): Likewise.
2664         (build-module-helper): Likewise.
2665         ($(common-objpfx)format.lds): Likewise.
2666         * Rules (binaries-pie-tests): New.
2667         (binaries-pie-notests): Likewise.
2668         (binaries-pie): Rewritten.
2669         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
2670         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
2671         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
2672         (make-test-out): Replace $(host-built-program-cmd) with
2673         $(host-test-program-cmd).
2674         * config.make.in (build-hardcoded-path-in-tests): New variable.
2675         * configure.in (--enable-hardcoded-path-in-tests): New configure
2676         option.
2677         (hardcoded_path_in_tests): New AC_SUBST.
2678         * configure: Regenerated.
2679         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
2680         $(built-program-cmd) with $(test-program-cmd).
2681         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
2682         (test_program_cmd): This.
2683         * elf/Makefile ($(objpfx)order.out): Run test with
2684         $(test-program-prefix).
2685         ($(objpfx)order2.out): Likewise.
2686         ($(objpfx)tst-initorder.out): Likewise.
2687         ($(objpfx)tst-initorder2.out): Likewise.
2688         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
2689         $(test-program-cmd).
2690         ($(objpfx)tst-array1-static.out): Likewise.
2691         ($(objpfx)tst-array2.out): Likewise.
2692         ($(objpfx)tst-array3.out): Likewise.
2693         ($(objpfx)tst-array4.out): Likewise.
2694         ($(objpfx)tst-array5.out): Likewise.
2695         ($(objpfx)tst-array5-static.out): Likewise.
2696         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
2697         $(test-program-cmd).
2698         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
2699         $(run-program-prefix) with $(test-program-prefix).
2700         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
2701         (test_program_prefix): This.
2702         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
2703         $(run-program-prefix) with $(test-program-prefix).
2704         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
2705         (test_program_prefix): This.
2706         * iconvdata/tst-tables.sh: Likewise.
2707         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
2708         $(run-program-prefix) with $(test-program-prefix).
2709         ($(objpfx)tst-translit.out): Likewise.
2710         ($(objpfx)tst-gettext2.out): Likewise.
2711         ($(objpfx)tst-gettext4.out): Likewise.
2712         ($(objpfx)tst-gettext6.out): Likewise.
2713         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
2714         (test_program_prefix): This.
2715         * intl/tst-gettext2.sh: Likewise.
2716         * intl/tst-gettext4.sh  Likewise.
2717         * intl/tst-gettext6.sh: Likewise.
2718         * intl/tst-translit.sh: Likewise.
2719         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
2720         with $(test-program-cmd).
2721         * libio/Makefile ($(objpfx)test-freopen.out): Replace
2722         $(run-program-prefix) with $(test-program-prefix).
2723         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
2724         (test_program_prefix): This.
2725         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
2726         $(run-program-prefix) with $(test-program-prefix).
2727         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
2728         (test_program_prefix): This.
2729         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
2730         * posix/Makefile ($(objpfx)globtest.out): Replace
2731         $(run-via-rtld-prefix) and $(test-wrapper) with
2732         $(test-program-prefix) and $(test-via-rtld-prefix).
2733         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
2734         $(test-program-prefix).
2735         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
2736         $(host-test-program-cmd).
2737         (tst-spawn-ARGS): Likewise.
2738         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
2739         $(test-program-prefix).
2740         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
2741         (test_via_rtld_prefix): This.
2742         (test_wrapper): Renamed to ...
2743         (test_program_prefix): This.
2744         (run_program_prefix): Replaced by test_program_prefix.
2745         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
2746         (test_program_prefix): This.
2747         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
2748         with $(host-test-program-cmd).
2749         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
2750         $(run-program-prefix) with $(test-program-prefix).
2751         ($(objpfx)tst-printf.out): Likewise.
2752         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
2753         $(test-program-cmd).
2754         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
2755         (test_program_prefix): This.
2756         * stdio-common/tst-unbputc.sh: Likewise.
2757         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
2758         $(run-program-prefix) with $(test-program-prefix).
2759         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
2760         (test_program_prefix): This.
2761         * string/Makefile ($(objpfx)tst-svc.out):  Replace
2762         $(built-program-cmd) with $(test-program-cmd).
2763
2764 2013-01-11  Andreas Jaeger  <aj@suse.de>
2765
2766         [BZ #15003]
2767         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
2768         value. Sync with Linux 3.7.
2769
2770 2013-01-10  David S. Miller  <davem@davemloft.net>
2771
2772         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
2773         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2774         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2775
2776 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2777
2778         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
2779         never set.
2780         * configure: Regenerated.
2781
2782 2013-01-10  David S. Miller  <davem@davemloft.net>
2783
2784         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
2785         sparc V9 rather than using V8 code.
2786         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
2787         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
2788
2789 2013-01-10  Roland McGrath  <roland@hack.frob.com>
2790
2791         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
2792         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
2793         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
2794         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
2795         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
2796         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
2797         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
2798         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
2799         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
2800         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
2801         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
2802         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
2803         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
2804         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
2805         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
2806         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
2807         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
2808         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
2809         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
2810         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
2811         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
2812         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
2813         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
2814         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
2815         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
2816         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
2817         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
2818
2819 2013-01-10  David S. Miller  <davem@davemloft.net>
2820
2821         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2822
2823 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2824
2825         * posix/Makefile (tests-static): New variable.
2826         (tests): Add $(tests-static).
2827         (tst-exec-static-ARGS): New variable.
2828         (tst-spawn-static-ARGS): Likewise.
2829         * posix/tst-exec-static.c: New file.
2830         * posix/tst-spawn-static.c: Likewise.
2831         * posix/tst-exec.c: Support run directly.
2832         * posix/tst-spawn.c: Likewise.
2833
2834 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
2835
2836         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
2837         long.
2838         * math/bits/mathcalls.h (llrint): Likewise.
2839         (llround): Likewise.
2840         * stdlib/stdlib.h (struct drand48_data): Likewise.
2841         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
2842         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
2843         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
2844         Likewise.
2845         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
2846         Likewise.
2847         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
2848         (elf_greg_t): Likewise.
2849         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
2850         (__jmp_buf): Likewise.
2851         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
2852         definitions.
2853         (llrint): Likewise, for all definitions.
2854         (llrintl): Likewise.
2855
2856         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
2857         Remove [__GNUC__] condition.
2858         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
2859         condition to just [__USE_ISOC99].
2860         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
2861
2862 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
2863
2864         [BZ #14200]
2865         * sysdeps/unix/sysv/linux/x86/bits/environments.h
2866         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
2867         defined.
2868         (_POSIX_V6_ILP32_OFF32): Likewise.
2869         (_XBS5_ILP32_OFF32): Likewise.
2870         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
2871         (__ILP32_OFFBIG_LDFLAGS): Likewise.
2872
2873 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
2874
2875         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
2876
2877         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
2878         doubles __mpexp_twomm1.  Adjust usage.
2879         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
2880         Remove.
2881
2882 2013-01-10  Andreas Schwab  <schwab@suse.de>
2883
2884         [BZ #14964]
2885         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
2886         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
2887
2888 2013-01-09  David S. Miller  <davem@davemloft.net>
2889
2890         [BZ #15003]
2891         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
2892         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
2893         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
2894         TCP_FASTOPEN): Define.
2895         (tcp_repair_opt): New structure.
2896         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
2897         enum values.
2898         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
2899         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
2900         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
2901         (tcp_cookie_transactions): New structure.
2902
2903 2013-01-09  Anton Blanchard  <anton@samba.org>
2904
2905         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
2906         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
2907         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
2908         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
2909
2910 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
2911
2912         * include/features.h (__USE_ANSI): Remove.
2913
2914 2013-01-09  Roland McGrath  <roland@hack.frob.com>
2915
2916         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
2917
2918         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
2919
2920 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
2921
2922         * sysdeps/s390/fpu/libm-test-ulps: Update.
2923
2924         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2925
2926         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
2927         (__acr): Likewise.
2928         (__cpy): Likewise.
2929         (norm): Likewise.
2930         (denorm): Likewise.
2931         (__mp_dbl): Likewise.
2932         (__dbl_mp): Likewise.
2933         (add_magnitudes): Likewise.
2934         (sub_magnitudes): Likewise.
2935         (__add): Likewise.
2936         (__sub): Likewise.
2937         (__mul): Likewise.
2938         (__inv): Likewise.
2939         (__dvd): Likewise.
2940         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
2941         (__acr): Likewise.
2942         (__cpy): Likewise.
2943         (norm): Likewise.
2944         (denorm): Likewise.
2945         (__mp_dbl): Likewise.
2946         (__dbl_mp): Likewise.
2947         (add_magnitudes): Likewise.
2948         (sub_magnitudes): Likewise.
2949         (__add): Likewise.
2950         (__sub): Likewise.
2951         (__mul): Likewise.
2952         (__inv): Likewise.
2953         (__dvd): Likewise.
2954         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
2955         (__acr): Likewise.
2956         (__cpy): Likewise.
2957         (norm): Likewise.
2958         (denorm): Likewise.
2959         (__mp_dbl): Likewise.
2960         (__dbl_mp): Likewise.
2961         (add_magnitudes): Likewise.
2962         (sub_magnitudes): Likewise.
2963         (__add): Likewise.
2964         (__sub): Likewise.
2965         (__mul): Likewise.
2966         (__inv): Likewise.
2967         (__dvd): Likewise.
2968
2969 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
2970
2971         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
2972         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
2973         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
2974         2 && __USE_EXTERN_INLINES]: Likewise.
2975
2976 2013-01-08  Andreas Jaeger  <aj@suse.de>
2977
2978         [BZ# 14985]
2979         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
2980         Remove.
2981         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2982         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
2983
2984 2013-01-07  Anton Blanchard  <anton@samba.org>
2985
2986         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
2987         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
2988         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
2989         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
2990         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
2991         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2992         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
2993         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
2994         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
2995         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
2996         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2997         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
2998         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
2999         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3000         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
3001         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
3002         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
3003         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3004         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
3005         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
3006         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
3007         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
3008         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
3009         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
3010         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
3011         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
3012         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
3013         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
3014         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
3015         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
3016         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
3017         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3018         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3019         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
3020         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
3021         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
3022         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3023         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
3024         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
3025         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
3026         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
3027         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
3028         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
3029
3030 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
3031
3032         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
3033         (__MALLOC_PMT): Likewise.
3034         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
3035         [__GNUC__], only on [_LIBC].
3036         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
3037         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
3038         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
3039         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
3040         forward declaration.
3041         (realloc_hook_ini): Likewise.
3042         (memalign_hook_ini): Likewise.
3043         (__libc_memalign): Do not use __MALLOC_PMT in variable
3044         declaration.
3045         (__libc_valloc): Likewise.
3046         (__libc_pvalloc): Likewise.
3047         (__libc_calloc): Likewise.
3048         (__posix_memalign): Likewise.
3049
3050         [BZ #14996]
3051         * math/s_casinh.c: Include <float.h>.
3052         (__casinh): Do not do computation with squaring and square root
3053         for large arguments.
3054         * math/s_casinhf.c: Include <float.h>.
3055         (__casinhf): Do not do computation with squaring and square root
3056         for large arguments.
3057         * math/s_casinhl.c: Include <float.h>.
3058         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
3059         (__casinhl): Do not do computation with squaring and square root
3060         for large arguments.
3061         * math/libm-test.inc (casin_test): Add more tests.
3062         (casinh_test): Likewise.
3063         * sysdeps/i386/fpu/libm-test-ulps: Update.
3064         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3065
3066 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
3067
3068         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
3069         (__x86_64_raw_data_cache_size): Likewise.
3070         (__x86_64_data_cache_size_half): Likewise.
3071         (__x86_64_raw_data_cache_size_half): Likewise.
3072         (__x86_64_shared_cache_size): Likewise.
3073         (__x86_64_raw_shared_cache_size): Likewise.
3074         (__x86_64_shared_cache_size_half): Likewise.
3075         (__x86_64_raw_shared_cache_size_half): Likewise.
3076         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
3077         to ...
3078         (__x86_data_cache_size): This.
3079         (__x86_64_raw_data_cache_size): Renamed to ...
3080         (__x86_raw_data_cache_size): This.
3081         (__x86_64_data_cache_size_half): Renamed to ...
3082         (__x86_data_cache_size_half): This.
3083         (__x86_64_raw_data_cache_size_half): Renamed to ...
3084         (__x86_raw_data_cache_size_half): This.
3085         (__x86_64_shared_cache_size): Renamed to ...
3086         (__x86_shared_cache_size): This.
3087         (__x86_64_raw_shared_cache_size): Renamed to ...
3088         (__x86_raw_shared_cache_size): This.
3089         (__x86_64_shared_cache_size_half): Renamed to ...
3090         (__x86_shared_cache_size_half): This.
3091         (__x86_64_raw_shared_cache_size_half): Renamed to ...
3092         (__x86_raw_shared_cache_size_half): This.
3093         * sysdeps/x86_64/memcpy.S: Updated.
3094         * sysdeps/x86_64/memset.S: Likewise.
3095         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
3096         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
3097         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
3098
3099 2013-01-04  David S. Miller  <davem@davemloft.net>
3100
3101         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3102
3103 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
3104
3105         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
3106         1 to avoid redefinition warning.
3107         (__USE_GNU): Don't define.
3108         (init_signaling_nan): Protoize.
3109
3110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3111
3112 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3113
3114         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
3115         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
3116         (__cpymn): Likewise.
3117         (norm): Remove commented code.
3118         (denorm): Likewise.
3119         (__mp_dbl): Likewise.
3120         (__inv): Likewise.
3121         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
3122         (__cpymn): Likewise.
3123         (norm): Remove commented code.
3124         (denorm): Likewise.
3125         (__mp_dbl): Likewise.
3126         (__inv): Likewise.
3127
3128         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
3129         mp_no value for 1.0 and 2.0.
3130         (norm): Use RADIXI instead of radixi.d.
3131         (denorm): Likewise.
3132         (__mul): Use 0.0 instead of zero.d.
3133         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
3134         mp_no value for 1.0 and 2.0.
3135         (norm): Use RADIXI instead of radixi.d.
3136         (denorm): Likewise.
3137         (__mul): Use 0.0 instead of zero.d.
3138
3139 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
3140
3141         [BZ #14994]
3142         * math/s_casinh.c (__casinh): Reduce finite argument to first
3143         quadrant then set signs of results at the end.
3144         * math/s_casinhf.c (__casinhf): Likewise.
3145         * math/s_casinhl.c (__casinhl): Likewise.
3146         * math/libm-test.inc (casin_test): Add more tests.
3147         (casinh_test): Likewise.
3148         * sysdeps/i386/fpu/libm-test-ulps: Update.
3149         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3150
3151 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3152
3153         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
3154
3155         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
3156
3157         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
3158         declarations.
3159         (denorm): Likewise.
3160         (__mp_dbl): Likewise.
3161         (__inv): Likewise.
3162
3163         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
3164         and adjust the header comment.
3165
3166         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
3167         variable name from declaration.
3168
3169 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
3170
3171         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3172         Initialize COMMON_CPUID_INDEX_7 element.
3173         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
3174         (CPUID_RTM): Likewise.
3175         (HAS_RTM): Likewise.
3176         (COMMON_CPUID_INDEX_7): New enum.
3177
3178 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
3179
3180         [BZ #14981]
3181         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
3182         size is zero, record memory as freed.
3183
3184 2013-01-03  Andreas Jaeger  <aj@suse.de>
3185
3186         * po/ia.po: Add new Interlingua translation.
3187
3188 2012-01-03  Allan McRae  <allan@archlinux.org>
3189
3190         * locale/programs/localedef.c: Fix description of '--posix' flag.
3191
3192 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
3193
3194         * NEWS: Update dates in second copyright notice.
3195         * README: Update copyright dates in example.
3196         * manual/libc.texinfo: Update copyright dates.
3197         * scripts/test-installation.pl: Update copyright date in --version
3198         output.
3199
3200         * hurd/ctty-input.c: Fix copyright notice formatting.
3201         * hurd/ctty-output.c: Likewise.
3202         * hurd/dtable.c: Likewise.
3203         * hurd/hurd-raise.c: Likewise.
3204         * hurd/hurdprio.c: Likewise.
3205         * hurd/msgportdemux.c: Likewise.
3206         * misc/sys/file.h: Likewise.
3207         * misc/sys/ioctl.h: Likewise.
3208         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
3209         * sysdeps/mach/hurd/chdir.c: Likewise.
3210         * sysdeps/mach/hurd/fchdir.c: Likewise.
3211         * sysdeps/mach/hurd/rename.c: Likewise.
3212         * sysdeps/mach/hurd/rmdir.c: Likewise.
3213         * sysdeps/mach/hurd/seekdir.c: Likewise.
3214         * sysdeps/mach/hurd/setsid.c: Likewise.
3215         * sysdeps/posix/wait3.c: Likewise.
3216
3217         * All files with FSF copyright notices: Update copyright dates
3218         using scripts/update-copyrights.
3219         * intl/plural.c: Regenerated.
3220         * locale/programs/charmap-kw.h: Likewise.
3221         * locale/programs/locfile-kw.h: Likewise.
3222
3223 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
3224
3225         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
3226         four values.
3227
3228         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
3229         calculation loop and add branch prediction.
3230
3231         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
3232         check access beyond bounds of m1np.
3233
3234         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
3235         MPTWO.
3236         (__inv): Remove local variable MPTWO to use the global
3237         constant.
3238         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
3239         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
3240         variable MPTWO.
3241         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
3242         MP3HALFS static const.
3243
3244 2013-01-01  David S. Miller  <davem@davemloft.net>
3245
3246         * po/ca.po: Update from translation team.
3247
3248 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
3249
3250         * scripts/update-copyrights: New file.
3251         * Makeconfig: Reformat copyright notice.
3252         * ctype/ctype.h: Likewise.
3253         * debug/swprintf_chk.c: Likewise.
3254         * elf/dl-cache.c: Likewise.
3255         * elf/dl-debug.c: Likewise.
3256         * elf/dl-object.c: Likewise.
3257         * grp/initgroups.c: Likewise.
3258         * hurd/Makefile: Likewise.
3259         * hurd/hurd/signal.h: Likewise.
3260         * hurd/hurdfault.c: Likewise.
3261         * hurd/hurdioctl.c: Likewise.
3262         * hurd/hurdlookup.c: Likewise.
3263         * hurd/intr-msg.c: Likewise.
3264         * iconv/gconv_open.c: Likewise.
3265         * libio/swprintf.c: Likewise.
3266         * locale/lc-ctype.c: Likewise.
3267         * locale/nl_langinfo.c: Likewise.
3268         * mach/Machrules: Likewise.
3269         * mach/Makefile: Likewise.
3270         * malloc/obstack.h: Likewise.
3271         * manual/Makefile: Likewise.
3272         * manual/tsort.awk: Likewise.
3273         * misc/bits/stab.def: Likewise.
3274         * nis/nis_print_group_entry.c: Likewise.
3275         * nis/nis_table.c: Likewise.
3276         * nis/nss_compat/compat-pwd.c: Likewise.
3277         * nis/nss_compat/compat-spwd.c: Likewise.
3278         * po/Makefile: Likewise.
3279         * posix/fnmatch.c: Likewise.
3280         * posix/regex.h: Likewise.
3281         * resolv/Makefile: Likewise.
3282         * resolv/nss_dns/dns-network.c: Likewise.
3283         * resolv/res_hconf.c: Likewise.
3284         * scripts/gen-sorted.awk: Likewise.
3285         * soft-fp/soft-fp.h: Likewise.
3286         * stdio-common/printf.h: Likewise.
3287         * stdlib/monetary.h: Likewise.
3288         * stdlib/random.c: Likewise.
3289         * stdlib/random_r.c: Likewise.
3290         * sysdeps/generic/Makefile: Likewise.
3291         * sysdeps/gnu/Makefile: Likewise.
3292         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
3293         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
3294         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
3295         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
3296         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
3297         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
3298         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
3299         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
3300         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
3301         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
3302         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
3303         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
3304         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
3305         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
3306         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
3307         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
3308         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
3309         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
3310         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
3311         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
3312         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
3313         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
3314         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
3315         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
3316         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
3317         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
3318         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
3319         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
3320         * sysdeps/mach/hurd/errnos.awk: Likewise.
3321         * sysdeps/mach/hurd/fork.c: Likewise.
3322         * sysdeps/mach/hurd/getcwd.c: Likewise.
3323         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
3324         * sysdeps/mach/hurd/mmap.c: Likewise.
3325         * sysdeps/mach/hurd/utimes.c: Likewise.
3326         * sysdeps/mach/hurd/xmknod.c: Likewise.
3327         * sysdeps/posix/profil.c: Likewise.
3328         * sysdeps/posix/readdir_r.c: Likewise.
3329         * sysdeps/powerpc/bits/mathdef.h: Likewise.
3330         * sysdeps/powerpc/bits/setjmp.h: Likewise.
3331         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
3332         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
3333         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
3334         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
3335         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
3336         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
3337         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
3338         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
3339         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
3340         * sysdeps/pthread/lio_listio.c: Likewise.
3341         * sysdeps/sparc/dl-procinfo.h: Likewise.
3342         * sysdeps/unix/i386/sysdep.S: Likewise.
3343         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
3344         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
3345         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
3346         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
3347         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
3348         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
3349         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
3350         * sysdeps/unix/sysv/linux/speed.c: Likewise.
3351         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
3352         * sysdeps/wordsize-32/divdi3.c: Likewise.
3353         * time/sys/time.h: Likewise.
3354         * wcsmbs/Makefile: Likewise.
3355
3356 2013-01-01  David S. Miller  <davem@davemloft.net>
3357
3358         * po/fr.po: Update from translation team.
3359
3360         * catgets/gencat.c: Update copyright year.
3361         * csu/version.c: Likewise.
3362         * debug/catchsegv.sh: Likewise.
3363         * debug/pcprofiledump.c: Likewise.
3364         * debug/xtrace.sh: Likewise.
3365         * elf/ldconfig.c: Likewise.
3366         * elf/ldd.bash.in: Likewise.
3367         * elf/pldd.c: Likewise.
3368         * elf/sotruss.ksh: Likewise.
3369         * elf/sprof.c: Likewise.
3370         * iconv/iconv_prog.c: Likewise.
3371         * iconv/iconvconfig.c: Likewise.
3372         * locale/programs/locale.c: Likewise.
3373         * locale/programs/localedef.c: Likewise.
3374         * login/programs/pt_chown.c: Likewise.
3375         * malloc/memusage.sh: Likewise.
3376         * malloc/memusagestat.c: Likewise.
3377         * malloc/mtrace.pl: Likewise.
3378         * nscd/nscd.c: Likewise.
3379         * nss/getent.c: Likewise.
3380         * nss/makedb.c: Likewise.
3381         * posix/getconf.c: Likewise.
3382
3383 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
3384
3385         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
3386         numbers.
3387
3388 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
3389
3390         * math/bits/mathcalls.h (modf): Use __nonnull.
3391
3392 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
3393
3394         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
3395         (split): Use macro CN instead of the bare value.
3396         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
3397         could be used.
3398         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
3399         instead of the bare value.
3400         (power1): Likewise.
3401
3402 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3403
3404         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
3405         __ATAN_TWOM.
3406         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3407
3408         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
3409         their values.
3410         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
3411         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
3412         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
3413         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
3414
3415 2012-12-28  Andreas Jaeger  <aj@suse.de>
3416
3417         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
3418         values are from Linux 3.7.
3419
3420         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
3421         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
3422
3423 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3424
3425         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
3426         TRUE case.
3427
3428         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
3429         (norm): Likewise.
3430         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
3431         variables with preprocessor constants.
3432         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
3433         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
3434         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
3435
3436 2012-12-27  Bruno Haible  <bruno@clisp.org>
3437
3438         [BZ #14317]
3439         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
3440         only if needed.
3441
3442 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3443
3444         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
3445         and use variable directly.
3446         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
3447
3448         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
3449         MPONE.
3450         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
3451         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
3452         variable MPONE.
3453         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
3454         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
3455         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
3456         include directive.  Remove local variable MPONE.
3457         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
3458         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
3459         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
3460
3461 2012-12-25  David S. Miller  <davem@davemloft.net>
3462
3463         * version.h (RELEASE): Set to "development".
3464         (VERSION): Set to "2.17.90".
3465         * NEWS: Add 2.18 section.
3466
3467 2012-12-21  David S. Miller  <davem@davemloft.net>
3468
3469         * po/hr.po: Update from translation team.
3470
3471 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3472
3473         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
3474
3475 2012-12-19  Steve Ellcey  <sellcey@mips.com>
3476
3477         * NEWS:  Mention new memcpy for MIPS.
3478
3479 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
3480
3481         * manual/contrib.texi (Contributors): Spelling correction.
3482
3483 2012-12-15  David S. Miller  <davem@davemloft.net>
3484
3485         * po/ru.po: Update from translation team.
3486
3487 2012-12-13  David S. Miller  <davem@davemloft.net>
3488
3489         * NEWS: Mention IFUNC testsuite enhancements.
3490
3491         * po/pl.po: Update from translation team.
3492         * po/bg.po: Likewise.
3493
3494         * manual/contrib.texi (Contributors): Update entries for Hongjiu
3495         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
3496
3497 2012-12-11  David S. Miller  <davem@davemloft.net>
3498
3499         * po/sv.po: Update from translation team.
3500
3501         * po/vi.po: Update from translation team.
3502
3503         * po/cs.po: Update from translation team.
3504
3505         * po/de.po: Update from translation team.
3506         * po/eo.po: Likewise.
3507         * po/nl.po: Likewise.
3508
3509 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
3510
3511         [BZ #14246]
3512         * manual/argp.texi (Argp Helper Functions): Move node to follow
3513         Argp Parsing State.
3514
3515         [BZ #14872]
3516         * manual/conf.texi (Limits on File System Capacity): Mention if
3517         terminating null is included in the max size.
3518
3519 2012-12-10  Andreas Jaeger  <aj@suse.de>
3520
3521         * po/cs.po: Update from translation team.
3522
3523 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
3524
3525         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
3526         void pointer and cast to uintptr_t.
3527         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
3528         path.
3529         * sysdeps/s390/s390-64/memcpy.S: Likewise.
3530         * sysdeps/s390/s390-64/memset.S: Likewise.
3531
3532 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
3533
3534         [BZ #14833]
3535         * menual/message.texi (Message Translation): Fix typos.
3536         (Helper programs for gettext): Likewise.
3537
3538 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
3539
3540         [BZ #14898]
3541         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
3542         Change to -1.
3543
3544 2012-12-07  David S. Miller  <davem@davemloft.net>
3545
3546         * po/libc.pot: Update.
3547
3548 2012-12-07  Richard Henderson  <rth@redhat.com>
3549
3550         [BZ #10114]
3551         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
3552         normal/normal case to before the switch.
3553         (_FP_DIV): Likewise.
3554
3555 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
3556             Mike Frysinger  <vapier@gentoo.org>
3557
3558         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
3559         check for __NR_fadvise64_64.
3560
3561 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
3562
3563         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
3564         0, not just to plain "0" as a statement.
3565         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
3566         with cw.
3567
3568 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
3569
3570         * NEWS: Use sourceware.org in Bugzilla URL.
3571
3572 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
3573
3574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
3575         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3576
3577         * stdio-common/tst-put-error.c (do_test): Add newline to the
3578         padded test to ensure flush.
3579
3580 2012-12-05  Jeff Law  <law@redhat.com>
3581
3582         * sunrpc/etc.rpc (fedfs_admin): Add entry.
3583
3584 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
3585
3586         * README: Don't refer to ports add-on as distributed separately.
3587         Mention AArch64 in list of systems supported in the ports add-on.
3588
3589         * LICENSES: Add more non-FSF copyright and license notices.
3590
3591         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
3592         ((unused)).
3593
3594         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
3595
3596         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
3597         10000 as width of padded output.
3598
3599 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3600
3601         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
3602
3603         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
3604         variable LX with __attribute__ ((unused)).
3605         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
3606         Likewise.
3607         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
3608         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
3609         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
3610         with __attribute__ ((unused)).
3611
3612 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
3613
3614         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
3615
3616 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
3617
3618         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
3619         (CFLAGS-nldbl-acos.c): New variable.
3620         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
3621         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
3622         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
3623         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
3624         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
3625         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
3626         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
3627         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
3628         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
3629         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
3630         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
3631         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
3632         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
3633         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
3634         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
3635         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
3636         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
3637         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
3638         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
3639         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
3640         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
3641         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
3642         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
3643         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
3644         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
3645         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
3646         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
3647         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
3648         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
3649         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
3650         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
3651         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
3652         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
3653         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
3654         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
3655         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
3656         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
3657         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
3658         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
3659         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
3660         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
3661         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
3662         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
3663         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
3664         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
3665         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
3666         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
3667         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
3668         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
3669         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
3670         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
3671         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
3672         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
3673         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
3674         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
3675         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
3676         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
3677         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
3678         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
3679         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
3680         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
3681         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
3682         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
3683         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
3684         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
3685         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
3686         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
3687         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
3688         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
3689         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
3690         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
3691         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
3692         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
3693         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
3694         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
3695         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
3696         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
3697         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
3698         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
3699         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
3700         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
3701         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
3702         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
3703         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
3704         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
3705         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
3706         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
3707         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
3708         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
3709         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
3710         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
3711         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
3712         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
3713         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
3714         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
3715         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
3716         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
3717
3718         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
3719         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
3720
3721         [BZ #14914]
3722         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
3723         whole low double instead of just low 47 bits when splitting values
3724         into two parts.
3725
3726 2012-12-03  Allan McRae  <allan@archlinux.org>
3727
3728         * manual/stdio.texi (Predefined Printf Handlers): Remove
3729         @hsep and @vsep usage.
3730
3731 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
3732
3733         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
3734         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
3735
3736 2012-12-03  Jeff Law  <law@redhat.com>
3737
3738         * time/sys/time.h (settimeofday): Do not mark TV argument
3739         as __nonnull.
3740
3741 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
3742
3743         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
3744         when currently writing and seek to current position when not.
3745         * libio/Makefile (tests): Remove bug-fclose1.
3746         * libio/bug-fclose1.c: Delete.
3747
3748 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
3749
3750         * manual/arith.texi (feenableexcept): Fix typo.
3751         (fedisableexcept): Likewise.
3752
3753 2012-11-30  Roland McGrath  <roland@hack.frob.com>
3754
3755         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
3756         second, differently-typed declaration, rather than a cast.
3757
3758 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3759
3760         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
3761         * include/rpc/svc.h: ... here.
3762
3763 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
3764
3765         [BZ #13013]
3766         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
3767         depending n and resplen2 to catch cases where answer
3768         equals answerp2.
3769
3770 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
3771
3772         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
3773         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
3774
3775 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
3776
3777         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
3778
3779 2012-11-29  Roland McGrath  <roland@hack.frob.com>
3780
3781         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
3782
3783 2012-11-28  Jeff Law  <law@redhat.com>
3784
3785         [BZ #13761]
3786         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
3787         dataset_temporary.  Track alloca usage into alloca_used.
3788         If dataset is large allocate and release it via malloc/free.
3789
3790 2012-06-04  Florian Weimer  <fweimer@redhat.com>
3791
3792         [BZ #14197]
3793         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
3794
3795 2012-11-28  David S. Miller  <davem@davemloft.net>
3796
3797         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3798
3799 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3800
3801         [BZ #14803]
3802         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
3803         of pi/2 rounded to nearest to 64 bits.
3804         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
3805         nearest to 64 bits.
3806         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
3807         bits.
3808
3809 2012-11-28  Jeff Law <law@redhat.com>
3810             Martin Osvald <mosvald@redhat.com>
3811
3812         [BZ #14889]
3813         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
3814         * sunrpc/svc.c: Include time.h.
3815         (__svc_accept_failed): New function.
3816         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
3817         any reason other than EINTR, call __svc_accept_failed.
3818         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
3819         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
3820
3821 2012-11-28  Andreas Schwab  <schwab@suse.de>
3822
3823         * scripts/abilist.awk: Also handle indirect functions in .opd
3824         section.
3825
3826 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
3827
3828         [BZ #13881]
3829         * sysdeps/x86/fpu/powl_helper.c: New file.
3830         * sysdeps/x86/fpu/Makefile: Likewise.
3831         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
3832         (p3): New object.
3833         (__ieee754_powl): Use __powl_helper for finite arguments except
3834         integer exponents below 8.
3835         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
3836         (p3): New object.
3837         (__ieee754_powl): Use __powl_helper for finite arguments except
3838         integer exponents below 8.
3839         * math/libm-test.inc (pow_test): Add more tests and enable some
3840         previously disabled tests.
3841         * sysdeps/i386/fpu/libm-test-ulps: Update.
3842         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3843
3844 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3845             Carlos O'Donell  <carlos_odonell@mentor.com>
3846
3847         * nss/makedb.c (is_prime): Assert that input is odd and greater
3848         than 4.  Note that fact in a comment too.
3849         (next_prime): Add 4 to input.
3850
3851 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
3852
3853         [BZ #11741]
3854         * libio/Makefile (tests): Add test case tst-fwrite-error.
3855         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
3856         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
3857         * libio/tst-fwrite-error.c: New test case.
3858
3859 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
3860
3861         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
3862         before casting to void *.
3863         * include/libc-internal.h (__pointer_type): New macro.
3864         (__integer_if_pointer_type_sub): Likewise.
3865         (__integer_if_pointer_type): Likewise.
3866         (cast_to_integer): Likewise.
3867         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
3868         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
3869         before casting to atomic64_t.
3870         (atomic_exchange_acq): Likewise.
3871         (__arch_exchange_and_add_body): Likewise.
3872         (__arch_add_body): Likewise.
3873         (atomic_add_negative): Likewise.
3874         (atomic_add_zero): Likewise.
3875
3876 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
3877
3878         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
3879         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
3880         (add_fdes): Likewise.
3881         (linear_search_fdes): Likewise.
3882         (binary_search_unencoded_fdes): Likewise.
3883
3884 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
3885
3886         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
3887
3888 2012-11-24  Adam Conrad  <adconrad@0c3.net>
3889
3890         * configure.in: Autodetect C++ header directories.
3891         * configure: Regenerated.
3892
3893 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
3894
3895         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
3896
3897 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
3898
3899         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3900
3901 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
3902
3903         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
3904         LDBL_MANT_DIG == 106]: Disable some tests.
3905         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
3906         Likewise.
3907         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
3908         Likewise.
3909
3910         [BZ #14871]
3911         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
3912         input for small inputs.  Return +/- pi/2 for large inputs.
3913         * math/libm-test.inc (atan_test): Add more tests.
3914
3915         * sysdeps/generic/unwind-dw2-fde-glibc.c
3916         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
3917         __attribute__ ((unused)).
3918
3919         [BZ #14645]
3920         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
3921         x * y if x and y are nonzero and z is zero.
3922
3923         [BZ #14811]
3924         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
3925         nonzero exponents with absolute value below 0x1p-117 to +/-
3926         0x1p-117.
3927
3928         [BZ #14869]
3929         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
3930         up arguments below 2**-450, not just those below 2**-500.
3931         * math/libm-test.inc (hypot_test): Add another test.
3932
3933         [BZ #14868]
3934         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
3935         Return a+b for ratio over 2**120, not 2**60.
3936         * math/libm-test.inc (hypot_test): Add another test.
3937
3938         * math/libm-test.inc (clog_test): Use
3939         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
3940         (clog10_test): Likewise.
3941
3942         [BZ #6778]
3943         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
3944
3945 2012-11-22  Andreas Schwab  <schwab@suse.de>
3946
3947         * sysdeps/i386/fpu/libm-test-ulps: Update.
3948
3949 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
3950
3951         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
3952         printf output with newline.
3953
3954 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
3955
3956         [BZ #14865]
3957         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
3958         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
3959         -z nodlopen, -z initfirst and -z execstack support.
3960         * configure: Regenerated.
3961
3962         * elf/elf.h (DF_1_NODIRECT): New macro.
3963         (DF_1_IGNMULDEF): Likewise.
3964         (DF_1_NOKSYMS): Likewise.
3965         (DF_1_NOHDR): Likewise.
3966         (DF_1_EDITED): Likewise.
3967         (DF_1_NORELOC): Likewise.
3968         (DF_1_SYMINTPOSE): Likewise.
3969         (DF_1_GLOBAUDIT): Likewise.
3970         (DF_1_SINGLETON): Likewise.
3971         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
3972         DT_1_SUPPORTED_MASK bits.
3973         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
3974
3975 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
3976
3977         * sysdeps/unix/make-syscalls.sh: Document prefixes.
3978
3979 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
3980
3981         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
3982         macro.
3983
3984         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
3985         (sendmmsg): Move declarations...
3986         * socket/sys/socket.h: ... here.
3987         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
3988         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
3989         include it from...
3990         * socket/recvmmsg.c: ... this new file.
3991         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
3992         (sendmmsg): Rename to __sendmmsg, create weak alias and make
3993         definition of __sendmmsg hidden.
3994         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
3995         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
3996         Move ENOSYS stub into and include it from...
3997         * socket/sendmmsg.c: ... this new file.
3998         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
3999         (sysdep_routines): Move recvmmsg and sendmmsg...
4000         * socket/Makefile (routines): ... here.
4001         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
4002         (GLIBC_PRIVATE): Add __sendmmsg.
4003         * include/sys/socket.h (__sendmmsg): Add declarations.
4004         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
4005         sendmmsg.
4006
4007 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
4008
4009         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
4010         variable I1 with __attribute__ ((unused)).
4011         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
4012
4013 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
4014
4015         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
4016         DUMMY variables with __attribute__ ((unused)).
4017
4018         * bits/byteswap.h: Include <bits/types.h>.
4019         (__bswap_64): Use __uint64_t instead of unsigned long long int.
4020
4021 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
4022
4023         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
4024         string_t.  Do not manually set errno.
4025         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
4026         length with __strnlen.  Make sure to both set errno and return it on
4027         failure.
4028
4029 2012-11-19  David S. Miller  <davem@davemloft.net>
4030
4031         With help from Joseph Myers.
4032         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
4033         very large arguments properly.
4034         * math/libm-test.inc (atan_test): New tests.
4035         (atan2_test): New tests.
4036         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4037         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4038
4039 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
4040
4041         [BZ #14856]
4042         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
4043         Define to 3.
4044
4045         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
4046         [POSIX] (EADDRNOTAVAIL): Likewise.
4047         [POSIX] (EAFNOSUPPORT): Likewise.
4048         [POSIX] (EALREADY): Likewise.
4049         [POSIX] (ECONNABORTED): Likewise.
4050         [POSIX] (ECONNREFUSED): Likewise.
4051         [POSIX] (ECONNRESET): Likewise.
4052         [POSIX] (EDESTADDRREQ): Likewise.
4053         [POSIX] (EDQUOT): Likewise.
4054         [POSIX] (EHOSTUNREACH): Likewise.
4055         [POSIX] (EIDRM): Likewise.
4056         [POSIX] (EISCONN): Likewise.
4057         [POSIX] (ELOOP): Likewise.
4058         [POSIX] (EMULTIHOP): Likewise.
4059         [POSIX] (ENETDOWN): Likewise.
4060         [POSIX] (ENETUNREACH): Likewise.
4061         [POSIX] (ENOBUFS): Likewise.
4062         [POSIX] (ENODATA): Likewise.
4063         [POSIX] (ENOLINK): Likewise.
4064         [POSIX] (ENOMSG): Likewise.
4065         [POSIX] (ENOPROTOOPT): Likewise.
4066         [POSIX] (ENOSR): Likewise.
4067         [POSIX] (ENOSTR): Likewise.
4068         [POSIX] (ENOTCONN): Likewise.
4069         [POSIX] (ENOTSOCK): Likewise.
4070         [POSIX] (EOPNOTSUPP): Likewise.
4071         [POSIX] (EOVERFLOW): Likewise.
4072         [POSIX] (EPROTO): Likewise.
4073         [POSIX] (EPROTONOSUPPORT): Likewise.
4074         [POSIX] (EPROTOTYPE): Likewise.
4075         [POSIX] (ESTALE): Likewise.
4076         [POSIX] (ETIME): Likewise.
4077         [POSIX] (ETXTBSY): Likewise.
4078         [POSIX] (EWOULDBLOCK): Likewise.
4079         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
4080         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
4081         [POSIX] (SEEK_CUR): Likewise.
4082         [POSIX] (SEEK_END): Likewise.
4083         [POSIX || UNIX98] (mode_t): Do not require.
4084         [POSIX] (off_t): Likewise.
4085         [POSIX] (pid_t): Likewise.
4086         [POSIX] (sys/stat.h): Do not allow header.
4087         [POSIX] (unistd.h): Likewise.
4088         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
4089         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
4090         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
4091         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
4092         require.
4093         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
4094         sigevent): Specify elements.
4095         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
4096         entry.
4097         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
4098         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
4099
4100         * conform/data/cpio.h-data [POSIX]: Disable whole file.
4101         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
4102         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
4103         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
4104         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
4105         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
4106         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
4107         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
4108         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
4109         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
4110         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
4111         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
4112         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
4113         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
4114         Likewise.
4115         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
4116         Likewise.
4117         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
4118         Likewise.
4119         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
4120         Likewise.
4121         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
4122         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
4123         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
4124         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
4125         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
4126         Specify lower bound on value.
4127         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
4128         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
4129         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
4130         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
4131         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
4132         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
4133         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
4134         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
4135         value.
4136         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
4137         as optional.
4138         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
4139         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
4140         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
4141         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
4142         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
4143         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
4144         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
4145         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
4146         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
4147         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
4148         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
4149         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
4150         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
4151         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
4152         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
4153         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
4154         entry.
4155         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
4156         optional.
4157         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
4158         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
4159         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
4160         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
4161         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
4162         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
4163         Likewise.
4164         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
4165         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
4166         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
4167         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
4168         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
4169         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
4170         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
4171         as optional.
4172         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
4173         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
4174         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
4175         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
4176         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
4177         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
4178         specify as optional.
4179         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
4180         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
4181         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
4182         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
4183         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
4184         [XPG3] (NL_LANGMAX): Likewise.
4185         [POSIX || XPG3] (NL_MSGMAX): Likewise.
4186         [POSIX || XPG3] (NL_NMAX): Likewise.
4187         [POSIX || XPG3] (NL_SETMAX): Likewise.
4188         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
4189         [XPG3] (NZERO): Likewise.
4190         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
4191         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
4192         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
4193         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
4194         (REG_ERANGE): Expect.
4195         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
4196         optional-constant.
4197         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
4198         Use (void) in prototype.
4199         [POSIX] (*_t): Allow.
4200         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
4201         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
4202         (WRDE_BADVAL): Expect.
4203
4204         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
4205         expect.
4206         [XPG3 || XPG4] (O_RSYNC): Likewise.
4207         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
4208         Likewise.
4209         [XPG3 || XPG4] (pthread_sigmask): Likewise.
4210         [XPG3 || XPG4] (sigqueue): Likewise.
4211         [XPG3 || XPG4] (sigtimedwait): Likewise.
4212         [XPG3 || XPG4] (sigwaitinfo): Likewise.
4213         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
4214         [XPG3 || XPG4] (vsnprintf): Likewise.
4215         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
4216         Likewise.
4217         [XPG3 || XPG4] (blksize_t): Likewise.
4218         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
4219         Likewise.
4220         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
4221         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
4222         [XPG3 || XPG4] (struct itimerspec): Likewise.
4223         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
4224         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
4225         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
4226         [XPG3 || XPG4] (clockid_t): Likewise.
4227         [XPG3 || XPG4] (timer_t): Likewise.
4228         [XPG3 || XPG4] (clock_getres): Likewise.
4229         [XPG3 || XPG4] (clock_gettime): Likewise.
4230         [XPG3 || XPG4] (clock_settime): Likewise.
4231         [XPG3 || XPG4] (nanosleep): Likewise.
4232         [XPG3 || XPG4] (timer_create): Likewise.
4233         [XPG3 || XPG4] (timer_delete): Likewise.
4234         [XPG3 || XPG4] (timer_gettime): Likewise.
4235         [XPG3 || XPG4] (timer_getoverrun): Likewise.
4236         [XPG3 || XPG4] (timer_settime): Likewise.
4237         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
4238         [XPG3 || XPG4] (getlogin_r): Likewise.
4239         [XPG3 || XPG4] (pread): Likewise.
4240         [XPG3 || XPG4] (pthread_atfork): Likewise.
4241         [XPG3 || XPG4] (pwrite): Likewise.
4242
4243         [BZ #14835]
4244         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
4245         <bits/siginfo.h>.
4246
4247 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
4248
4249         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
4250         finalizing MALLSTREAM.
4251
4252         * sysdeps/mach/hurd/syncfs.c: New file.
4253
4254 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4255
4256         [BZ #14719]
4257         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
4258         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
4259         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
4260         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
4261         (_nss_dns_gethostbyname4_r): Likewise.
4262         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
4263         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
4264
4265 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
4266
4267         [BZ #13763]
4268         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
4269
4270 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
4271
4272         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
4273         * elf/cache.c (print_entry): Print ",AArch64" for
4274         FLAG_AARCH64_LIB64
4275
4276         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
4277         * elf/cache.c (print_entry): Print ",hard-float" for
4278         FLAG_ARM_LIBHF.
4279
4280 2012-11-18  David S. Miller  <davem@davemloft.net>
4281
4282         With help from Joseph Myers.
4283         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
4284         cutoff to 2**-13.
4285         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
4286         cutoff to 2**-25.
4287         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
4288         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
4289         small.
4290         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
4291         * math/libm-test.inc (y0_test): New tests.
4292         (y1_test): New tests.
4293         * sysdeps/i386/fpu/libm-test-ulps: Update.
4294         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4295         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4296
4297 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
4298
4299         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
4300         64-bit targets.
4301         * configure: Regenerated.
4302
4303 2012-11-17  David S. Miller  <davem@davemloft.net>
4304
4305         [BZ #14811]
4306         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
4307         nonzero exponents with absolute value below 0x1p-128 to +/-
4308         0x1p-128.
4309
4310 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
4311
4312         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
4313
4314         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
4315
4316         * posix/getconf-speclist.c: New file.
4317         * posix/posix-envs.def: Likewise.
4318         * posix/confstr.c (START_ENV_GROUP): New macro.
4319         (END_ENV_GROUP): Likewise.
4320         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
4321         (KNOWN_PRESENT_ENV_STRING): Likewise.
4322         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
4323         (UNKNOWN_ENVIRONMENT): Likewise.
4324         (confstr): Include posix-envs.def instead of handling
4325         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
4326         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
4327         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
4328         (END_ENV_GROUP): Likewise.
4329         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
4330         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
4331         (UNKNOWN_ENVIRONMENT): Likewise.
4332         (__sysconf): Include posix-envs.def instead of handling associated
4333         cases directly here.
4334         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
4335         preprocessing getconf-speclist.c rather than running getconf or
4336         generating empty file.
4337
4338 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
4339
4340         * scripts/check-local-headers.sh: Ignore 'mach' headers.
4341
4342 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
4343
4344         [BZ #14672]
4345         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
4346
4347 2012-11-16  David S. Miller  <davem@davemloft.net>
4348
4349         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
4350         smaller than LDBL_EPSILON/2.0L, just return xm1.
4351
4352 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
4353
4354         * elf/tst-array1.c (init): Set constructor priority to 1000.
4355         (fini): Set destructor priority to 1000.
4356         * elf/tst-array2dep.c: Likewise.
4357
4358 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4359
4360         [BZ #11741]
4361         * libio/fileops.c (_IO_new_file_write): Correctly return error.
4362         (_IO_new_file_xsputn): Also return EOF if none of the input
4363         data was written when overflow failed.
4364         * libio/iopadn.c (_IO_padn): Likewise.
4365         * libio/iowpadn.c (_IO_wpadn): Likewise.
4366         * stdio-common/tst-put-error.c: Add copyright notice.
4367         (do_test): Add case for printing padded string.
4368         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
4369         _IO_padn returned error.
4370         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
4371         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
4372         return EOF.
4373
4374 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4375
4376         * libio/libioP.h: Add comment note that the references to C++
4377         bits are now obsolete.
4378
4379 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4380
4381         * math/libm-test.inc (check_complex): Use asprintf.
4382
4383 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
4384
4385         * debug/pcprofiledump.c (print_version): Update copyright year.
4386         * malloc/memusagestat.c (print_version): Likewise.
4387
4388 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
4389
4390         [BZ #14831]
4391         * elf/Makefile (tests): Add tst-audit8.
4392         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
4393         ($(objpfx)tst-audit8.out): New target.
4394         (tst-audit8-ENV): New variable.
4395         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
4396         audit if l_reloc_result is NULL.
4397         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
4398         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
4399         * elf/tst-audit8.c: New file.
4400
4401 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4402
4403         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
4404         * misc/Makefile (CFLAGS-select.c): Define.
4405         * posix/Makefile (CFLAGS-pause.c): Define.
4406
4407 2012-11-13  David S. Miller  <davem@davemloft.net>
4408
4409         * crypt/Makefile: Move test targets after toplevel Rules
4410         inclusion.  Grab any necessary sysdep routines when linking.
4411         * crypt/md5.c (md5_process_block): Remove define, we will always
4412         name it __md5_process_block.
4413         (md5_finish_ctx): Update md5_process_block call.
4414         (md5_stream): Likewise.
4415         (md5_process_bytes): Likewise.
4416         (md5_process_block): Rename to __md5_process_block and move to ...
4417         * crypt/md5-block.c: ... here.
4418         * crypt/sha256.c (sha256_process_block): Move to ...
4419         * crypt/sha256-block.c: ... here.
4420         * crypt/sha512.c (sha512_process_block): Move to ...
4421         * crypt/sha512-block.c: ... here.
4422         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
4423         path.
4424         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
4425         * sysdeps/sparc/sparc64/multiarch/Makefile
4426         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
4427         crypt subdir.
4428         (localedef-aux): Add md5 crypto assembler when in locale subdir.
4429         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
4430         multiarch changes.
4431         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
4432         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
4433         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
4434         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
4435         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
4436         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
4437         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
4438         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
4439         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
4440         file.
4441         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
4442         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
4443         file.
4444         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
4445
4446 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
4447
4448         * timezone/tzselect.ksh: Update from tzcode git revision
4449         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
4450         * timezone/zdump.c: Likewise.
4451         * timezone/zic.c: Likewise.
4452         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
4453         in TZVERSION setting, not $(PKGVERSION).
4454         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
4455         REPORT_BUGS_TO settings.
4456
4457         [BZ #14838]
4458         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
4459         macro.
4460
4461 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4462
4463         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
4464         detection to immediately after _FP_ROUND().
4465         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
4466         bits are 0.
4467
4468 2012-11-11  David S. Miller  <davem@davemloft.net>
4469
4470         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
4471         inttypes.h
4472         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
4473         __close rather than their public counterparts.
4474
4475 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
4476
4477         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
4478         file.
4479         [UNIX98] (sem_timedwait): Do not expect.
4480         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
4481         [XPG4 || UNIX98] (sockatmark): Do not expect.
4482         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
4483         (clock_getcpuclockid): Do not expect.
4484         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
4485         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
4486         Do not expect.
4487         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
4488         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
4489         [UNIX98] (vwscanf): Likewise.
4490         [UNIX98] (vswscanf): Likewise.
4491
4492 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
4493
4494         * timezone/version.h: Remove file.
4495         * timezone/README: Do not refer to version.h.
4496         * timezone/Makefile ($(objpfx)zic.o): New dependency on
4497         $(objpfx)version.h.
4498         ($(objpfx)zdump.o): Likewise.
4499         ($(objpfx)version.h): New target.
4500
4501         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
4502         2012i.
4503         * timezone/README: Don't mention modification to tzselect.ksh.
4504         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
4505         work on unmodified tzselect.ksh.  Substitute version numbers in
4506         tzselect.ksh.
4507
4508         * Makefile (format-me): Remove.
4509         (INSTALL): Adjust indentation.  Use commands directly instead of
4510         using $(format-me).
4511
4512         * aclocal.m4 (ACX_PKGVERSION): New macro.
4513         (ACX_BUGURL): Likewise.
4514         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
4515         (PKGVERSION): New AC_DEFINE_UNQUOTED.
4516         (REPORT_BUGS_TO): Likewise.
4517         * configure: Regenerated.
4518         * config.h.in (PKGVERSION): New macro.
4519         (REPORT_BUGS_TO): Likewise.
4520         * config.make.in (PKGVERSION): New variable.
4521         (PKGVERSION_TEXI): Likewise.
4522         (REPORT_BUGS_TO): Likewise.
4523         (REPORT_BUGS_TEXI): Likewise.
4524         * Makefile (format-me): Use -I$(common-objpfx)manual.
4525         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
4526         ($(common-objpfx)manual/%): New target.
4527         (manual/%): Remove target.
4528         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
4529         (print_version): Use PKGVERSION.
4530         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
4531         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
4532         and REPORT_BUGS_TO.
4533         ($(objpfx)xtrace): Likewise.
4534         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
4535         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
4536         (print_version): Use PKGVERSION.
4537         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
4538         (do_version): Use PKGVERSION.
4539         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
4540         REPORT_BUGS_TO.
4541         (common-ldd-rewrite): Likewise.
4542         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
4543         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
4544         (print_version): Use PKGVERSION.
4545         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
4546         * elf/pldd.c (argp_program_bug_address): Remove variable.
4547         (more_help): New function.
4548         (argp): Use more_help.
4549         (print_version): Use PKGVERSION.
4550         * elf/sln.c (main): Use PKGVERSION.
4551         (usage): Use REPORT_BUGS_TO.
4552         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
4553         (top level): Use PKGVERSION.
4554         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
4555         (print_version): Use PKGVERSION.
4556         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
4557         (print_version): Use PKGVERSION.
4558         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
4559         (print_version): Use PKGVERSION.
4560         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
4561         (print_version): Use PKGVERSION.
4562         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
4563         (print_version): Use PKGVERSION.
4564         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
4565         (print_version): Use PKGVERSION.
4566         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
4567         and BUGURL.
4568         ($(objpfx)memusage): Likewise.
4569         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
4570         (do_version): Use PKGVERSION.
4571         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
4572         (print_version): Use PKGVERSION.
4573         * malloc/mtrace.pl ($PACKAGE): Remove variable.
4574         ($PKGVERSION): New variable.
4575         ($REPORT_BUGS_TO): Likewise.
4576         (usage): Use $REPORT_BUGS_TO.
4577         (top level): Use $PKGVERSION.
4578         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
4579         ($(objpfx)pkgvers.texi): New rule.
4580         ($(objpfx)stamp-pkgvers): Likewise.
4581         * manual/install.texi: Include pkgvers.texi.
4582         (--with-pkgversion): Document new configure option.
4583         (--with-bugurl): Likewise.
4584         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
4585         than necessarily for this particular distribution.  Use
4586         REPORT_BUGS_TO for where to report bugs.
4587         * INSTALL: Regenerated.
4588         * manual/libc.texinfo: Include pkgvers.texi.
4589         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
4590         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
4591         (print_version): Use PKGVERSION.
4592         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
4593         (print_version): Use PKGVERSION.
4594         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
4595         (print_version): Use PKGVERSION.
4596         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
4597         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
4598         macro.
4599         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
4600         (print_version): Use PKGVERSION.
4601         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
4602         (print_version): Use PKGVERSION.
4603         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
4604         and PKGVERSION.
4605
4606         * timezone/checktab.awk: Update from tzcode 2012i.
4607         * timezone/ialloc.c: Likewise.
4608         * timezone/private.h: Likewise.
4609         * timezone/scheck.c: Likewise.
4610         * timezone/tzfile.h: Likewise.
4611         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
4612         (TZVERSION): Hardcode tzcode version number.
4613         * timezone/zdump.c: Update from tzcode 2012i.
4614         * timezone/zic.c: Likewise.
4615         * timezone/version.h: New file.
4616         * timezone/README: Describe version.h.  Update upstream location.
4617
4618         [BZ #14824]
4619         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
4620         (mktemp): Enable declaration.
4621         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
4622         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
4623         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
4624         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
4625         Likewise.
4626         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
4627         Likewise.
4628         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
4629         Likewise.
4630         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
4631         Likewise.
4632         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
4633         Likewise.
4634         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
4635         Likewise.
4636
4637         [BZ #14821]
4638         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
4639         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
4640         for copies of such integer values.
4641         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
4642         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
4643
4644 2012-11-09  Andreas Jaeger  <aj@suse.de>
4645
4646         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
4647         definitions and declarations that are provided by
4648         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
4649
4650 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
4651
4652         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
4653         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
4654         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
4655         definition.
4656
4657 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4658
4659         * elf/elf.h: Update comment before AArch64 relocations.
4660
4661 2012-11-07  David S. Miller  <davem@davemloft.net>
4662
4663         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
4664         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
4665         (__start_context): Declare.
4666         (__makecontext_ret): Delete.
4667         (__makecontext): Hook up __start_context instead of
4668         __makecontext_ret.
4669         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
4670         (sysdep_routines): Add __start_context when in stdlib.
4671
4672 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4673
4674         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
4675         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
4676         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
4677         hardcoded "nm".
4678         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
4679         (READELF): New variable.  Use it instead of hardcoded "readelf".
4680
4681 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
4682
4683         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
4684         * sysdeps/x86/Makefile: Here.
4685         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
4686         * sysdeps/x86/tst-xmmymm.sh: This.
4687
4688 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
4689
4690         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
4691         expectations.
4692         [UNIX98] (pthread_barrier_t): Do not expect.
4693         [UNIX98] (pthread_barrierattr_t): Likewise.
4694         [UNIX98] (pthread_spinlock_t): Likewise.
4695         [UNIX98] (pthread_barrier_destroy): Likewise.
4696         [UNIX98] (pthread_barrier_init): Likewise.
4697         [UNIX98] (pthread_barrier_wait): Likewise.
4698         [UNIX98] (pthread_barrierattr_destroy): Likewise.
4699         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
4700         [UNIX98] (pthread_barrierattr_init): Likewise.
4701         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
4702         [UNIX98] (pthread_getcpuclockid): Likewise.
4703         [UNIX98] (pthread_mutex_timedlock): Likewise.
4704         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
4705         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
4706         [UNIX98] (pthread_sigmask): Likewise.
4707         [UNIX98] (pthread_spin_destroy): Likewise.
4708         [UNIX98] (pthread_spin_init): Likewise.
4709         [UNIX98] (pthread_spin_lock): Likewise.
4710         [UNIX98] (pthread_spin_trylock): Likewise.
4711         [UNIX98] (pthread_spin_unlock): Likewise.
4712         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
4713         Do not expect.
4714         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
4715         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
4716         [XPG3 || XPG4] (pthread_cond_t): Likewise.
4717         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
4718         [XPG3 || XPG4] (pthread_key_t): Likewise.
4719         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
4720         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
4721         [XPG3 || XPG4] (pthread_once_t): Likewise.
4722         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
4723         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
4724         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
4725         [XPG3 || XPG4] (pthread_t): Likewise.
4726
4727         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
4728         not expect.
4729         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
4730
4731         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
4732         Change function return type to int.
4733
4734         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
4735         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
4736         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
4737         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
4738         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
4739         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
4740         [!POSIX] (posix_madvise): Likewise.
4741         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
4742         && !UNIX98].
4743         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
4744         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
4745         (mode_t): Likewise.
4746         (posix_mem_offset): Likewise.
4747         (posix_typed_mem_get_info): Likewise.
4748         (posix_typed_mem_open): Likewise.
4749
4750         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
4751         Change condition to [XOPEN2K8].
4752
4753         * conform/conformtest.pl: Preprocess allow-header data with -x c
4754         instead of from stdin.
4755         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
4756         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
4757         [C99-based standards] (cerfc): Likewise.
4758         [C99-based standards] (cexp2): Likewise.
4759         [C99-based standards] (cexpm1): Likewise.
4760         [C99-based standards] (clog10): Likewise.
4761         [C99-based standards] (clog1p): Likewise.
4762         [C99-based standards] (clog2): Likewise.
4763         [C99-based standards] (clgamma): Likewise.
4764         [C99-based standards] (ctgamma): Likewise.
4765         [C99-based standards] (cerff): Likewise.
4766         [C99-based standards] (cerfcf): Likewise.
4767         [C99-based standards] (cexp2f): Likewise.
4768         [C99-based standards] (cexpm1f): Likewise.
4769         [C99-based standards] (clog10f): Likewise.
4770         [C99-based standards] (clog1pf): Likewise.
4771         [C99-based standards] (clog2f): Likewise.
4772         [C99-based standards] (clgammaf): Likewise.
4773         [C99-based standards] (ctgammaf): Likewise.
4774         [C99-based standards] (cerfl): Likewise.
4775         [C99-based standards] (cerfcl): Likewise.
4776         [C99-based standards] (cexp2l): Likewise.
4777         [C99-based standards] (cexpm1l): Likewise.
4778         [C99-based standards] (clog10l): Likewise.
4779         [C99-based standards] (clog1pl): Likewise.
4780         [C99-based standards] (clog2l): Likewise.
4781         [C99-based standards] (clgammal): Likewise.
4782         [C99-based standards] (ctgammal): Likewise.
4783         * conform/data/inttypes.h-data [C99-based standards]: Include
4784         stdint.h-data.  Remove all expectations for stdint.h contents.
4785         [C99-based standards] (PRI*): Do not allow.
4786         [C99-based standards] (SCN*): Likewise.
4787         [C99-based standards] (*_t): Likewise.
4788         [C99-based-standards] (PRId8): Expect macro.
4789         [C99-based-standards] (PRIi8): Likewise.
4790         [C99-based-standards] (PRIo8): Likewise.
4791         [C99-based-standards] (PRIu8): Likewise.
4792         [C99-based-standards] (PRIx8): Likewise.
4793         [C99-based-standards] (PRIX8): Likewise.
4794         [C99-based-standards] (SCNd8): Likewise.
4795         [C99-based-standards] (SCNi8): Likewise.
4796         [C99-based-standards] (SCNo8): Likewise.
4797         [C99-based-standards] (SCNu8): Likewise.
4798         [C99-based-standards] (SCNx8): Likewise.
4799         [C99-based-standards] (PRIdLEAST8): Likewise.
4800         [C99-based-standards] (PRIiLEAST8): Likewise.
4801         [C99-based-standards] (PRIoLEAST8): Likewise.
4802         [C99-based-standards] (PRIuLEAST8): Likewise.
4803         [C99-based-standards] (PRIxLEAST8): Likewise.
4804         [C99-based-standards] (PRIXLEAST8): Likewise.
4805         [C99-based-standards] (SCNdLEAST8): Likewise.
4806         [C99-based-standards] (SCNiLEAST8): Likewise.
4807         [C99-based-standards] (SCNoLEAST8): Likewise.
4808         [C99-based-standards] (SCNuLEAST8): Likewise.
4809         [C99-based-standards] (SCNxLEAST8): Likewise.
4810         [C99-based-standards] (PRIdFAST8): Likewise.
4811         [C99-based-standards] (PRIiFAST8): Likewise.
4812         [C99-based-standards] (PRIoFAST8): Likewise.
4813         [C99-based-standards] (PRIuFAST8): Likewise.
4814         [C99-based-standards] (PRIxFAST8): Likewise.
4815         [C99-based-standards] (PRIXFAST8): Likewise.
4816         [C99-based-standards] (SCNdFAST8): Likewise.
4817         [C99-based-standards] (SCNiFAST8): Likewise.
4818         [C99-based-standards] (SCNoFAST8): Likewise.
4819         [C99-based-standards] (SCNuFAST8): Likewise.
4820         [C99-based-standards] (SCNxFAST8): Likewise.
4821         [C99-based-standards] (PRId16): Likewise.
4822         [C99-based-standards] (PRIi16): Likewise.
4823         [C99-based-standards] (PRIo16): Likewise.
4824         [C99-based-standards] (PRIu16): Likewise.
4825         [C99-based-standards] (PRIx16): Likewise.
4826         [C99-based-standards] (PRIX16): Likewise.
4827         [C99-based-standards] (SCNd16): Likewise.
4828         [C99-based-standards] (SCNi16): Likewise.
4829         [C99-based-standards] (SCNo16): Likewise.
4830         [C99-based-standards] (SCNu16): Likewise.
4831         [C99-based-standards] (SCNx16): Likewise.
4832         [C99-based-standards] (PRIdLEAST16): Likewise.
4833         [C99-based-standards] (PRIiLEAST16): Likewise.
4834         [C99-based-standards] (PRIoLEAST16): Likewise.
4835         [C99-based-standards] (PRIuLEAST16): Likewise.
4836         [C99-based-standards] (PRIxLEAST16): Likewise.
4837         [C99-based-standards] (PRIXLEAST16): Likewise.
4838         [C99-based-standards] (SCNdLEAST16): Likewise.
4839         [C99-based-standards] (SCNiLEAST16): Likewise.
4840         [C99-based-standards] (SCNoLEAST16): Likewise.
4841         [C99-based-standards] (SCNuLEAST16): Likewise.
4842         [C99-based-standards] (SCNxLEAST16): Likewise.
4843         [C99-based-standards] (PRIdFAST16): Likewise.
4844         [C99-based-standards] (PRIiFAST16): Likewise.
4845         [C99-based-standards] (PRIoFAST16): Likewise.
4846         [C99-based-standards] (PRIuFAST16): Likewise.
4847         [C99-based-standards] (PRIxFAST16): Likewise.
4848         [C99-based-standards] (PRIXFAST16): Likewise.
4849         [C99-based-standards] (SCNdFAST16): Likewise.
4850         [C99-based-standards] (SCNiFAST16): Likewise.
4851         [C99-based-standards] (SCNoFAST16): Likewise.
4852         [C99-based-standards] (SCNuFAST16): Likewise.
4853         [C99-based-standards] (SCNxFAST16): Likewise.
4854         [C99-based-standards] (PRId32): Likewise.
4855         [C99-based-standards] (PRIi32): Likewise.
4856         [C99-based-standards] (PRIo32): Likewise.
4857         [C99-based-standards] (PRIu32): Likewise.
4858         [C99-based-standards] (PRIx32): Likewise.
4859         [C99-based-standards] (PRIX32): Likewise.
4860         [C99-based-standards] (SCNd32): Likewise.
4861         [C99-based-standards] (SCNi32): Likewise.
4862         [C99-based-standards] (SCNo32): Likewise.
4863         [C99-based-standards] (SCNu32): Likewise.
4864         [C99-based-standards] (SCNx32): Likewise.
4865         [C99-based-standards] (PRIdLEAST32): Likewise.
4866         [C99-based-standards] (PRIiLEAST32): Likewise.
4867         [C99-based-standards] (PRIoLEAST32): Likewise.
4868         [C99-based-standards] (PRIuLEAST32): Likewise.
4869         [C99-based-standards] (PRIxLEAST32): Likewise.
4870         [C99-based-standards] (PRIXLEAST32): Likewise.
4871         [C99-based-standards] (SCNdLEAST32): Likewise.
4872         [C99-based-standards] (SCNiLEAST32): Likewise.
4873         [C99-based-standards] (SCNoLEAST32): Likewise.
4874         [C99-based-standards] (SCNuLEAST32): Likewise.
4875         [C99-based-standards] (SCNxLEAST32): Likewise.
4876         [C99-based-standards] (PRIdFAST32): Likewise.
4877         [C99-based-standards] (PRIiFAST32): Likewise.
4878         [C99-based-standards] (PRIoFAST32): Likewise.
4879         [C99-based-standards] (PRIuFAST32): Likewise.
4880         [C99-based-standards] (PRIxFAST32): Likewise.
4881         [C99-based-standards] (PRIXFAST32): Likewise.
4882         [C99-based-standards] (SCNdFAST32): Likewise.
4883         [C99-based-standards] (SCNiFAST32): Likewise.
4884         [C99-based-standards] (SCNoFAST32): Likewise.
4885         [C99-based-standards] (SCNuFAST32): Likewise.
4886         [C99-based-standards] (SCNxFAST32): Likewise.
4887         [C99-based-standards] (PRId64): Likewise.
4888         [C99-based-standards] (PRIi64): Likewise.
4889         [C99-based-standards] (PRIo64): Likewise.
4890         [C99-based-standards] (PRIu64): Likewise.
4891         [C99-based-standards] (PRIx64): Likewise.
4892         [C99-based-standards] (PRIX64): Likewise.
4893         [C99-based-standards] (SCNd64): Likewise.
4894         [C99-based-standards] (SCNi64): Likewise.
4895         [C99-based-standards] (SCNo64): Likewise.
4896         [C99-based-standards] (SCNu64): Likewise.
4897         [C99-based-standards] (SCNx64): Likewise.
4898         [C99-based-standards] (PRIdLEAST64): Likewise.
4899         [C99-based-standards] (PRIiLEAST64): Likewise.
4900         [C99-based-standards] (PRIoLEAST64): Likewise.
4901         [C99-based-standards] (PRIuLEAST64): Likewise.
4902         [C99-based-standards] (PRIxLEAST64): Likewise.
4903         [C99-based-standards] (PRIXLEAST64): Likewise.
4904         [C99-based-standards] (SCNdLEAST64): Likewise.
4905         [C99-based-standards] (SCNiLEAST64): Likewise.
4906         [C99-based-standards] (SCNoLEAST64): Likewise.
4907         [C99-based-standards] (SCNuLEAST64): Likewise.
4908         [C99-based-standards] (SCNxLEAST64): Likewise.
4909         [C99-based-standards] (PRIdFAST64): Likewise.
4910         [C99-based-standards] (PRIiFAST64): Likewise.
4911         [C99-based-standards] (PRIoFAST64): Likewise.
4912         [C99-based-standards] (PRIuFAST64): Likewise.
4913         [C99-based-standards] (PRIxFAST64): Likewise.
4914         [C99-based-standards] (PRIXFAST64): Likewise.
4915         [C99-based-standards] (SCNdFAST64): Likewise.
4916         [C99-based-standards] (SCNiFAST64): Likewise.
4917         [C99-based-standards] (SCNoFAST64): Likewise.
4918         [C99-based-standards] (SCNuFAST64): Likewise.
4919         [C99-based-standards] (SCNxFAST64): Likewise.
4920         [C99-based-standards] (PRIdMAX): Likewise.
4921         [C99-based-standards] (PRIiMAX): Likewise.
4922         [C99-based-standards] (PRIoMAX): Likewise.
4923         [C99-based-standards] (PRIuMAX): Likewise.
4924         [C99-based-standards] (PRIxMAX): Likewise.
4925         [C99-based-standards] (PRIXMAX): Likewise.
4926         [C99-based-standards] (SCNdMAX): Likewise.
4927         [C99-based-standards] (SCNiMAX): Likewise.
4928         [C99-based-standards] (SCNoMAX): Likewise.
4929         [C99-based-standards] (SCNuMAX): Likewise.
4930         [C99-based-standards] (SCNxMAX): Likewise.
4931         [C99-based-standards] (PRIdPTR): Likewise.
4932         [C99-based-standards] (PRIiPTR): Likewise.
4933         [C99-based-standards] (PRIoPTR): Likewise.
4934         [C99-based-standards] (PRIuPTR): Likewise.
4935         [C99-based-standards] (PRIxPTR): Likewise.
4936         [C99-based-standards] (PRIXPTR): Likewise.
4937         [C99-based-standards] (SCNdPTR): Likewise.
4938         [C99-based-standards] (SCNiPTR): Likewise.
4939         [C99-based-standards] (SCNoPTR): Likewise.
4940         [C99-based-standards] (SCNuPTR): Likewise.
4941         [C99-based-standards] (SCNxPTR): Likewise.
4942         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
4943         allow.
4944         * conform/data/stdint.h-data: Update comments to clarify
4945         requirements.
4946         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
4947         type.
4948         [C99-based standards] (INT8_MAX): Likewise.
4949         [C99-based standards] (INT16_MIN): Likewise.
4950         [C99-based standards] (INT16_MAX): Likewise.
4951         [C99-based standards] (INT32_MIN): Likewise.
4952         [C99-based standards] (INT32_MAX): Likewise.
4953         [C99-based standards] (INT64_MIN): Likewise.
4954         [C99-based standards] (INT64_MAX): Likewise.
4955         [C99-based standards] (UINT8_MAX): Likewise.
4956         [C99-based standards] (UINT16_MAX): Likewise.
4957         [C99-based standards] (UINT32_MAX): Likewise.
4958         [C99-based standards] (UINT64_MAX): Likewise.
4959         [C99-based standards] (INT_LEAST8_MIN): Likewise.
4960         [C99-based standards] (INT_LEAST8_MAX): Likewise.
4961         [C99-based standards] (INT_LEAST16_MIN): Likewise.
4962         [C99-based standards] (INT_LEAST16_MAX): Likewise.
4963         [C99-based standards] (INT_LEAST32_MIN): Likewise.
4964         [C99-based standards] (INT_LEAST32_MAX): Likewise.
4965         [C99-based standards] (INT_LEAST64_MIN): Likewise.
4966         [C99-based standards] (INT_LEAST64_MAX): Likewise.
4967         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
4968         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
4969         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
4970         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
4971         [C99-based standards] (INT_FAST8_MIN): Likewise.
4972         [C99-based standards] (INT_FAST8_MAX): Likewise.
4973         [C99-based standards] (INT_FAST16_MIN): Likewise.
4974         [C99-based standards] (INT_FAST16_MAX): Likewise.
4975         [C99-based standards] (INT_FAST32_MIN): Likewise.
4976         [C99-based standards] (INT_FAST32_MAX): Likewise.
4977         [C99-based standards] (INT_FAST64_MIN): Likewise.
4978         [C99-based standards] (INT_FAST64_MAX): Likewise.
4979         [C99-based standards] (UINT_FAST8_MAX): Likewise.
4980         [C99-based standards] (UINT_FAST16_MAX): Likewise.
4981         [C99-based standards] (UINT_FAST32_MAX): Likewise.
4982         [C99-based standards] (UINT_FAST64_MAX): Likewise.
4983         [C99-based standards] (INTPTR_MIN): Likewise.
4984         [C99-based standards] (INTPTR_MAX): Likewise.
4985         [C99-based standards] (UINTPTR_MAX): Likewise.
4986         [C99-based standards] (INTMAX_MIN): Likewise.
4987         [C99-based standards] (INTMAX_MAX): Likewise.
4988         [C99-based standards] (UINTMAX_MAX): Likewise.
4989         [C99-based standards] (PTRDIFF_MIN): Likewise.
4990         [C99-based standards] (PTRDIFF_MAX): Likewise.
4991         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
4992         [C99-based standards] (SIZE_MAX): Likewise.
4993         [C99-based standards] (WCHAR_MAX): Likewise.
4994         [C99-based standards] (WINT_MAX): Likewise.
4995         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
4996         constraint on value.
4997         [C99-based standards] (WCHAR_MIN): Likewise.
4998         [C99-based standards] (WINT_MIN): Likewise.
4999         [C99-based standards] (*_t): Allow.
5000         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
5001         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
5002         Include math.h-data and complex.h-data.  Remove all expectations
5003         of math.h and complex.h contents.
5004         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
5005         at end of line.
5006         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
5007         (struct tm): Expect tag.
5008         [C99-based-standards] (wcstof): Expect function.
5009         [C99-based-standards] (wcstold): Likewise.
5010         [C99-based-standards] (wcstoll): Likewise.
5011         [C99-based-standards] (wcstoull): Likewise.
5012         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
5013         macro-int-constant.  Specify type.
5014         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
5015         constraint on value.
5016         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
5017         Specify type.
5018         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
5019         Specify value.
5020         [ISO C standards]: Do not allow headers.
5021         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
5022         wcs[abcdefghijklmnopqrstuvwxyz]*.
5023         [ISO C standards] (*_t): Do not allow.
5024         * conform/data/wctype.h-data [C99-based standards] (iswblank):
5025         Expect function.
5026         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
5027         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
5028         Specify type.
5029         [ISO C standards]: Do not allow headers.
5030         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
5031         is[abcdefghijklmnopqrstuvwxyz]*.
5032         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
5033         to[abcdefghijklmnopqrstuvwxyz]*.
5034         [ISO C standards] (*_t): Do not allow.
5035         * conform/data/stdalign.h-data: New file.
5036         * conform/data/stdbool.h-data: Likewise.
5037         * conform/data/stdnoreturn.h-data: Likewise.
5038
5039 2012-11-07  Roland McGrath  <roland@hack.frob.com>
5040
5041         [BZ #14815]
5042         * manual/filesys.texi (Directory Entries): Typo fix.
5043         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
5044
5045 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5046
5047         * elf/elf.h (EM_AARCH64): New macro.
5048         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
5049         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
5050         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
5051         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
5052         (R_AARCH64_TLSDESC): Likewise.
5053         (NT_ARM_TLS): Likewise.
5054         (NT_ARM_HW_BREAK): Likewise.
5055         (NT_ARM_HW_WATCH): Likewise.
5056
5057 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5058
5059         [BZ #14811]
5060         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
5061         (__ieee754_powl): Saturate nonzero exponents with absolute value
5062         below 0x1p-79 to +/- 0x1p-79.
5063         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
5064         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
5065         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
5066         nonzero exponents with absolute value below 0x1p-32 to +/-
5067         0x1p-32.
5068         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
5069         (__ieee754_powl): Saturate nonzero exponents with absolute value
5070         below 0x1p-79 to +/- 0x1p-79.
5071         * math/libm-test.inc (pow_test): Add more tests.
5072
5073 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5074
5075         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
5076         _dl_s390_cap_flags with kernel. Increase string length.
5077         (_dl_s390_platforms): Add z196 and zEC12.
5078
5079 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
5080
5081         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
5082         Change XOPEN21K to XOPEN2K.
5083
5084 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
5085
5086         * string/memmove.c: Use memcpy when possible.
5087
5088 2012-11-06  Andreas Jaeger  <aj@suse.de>
5089
5090         * po/eo.po: Update from translation team.
5091
5092 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
5093
5094         [BZ #14793]
5095         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
5096         exponent and small x and y exponents, scale x or y up.  Increase
5097         by 2 the exponent used in scaling up.
5098         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5099         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5100         * math/libm-test.inc (fma_test): Add more tests.
5101         (fma_test_towardzero): Likewise.
5102         (fma_test_downward): Likewise.
5103         (fma_test_upward): Likewise.
5104
5105 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
5106
5107         [BZ #14805]
5108         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
5109         fenv_t *.
5110
5111         [BZ #14801]
5112         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
5113         namespace for names of struct fields.
5114         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
5115         fenv_t fields.
5116         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
5117         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
5118
5119 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
5120
5121         [BZ #3665]
5122         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
5123
5124 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
5125
5126         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
5127         PTR_DEMANGLE.
5128
5129         [BZ #5246]
5130         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
5131         PTR_DEMANGLE.
5132
5133 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
5134
5135         [BZ #14797]
5136         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
5137         definitely overflow as x * y not x * y + z.
5138         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5139         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5140         * math/libm-test.inc (fma_test): Add more tests.
5141         (fma_test_towardzero): Likewise.
5142         (fma_test_downward): Likewise.
5143         (fma_test_upward): Likewise.
5144
5145 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
5146
5147         [BZ #157]
5148
5149         * include/stub-tag.h: Remove file.
5150         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
5151         '#include' of it.
5152         * manual/maint.texi (Porting): Don't reference it.
5153         * Makerules ($(objpfx)stubs): Likewise.
5154         * dirent/closedir.c: Don't include <stub-tag.h>.
5155         * dirent/dirfd.c: Likewise.
5156         * dirent/fdopendir.c: Likewise.
5157         * dirent/getdents.c: Likewise.
5158         * dirent/getdents64.c: Likewise.
5159         * dirent/opendir.c: Likewise.
5160         * dirent/readdir.c: Likewise.
5161         * dirent/readdir64.c: Likewise.
5162         * dirent/readdir64_r.c: Likewise.
5163         * dirent/readdir_r.c: Likewise.
5164         * dirent/rewinddir.c: Likewise.
5165         * dirent/seekdir.c: Likewise.
5166         * dirent/telldir.c: Likewise.
5167         * gmon/profil.c: Likewise.
5168         * grp/setgroups.c: Likewise.
5169         * inet/if_index.c: Likewise.
5170         * io/access.c: Likewise.
5171         * io/chdir.c: Likewise.
5172         * io/chmod.c: Likewise.
5173         * io/chown.c: Likewise.
5174         * io/close.c: Likewise.
5175         * io/dup.c: Likewise.
5176         * io/dup2.c: Likewise.
5177         * io/dup3.c: Likewise.
5178         * io/euidaccess.c: Likewise.
5179         * io/faccessat.c: Likewise.
5180         * io/fchdir.c: Likewise.
5181         * io/fchmod.c: Likewise.
5182         * io/fchmodat.c: Likewise.
5183         * io/fchown.c: Likewise.
5184         * io/fchownat.c: Likewise.
5185         * io/fcntl.c: Likewise.
5186         * io/flock.c: Likewise.
5187         * io/fstatfs.c: Likewise.
5188         * io/fstatfs64.c: Likewise.
5189         * io/fstatvfs.c: Likewise.
5190         * io/fstatvfs64.c: Likewise.
5191         * io/futimens.c: Likewise.
5192         * io/fxstat.c: Likewise.
5193         * io/fxstat64.c: Likewise.
5194         * io/fxstatat.c: Likewise.
5195         * io/fxstatat64.c: Likewise.
5196         * io/getcwd.c: Likewise.
5197         * io/isatty.c: Likewise.
5198         * io/lchmod.c: Likewise.
5199         * io/lchown.c: Likewise.
5200         * io/link.c: Likewise.
5201         * io/linkat.c: Likewise.
5202         * io/lseek.c: Likewise.
5203         * io/lseek64.c: Likewise.
5204         * io/lxstat64.c: Likewise.
5205         * io/mkdir.c: Likewise.
5206         * io/mkdirat.c: Likewise.
5207         * io/mkfifo.c: Likewise.
5208         * io/mkfifoat.c: Likewise.
5209         * io/open.c: Likewise.
5210         * io/open64.c: Likewise.
5211         * io/openat.c: Likewise.
5212         * io/openat64.c: Likewise.
5213         * io/pipe.c: Likewise.
5214         * io/pipe2.c: Likewise.
5215         * io/poll.c: Likewise.
5216         * io/posix_fadvise.c: Likewise.
5217         * io/posix_fadvise64.c: Likewise.
5218         * io/posix_fallocate.c: Likewise.
5219         * io/posix_fallocate64.c: Likewise.
5220         * io/read.c: Likewise.
5221         * io/readlink.c: Likewise.
5222         * io/readlinkat.c: Likewise.
5223         * io/rmdir.c: Likewise.
5224         * io/sendfile.c: Likewise.
5225         * io/sendfile64.c: Likewise.
5226         * io/statfs.c: Likewise.
5227         * io/statfs64.c: Likewise.
5228         * io/statvfs.c: Likewise.
5229         * io/statvfs64.c: Likewise.
5230         * io/symlink.c: Likewise.
5231         * io/symlinkat.c: Likewise.
5232         * io/ttyname.c: Likewise.
5233         * io/ttyname_r.c: Likewise.
5234         * io/umask.c: Likewise.
5235         * io/unlink.c: Likewise.
5236         * io/unlinkat.c: Likewise.
5237         * io/utime.c: Likewise.
5238         * io/utimensat.c: Likewise.
5239         * io/write.c: Likewise.
5240         * io/xmknod.c: Likewise.
5241         * io/xmknodat.c: Likewise.
5242         * io/xstat.c: Likewise.
5243         * io/xstat64.c: Likewise.
5244         * login/getpt.c: Likewise.
5245         * login/grantpt.c: Likewise.
5246         * login/unlockpt.c: Likewise.
5247         * math/e_acoshl.c: Likewise.
5248         * math/e_acosl.c: Likewise.
5249         * math/e_asinl.c: Likewise.
5250         * math/e_atan2l.c: Likewise.
5251         * math/e_atanhl.c: Likewise.
5252         * math/e_coshl.c: Likewise.
5253         * math/e_expl.c: Likewise.
5254         * math/e_fmodl.c: Likewise.
5255         * math/e_gammal_r.c: Likewise.
5256         * math/e_hypotl.c: Likewise.
5257         * math/e_j0l.c: Likewise.
5258         * math/e_j1l.c: Likewise.
5259         * math/e_jnl.c: Likewise.
5260         * math/e_lgammal_r.c: Likewise.
5261         * math/e_log10l.c: Likewise.
5262         * math/e_log2l.c: Likewise.
5263         * math/e_logl.c: Likewise.
5264         * math/e_powl.c: Likewise.
5265         * math/e_rem_pio2l.c: Likewise.
5266         * math/e_sinhl.c: Likewise.
5267         * math/e_sqrtl.c: Likewise.
5268         * math/fclrexcpt.c: Likewise.
5269         * math/fedisblxcpt.c: Likewise.
5270         * math/feenablxcpt.c: Likewise.
5271         * math/fegetenv.c: Likewise.
5272         * math/fegetexcept.c: Likewise.
5273         * math/fegetround.c: Likewise.
5274         * math/feholdexcpt.c: Likewise.
5275         * math/fesetenv.c: Likewise.
5276         * math/fesetround.c: Likewise.
5277         * math/feupdateenv.c: Likewise.
5278         * math/fgetexcptflg.c: Likewise.
5279         * math/fraiseexcpt.c: Likewise.
5280         * math/fsetexcptflg.c: Likewise.
5281         * math/ftestexcept.c: Likewise.
5282         * math/k_cosl.c: Likewise.
5283         * math/k_rem_pio2l.c: Likewise.
5284         * math/k_sinl.c: Likewise.
5285         * math/k_tanl.c: Likewise.
5286         * math/s_asinhl.c: Likewise.
5287         * math/s_atanl.c: Likewise.
5288         * math/s_cbrtl.c: Likewise.
5289         * math/s_erfl.c: Likewise.
5290         * math/s_expm1l.c: Likewise.
5291         * math/s_log1pl.c: Likewise.
5292         * math/s_tanhl.c: Likewise.
5293         * misc/acct.c: Likewise.
5294         * misc/brk.c: Likewise.
5295         * misc/chflags.c: Likewise.
5296         * misc/chroot.c: Likewise.
5297         * misc/fchflags.c: Likewise.
5298         * misc/fgetxattr.c: Likewise.
5299         * misc/flistxattr.c: Likewise.
5300         * misc/fremovexattr.c: Likewise.
5301         * misc/fsetxattr.c: Likewise.
5302         * misc/fsync.c: Likewise.
5303         * misc/ftruncate.c: Likewise.
5304         * misc/futimes.c: Likewise.
5305         * misc/futimesat.c: Likewise.
5306         * misc/getdomain.c: Likewise.
5307         * misc/getdtsz.c: Likewise.
5308         * misc/gethostid.c: Likewise.
5309         * misc/gethostname.c: Likewise.
5310         * misc/getloadavg.c: Likewise.
5311         * misc/getpagesize.c: Likewise.
5312         * misc/getsysstats.c: Likewise.
5313         * misc/getxattr.c: Likewise.
5314         * misc/gtty.c: Likewise.
5315         * misc/ioctl.c: Likewise.
5316         * misc/lgetxattr.c: Likewise.
5317         * misc/listxattr.c: Likewise.
5318         * misc/llistxattr.c: Likewise.
5319         * misc/lremovexattr.c: Likewise.
5320         * misc/lsetxattr.c: Likewise.
5321         * misc/lutimes.c: Likewise.
5322         * misc/madvise.c: Likewise.
5323         * misc/mincore.c: Likewise.
5324         * misc/mlock.c: Likewise.
5325         * misc/mlockall.c: Likewise.
5326         * misc/mmap.c: Likewise.
5327         * misc/mprotect.c: Likewise.
5328         * misc/msync.c: Likewise.
5329         * misc/munlock.c: Likewise.
5330         * misc/munlockall.c: Likewise.
5331         * misc/munmap.c: Likewise.
5332         * misc/preadv.c: Likewise.
5333         * misc/preadv64.c: Likewise.
5334         * misc/ptrace.c: Likewise.
5335         * misc/pwritev.c: Likewise.
5336         * misc/pwritev64.c: Likewise.
5337         * misc/readv.c: Likewise.
5338         * misc/reboot.c: Likewise.
5339         * misc/remap_file_pages.c: Likewise.
5340         * misc/removexattr.c: Likewise.
5341         * misc/revoke.c: Likewise.
5342         * misc/select.c: Likewise.
5343         * misc/setdomain.c: Likewise.
5344         * misc/setegid.c: Likewise.
5345         * misc/seteuid.c: Likewise.
5346         * misc/sethostid.c: Likewise.
5347         * misc/sethostname.c: Likewise.
5348         * misc/setregid.c: Likewise.
5349         * misc/setreuid.c: Likewise.
5350         * misc/setxattr.c: Likewise.
5351         * misc/sstk.c: Likewise.
5352         * misc/stty.c: Likewise.
5353         * misc/swapoff.c: Likewise.
5354         * misc/swapon.c: Likewise.
5355         * misc/sync.c: Likewise.
5356         * misc/syncfs.c: Likewise.
5357         * misc/syscall.c: Likewise.
5358         * misc/truncate.c: Likewise.
5359         * misc/ualarm.c: Likewise.
5360         * misc/usleep.c: Likewise.
5361         * misc/ustat.c: Likewise.
5362         * misc/utimes.c: Likewise.
5363         * misc/vhangup.c: Likewise.
5364         * misc/writev.c: Likewise.
5365         * posix/_exit.c: Likewise.
5366         * posix/alarm.c: Likewise.
5367         * posix/execve.c: Likewise.
5368         * posix/fexecve.c: Likewise.
5369         * posix/fork.c: Likewise.
5370         * posix/fpathconf.c: Likewise.
5371         * posix/getaddrinfo.c: Likewise.
5372         * posix/getegid.c: Likewise.
5373         * posix/geteuid.c: Likewise.
5374         * posix/getgid.c: Likewise.
5375         * posix/getgroups.c: Likewise.
5376         * posix/getlogin.c: Likewise.
5377         * posix/getlogin_r.c: Likewise.
5378         * posix/getpgid.c: Likewise.
5379         * posix/getpid.c: Likewise.
5380         * posix/getppid.c: Likewise.
5381         * posix/getresgid.c: Likewise.
5382         * posix/getresuid.c: Likewise.
5383         * posix/getsid.c: Likewise.
5384         * posix/getuid.c: Likewise.
5385         * posix/glob64.c: Likewise.
5386         * posix/nanosleep.c: Likewise.
5387         * posix/pathconf.c: Likewise.
5388         * posix/pause.c: Likewise.
5389         * posix/posix_madvise.c: Likewise.
5390         * posix/pread.c: Likewise.
5391         * posix/pread64.c: Likewise.
5392         * posix/pwrite.c: Likewise.
5393         * posix/pwrite64.c: Likewise.
5394         * posix/sched_getaffinity.c: Likewise.
5395         * posix/sched_getp.c: Likewise.
5396         * posix/sched_gets.c: Likewise.
5397         * posix/sched_primax.c: Likewise.
5398         * posix/sched_primin.c: Likewise.
5399         * posix/sched_rr_gi.c: Likewise.
5400         * posix/sched_setaffinity.c: Likewise.
5401         * posix/sched_setp.c: Likewise.
5402         * posix/sched_sets.c: Likewise.
5403         * posix/sched_yield.c: Likewise.
5404         * posix/setgid.c: Likewise.
5405         * posix/setlogin.c: Likewise.
5406         * posix/setpgid.c: Likewise.
5407         * posix/setresgid.c: Likewise.
5408         * posix/setresuid.c: Likewise.
5409         * posix/setsid.c: Likewise.
5410         * posix/setuid.c: Likewise.
5411         * posix/sleep.c: Likewise.
5412         * posix/spawni.c: Likewise.
5413         * posix/sysconf.c: Likewise.
5414         * posix/times.c: Likewise.
5415         * posix/wait.c: Likewise.
5416         * posix/wait3.c: Likewise.
5417         * posix/wait4.c: Likewise.
5418         * posix/waitpid.c: Likewise.
5419         * resolv/gai_sigqueue.c: Likewise.
5420         * resource/getpriority.c: Likewise.
5421         * resource/getrlimit.c: Likewise.
5422         * resource/getrusage.c: Likewise.
5423         * resource/nice.c: Likewise.
5424         * resource/setpriority.c: Likewise.
5425         * resource/setrlimit.c: Likewise.
5426         * resource/ulimit.c: Likewise.
5427         * rt/aio_cancel.c: Likewise.
5428         * rt/aio_fsync.c: Likewise.
5429         * rt/aio_read.c: Likewise.
5430         * rt/aio_sigqueue.c: Likewise.
5431         * rt/aio_suspend.c: Likewise.
5432         * rt/aio_write.c: Likewise.
5433         * rt/clock_getres.c: Likewise.
5434         * rt/clock_gettime.c: Likewise.
5435         * rt/clock_nanosleep.c: Likewise.
5436         * rt/clock_settime.c: Likewise.
5437         * rt/lio_listio.c: Likewise.
5438         * rt/mq_close.c: Likewise.
5439         * rt/mq_getattr.c: Likewise.
5440         * rt/mq_notify.c: Likewise.
5441         * rt/mq_open.c: Likewise.
5442         * rt/mq_receive.c: Likewise.
5443         * rt/mq_send.c: Likewise.
5444         * rt/mq_setattr.c: Likewise.
5445         * rt/mq_timedreceive.c: Likewise.
5446         * rt/mq_timedsend.c: Likewise.
5447         * rt/mq_unlink.c: Likewise.
5448         * rt/shm_open.c: Likewise.
5449         * rt/shm_unlink.c: Likewise.
5450         * rt/timer_create.c: Likewise.
5451         * rt/timer_delete.c: Likewise.
5452         * rt/timer_getoverr.c: Likewise.
5453         * rt/timer_gettime.c: Likewise.
5454         * rt/timer_settime.c: Likewise.
5455         * setjmp/__longjmp.c: Likewise.
5456         * setjmp/setjmp.c: Likewise.
5457         * signal/kill.c: Likewise.
5458         * signal/killpg.c: Likewise.
5459         * signal/raise.c: Likewise.
5460         * signal/sigaction.c: Likewise.
5461         * signal/sigaltstack.c: Likewise.
5462         * signal/sigblock.c: Likewise.
5463         * signal/sigignore.c: Likewise.
5464         * signal/sigintr.c: Likewise.
5465         * signal/signal.c: Likewise.
5466         * signal/sigpause.c: Likewise.
5467         * signal/sigpending.c: Likewise.
5468         * signal/sigqueue.c: Likewise.
5469         * signal/sigreturn.c: Likewise.
5470         * signal/sigset.c: Likewise.
5471         * signal/sigsetmask.c: Likewise.
5472         * signal/sigstack.c: Likewise.
5473         * signal/sigsuspend.c: Likewise.
5474         * signal/sigtimedwait.c: Likewise.
5475         * signal/sigvec.c: Likewise.
5476         * signal/sigwait.c: Likewise.
5477         * signal/sigwaitinfo.c: Likewise.
5478         * signal/sysv_signal.c: Likewise.
5479         * socket/accept.c: Likewise.
5480         * socket/accept4.c: Likewise.
5481         * socket/bind.c: Likewise.
5482         * socket/connect.c: Likewise.
5483         * socket/getpeername.c: Likewise.
5484         * socket/getsockname.c: Likewise.
5485         * socket/getsockopt.c: Likewise.
5486         * socket/isfdtype.c: Likewise.
5487         * socket/listen.c: Likewise.
5488         * socket/recv.c: Likewise.
5489         * socket/recvfrom.c: Likewise.
5490         * socket/recvmsg.c: Likewise.
5491         * socket/send.c: Likewise.
5492         * socket/sendmsg.c: Likewise.
5493         * socket/sendto.c: Likewise.
5494         * socket/setsockopt.c: Likewise.
5495         * socket/shutdown.c: Likewise.
5496         * socket/sockatmark.c: Likewise.
5497         * socket/socket.c: Likewise.
5498         * socket/socketpair.c: Likewise.
5499         * stdio-common/ctermid.c: Likewise.
5500         * stdio-common/cuserid.c: Likewise.
5501         * stdio-common/remove.c: Likewise.
5502         * stdio-common/rename.c: Likewise.
5503         * stdio-common/renameat.c: Likewise.
5504         * stdio-common/tempname.c: Likewise.
5505         * stdlib/getcontext.c: Likewise.
5506         * stdlib/makecontext.c: Likewise.
5507         * stdlib/setcontext.c: Likewise.
5508         * stdlib/swapcontext.c: Likewise.
5509         * stdlib/system.c: Likewise.
5510         * streams/fattach.c: Likewise.
5511         * streams/fdetach.c: Likewise.
5512         * streams/getmsg.c: Likewise.
5513         * streams/getpmsg.c: Likewise.
5514         * streams/putmsg.c: Likewise.
5515         * streams/putpmsg.c: Likewise.
5516         * sysdeps/unix/bsd/getpt.c: Likewise.
5517         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
5518         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
5519         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
5520         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
5521         Likewise.
5522         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
5523         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
5524         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
5525         * sysvipc/msgctl.c: Likewise.
5526         * sysvipc/msgget.c: Likewise.
5527         * sysvipc/msgrcv.c: Likewise.
5528         * sysvipc/msgsnd.c: Likewise.
5529         * sysvipc/semctl.c: Likewise.
5530         * sysvipc/semget.c: Likewise.
5531         * sysvipc/semop.c: Likewise.
5532         * sysvipc/semtimedop.c: Likewise.
5533         * sysvipc/shmat.c: Likewise.
5534         * sysvipc/shmctl.c: Likewise.
5535         * sysvipc/shmdt.c: Likewise.
5536         * sysvipc/shmget.c: Likewise.
5537         * termios/tcdrain.c: Likewise.
5538         * termios/tcflow.c: Likewise.
5539         * termios/tcflush.c: Likewise.
5540         * termios/tcgetattr.c: Likewise.
5541         * termios/tcgetpgrp.c: Likewise.
5542         * termios/tcsendbrk.c: Likewise.
5543         * termios/tcsetattr.c: Likewise.
5544         * termios/tcsetpgrp.c: Likewise.
5545         * time/adjtime.c: Likewise.
5546         * time/clock.c: Likewise.
5547         * time/getitimer.c: Likewise.
5548         * time/gettimeofday.c: Likewise.
5549         * time/setitimer.c: Likewise.
5550         * time/settimeofday.c: Likewise.
5551         * time/stime.c: Likewise.
5552         * time/time.c: Likewise.
5553
5554 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
5555
5556         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
5557         /usr/old/bin.
5558
5559         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
5560         instead of spaces.
5561         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
5562
5563 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
5564
5565         [BZ #14796]
5566         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
5567         FE_TONEAREST before applying Dekker multiplication and Knuth
5568         addition.  Clear inexact exceptions and check for exact zero
5569         results afterwards.
5570         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5571         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
5572         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5573         * math/libm-test.inc (fma_test): Add more tests.
5574         (fma_test_towardzero): Likewise.
5575         (fma_test_downward): Likewise.
5576         (fma_test_upward): Likewise.
5577         * sysdeps/generic/math_private.h (default_libc_fesetround): New
5578         function.
5579         (libc_fesetround): New macro.
5580         (libc_fesetroundf): Likewise.
5581         (libc_fesetroundl): Likewise.
5582         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
5583         function.
5584         (libc_fesetround_387): Likewise.
5585         (libc_fesetroundf): New macro.
5586         (libc_fesetround): Likewise.
5587         (libc_fesetroundl): Likewise.
5588         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
5589         function.
5590         (libc_fesetroundf): New macro.
5591         (libc_fesetround): Likewise.
5592         (libc_fesetroundl): Likewise.
5593         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
5594         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
5595         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
5596         libm_hidden_ver.
5597         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
5598         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
5599         libm_hidden_def.
5600         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
5601         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
5602         libm_hidden_ver.
5603         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
5604         libm_hidden_def.
5605
5606         [BZ #3439]
5607         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
5608         integer constant usable in #if and use that to give value to enum
5609         constant.
5610         (FE_DIVBYZERO): Likewise.
5611         (FE_UNDERFLOW): Likewise.
5612         (FE_OVERFLOW): Likewise.
5613         (FE_INVALID): Likewise.
5614         (FE_INVALID_SNAN): Likewise.
5615         (FE_INVALID_ISI): Likewise.
5616         (FE_INVALID_IDI): Likewise.
5617         (FE_INVALID_ZDZ): Likewise.
5618         (FE_INVALID_IMZ): Likewise.
5619         (FE_INVALID_COMPARE): Likewise.
5620         (FE_INVALID_SOFTWARE): Likewise.
5621         (FE_INVALID_SQRT): Likewise.
5622         (FE_INVALID_INTEGER_CONVERSION): Likewise.
5623         (FE_TONEAREST): Likewise.
5624         (FE_TOWARDZERO): Likewise.
5625         (FE_UPWARD): Likewise.
5626         (FE_DOWNWARD): Likewise.
5627         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
5628         (FE_DIVBYZERO): Likewise.
5629         (FE_OVERFLOW): Likewise.
5630         (FE_UNDERFLOW): Likewise.
5631         (FE_INEXACT): Likewise.
5632         (FE_TONEAREST): Likewise.
5633         (FE_DOWNWARD): Likewise.
5634         (FE_UPWARD): Likewise.
5635         (FE_TOWARDZERO): Likewise.
5636         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
5637         (FE_UNDERFLOW): Likewise.
5638         (FE_OVERFLOW): Likewise.
5639         (FE_DIVBYZERO): Likewise.
5640         (FE_INVALID): Likewise.
5641         (FE_TONEAREST): Likewise.
5642         (FE_TOWARDZERO): Likewise.
5643         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
5644         (FE_OVERFLOW): Likewise.
5645         (FE_UNDERFLOW): Likewise.
5646         (FE_DIVBYZERO): Likewise.
5647         (FE_INEXACT): Likewise.
5648         (FE_TONEAREST): Likewise.
5649         (FE_TOWARDZERO): Likewise.
5650         (FE_UPWARD): Likewise.
5651         (FE_DOWNWARD): Likewise.
5652         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
5653         (FE_DIVBYZERO): Likewise.
5654         (FE_OVERFLOW): Likewise.
5655         (FE_UNDERFLOW): Likewise.
5656         (FE_INEXACT): Likewise.
5657         (FE_TONEAREST): Likewise.
5658         (FE_DOWNWARD): Likewise.
5659         (FE_UPWARD): Likewise.
5660         (FE_TOWARDZERO): Likewise.
5661
5662 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
5663
5664         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
5665
5666 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
5667
5668         * scripts/cross-test-ssh.sh (command): Use newlines to separate
5669         commands.  Quote $PWD.
5670         (blacklist_exports): Don't use remove_newlines.  Replace "declare
5671         -x" by "export".
5672         (remove_newlines): Remove.
5673
5674 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
5675
5676         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
5677         * stdlib/stdlib.h (atof): Moved to ...
5678         * include/bits/stdlib-float.h: Here.  New file.
5679         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
5680         * stdlib/bits/stdlib-float.h: New file.
5681         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
5682         -mno-sse -mno-mmx.
5683         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
5684         <xmmintrin.h>.
5685
5686 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5687
5688         * conform/conformtest.pl (@headers): Add fenv.h.
5689         * conform/data/fenv.h-data: New file.
5690         * include/fenv.h [_ISOMAC]: Disable all contents of file except
5691         include of <math/fenv.h>.
5692
5693         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
5694         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
5695         && !UNIX98].  Enables tests for XOPEN2K8.
5696         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
5697         POSIX2008]: Likewise.
5698
5699         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
5700         (struct rusage): Do not expect type or its members.
5701
5702         [BZ #3439]
5703         * math/math.h (FP_NAN): Define macro to integer constant usable in
5704         #if and use that to give value to enum constant.
5705         (FP_INFINITE): Likewise.
5706         (FP_ZERO): Likewise.
5707         (FP_SUBNORMAL): Likewise.
5708         (FP_NORMAL): Likewise.
5709
5710 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
5711
5712         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
5713         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
5714         arguments.
5715
5716 2012-11-02  Roland McGrath  <roland@hack.frob.com>
5717
5718         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
5719         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
5720         autoconf-time if not.
5721         * configure.in: Remove AC_PREREQ.
5722
5723 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5724
5725         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
5726         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
5727         of the internal implementation.
5728
5729 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
5730
5731         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
5732         except include of <misc/sys/syslog.h>.
5733
5734 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5735
5736         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
5737         function returns with a NULL context exit with zero.
5738
5739 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5740
5741         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
5742
5743 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
5744
5745         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
5746         (run_program_cmd): This.
5747         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
5748         (tst_langinfo): New variable.  Use it.
5749
5750 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
5751
5752         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
5753         floating point opcodes.
5754
5755 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5756
5757         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
5758         variable.
5759
5760         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
5761
5762         * sysdeps/mach/hurd/powerpc: Remove directory.
5763         * sysdeps/mach/powerpc: Likewise.
5764
5765 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
5766
5767         * scripts/check-local-headers.sh: Ignore c++ headers.
5768
5769 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5770
5771         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
5772         __libc_cleanup_region_start argument.
5773
5774 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
5775
5776         [BZ #14784]
5777         [BZ #14785]
5778         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
5779         x * y using scaling, not as x * y + z.
5780         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5781         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5782         * math/libm-test.inc (fma_test): Add more tests.
5783         (fma_test_towardzero): Likewise.
5784         (fma_test_downward): Likewise.
5785         (fma_test_upward): Likewise.
5786
5787 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
5788
5789         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
5790
5791 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5792
5793         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
5794         New variable.
5795
5796 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
5797
5798         * rt/tst-shm.c (worker): Correct checking for mmap failure.
5799
5800 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5801
5802         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5803         Fix sort order.
5804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5805         Likewise.
5806
5807 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5808
5809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
5810         Fix the order of the list for glibc 2.17.
5811         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
5812         Likewise.
5813
5814 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
5815
5816         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5817
5818 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
5819
5820         [BZ #14610]
5821         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
5822         for low part of x being zero before using __atanl (y).
5823         * math/libm-test.inc (atan2_test): Add another test.
5824
5825         * manual/install.texi (Configuring and compiling): Document
5826         general use of test-wrapper and test-wrapper-env.
5827         * INSTALL: Regenerated.
5828
5829         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
5830         (__fma): Do not extract and scale down low bits on after-rounding
5831         systems when result rounded to normal precision would have normal
5832         exponent.
5833         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
5834         (__fmal): Do not extract and scale down low bits on after-rounding
5835         systems when result rounded to normal precision would have normal
5836         exponent.
5837         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
5838         (__fmal): Do not extract and scale down low bits on after-rounding
5839         systems when result rounded to normal precision would have normal
5840         exponent.
5841         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
5842         macro.
5843         (fma_test): Add more tests.
5844         (fma_test_towardzero): Likewise.
5845         (fma_test_downward): Likewise.
5846         (fma_test_upward): Likewise.
5847
5848 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
5849
5850         * sysdeps/i386/tininess.h: Renamed to ...
5851         * sysdeps/x86/tininess.h: This.
5852         * sysdeps/x86_64/tininess.h: Removed.
5853
5854 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
5855
5856         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
5857         input.  Use $(build-program-cmd).
5858         ($(objpfx)tst-array1-static.out): Likewise.
5859         ($(objpfx)tst-array2.out): Likewise.
5860         ($(objpfx)tst-array3.out): Likewise.
5861         ($(objpfx)tst-array4.out): Likewise.
5862         ($(objpfx)tst-array5.out): Likewise.
5863         ($(objpfx)tst-array5-static.out): Likewise.
5864
5865 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
5866
5867         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
5868         if defined.
5869
5870         * nss/nsswitch.h (nss_interface_function): Provide new
5871         macro for use with NSS functions.
5872         * grp/initgroups.c: Use new macro.
5873         * nss/getXXbyYY.c: Likewise.
5874         * nss/getXXbyYY_r.c: Likewise.
5875         * nss/getXXent.c: Likewise.
5876         * nss/getXXent_r.c: Likewise.
5877         * sysdeps/posix/getaddrinfo.c: Likewise.
5878
5879 2012-10-30  Andreas Jaeger  <aj@suse.de>
5880
5881         * po/ru.po: Update Russion translation from translation project.
5882
5883 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
5884
5885         [BZ #14152]
5886         [BZ #14783]
5887         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
5888         result and shift together with sticky bit instead of replicating
5889         round-to-nearest rounding.
5890         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
5891         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
5892         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
5893         missing underflow exceptions.
5894         (fma_test_towardzero): Add more tests.
5895         (fma_test_downward): Likewise.
5896         (fma_test_upward): Likewise.
5897
5898         [BZ #14047]
5899         * sysdeps/generic/tininess.h: New file.
5900         * sysdeps/i386/tininess.h: Likewise.
5901         * sysdeps/sh/tininess.h: Likewise.
5902         * sysdeps/x86_64/tininess.h: Likewise.
5903         * stdlib/tst-strtod-underflow.c: Likewise.
5904         * stdlib/tst-tininess.c: Likewise.
5905         * stdlib/strtod_l.c: Include <tininess.h>.
5906         (round_and_return): Do not set errno for exact underflow cases.
5907         Force an underflow exception when setting errno for underflow.
5908         Determine underflow based on rounding to normal precision if
5909         TININESS_AFTER_ROUNDING.
5910         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
5911         ERANGE for exact underflow cases.
5912         * stdlib/Makefile (tests): Add tst-tininess and
5913         tst-strtod-underflow.
5914         ($(objpfx)tst-tininess): Use $(link-libm).
5915         ($(objpfx)tst-strtod-underflow): Likewise.
5916
5917 2012-10-30  Andreas Jaeger  <aj@suse.de>
5918
5919         [BZ#14767]
5920         * elf/Makefile (tests): Remove conditional for have-initfini-array
5921         since this is now always required and the variable does not exist
5922         anymore.
5923         (tests-static): Likewise.
5924         (modules-names): Likewise.
5925
5926         * po/eo.po: Add Esperanto translation from translation project.
5927
5928         * elf/tst-array1.c (fini_array): Make writeable so that it can be
5929         merged with constructor/destructor.
5930         (init_array): Likewise.
5931         * elf/tst-array2dep.c (fini_array): Likewise.
5932         (init_array): Likewise.
5933
5934 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
5935
5936         * manual/message.texi: Delete @cartouche tags.
5937
5938 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
5939
5940         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
5941         EOPNOTSUPP.
5942         * sysdeps/mach/hurd/fsync.c: Likewise.
5943
5944         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
5945         [_POSIX_REALTIME_SIGNALS]: Change condition to
5946         [_POSIX_REALTIME_SIGNALS > 0].
5947
5948 2012-10-27  Andreas Jaeger  <aj@suse.de>
5949
5950         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
5951         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
5952         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
5953         [__WORDSIZE != 64]: Likewise.
5954
5955 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
5956
5957         *  iconvdata/tst-table.sh: Remove ${SHELL}.
5958         *  iconvdata/tst-tables.sh: Likewise.
5959
5960 2012-10-25  David S. Miller  <davem@davemloft.net>
5961
5962         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5963         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
5964         of strtoull.
5965
5966         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
5967         ifunc-impl-list.c
5968         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5969         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
5970         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
5971         file.
5972
5973 2012-10-25  Roland McGrath  <roland@hack.frob.com>
5974
5975         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
5976         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
5977         __getdirentries.
5978
5979 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5980             Jim Blandy  <jimb@codesourcery.com>
5981
5982         * scripts/cross-test-ssh.sh: New file.
5983         * manual/install.texi (Configuring and compiling): Document use of
5984         cross-test-ssh.sh.
5985         * INSTALL: Regenerated.
5986
5987 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
5988
5989         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
5990         EOPNOTSUPP.
5991
5992 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
5993
5994         * Makeconfig (run-program-prefix): Fix comment.
5995
5996 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
5997             Jim Blandy  <jimb@codesourcery.com>
5998
5999         * Makeconfig (test-wrapper): New variable,
6000         (test-wrapper-env): Likewise.
6001         [$(cross-compiling) = yes && $(test-wrapper) != ""]
6002         (run-built-tests): Define to yes.
6003         (run-program-prefix): Use $(test-wrapper).
6004         (built-program-cmd): Likewise.
6005         * Rules (make-test-out): Use $(test-wrapper-env) and
6006         $(host-built-program-cmd).
6007         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
6008         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
6009         tst-pathopt.sh.
6010         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
6011         $(test-wrapper-env) to tst-rtld-load-self.sh.
6012         ($(objpfx)order2.out): Use $(test-wrapper).
6013         ($(objpfx)tst-initorder.out): Likewise.
6014         ($(objpfx)tst-initorder2.out): Likewise.
6015         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
6016         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
6017         (test_wrapper_env): New variable.  Use it to run ld.so.
6018         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
6019         Use it to run ld.so.
6020         (test_wrapper_env): Likewise.
6021         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
6022         $(test-wrapper) to run-iconv-test.sh.
6023         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
6024         (ICONV): Use $test_wrapper.
6025         * posix/Makefile ($(objpfx)globtest.out): Pass
6026         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
6027         globtest.sh, not $(run-program-prefix).
6028         * posix/globtest.sh (run_via_rtld_prefix): New variable.
6029         (test_wrapper): Likewise.
6030         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
6031         set together with run_via_rtld_prefix.
6032         (run_program_prefix): Define in terms of test_wrapper and
6033         run_via_rtld_prefix.
6034
6035 2012-10-24  Roland McGrath  <roland@hack.frob.com>
6036
6037         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
6038         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
6039         Targets removed.
6040
6041         [BZ #14743]
6042         * include/time.h: Remove librt_hidden_proto (clock_gettime).
6043         Declare __clock_getres, __clock_gettime, __clock_settime,
6044         __clock_nanosleep, and __clock_getcpuclockid.
6045         * rt/clock_gettime.c: Define __clock_gettime as an alias.
6046         Remove librt_hidden_def (clock_gettime).
6047         * sysdeps/unix/clock_gettime.c: Likewise.
6048         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
6049         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
6050         * rt/clock_getres.c: Define __clock_getres as an alias.
6051         * sysdeps/posix/clock_getres.c: Likewise.
6052         * rt/clock_settime.c: Define __clock_settime as an alias.
6053         * sysdeps/unix/clock_settime.c: Likewise.
6054         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
6055         * sysdeps/unix/clock_nanosleep.c: Likewise.
6056         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
6057         * rt/clock-compat.c: New file.
6058         * rt/Makefile (librt-routines): Add clock-compat and move
6059         $(clock-routines) to ...
6060         (routines): ... here, new variable.
6061         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
6062         Don't add get_clockfreq here.
6063         * rt/Versions (libc: GLIBC_2.17): New version set.
6064         Add clock_* symbols here.
6065         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
6066         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
6067         (GLIBC_2.17): Add clock_* symbols.
6068         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
6069         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
6070         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
6071         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6072         Likewise.
6073         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6074         Likewise.
6075         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
6076         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
6077         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
6078         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
6079         * NEWS: Mention the move.
6080
6081         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
6082         Use __open, __read, __close rather than their public counterparts.
6083         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6084         (__get_clockfreq_via_cpuinfo): Likewise.
6085         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
6086         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
6087
6088         * config.h.in (HAVE_IFUNC): New #undef.
6089         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
6090         was successful.
6091         * configure: Regenerated.
6092
6093 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
6094
6095         * configure.in: Move READELF check to start of file.
6096         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
6097         libc_cv_asm_gnu_indirect_function in the process.
6098         * configure: Regenerated.
6099
6100 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
6101
6102         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
6103         send the output to /dev/null.
6104         (libc_cv_cc_with_libunwind): Likewise.
6105         (libc_cv_as_noexecstack): Likewise.
6106         * configure: Regenerate.
6107
6108 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
6109
6110         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
6111
6112         * posix/globtest.sh (TMPDIR): Do not set.
6113         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
6114         (testout): Likewise.
6115
6116 2012-10-24  Andreas Jaeger  <aj@suse.de>
6117
6118         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
6119         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
6120         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
6121         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
6122         posix_fadvise64, posix_fallocate64.
6123
6124         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
6125         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
6126         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
6127         Likewise.
6128         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
6129         Likewise.
6130         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
6131
6132         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
6133         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
6134         <bits/fcntl-linux.h>.
6135         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
6136
6137         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
6138         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
6139         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
6140         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
6141         [__WORDSIZE != 64]: Likewise.
6142
6143 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6144
6145         * Makeconfig (run-built-tests): New variable.
6146         * Rules [$(cross-compiling) = yes]: Change condition to
6147         [$(run-built-tests) = no].
6148         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
6149         to [$(run-built-tests) = yes].
6150         * elf/Makefile [$(cross-compiling) = no]: Likewise
6151         * grp/Makefile [$(cross-compiling) = no]: Likewise.
6152         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
6153         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
6154         * intl/Makefile [$(cross-compiling) = no]: Likewise.
6155         * io/Makefile [$(cross-compiling) = no]: Likewise.
6156         * libio/Makefile [$(cross-compiling) = no]: Likewise.
6157         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
6158         * misc/Makefile [$(cross-compiling) = no]: Likewise.
6159         * posix/Makefile [$(cross-compiling) = no]: Likewise.
6160         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
6161         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
6162         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
6163         * string/Makefile [$(cross-compiling) = no]: Likewise.
6164
6165         * posix/Makefile ($(objpfx)globtest.out): Pass
6166         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
6167         $(rtld-installed-name).
6168         * posix/globtest.sh (elf_objpfx): Remove variable.
6169         (rtld_installed_name): Likewise.
6170         (library_path): Likewise.
6171         (run_program_prefix): New variable.  Use for running globtest
6172         binary.
6173
6174 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
6175             Joseph Myers  <joseph@codesourcery.com>
6176
6177         * Makeconfig (host-built-program-cmd): New variable.
6178         * elf/Makefile (tst-stackguard1-ARGS): Use
6179         $(host-built-program-cmd).
6180         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
6181         (tst-spawn-ARGS): Likewise.
6182         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
6183
6184 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
6185             Jim Blandy  <jimb@codesourcery.com>
6186
6187         * Makeconfig (run-via-rtld-prefix): New variable.
6188         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
6189         (built-program-cmd): Likewise.
6190
6191 2012-10-22  Andreas Jaeger  <aj@suse.de>
6192
6193         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
6194         __O_RSYNC if it exists, otherwise to O_SYNC.
6195
6196 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
6197             Joseph Myers  <joseph@codesourcery.com>
6198
6199         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
6200         /dev/null.
6201         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
6202         from /dev/null
6203         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
6204         /dev/null.
6205
6206 2012-10-22  Andreas Jaeger  <aj@suse.de>
6207
6208         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
6209         Define always.
6210         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
6211
6212         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6213         bits/fcntl-linux.h.
6214
6215         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
6216         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
6217
6218         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
6219         to __O_LARGEFILE.
6220         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
6221         to __O_LARGEFILE.
6222
6223 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
6224             Joseph Myers  <joseph@codesourcery.com>
6225
6226         * config.make.in (NM): New variable.
6227
6228 2012-10-21  Andreas Jaeger  <aj@suse.de>
6229
6230         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
6231         definitions and declarations that are provided by
6232         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
6233
6234 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6235
6236         [BZ #14683]
6237         * elf/Makefile (tests-static): Add tst-leaks1-static.
6238         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
6239         ($(objpfx)tst-leaks1-static): New rule.
6240         ($(objpfx)tst-leaks1-static-mem): Likewise.
6241         (tst-leaks1-static-ENV): New macro.
6242         * elf/dl-open.c (dl_open_worker): Check the main application
6243         only if SHARED is defined.
6244         * elf/tst-leaks1-static.c: New file.
6245
6246 2012-10-20  Andreas Jaeger  <aj@suse.de>
6247
6248         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
6249         generic values for Linux.
6250         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
6251         and declarations that are provided by <bits/fcntl-linux.h> and
6252         include <bits/fcntl-linux.h>.
6253         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
6254         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
6255
6256 2012-10-20  Roland McGrath  <roland@hack.frob.com>
6257
6258         * io/fcntl.h: Move include of <bits/types.h> to the top and
6259         include it unconditionally.
6260
6261 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
6262
6263         * wcsmbs/Makefile (tests-ifunc): New variable.
6264         (tests): Add $(tests-ifunc).
6265         * wcsmbs/test-wcschr-ifunc.c: New file.
6266         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
6267         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
6268         * wcsmbs/test-wcslen-ifunc.c: Likewise.
6269         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
6270         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
6271
6272         * string/Makefile (tests-ifunc): New variable.
6273         (tests): Add $(tests-ifunc).
6274         * string/test-memccpy.c (TEST_NAME): New macro.
6275         * string/test-memchr.c (TEST_NAME): Likewise.
6276         * string/test-memcmp.c (TEST_NAME): Likewise.
6277         * string/test-memcpy.c (TEST_NAME): Likewise.
6278         * string/test-memmem.c (TEST_NAME): Likewise.
6279         * string/test-memmove.c (TEST_NAME): Likewise.
6280         * string/test-memset.c (TEST_NAME): Likewise.
6281         * string/test-rawmemchr.c (TEST_NAME): Likewise.
6282         * string/test-stpcpy.c (TEST_NAME): Likewise.
6283         * string/test-stpncpy.c (TEST_NAME): Likewise.
6284         * string/test-strcasecmp.c (TEST_NAME): Likewise.
6285         * string/test-strcasestr.c (TEST_NAME): Likewise.
6286         * string/test-strcat.c (TEST_NAME): Likewise.
6287         * string/test-strchr.c (TEST_NAME): Likewise.
6288         * string/test-strcmp.c(TEST_NAME): Likewise.
6289         * string/test-strcpy.c (TEST_NAME): Likewise.
6290         * string/test-strcspn.c (TEST_NAME): Likewise.
6291         * string/test-strlen.c (TEST_NAME): Likewise.
6292         * string/test-strncasecmp.c (TEST_NAME): Likewise.
6293         * string/test-strncmp.c (TEST_NAME): Likewise.
6294         * string/test-strncpy.c (TEST_NAME): Likewise.
6295         * string/test-strnlen.c (TEST_NAME): Likewise.
6296         * string/test-strpbrk.c (TEST_NAME): Likewise.
6297         * string/test-strrchr.c (TEST_NAME): Likewise.
6298         * string/test-strspn.c (TEST_NAME): Likewise.
6299         * string/test-strstr.c (TEST_NAME): Likewise.
6300         * string/test-bcopy-ifunc.c: New file.
6301         * string/test-bzero-ifunc.c: Likewise.
6302         * string/test-memccpy-ifunc.c: Likewise.
6303         * string/test-memchr-ifunc.c: Likewise.
6304         * string/test-memcmp-ifunc.c: Likewise.
6305         * string/test-memcpy-ifunc.c: Likewise.
6306         * string/test-memmem-ifunc.c: Likewise.
6307         * string/test-memmove-ifunc.c: Likewise.
6308         * string/test-mempcpy-ifunc.c: Likewise.
6309         * string/test-memset-ifunc.c: Likewise.
6310         * string/test-rawmemchr-ifunc.c: Likewise.
6311         * string/test-stpcpy-ifunc.c: Likewise.
6312         * string/test-stpncpy-ifunc.c: Likewise.
6313         * string/test-strcasecmp-ifunc.c: Likewise.
6314         * string/test-strcasestr-ifunc.c: Likewise.
6315         * string/test-strcat-ifunc.c: Likewise.
6316         * string/test-strchr-ifunc.c: Likewise.
6317         * string/test-strchrnul-ifunc.c: Likewise.
6318         * string/test-strcmp-ifunc.c: Likewise.
6319         * string/test-strcpy-ifunc.c: Likewise.
6320         * string/test-strcspn-ifunc.c: Likewise.
6321         * string/test-strlen-ifunc.c: Likewise.
6322         * string/test-strncasecmp-ifunc.c: Likewise.
6323         * string/test-strncat-ifunc.c: Likewise.
6324         * string/test-strncmp-ifunc.c: Likewise.
6325         * string/test-strncpy-ifunc.c: Likewise.
6326         * string/test-strnlen-ifunc.c: Likewise.
6327         * string/test-strpbrk-ifunc.c: Likewise.
6328         * string/test-strrchr-ifunc.c: Likewise.
6329         * string/test-strspn-ifunc.c: Likewise.
6330         * string/test-strstr-ifunc.c: Likewise.
6331
6332         * debug/Makefile (tests-ifunc): New variable.
6333         (tests): Add $(tests-ifunc).
6334         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
6335         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
6336         * debug/test-stpcpy_chk-ifunc.c: New file.
6337         * debug/test-strcpy_chk-ifunc.c: Likewise.
6338
6339 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6340
6341         [BZ #13601]
6342         * elf/dl-load.c (open_verify): Retry read if the entire ELF
6343         header is not read in.
6344
6345 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
6346
6347         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
6348         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
6349         directly.  Pass built executable to script as
6350         $(built-program-cmd).
6351         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
6352         $testprogram without using LD_LIBRARY_PATH and $ldso.
6353
6354         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
6355         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
6356         $(rtld-installed-name).
6357         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
6358         (rtld_installed_name): Likewise.
6359         (library_path): Likewise.
6360         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
6361         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
6362         $(run-program-prefix) to tst-tables.sh.
6363         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
6364         it to run tst-table-from and tst-table-to.
6365         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
6366         Pass it to tst-table.sh.
6367         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
6368         $(run-program-prefix) to tst-gettext.sh.
6369         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
6370         tst-translit.sh.
6371         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
6372         tst-gettext2.sh.
6373         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
6374         to run tst-gettext.
6375         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
6376         to run tst-gettext2.
6377         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
6378         to run tst-translit.
6379         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
6380         $(run-program-prefix) to tst-mtrace.sh.
6381         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
6382         to run tst-mtrace.
6383         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
6384         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
6385         $(rtld-installed-name).
6386         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
6387         (rtld_installed_name): Likewise.
6388         (run_program_prefix): New variable.  Use it to run wordexp-test.
6389
6390         * Makeconfig (ARCH): Remove all definitions.
6391         (machine): Likewise.
6392         [ARCH]: Remove conditional code.
6393         [!objdir]: Give error.
6394         [!objdir] (objpfx): Remove.
6395         [!objdir] (common-objpfx): Likewise.
6396         [!objdir] (common-objdir): Likewise.
6397         * configure.in (config_makefile): Remove.  Hardcode Makefile in
6398         AC_CONFIG_FILES call.
6399         * configure: Regenerated.
6400
6401         [BZ #13888]
6402         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
6403         or TMPDIR.
6404         (testout): Likewise.
6405
6406         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
6407         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
6408         $(rtld-installed-name).
6409         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
6410         (rtld_installed_name): Likwise.
6411         (runit): Remove function.
6412         (run_getconf): New variable,  Use it for running getconf binary.
6413
6414 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
6415
6416         [BZ #14716]
6417         * string/test-memmem.c (check_result): New function.
6418         (do_one_test): Use it.
6419         (check1): New function.
6420         (test_main): Use it.
6421
6422 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
6423
6424         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
6425
6426 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
6427
6428         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
6429         (_G_LSEEK64): Likewise.
6430         (_G_MMAP64): Likewise.
6431         (_G_FSTAT64): Likewise.
6432         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
6433         (_G_LSEEK64): Likewise.
6434         (_G_MMAP64): Likewise.
6435         (_G_FSTAT64): Likewise.
6436         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
6437         unconditional.  Call __mmap64 directly.
6438         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
6439         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
6440         __lseek64 directly.
6441         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
6442         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
6443         __mmap64 directly.
6444         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
6445         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
6446         __lseek64 directly.
6447         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
6448         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
6449         __lseek64 directly.
6450         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
6451         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
6452         __lseek64 directly.
6453         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
6454         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
6455         __fxstat64 directly.
6456         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
6457         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
6458         unconditional.
6459         (freopen64) [!_G_OPEN64]: Remove conditional code.
6460         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
6461         unconditional.
6462         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
6463         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
6464         unconditional.
6465         (ftello64) [!_G_LSEEK64]: Remove conditional code.
6466         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
6467         unconditional.
6468         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
6469         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
6470         unconditional.
6471         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
6472         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
6473         unconditional.
6474         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
6475         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
6476         unconditional.
6477         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
6478         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
6479         unconditional.
6480         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
6481
6482 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6483
6484         [BZ #12140]
6485         * manual/memory.texi (Malloc Tunable Parameters): Add note
6486         about free list pointers overwriting some perturb bytes.
6487         Wording suggested by Roland McGrath.
6488
6489 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
6490
6491         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
6492         (lgamma_test): Likewise.
6493         (tgamma_test): Likewise.
6494
6495 2012-10-16  Florian Weimer  <fweimer@redhat.com>
6496
6497         [BZ #14700]
6498         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
6499         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
6500
6501 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
6502
6503         * NEWS: Mention BZ #14716.
6504         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
6505         when removing AVAILABLE1_USES_J macro.
6506
6507 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
6508
6509         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
6510         (__bswap_64): __uint64_t for unsigned 64-bit int.
6511
6512 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
6513
6514         * include/string.h (memmem): Declare libc hidden alias.
6515         * string/memmem.c (memmem): Define libc hidden alias.
6516         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
6517         __read, __close instead of open, read, close.
6518
6519 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
6520
6521         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
6522         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
6523         global and hidden.
6524         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
6525         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
6526         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
6527         Likewise.
6528         (__rawmemchr_sse2): Likewise.
6529         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
6530         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
6531         (__strchr_sse2): Likewise.
6532         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
6533         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
6534         (__strcasecmp_sse2): Likewise.
6535         (__strncasecmp_sse2): Likewise.
6536         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
6537         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
6538         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
6539         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
6540         (__strrchr_sse2): Likewise.
6541         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
6542         ifunc-impl-list.c.
6543         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
6544         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
6545         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
6546         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
6547         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
6548         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
6549         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6550         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6551         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
6552         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
6553         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
6554         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
6555         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
6556         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
6557         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
6558         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
6559         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
6560         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
6561         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
6562         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
6563         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
6564         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
6565         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
6566         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
6567         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
6568         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
6569         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
6570         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
6571         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
6572         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
6573
6574         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
6575         global and hidden.
6576         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
6577         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
6578         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
6579         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
6580         Likewise.
6581         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
6582         Likewise.
6583         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
6584         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
6585         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
6586         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
6587         ifunc-impl-list.c.
6588         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
6589         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
6590         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
6591         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
6592         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
6593         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
6594         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
6595         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
6596         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
6597         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
6598         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
6599         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
6600         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
6601         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
6602         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
6603         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
6604         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
6605         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
6606         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
6607         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
6608         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
6609         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
6610         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
6611         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
6612         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
6613         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
6614         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
6615         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
6616         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
6617         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
6618         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
6619         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
6620         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
6621         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
6622         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
6623         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
6624         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
6625         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
6626         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
6627         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
6628         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
6629
6630         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
6631         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
6632         * include/ifunc-impl-list.h: New file.
6633         * misc/ifunc-impl-list.c: Likewise.
6634         * misc/Makefile (routines): Add ifunc-impl-list.
6635         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
6636         * string/test-string.h: Include <ifunc-impl-list.h>.
6637         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
6638         impl_array): New variables.
6639         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
6640         are defined.
6641         (test_init): Call __libc_ifunc_impl_list to initialize
6642         func_list if TEST_IFUNC and TEST_NAME are defined.
6643
6644         * string/Makefile (strop-tests): Add bcopy and bzero.
6645         * string/test-bcopy.c: New file.
6646         * string/test-bzero.c: Likewise.
6647         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
6648         defined.
6649         * string/test-memset.c: Support bzero test if TEST_BZERO is
6650         defined.
6651         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
6652         __libc_memmove.
6653         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
6654         __libc_memset.
6655         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
6656         of memset.
6657
6658 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
6659
6660         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
6661         * configure: Regenerated.
6662
6663         * Makeconfig (+link-static-before-libc): Don't include
6664         $(link-static-libc).
6665
6666         * libio/libio.h (_IO_pos_t): Remove.
6667
6668 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6669
6670         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
6671         McGrath.
6672
6673 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6674
6675         * crypt/crypt-entry.c: Include fips-private.h.
6676         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
6677         * crypt/md5c-test.c (main): Tolerate disabled MD5.
6678         * sysdeps/unix/sysv/linux/fips-private.h: New file.
6679         * sysdeps/generic/fips-private.h: New file, dummy fallback.
6680
6681 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
6682
6683         * crypt/crypt-private.h: Include stdbool.h.
6684         (_ufc_setup_salt_r): Return bool.
6685         * crypt/crypt-entry.c: Include errno.h.
6686         (__crypt_r): Return NULL with EINVAL for bad salt.
6687         * crypt/crypt_util.c (bad_for_salt): New.
6688         (_ufc_setup_salt_r): Check that salt is long enough and within
6689         the specified alphabet.
6690         * crypt/badsalttest.c: New file.
6691         * crypt/Makefile (tests): Add it.
6692         ($(objpfx)badsalttest): New.
6693
6694 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
6695
6696         * NEWS: Add entry for BZ #14602.
6697
6698 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6699
6700         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
6701         type-generic.
6702         * math/libm-test.inc: Update comment listing what functions and
6703         macros are tested.
6704         (isgreater_test): New function.
6705         (isgreaterequal_test): Likewise.
6706         (isless_test): Likewise.
6707         (islessequal_test): Likewise.
6708         (islessgreater_test): Likewise.
6709         (isunordered_test): Likewise.
6710         (main): Call the new functions.
6711
6712 2012-10-09  Roland McGrath  <roland@hack.frob.com>
6713
6714         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
6715         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
6716         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
6717         * sysdeps/i386/configure: Regenerated.
6718         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
6719         * sysdeps/mach/configure: Regenerated.
6720         * sysdeps/mach/hurd/configure: Regenerated.
6721         * sysdeps/powerpc/configure: Regenerated.
6722         * sysdeps/powerpc/powerpc32/configure: Regenerated.
6723         * sysdeps/powerpc/powerpc64/configure: Regenerated.
6724         * sysdeps/s390/s390-32/configure: Regenerated.
6725         * sysdeps/s390/s390-64/configure: Regenerated.
6726         * sysdeps/sh/configure: Regenerated.
6727         * sysdeps/sparc/configure: Regenerated.
6728         * sysdeps/unix/sysv/linux/configure: Regenerated.
6729         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
6730         * sysdeps/x86_64/configure: Regenerated.
6731
6732         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
6733         defined.  Don't check if MAP is NULL.
6734
6735 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
6736
6737         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
6738         (_G_stat64): Likewise.
6739         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
6740         (_G_stat64): Likewise.
6741         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
6742         instead of struct _G_stat64.
6743         * libio/fileops.c (mmap_remap_check): Likewise.
6744         (decide_maybe_mmap): Likewise.
6745         (_IO_new_file_seekoff): Likewise.
6746         (_IO_file_stat): Likewise.
6747         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
6748         _G_off64_t.
6749         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
6750         instead of struct _G_stat64.
6751         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
6752
6753 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
6754
6755         [BZ #14602]
6756         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6757         Replace with ...
6758         (CHECK_EOL): New macro.
6759         (two_way_short_needle): Check beginning of haystack for EOL.  Use
6760         CHECK_EOL.
6761         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6762         Replace with CHECK_EOL.
6763         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
6764         Replace with CHECK_EOL.
6765
6766 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
6767
6768         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
6769         type-generic.
6770         * math/libm-test.inc: Update comment listing what functions and
6771         macros are tested.
6772         (finite_test): New function.
6773         (isinf_test): Likewise.
6774         (isnan_test): Likewise.
6775         (fpclassify_test): Test subnormal input.
6776         (isfinite_test): Likewise.
6777         (isnormal_test): Likewise.
6778         (main): Call the new functions.
6779
6780 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
6781
6782         [BZ #14660]
6783         * Makerules (%.dynsym): Force C locale when running
6784         $(OBJDUMP) --dynamic-syms.
6785
6786 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
6787
6788         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
6789         <stdint.h>.
6790
6791 2012-10-06  David S. Miller  <davem@davemloft.net>
6792
6793         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
6794         upper 32-bits of the length value in %o2 since we use branch-on-register
6795         tests which consider the entire 64-bit register.
6796
6797 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
6798
6799         * string/test-strstr.c (check2): Add a test for page boundary.
6800
6801 2012-10-05  David S. Miller  <davem@davemloft.net>
6802
6803         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
6804         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
6805         file.
6806         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
6807         sysdep_routines.
6808         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
6809         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
6810         and bzero when HWCAP_SPARC_CRYPTO is present.
6811
6812 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
6813
6814         [BZ #14602]
6815         * string/test-strstr.c (check2): New function.
6816         (test_main): Call check2.
6817
6818         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
6819         and bug-strchr1.
6820         * string/bug-strcasestr1.c (do_test): Moved to ...
6821         * string/test-strcasestr.c (check1): Here.  New function.
6822         (do_one_test): Break out result checking code into ...
6823         (check_result): This.  New function.
6824         (do_one_test): Call check_result.
6825         (test_main): Call check1.
6826         * string/bug-strchr1.c (do_test): Moved to ...
6827         * string/test-strchr.c (check1): Here.  New function.
6828         (do_one_test): Break out result checking code into ...
6829         (check_result): This.  New function.
6830         (do_one_test): Call check_result.
6831         (test_main): Call check1.
6832         * string/bug-strstr1.c (main): Moved to ...
6833         * string/test-strstr.c (check1): Here.  New function.
6834         (do_one_test): Break out result checking code into ...
6835         (check_result): This.  New function.
6836         (do_one_test): Call check_result.
6837         (test_main): Call check1.
6838         * string/bug-strcasestr1.c: Removed.
6839         * string/bug-strchr1.c: Likewise.
6840         * string/bug-strstr1.c: Likewise.
6841
6842         * elf/Makefile (dl-routines): Add hwcaps.
6843         * elf/dl-support.c (_dl_important_hwcaps): Removed.
6844         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
6845         (_dl_important_hwcaps): Moved to ...
6846         * elf/dl-hwcaps.c: Here.  New file.
6847         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
6848
6849         [BZ #14557]
6850         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
6851         if IS_IN_rtld isn't defined.
6852
6853         * elf/dl-support.c (_dl_sysinfo_map): New.
6854         Include "get-dynamic-info.h" and "setup-vdso.h".
6855         (_dl_non_dynamic_init): Call setup_vdso.
6856         * elf/dynamic-link.h: Don't include <assert.h>.
6857         (elf_get_dynamic_info): Moved to ...
6858         * elf/get-dynamic-info.h: Here.  New file.
6859         * elf/dynamic-link.h: Include "get-dynamic-info.h".
6860         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
6861         * elf/setup-vdso.h: Here.  New file.
6862         * elf/rtld.c: Include "setup-vdso.h".
6863         (dl_main): Call setup_vdso.
6864
6865 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
6866
6867         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
6868         creal in comment listing functions tested.  List finite, isinf,
6869         isnan, isless, islessequal, isgreater, isgreaterequal,
6870         islessgreater, isunordered, lgamma_r and pow10 as functions and
6871         macros not tested.  Mention which functions not tested are aliases
6872         for other functions.  Fix typo.  Note that signs of NaNs are not
6873         tested.
6874
6875         * scripts/config.guess: Update from config.git.
6876         * scripts/config.sub: Likewise.
6877
6878 2012-10-04  Roland McGrath  <roland@hack.frob.com>
6879
6880         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
6881         * misc/madvise.c (madvise): Renamed to __madvise.
6882         Make madvise a weak alias.
6883         * include/sys/mman.h: Declare __madvise.
6884         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
6885         * sysdeps/unix/syscalls.list
6886         (madvise): Make __madvise the strong name, and madvise a weak alias.
6887         * sysdeps/unix/sysv/linux/syscalls.list
6888         (madvise, mmap): Remove redundant entries.
6889         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
6890         * malloc/malloc.c (mtrim): Likewise.
6891         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
6892
6893 2012-10-03  Roland McGrath  <roland@hack.frob.com>
6894
6895         * sysdeps/mach/hurd/dl-cache.c: File removed.
6896         * config.h.in (USE_LDCONFIG): New #undef.
6897         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
6898         * configure: Regenerated.
6899         * elf/Makefile (dl-routines): Add dl-cache only under
6900         [$(use-ldconfig) = yes].
6901         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
6902         cache on [USE_LDCONFIG].
6903         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
6904         [USE_LDCONFIG].
6905         * elf/rtld.c (dl_main): Likewise.
6906
6907 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
6908
6909         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
6910         _SC_LEVEL4_CACHE_LINESIZE.
6911
6912 2012-10-03  Roland McGrath  <roland@hack.frob.com>
6913
6914         * sysdeps/unix/bsd/confstr.h: File removed.
6915
6916 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
6917
6918         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
6919         sys/sdt-config.h.
6920
6921 2012-10-02  Roland McGrath  <roland@hack.frob.com>
6922
6923         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
6924         Make 'mapoff' field ElfW(Off) rather than off_t.
6925
6926 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
6927
6928         * nscd/Makefile: Remove nscd-cflags and all its users.
6929         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
6930         (CFLAGS-nonlib): Add compiler flags for nscd modules.
6931
6932         [BZ #10631]
6933         * malloc.c (malloc_printerr): Clarify error message.
6934
6935 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
6936
6937         [BZ #14648]
6938         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6939         Set bit_FMA_Usable if FMA is supported.
6940         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
6941         macro.
6942         (bit_FMA4_Usable): Updated.
6943         (index_FMA_Usable): New macro.
6944         (CPUID_FMA): Likewise
6945         (HAS_FMA): Defined with bit_FMA_Usable.
6946
6947 2012-10-01  Roland McGrath  <roland@hack.frob.com>
6948
6949         * bits/types.h (__swblk_t): Type removed.
6950         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
6951         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
6952         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
6953         (__SWBLK_T_TYPE): Likewise.
6954         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
6955         (__SWBLK_T_TYPE): Likewise.
6956         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
6957         (__SWBLK_T_TYPE): Likewise.
6958         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
6959         (__SWBLK_T_TYPE): Likewise.
6960
6961 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
6962             Honza Horak <hhorak@redhat.com>
6963
6964         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
6965         (xdr_mapname): Use YPMAXMAP as maxsize.
6966         (xdr_peername): Use YPMAXPEER as maxsize.
6967         (xdr_keydat): Use YPAXRECORD as maxsize.
6968         (xdr_valdat): Use YPMAXRECORD as maxsize.
6969
6970 2012-10-01  Roland McGrath  <roland@hack.frob.com>
6971
6972         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
6973
6974         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
6975         * csu/init-first.c: ... here.
6976         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
6977         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
6978         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
6979         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
6980         * sysdeps/i386/init-first.c: File removed.
6981         * sysdeps/sh/init-first.c: File removed.
6982
6983 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
6984
6985         [BZ #14645]
6986         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
6987         if x * y might underflow to zero and z is zero.
6988         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
6989         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
6990         * math/libm-test.inc (min_subnorm_value): New variable.
6991         (fma_test): Add more tests.
6992         (fma_test_towardzero): Likewise.
6993         (fma_test_downward): Likewise
6994         (fma_test_upward): Likewise.
6995         (initialize): Set min_subnorm_value.
6996
6997 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
6998
6999         [BZ #14638]
7000         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
7001         0 + 0.
7002         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
7003         mode for addition resulting in exact zero.
7004         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
7005         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
7006         exact 0 + 0.
7007         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
7008         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
7009         * math/libm-test.inc (fma_test): Add more tests.
7010         (fma_test_towardzero): New function.
7011         (fma_test_downward): Likewise.
7012         (fma_test_upward): Likewise.
7013         (main): Call the new functions.
7014
7015 2012-09-28  David S. Miller  <davem@davemloft.net>
7016
7017         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
7018
7019 2012-09-28  Roland McGrath  <roland@hack.frob.com>
7020
7021         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
7022         instead of SIGALRM.
7023
7024         * sysdeps/gnu/_G_config.h: Moved to ...
7025         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
7026         * sysdeps/mach/hurd/_G_config.h: Moved to ...
7027         * sysdeps/generic/_G_config.h: ... here.
7028
7029         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
7030
7031         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
7032
7033         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
7034         Conditionalize target on [libnss_test1.so-version].
7035
7036         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
7037
7038         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
7039         (elfobjdir): Move out of conditionals.
7040
7041         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
7042         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
7043         (__nss_lookup_function): Conditionalize label remove_from_tree on
7044         [!DO_STATIC_NSS || SHARED], matching its only use.
7045
7046 2012-09-28  David S. Miller  <davem@davemloft.net>
7047
7048         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
7049         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
7050         file.
7051         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
7052         sysdep_routines.
7053         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
7054         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
7055         when HWCAP_SPARC_CRYPTO is present.
7056
7057 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7058
7059         * io/tst-mknodat.c: Create a FIFO instead of a socket.
7060
7061 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
7062
7063         [BZ #6530]
7064         * stdio-common/vfprintf.c (process_string_arg): Revert
7065         2000-07-22 change.
7066
7067 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
7068
7069         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
7070         for testcase.
7071         * stdio-common/tst-sprintf.c: Include <locale.h>
7072         (main): Test sprintf's handling of incomplete multibyte
7073         characters.
7074
7075 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
7076
7077         * elf/dl-runtime.c (VERSYMIDX): Removed.
7078         * elf/dl-version.c (VERSYMIDX): Likewise.
7079         * elf/do-rel.h (VERSYMIDX): Likewise.
7080         (VALIDX): Likewise.
7081         * elf/dynamic-link.h (VERSYMIDX): Likewise.
7082         * elf/rtld.c (VALIDX): Likewise.
7083         (ADDRIDX): Likewise.
7084         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
7085         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
7086         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
7087         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
7088         (VALIDX): Likewise.
7089         (ADDRIDX): Likewise.
7090
7091 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7092
7093         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
7094
7095 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
7096
7097         [BZ #11438]
7098         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
7099         to global scope.
7100         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
7101         addresses are in the same scope as 192.0.2/24.
7102         * posix/gai.conf: Document new scope table defaults.
7103
7104 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7105
7106         [BZ #5298]
7107         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
7108         for ftell.  Compute offsets from write pointers instead.
7109         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
7110
7111 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
7112
7113         [BZ #14543]
7114         * libio/Makefile (tests): New test case tst-fseek.
7115         * libio/tst-fseek.c: New test case to verify that fseek/ftell
7116         combination works in wide mode.
7117         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
7118         state when the external buffer state changes.
7119
7120 2012-09-27  David S. Miller  <davem@davemloft.net>
7121
7122         [BZ #14376]
7123         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
7124         pass reloc->r_addend in as the 'high' argument to
7125         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
7126
7127         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7128
7129 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
7130
7131         * rt/tst-aio2.c: Include <pthread.h>.
7132         * rt/tst-aio3.c: Likewise.
7133
7134 2012-09-27  Steve Ellcey  <sellcey@mips.com>
7135
7136         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
7137
7138 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
7139
7140         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
7141         contents on [SHARED].
7142
7143 2012-09-26  Marek Polacek  <polacek@redhat.com>
7144
7145         [BZ #14530]
7146         [BZ #13741]
7147         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
7148         for C++ and GCC <4.3 as well as for non GCC compilers.
7149
7150 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
7151
7152         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7153
7154 2012-09-25  Roland McGrath  <roland@hack.frob.com>
7155
7156         * Makefile.in (all, install): Declare with .PHONY.
7157         Reported by Michael Hope <michael.hope@linaro.org>.
7158
7159 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
7160
7161         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
7162         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
7163         system header.
7164         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
7165         Likewise.
7166         (sydep_routines): Add the new and the internal functions.
7167         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
7168         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
7169         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
7170         (GLIBC_2.17): Add the new function.
7171         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
7172         (GLIBC_2.17): Likewise.
7173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
7174         (GLIBC_2.17): Likewise.
7175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
7176         (GLIBC_2.17): Likewise.
7177         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
7178
7179 2012-09-25  Alan Modra  <amodra@gmail.com>
7180
7181         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
7182         Add release barrier before setting once_control to say
7183         initialisation is done.  Add hints on lwarx.  Use macro in
7184         place of isync.
7185         (clear_once_control): Add release barrier.
7186
7187 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
7188
7189         [BZ #13629]
7190         * math/s_clog.c (__clog): Handle more values close to |z| = 1
7191         specially.
7192         * math/s_clog10.c (__clog10): Likewise.
7193         * math/s_clog10f.c (__clog10f): Likewise.
7194         * math/s_clog10l.c (__clog10l): Likewise.
7195         * math/s_clogf.c (__clogf): Likewise.
7196         * math/s_clogl.c (__clogl): Likewise.
7197         * math/Makefile (libm-calls): Add x2y2m1.
7198         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
7199         (__x2y2m1): Likewise.
7200         (__x2y2m1l): Likewise.
7201         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
7202         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
7203         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
7204         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
7205         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
7206         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
7207         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
7208         * sysdeps/i386/fpu/libm-test-ulps: Update.
7209         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7210
7211         [BZ #14621]
7212         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
7213         int as type of variable DEPTH.
7214         (glob): Use size_t instead of int as type of variables NEWCOUNT
7215         and OLD_PATHC.
7216
7217 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7218
7219         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
7220         Add s_sincosf-sse2.
7221         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
7222         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
7223         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
7224         macros for using routine as __sincosf_ia32.
7225         Use macro for function declaration and weak_alias.
7226         * sysdeps/i386/fpu/libm-test-ulps: Update.
7227
7228         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
7229         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7230
7231         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
7232         subnormal argument.
7233         * math/s_cexpf.c (__cexpf): Likewise.
7234         * math/s_csinf.c (__csinf): Likewise.
7235         * math/s_csinhf.c (__csinhf): Likewise.
7236         * math/s_ctanf.c (__ctanf): Likewise.
7237         * math/s_ctanhf.c (__ctanhf): Likewise.
7238         * math/s_ccosh.c (__ccoshf): Likewise.
7239         * math/s_cexp.c (__cexpl): Likewise.
7240         * math/s_csin.c (__csin): Likewise.
7241         * math/s_csinh.c (__csinh): Likewise.
7242         * math/s_ctan.c (__ctan): Likewise.
7243         * math/s_ctanh.c (ctanh): Likewise.
7244         * math/s_ccoshl.c (__ccoshl): Likewise.
7245         * math/s_cexpl.c (__cexpl): Likewise.
7246         * math/s_csinl.c (__csinl): Likewise.
7247         * math/s_csinhl.c (__csinhl): Likewise.
7248         * math/s_ctanl.c (__ctanl): Likewise.
7249         * math/s_ctanhl.c (__ctanhl): Likewise.
7250
7251 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
7252
7253         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
7254         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
7255         (_IO_off_t): Define to __off_t, not _G_off_t.
7256         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
7257         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
7258         (_IO_wint_t): Define to wint_t, not _G_wint_t.
7259         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
7260         type of __dummy and __dummy2 fields.
7261         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
7262         (_G_ssize_t): Likewise.
7263         (_G_off_t): Likewise.
7264         (_G_pid_t): Likewise.
7265         (_G_uid_t): Likewise.
7266         (_G_wchar_t): Likewise.
7267         (_G_wint_t): Likewise.
7268         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
7269         (_G_ssize_t): Likewise.
7270         (_G_off_t): Likewise.
7271         (_G_pid_t): Likewise.
7272         (_G_uid_t): Likewise.
7273         (_G_wchar_t): Likewise.
7274         (_G_wint_t): Likewise.
7275         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
7276         (_G_ssize_t): Likewise.
7277         (_G_off_t): Likewise.
7278         (_G_pid_t): Likewise.
7279         (_G_uid_t): Likewise.
7280         (_G_wchar_t): Likewise.
7281         (_G_wint_t): Likewise.
7282
7283 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7284
7285         * malloc/arena.c: Include malloc-sysdep.h.
7286         (shrink_heap): Use check_may_shrink_heap to decide if madvise
7287         is sufficient to shrink the heap or an unmap is needed.
7288         * sysdeps/generic/malloc-sysdep.h: New file.  Define
7289         new function check_may_shrink_heap.
7290         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
7291         new function check_may_shrink_heap.
7292
7293 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
7294
7295         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
7296         comments.
7297
7298 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
7299
7300         * catgets/test-gencat.sh: Add "set -e".
7301         * elf/tst-pathopt.sh: Likewise.
7302         * grp/tst_fgetgrent.sh: Likewise.
7303         * iconvdata/run-iconv-test.sh: Likewise.
7304         * intl/tst-gettext.sh: Likewise.
7305         * intl/tst-gettext2.sh: Likewise.
7306         * intl/tst-gettext4.sh: Likewise.
7307         * intl/tst-gettext6.sh: Likewise.
7308         * intl/tst-translit.sh: Likewise.
7309         * io/ftwtest-sh: Likewise.
7310         * libio/test-freopen.sh: Likewise.
7311         * malloc/tst-mtrace.sh: Likewise.
7312         * posix/globtest.sh: Likewise.
7313         * posix/tst-getconf.sh: Likewise.
7314         * posix/wordexp-tst.sh: Likewise.
7315         * stdio-common/tst-printf.sh: Likewise.
7316         * stdio-common/tst-unbputc.sh: Likewise.
7317         * stdlib/tst-fmtmsg.sh: Likewise.
7318         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
7319         * catgets/Makefile: Do not specify -e option when running
7320         testsuite shell scripts.
7321         * elf/Makefile: Likewise.
7322         * grp/Makefile: Likewise.
7323         * iconvdata/Makefile: Likewise.
7324         * intl/Makefile: Likewise.
7325         * io/Makefile: Likewise.
7326         * libio/Makefile: Likewise.
7327         * malloc/Makefile: Likewise.
7328         * posix/Makefile: Likewise.
7329         * stdio-common/Makefile: Likewise.
7330         * stdlib/Makefile: Likewise.
7331         * sysdeps/x86_64/Makefile: Likewise.
7332
7333         * io/ftwtest-sh: Add copyright header.
7334         * posix/globtest.sh: Likewise.
7335         * posix/tst-getconf.sh: Likewise.
7336         * posix/wordexp-tst.sh: Likewise.
7337         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
7338
7339 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
7340
7341         [BZ #13679]
7342         * Makeconfig (+link): Defined as $(+link-static) if
7343         $(build-shared) isn't yes.
7344         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
7345         isn't yes.
7346         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
7347
7348         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
7349
7350         [BZ #14562]
7351         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
7352         new chunk size with MALLOC_ALIGN_MASK.
7353
7354 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
7355
7356         [BZ #5044]
7357         * stdio-common/printf_fphex.c: Include <stdbool.h> and
7358         <rounding-mode.h>.
7359         (__printf_fphex): Determine rounding using get_rounding_mode and
7360         round_away.
7361         * stdio-common/tst-printf-round.c (struct hex_test): New
7362         structure.
7363         (hex_tests): New variable.
7364         (test_hex_in_one_mode): New function.
7365         (do_test): Also run tests for hex float output.
7366
7367 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
7368
7369         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
7370         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
7371         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
7372         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
7373         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
7374         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
7375         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
7376         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
7377
7378 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
7379
7380         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
7381         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
7382         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
7383         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
7384
7385 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
7386
7387         [BZ #14579]
7388         * elf/rtld.c (dl_main): Limit the check for self loading to normal
7389         mode only.
7390         * elf/tst-rtld-load-self.sh: New test.
7391         * elf/Makefile: Run it.
7392
7393 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
7394
7395         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
7396         (tst-writev-ENV): Remove.
7397         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
7398
7399 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
7400
7401         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
7402
7403 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
7404
7405         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
7406         unconditional.
7407         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
7408         Likewise.
7409         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
7410         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
7411         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
7412         Likewise.
7413
7414 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
7415
7416         [BZ #14587]
7417         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
7418         * config.make.in (have-cpp-asm-debuginfo): Removed.
7419         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
7420         * configure: Regenerated.
7421
7422 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
7423
7424         [BZ #5044]
7425         * stdio-common/printf_fp.c: Include <stdbool.h> and
7426         <rounding-mode.h>.
7427         (___printf_fp): Determine rounding using get_rounding_mode and
7428         round_away.
7429         * stdio-common/tst-printf-round.c: New file.
7430         * stdio-common/Makefile (tests): Add tst-printf-round.
7431         (link-libm): New variable.
7432         ($(objpfx)tst-printf-round): Depend in $(link-libm).
7433
7434 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
7435
7436         [BZ #14576]
7437         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
7438         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
7439         Likewise.
7440         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
7441         Likewise.
7442
7443 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
7444
7445         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
7446         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
7447         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
7448         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
7449
7450 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
7451
7452         [BZ #14518]
7453         * include/rounding-mode.h: New file.
7454         * sysdeps/generic/get-rounding-mode.h: Likewise.
7455         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
7456         * stdlib/strtod_l.c: Include <rounding-mode.h>.
7457         (MAX_VALUE): New macro.
7458         (MIN_VALUE): Likewise.
7459         (overflow_value): New function.
7460         (underflow_value): Likewise.
7461         (round_and_return): Use overflow_value and underflow_value to
7462         determine return values in overflow and underflow cases.  Use
7463         round_away to determine rounding depending on rounding mode.
7464         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
7465         determine return values in overflow and underflow cases.
7466         * stdlib/tst-strtod-round.c: Include <fenv.h>.
7467         (struct test_results): New structure.
7468         (struct test): Use struct test_results to store expected results
7469         for all rounding modes.
7470         (TEST): Include expected results for all rounding modes.
7471         (test_in_one_mode): New function.
7472         (do_test): Use test_in_one_mode to compute and check results.
7473         Check results for all rounding modes.
7474         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
7475         $(link-libm).
7476
7477 2012-12-09  Allan McRae  <allan@archlinux.org>
7478
7479         * sysdeps/i386/fpu/libm-test-ulps: Update
7480
7481 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
7482
7483         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
7484         (_G_int32_t): Likewise.
7485         (_G_uint16_t): Likewise.
7486         (_G_uint32_t): Likewise.
7487         (_G_HAVE_BOOL): Likewise.
7488         (_G_HAVE_ATEXIT): Likewise.
7489         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
7490         (_G_HAVE_IO_FILE_OPEN): Likewise.
7491         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
7492         (_G_int32_t): Likewise.
7493         (_G_uint16_t): Likewise.
7494         (_G_uint32_t): Likewise.
7495         (_G_HAVE_BOOL): Likewise.
7496         (_G_HAVE_ATEXIT): Likewise.
7497         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
7498         (_G_HAVE_IO_FILE_OPEN): Likewise.
7499         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
7500         (_G_int32_t): Likewise.
7501         (_G_uint16_t): Likewise.
7502         (_G_uint32_t): Likewise.
7503         (_G_HAVE_BOOL): Likewise.
7504         (_G_HAVE_ATEXIT): Likewise.
7505         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
7506         (_G_HAVE_IO_FILE_OPEN): Likewise.
7507
7508 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
7509
7510         * csu/libc-tls.c: Update copyright years.
7511
7512 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
7513
7514         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
7515         [!_G_USING_THUNKS]: Remove conditional code.
7516         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
7517         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
7518
7519         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
7520         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
7521         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7522         (_G_VTABLE_LABEL_PREFIX): Likewise.
7523         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7524         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7525         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7526         (_G_VTABLE_LABEL_PREFIX): Likewise.
7527         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
7528         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
7529         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
7530         (_G_VTABLE_LABEL_PREFIX): Likewise.
7531         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
7532
7533 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
7534
7535         * libio/Makefile: Include ../Makeconfig before tests.
7536         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
7537         only if $(build-shared) is yes.
7538
7539         * iconv/gconv_db.c: Update copyright years.
7540
7541 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7542
7543         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
7544         unwind info if defined PIC. Fix special cases description.
7545         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
7546
7547         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
7548         DP_HI_MASK entry.
7549         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
7550
7551 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
7552
7553         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
7554
7555         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
7556         is NULL.
7557
7558         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
7559         (LDLIBS-tst-chk4): This.
7560         (LDFLAGS-tst-chk5): Renamed to ...
7561         (LDLIBS-tst-chk5): This.
7562         (LDFLAGS-tst-chk6): Renamed to ...
7563         (LDLIBS-tst-chk6): This.
7564         (LDFLAGS-tst-lfschk4): Renamed to ...
7565         (LDLIBS-tst-lfschk4): This.
7566         (LDFLAGS-tst-lfschk5): Renamed to ...
7567         (LDLIBS-tst-lfschk5): This.
7568         (LDFLAGS-tst-lfschk6): Renamed to ...
7569         (LDLIBS-tst-lfschk6): This.
7570
7571         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
7572         on $(common-objpfx)soversions.mk.
7573
7574 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
7575
7576         [BZ #10014]
7577         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
7578         example host name.
7579
7580 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
7581
7582         * malloc/arena.c (arena_get_retry): New function that gets
7583         another arena for the caller to try its request on.
7584         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
7585         current arena cannot fulfill the request.
7586         (__libc_memalign): Likewise.
7587         (__libc_memalign): Likewise.
7588         (__libc_pvalloc): Likewise.
7589         (__libc_calloc): Likewise.
7590
7591 2012-09-05  John Tobey  <john.tobey@gmail.com>
7592
7593         [BZ #13542]
7594         * manual/arith.texi (Operations on Complex): Fix description
7595         of carg branch cut.
7596
7597 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7598
7599         [BZ #10014]
7600         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
7601         host name.
7602
7603         [BZ #10038]
7604         * manual/memory.texi (Memory): Make order of menu items match
7605         order of sections.
7606
7607 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7608
7609         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
7610         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
7611         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
7612
7613 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7614
7615         * csu/libc-tls.c (static_dtv): Renamed to ...
7616         (_dl_static_dtv): This.  Make it global.
7617         (_dl_initial_dtv): Removed.
7618         (__libc_setup_tls): Updated.
7619         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
7620         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
7621         DL_INITIAL_DTV.
7622
7623 2012-09-06  Petr Machata  <pmachata@redhat.com>
7624
7625         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
7626         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
7627         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
7628         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
7629
7630 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7631
7632         [BZ #14545]
7633         * csu/libc-tls.c (_dl_initial_dtv): New variable.
7634         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
7635         freeing dtv[-1].
7636
7637 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
7638
7639         [BZ #14544]
7640         * Makeconfig (link-static-before-libc): Replace $(+prector)
7641         with $(+prectorT).
7642         (link-static-after-libc): Replace $(+postctor) with
7643         $(+postctorT).
7644         (link-bounded): Replace $(+prector)/$(+postctor) with
7645         $(+prectorT)/$(+postctorT).
7646         (+prectorT): New macro.
7647         (+postctorT): Likewise.
7648
7649 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
7650
7651         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
7652         (round_str): Handle values above the maximum for IBM long double
7653         as inexact.
7654         * stdlib/tst-strtod-round.c (tests): Regenerated.
7655
7656 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7657
7658         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
7659         assembler flag.
7660         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
7661         zarch_nohighgprs around the zarch optimized routines.
7662         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
7663         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
7664         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
7665         for zarch.
7666
7667 2012-09-05  David S. Miller  <davem@davemloft.net>
7668
7669         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7670
7671         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
7672         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
7673         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
7674         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
7675         entries.
7676
7677 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7678
7679         * malloc/arena.c: Fold copyright years.
7680         * malloc/mcheck.c, malloc/memusage.c: Likewise.
7681
7682 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7683
7684         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
7685
7686 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7687
7688         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
7689
7690 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7691
7692         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
7693         change internal state upon failure.
7694
7695 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
7696
7697         * malloc/mcheck.c (mcheck_check_all): Fix typo.
7698         * malloc/memusage.c (mmap): Likewise.
7699         (mmap64, mremap): Likewise.  Adjust name in comment.
7700
7701 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7702
7703         * libio/fileops.c: Fix typos in comments.
7704         * libio/oldfileops.c: Likewise.
7705         * libio/wfileops.c: Likewise.
7706
7707 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
7708
7709         [BZ #1349]
7710         * malloc/Makefile (tests): Add tst-malloc-usable test case.
7711         (tst-malloc-usable-ENV): Set environment for test case.
7712         * malloc/hooks.c (malloc_check_get_size): New function to get
7713         requested size.
7714         * malloc/malloc.c (musable): Use malloc_check_get_size.
7715         * malloc/tst-malloc-usable.c: New test case.
7716
7717 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7718
7719         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
7720
7721 2012-09-05  Allan McRae  <allan@archlinux.org>
7722
7723         [BZ #13966]
7724         * configure.in (CXX_SYSINCLUDES): Use compiler output to
7725         determine header location.
7726         * configure: Regenerated.
7727
7728 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
7729
7730         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
7731         float format.
7732         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
7733         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
7734         format.
7735         (test): Regenerate.
7736
7737 2012-09-04  David S. Miller  <davem@davemloft.net>
7738
7739         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
7740         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
7741         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
7742
7743 2012-09-04  Florian Weimer  <fweimer@redhat.com>
7744
7745         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
7746         failures.
7747
7748         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
7749
7750 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
7751
7752         [BZ #9914]
7753         * libio/iogetdelim.c: Include <limits.h>.
7754         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
7755         + len + 1 would overflow.
7756
7757 2012-09-03  Andreas Jaeger  <aj@suse.de>
7758
7759         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7760         * sysdeps/i386/fpu/libm-test-ulps: Update.
7761
7762 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
7763
7764         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
7765         Add s_sinf-sse2, s_conf-sse2.
7766
7767         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
7768         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
7769         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
7770         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
7771
7772         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
7773         for using routine as __sinf_ia32.
7774         Use macro for function declaration and weak_alias.
7775         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
7776         for using routine as __cosf_ia32.
7777         Use macro for function declaration and weak_alias.
7778
7779         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
7780         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
7781
7782         * sysdeps/x86_64/fpu/s_sinf.S: New file.
7783         * sysdeps/x86_64/fpu/s_cosf.S: New file.
7784         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7785
7786         * math/libm-test.inc (cos_test): Add more test cases.
7787         (sin_test): Likewise.
7788         (sincos_test): Likewise.
7789
7790 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7791
7792         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
7793         (IFUNC_RESOLVE): Make pointers to the specialized implementations
7794         hidden.
7795         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
7796
7797 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
7798
7799         [BZ #14538]
7800         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
7801         first element of the GOT.
7802         (elf_machine_load_address): Return the difference between
7803         the runtime address of _DYNAMIC and elf_machine_dynamic ().
7804
7805 2012-09-01  Allan McRae  <allan@archlinux.org>
7806
7807         [BZ #13412]
7808         * configure.in (AWK): Require gawk version 3.0 or later.
7809         * configure: Regenerated.
7810
7811 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
7812
7813         * sysdeps/unix/sysv/linux/kernel-features.h
7814         (__ASSUME_POSIX_CPU_TIMERS): Remove.
7815         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
7816         [__NR_clock_getres]: Make code unconditional.
7817         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
7818         (clock_getcpuclockid): Remove code left unreachable by removal of
7819         conditionals.
7820         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
7821         code unconditional.
7822         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7823         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7824         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
7825         Make code unconditional.
7826         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
7827         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7828         * sysdeps/unix/sysv/linux/clock_settime.c
7829         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
7830         conditional code.
7831         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
7832         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
7833
7834 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
7835
7836         [BZ #14476]
7837         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
7838         scripts/test-installation.pl.
7839
7840         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
7841         and $ld_so_version if it is set.
7842
7843 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7844
7845         [BZ #14516]
7846         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
7847         failure if reading from procfs failed.
7848         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
7849
7850 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
7851
7852         * sysdeps/unix/sysv/linux/kernel-features.h
7853         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
7854         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7855         Remove conditional code.
7856         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7857         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
7858         Remove conditional code.
7859         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7860         * sysdeps/unix/sysv/linux/i386/fxstat.c
7861         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7862         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7863         * sysdeps/unix/sysv/linux/i386/fxstatat.c
7864         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7865         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7866         * sysdeps/unix/sysv/linux/i386/lxstat.c
7867         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
7868         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7869         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
7870         Remove conditional code.
7871         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7872         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
7873         Remove conditional code.
7874         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7875         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
7876         <kernel-features.h>.
7877         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
7878         Remove.
7879         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
7880         Remove conditional code.
7881         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
7882         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
7883         Remove conditional.
7884
7885 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
7886
7887         [BZ #5400]
7888         * NEWS: Add fixed bug number.
7889
7890 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
7891
7892         [BZ #14519]
7893         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
7894         underflowing exponent in case of negative sign.
7895         * stdlib/tst-strtod-round-data: Add more tests.
7896         * stdlib/tst-strtod-round.c (tests): Regenerated.
7897
7898         [BZ #3479]
7899         * stdlib/strtod_l.c (NDIG): Remove.
7900         (HEXNDIG): Likewise.
7901         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
7902         smallest representable value.
7903         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
7904         lie within an exact representation of 1/2 ulp of the result.
7905         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
7906         unconditionally.
7907         (TENS_P9_IDX): Define unconditionally.
7908         (TENS_P9_SIZE): Likewise.
7909         (TENS_P10_IDX): Likewise.
7910         (TENS_P10_SIZE): Likewise.
7911         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
7912         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
7913         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
7914         entries for 10^2^13 and 10^2^14.
7915         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
7916         (TENS_P13_IDX): Define.
7917         (TENS_P13_SIZE): Likewise.
7918         (TENS_P14_IDX): Likewise.
7919         (TENS_P14_SIZE): Likewise.
7920         (_fpioconst_pow10): Change array size to
7921         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
7922         unconditional.
7923         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
7924         1024]: Add entries for 10^2^13 and 10^2^14.
7925         [LAST_POW10 > _LAST_POW10]: Remove #error.
7926         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
7927         (_fpioconst_pow10): Change array size to
7928         FPIOCONST_POW10_ARRAY_SIZE.
7929         * stdlib/gen-fpioconst.c: New file.
7930         * stdlib/gen-tst-strtod-round.c: Likewise.
7931         * stdlib/tst-strtod-round-data: Likewise.
7932         * stdlib/tst-strtod-round.c: Likewise.
7933         * stdlib/Makefile (tests): Add tst-strtod-round.
7934
7935         [BZ #14459]
7936         * stdlib/strtod_l.c: Include <stdint.h>.
7937         (NDEBUG): Do not define.
7938         (round_and_return): Change EXPONENT parameter to type intmax_t.
7939         Rearrange calculations to avoid internal overflow possibilities.
7940         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
7941         Rearrange calculations to avoid internal overflow possibilities.
7942         Assert that number fits inside MPNSIZE limbs.
7943         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
7944         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
7945         calculations and add assertions to avoid internal overflow
7946         possibilities.  Add casts to avoid signed/unsigned operations.
7947         * stdlib/tst-strtod-overflow.c: New file.
7948         * stdlib/Makefile (tests): Add tst-strtod-overflow.
7949
7950 2012-08-25  Marek Polacek  <polacek@redhat.com>
7951
7952         * time/time.h: Fix some typos in comments.
7953
7954 2012-08-23  Roland McGrath  <roland@hack.frob.com>
7955
7956         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
7957         * posix/tst-rfc3484-2.c: Likewise.
7958         * posix/tst-rfc3484-3.c: Likewise.
7959
7960 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
7961
7962         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
7963         (EF_ARM_ABI_FLOAT_HARD): Likewise.
7964
7965 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
7966
7967         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
7968         #include of fxstatat64.c.
7969
7970 2012-08-22  Roland McGrath  <roland@hack.frob.com>
7971
7972         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
7973         * shadow/getspent_r.c: Likewise.
7974         * shadow/getspnam.c: Likewise.
7975         * shadow/getspnam_r.c: Likewise.
7976         * gshadow/getsgent.c: Likewise.
7977         * gshadow/getsgent_r.c: Likewise.
7978         * gshadow/getsgnam.c: Likewise.
7979         * gshadow/getsgnam_r.c: Likewise.
7980         * inet/getnetbyad.c: Likewise.
7981         * inet/getnetbyad_r.c: Likewise.
7982         * inet/getnetbynm.c: Likewise.
7983         * inet/getnetbynm_r.c: Likewise.
7984         * inet/getnetent.c: Likewise.
7985         * inet/getnetent_r.c: Likewise.
7986         * inet/getproto.c: Likewise.
7987         * inet/getproto_r.c: Likewise.
7988         * inet/getprtent.c: Likewise.
7989         * inet/getprtent_r.c: Likewise.
7990         * inet/getprtname.c: Likewise.
7991         * inet/getprtname_r.c: Likewise.
7992         * inet/getrpcbyname.c: Likewise.
7993         * inet/getrpcbyname_r.c: Likewise.
7994         * inet/getrpcbynumber.c: Likewise.
7995         * inet/getrpcbynumber_r.c: Likewise.
7996         * inet/getrpcent.c: Likewise.
7997         * inet/getrpcent_r.c: Likewise.
7998         * inet/getaliasent.c: Likewise.
7999         * inet/getaliasent_r.c: Likewise.
8000         * inet/getaliasname.c: Likewise.
8001         * inet/getaliasname_r.c: Likewise.
8002         * nscd/getgrgid_r.c: Likewise.
8003         * nscd/getgrnam_r.c: Likewise.
8004         * nscd/gethstbyad_r.c: Likewise.
8005         * nscd/gethstbynm3_r.c: Likewise.
8006         * nscd/getpwnam_r.c: Likewise.
8007         * nscd/getpwuid_r.c: Likewise.
8008         * nscd/getsrvbynm_r.c: Likewise.
8009         * nscd/getsrvbypt_r.c: Likewise.
8010         * nscd/gai.c: Likewise.
8011
8012         * configure.in (build_nscd): New substituted variable, set
8013         by --disable-build-nscd and defaults to $use_nscd.
8014         * configure: Regenerated.
8015         * config.make.in (build-nscd): New substituted variable.
8016         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
8017         Change conditional to require [$(build-nscd) = yes] as well.
8018         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
8019
8020         [BZ# 13696]
8021         * configure.in (use_nscd): New substituted variable, set by
8022         --disable-nscd.  If enabled, define USE_NSCD.
8023         * configure: Regenerated.
8024         * config.h.in: Add USE_NSCD.
8025         * config.make.in (use-nscd): New substituted variable.
8026         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
8027         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
8028         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
8029         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
8030         (CFLAGS-getgrnam_r.c): Likewise.
8031         (CFLAGS-initgroups.c): Likewise.
8032         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
8033         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
8034         Variables removed.
8035         * inet/getnetgrent_r.c
8036         (nscd_setnetgrent): New function, broken out of ...
8037         (setnetgrent): ... here.  Call it.
8038         (innetgr): Conditionalize nscd bits on [USE_NSCD].
8039         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
8040         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
8041         * nscd/Makefile (routines, aux): Move definitions after include of
8042         Makeconfig.  Conditionalize on [$(use-nscd) != no].
8043         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
8044         Conditionalize on [USE_NSCD].
8045         (is_nscd, nscd_init_cb): Likewise.
8046         (nss_load_library): Conditionalize init callback on [USE_NSCD].
8047         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
8048         * nss/nss_db/db-init.c: Likewise.
8049         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
8050         [USE_NSCD].
8051         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
8052         (make_request): Use it.
8053         (cache_valid_p): New function.
8054         (__check_pf): Use it.
8055         * NEWS: Add item for --disable-nscd.
8056
8057 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
8058
8059         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
8060         to support sed >= 4.2.1-20-ga9bf076.
8061         * configure: Regenerated.
8062
8063 2012-08-22  Roland McGrath  <roland@hack.frob.com>
8064
8065         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
8066         Conditionalize whole body on [IREL].
8067
8068 2012-08-22  Jeff Law <law@redhat.com>
8069
8070         [BZ #14505]
8071         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
8072         if the family is PF_UNSPEC.
8073
8074 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
8075
8076         * Makerules (lib-version): Rename from V.
8077         (install-lib-nosubdir): Change V to lib-version.
8078
8079 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
8080
8081         [BZ #14252]
8082         * powerpc32/power6/wcschr.c: New file.
8083         * powerpc32/power6/wcscpy.c: New file.
8084         * powerpc32/power6/wcsrchr.c: New file.
8085         * powerpc64/power6/wcschr.c: New file.
8086         * powerpc64/power6/wcscpy.c: New file.
8087         * powerpc64/power6/wcsrchr.c: New file.
8088
8089 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
8090
8091         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
8092         (two_way_short_needle): Use it.
8093         * string/strstr.c (AVAILABLE1_USES_J): Define.
8094         * string/strcasestr.c: Likewise.
8095
8096         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
8097         array references.
8098         * string/strcasestr.c (TOLOWER): Make side-effect safe.
8099
8100         [BZ #11607]
8101         * NEWS: Add an entry.
8102         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
8103         define their defaults.
8104         (two_way_short_needle): Detect end-of-string on-the-fly.
8105         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
8106         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
8107         * string/bug-strcasestr1.c: New test.
8108         * string/Makefile: Run it.
8109
8110 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
8111
8112         [BZ #11607]
8113         * string/str-two-way.h (two_way_short_needle): Optimize matching of
8114         the first character.
8115
8116 2012-08-21  Roland McGrath  <roland@hack.frob.com>
8117
8118         * csu/elf-init.c (__libc_csu_irel): Function removed.
8119         * csu/libc-start.c (apply_irel): New function.
8120         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
8121
8122 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
8123
8124         * sysdeps/unix/sysv/linux/kernel-features.h
8125         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
8126         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
8127         <kernel-features.h>.
8128         [__NR_fadvise64_64]: Make code unconditional.
8129         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
8130         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
8131         !__NR_fadvise64_64)]: Likewise.
8132         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
8133         !__NR_fadvise64_64))]: Likewise.
8134         [__NR_fadvise64]: Make code unconditional.
8135         [!__NR_fadvise64]: Remove conditional code.
8136         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
8137         <kernel-features.h>.
8138         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
8139         unconditional.
8140         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
8141         conditional code.
8142         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
8143         not include <kernel-features.h>.
8144         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
8145         unconditional.
8146         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
8147         conditional code.
8148         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
8149         include <kernel-features.h>.
8150         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
8151         unconditional.
8152         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
8153         conditional code.
8154
8155 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
8156
8157         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
8158         slight instruction rearrangements per scrollpipe analysis.
8159         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
8160
8161 2012-08-20  Roland McGrath  <roland@hack.frob.com>
8162
8163         * manual/syslog.texi (syslog; vsyslog, closelog):
8164         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
8165         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
8166
8167         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
8168         DSOCAPS to match condition on defining it.
8169
8170 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
8171
8172         * sysdeps/unix/sysv/linux/kernel-features.h
8173         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
8174         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
8175         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
8176         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
8177         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
8178         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
8179         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
8180         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
8181         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
8182         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
8183
8184         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
8185         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
8186
8187         * sysdeps/unix/sysv/linux/kernel-features.h
8188         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
8189         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
8190         unconditional.
8191         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8192         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
8193         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
8194         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8195         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
8196         Make code unconditional.
8197         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8198         (__mmap64) [!__NR_mmap2]: Likewise.
8199         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
8200         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
8201         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8202         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
8203         [__NR_mmap2]: Make code unconditional.
8204         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
8205         (__mmap64) [!__NR_mmap2]: Likewise.
8206
8207 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8208
8209         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
8210
8211 2012-08-18  Andreas Jaeger  <aj@suse.de>
8212
8213         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
8214
8215 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
8216
8217         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
8218         * include/unistd.h (__have_sock_cloexec): Likewise.
8219         (__have_pipe2): Likewise.
8220         (__have_dup3): Likewise.
8221
8222 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
8223
8224         [BZ #9685]
8225         * include/unistd.h (__have_pipe2): Change define into an extern int.
8226         (__have_dup3): Likewise.
8227         * socket/have_sock_cloexec.c: Include fcntl.h.
8228         (__have_pipe2): New variable.
8229         (__have_dup3): Likewise.
8230
8231 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
8232
8233         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
8234
8235 2012-08-17  Marek Polacek  <polacek@redhat.com>
8236
8237         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
8238         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
8239
8240 2012-08-17  Roland McGrath  <roland@hack.frob.com>
8241
8242         * configure.in: Add AC_SUBST for sysheaders.
8243         * configure: Regenerated.
8244         * config.make.in (sysheaders): New substituted variable.
8245
8246         * sysdeps/unix/mkfifo.c: Moved ...
8247         * sysdeps/posix/mkfifo.c: ... here.
8248         * sysdeps/unix/mkfifoat.c: Moved ...
8249         * sysdeps/posix/mkfifoat.c: ... here.
8250
8251         * sysdeps/unix/utime.c: Moved ...
8252         * sysdeps/posix/utime.c: ... here.
8253
8254         * sysdeps/unix/time.c: Moved ...
8255         * sysdeps/posix/time.c: ... here.
8256         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
8257         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
8258
8259         * sysdeps/unix/nice.c: Moved ...
8260         * sysdeps/posix/nice.c: ... here.
8261
8262         * sysdeps/unix/alarm.c: Moved ...
8263         * sysdeps/posix/alarm.c: ... here.
8264
8265         * intl/Makefile ($(codeset_mo)): Depend on the input file.
8266
8267 2012-08-17  Jeff Law <law@redhat.com>
8268
8269         * intl/Makefile (codeset_mo): New variable.
8270         ($(codeset_mo)): New target.
8271         (tst-codeset.out): Depend on that.  Remove explicit rule.
8272         (tst-gettext3.out, tst-gettext5.out): Likewise.
8273         (LOCPATH-ENV, tst-codeset-ENV): New variables.
8274         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
8275         * intl/tst-codeset.sh: Remove.
8276         * intl/tst-gettext3.sh: Likewise.
8277         * intl/tst-gettext5.sh: Likewise.
8278
8279 2012-08-17  Roland McGrath  <roland@hack.frob.com>
8280
8281         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
8282         * sysdeps/unix/syscalls.list: ... here.
8283
8284         * sysdeps/posix/getaddrinfo.c
8285         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
8286         (gaiconf_init, gaiconf_reload): Use them.
8287         [!_STATBUF_ST_NSEC]
8288         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
8289         Define using time_t rather than struct timespec.
8290
8291         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
8292         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
8293         Macros removed.
8294         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
8295         [!NO_THREADS].
8296         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
8297         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
8298         Likewise.
8299
8300         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
8301         __libc_cleanup_push argument.
8302
8303         * bits/param.h: New file.
8304         * misc/sys/param.h: New file.
8305         * include/sys/param.h: New file.
8306         * misc/Makefile (headers): Add bits/param.h.
8307         * sysdeps/generic/sys/param.h: File removed.
8308         * sysdeps/unix/sysv/linux/bits/param.h: New file.
8309         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
8310         * sysdeps/mach/hurd/bits/param.h: New file.
8311         * sysdeps/mach/hurd/sys/param.h: File removed.
8312
8313         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
8314         last change.
8315
8316         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
8317         [_IO_MTSAFE_IO].
8318         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
8319         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
8320         New macros.
8321
8322         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
8323         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
8324         rather than -D_IO_MTSAFE_IO conditionally.
8325         * stdio-common/Makefile (CPPFLAGS): Likewise.
8326         * wcsmbs/Makefile (CPPFLAGS): Likewise.
8327         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
8328         Use $(libio-mtsafe).
8329         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
8330         of -D_IO_MTSAFE_IO.
8331         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
8332         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
8333         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
8334         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
8335         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
8336         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
8337         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
8338         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
8339         (CFLAGS-fread_u_chk.c): Likewise.
8340         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
8341         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
8342         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
8343         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
8344         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
8345         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
8346         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
8347         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
8348         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
8349
8350         * libio/Makefile: Test [$(libc-reentrant) = yes]
8351         instead of [$(filter %REENTRANT, $(defines)) nonempty].
8352
8353         * Makeconfig
8354         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
8355         * sysdeps/pthread/configure: File removed.
8356         * sysdeps/pthread/Makeconfig: New file.
8357         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
8358         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
8359
8360 2012-08-16  Gary Benson  <gbenson@redhat.com>
8361
8362         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
8363         unmapping the first object in a namespace.
8364
8365 2012-08-16  Roland McGrath  <roland@hack.frob.com>
8366
8367         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
8368         (__internal_setnetgrent): ... this.  Add internal_function to
8369         definition.  Add libc_hidden_def.
8370         (setnetgrent): Update caller.
8371         (internal_endnetgrent): Renamed to ...
8372         (__internal_endnetgrent): ... this.  Add internal_function to
8373         definition.  Add libc_hidden_def.
8374         (endnetgrent): Update caller.
8375         (internal_getnetgrent_r): Renamed to ...
8376         (__internal_getnetgrent_r): ... this.  Add internal_function to
8377         definition.  Add libc_hidden_def.
8378         (__getnetgrent_r): Update caller.
8379         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
8380
8381 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
8382
8383         * stdlib/longlong.h: Update from GCC.
8384
8385 2012-08-16  Roland McGrath  <roland@hack.frob.com>
8386
8387         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
8388         on _QL, which is set by umul_ppmm but never used.
8389         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
8390         variables, which are set by GMP macros but never used.
8391         * stdio-common/_itowa.c (_itowa): Likewise.
8392         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
8393         * stdlib/mod_1.c (mpn_mod_1): Likewise.
8394
8395 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
8396
8397         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
8398         struct La_sh_regs is not constant.
8399         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
8400         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
8401         and struct La_sparc64_regs are not constant.
8402
8403 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
8404
8405         * sysdeps/unix/sysv/linux/kernel-features.h
8406         (__ASSUME_POSIX_TIMERS): Remove.
8407         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
8408         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8409         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
8410         Make code unconditional.
8411         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8412         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
8413         Make code unconditional.
8414         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8415         * sysdeps/unix/sysv/linux/clock_nanosleep.c
8416         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
8417         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8418         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
8419         Make code unconditional.
8420         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
8421         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
8422         (__libc_missing_posix_timers): Remove.
8423
8424 2012-08-15  Roland McGrath  <roland@hack.frob.com>
8425
8426         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
8427         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
8428
8429         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
8430
8431         * elf/dl-sym.c: Include <stdlib.h>.
8432
8433         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
8434         constants, which avoids warnings in 32-bit builds.
8435
8436         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
8437         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
8438
8439         * misc/lseek.c: File moved to ...
8440         * io/lseek.c: ... here.
8441
8442         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
8443
8444         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
8445         shifting LEN more than 31 bits at once.
8446
8447 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8448
8449         [BZ #14195]
8450         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
8451         segmentation fault for a case of two empty input strings.
8452         * string/test-strncasecmp.c (check1): Renamed to...
8453         (bz12205): ...this.
8454         (bz14195): Add new testcase for two empty input strings and N > 0.
8455         (test_main): Call new testcase, adapt for renamed function.
8456
8457 2012-08-15  Andreas Jaeger  <aj@suse.de>
8458
8459         [BZ #14090]
8460         * crypt/md5test2.c: New test, based on test supplied by Serge
8461         Belyshev <belyshev@depni.sinp.msu.ru>.
8462         * crypt/Makefile (xtests): Add md5test-giant..
8463         * crypt/Makefile ($(objpfx)md5test-giant): Add.
8464
8465 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8466
8467         [BZ #14090]
8468         * crypt/md5.c (md5_process_block): Don't assume the buffer
8469         length is less than 2**32.
8470         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
8471         length is less than 2**64.
8472
8473 2012-08-15  Roland McGrath  <roland@hack.frob.com>
8474
8475         * string/str-two-way.h: Include <sys/param.h>.
8476         (MAX): Macro removed.
8477
8478         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
8479         Move #define and #undef of memmove to just before and after
8480         including <string.h>.
8481
8482         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
8483         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
8484         and after including <string.h>.  Move declarations of
8485         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
8486         to before #include "string/memmove.c".
8487
8488         * include/dirent.h: Declare __getdirentries.
8489
8490         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
8491         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
8492
8493 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
8494
8495         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
8496         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
8497         * sysdeps/i386/configure: Regenerated.
8498         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
8499         STABS_CURRENT_FILE, and STABS_FUN.
8500         (END): Remove call to STABS_FUN_END.
8501         (STABS_CURRENT_FILE1): Delete.
8502         (STABS_CURRENT_FILE): Likewise.
8503         (STABS_FUN): Likewise.
8504         (STABS_FUN_END): Likewise.
8505         (STABS_FUN2): Likewise.
8506         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
8507         * sysdeps/x86_64/configure: Regenerated.
8508
8509 2012-08-14  Roland McGrath  <roland@hack.frob.com>
8510
8511         * elf/dl-open.c: Include <atomic.h>.
8512         * elf/dl-lookup.c: Likewise.
8513
8514 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
8515
8516         * sysdeps/unix/sysv/linux/kernel-features.h
8517         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
8518         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
8519         unconditionally.
8520         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
8521         unconditionally.
8522         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
8523         condition on __ASSUME_CLONE_THREAD_FLAGS.
8524
8525 2012-08-14  Andreas Jaeger  <aj@suse.de>
8526
8527         * sysdeps/i386/fpu/libm-test-ulps: Update.
8528
8529 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
8530
8531         * include/atomic.h (atomic_exchange_and_add): Split into ...
8532         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
8533         New atomic macros.
8534
8535 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
8536
8537         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
8538
8539 2012-08-13  Jeff Law <law@redhat.com>
8540
8541         * manual/stdio.texi (snprintf): Clarify handling of the trailing
8542         null byte in the output string.
8543
8544 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
8545
8546         * sysdeps/unix/sysv/linux/kernel-features.h
8547         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
8548         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
8549         (__ASSUME_ARG_MAX_STACK_BASED): Define.
8550         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
8551         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
8552         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
8553         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
8554
8555 2012-08-09  Jeff Law <law@redhat.com>
8556
8557         [BZ #13939]
8558         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
8559         When avoid_arena is set, don't retry in the that arena.  Pick the
8560         next one, whatever it might be.
8561         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
8562         (arena_lock): Pass in new parameter to arena_get2.
8563         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
8564         arena_get2.
8565         (__libc_malloc): Unify retrying after main arena failure with
8566         __libc_memalign version.
8567         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
8568
8569 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
8570
8571         [BZ #14166]
8572         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
8573         to __redirect_strstr.
8574         (__strstr_sse42): Use typeof __redirect_strstr.
8575         (__strstr_ia32): Likewise.
8576         (__libc_strstr): New prototype.
8577         (strstr): Renamed to ...
8578         (__libc_strstr): This.
8579         (strstr): New strong alias of __libc_strstr.
8580         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
8581         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
8582         __redirect_time.
8583         Include <time.h>.
8584         (__libc_time): New prototype.
8585         (time_ifunc): Replace time with __libc_time.
8586         (time): New strong alias and hidden definition of __libc_time.
8587         (__GI_time): Remove strong alias.
8588         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
8589         Include <stddef.h>.
8590         (memmove): Redefined to __redirect_memmove.
8591         (__memmove_sse2): Use typeof __redirect_memmove.
8592         (__memmove_ssse3): Likewise.
8593         (__memmove_ssse3_back): Likewise.
8594         (__libc_memmove): New prototype.
8595         (memmove): Renamed to ...
8596         (__libc_memmove): This.
8597         (memmove): New strong alias of __libc_memmove.
8598
8599 2012-08-08  Mark Salter  <msalter@redhat.com>
8600
8601         * elf/elf.h
8602         (R_MN10300_TLS_GD): Define.
8603         (R_MN10300_TLS_LD): Likewise.
8604         (R_MN10300_TLS_LDO): Likewise.
8605         (R_MN10300_TLS_GOTIE): Likewise.
8606         (R_MN10300_TLS_IE): Likewise.
8607         (R_MN10300_TLS_LE): Likewise.
8608         (R_MN10300_TLS_DTPMOD): Likewise.
8609         (R_MN10300_TLS_DTPOFF): Likewise.
8610         (R_MN10300_TLS_TPOFF): Likewise.
8611         (R_MN10300_SYM_DIFF): Likewise.
8612         (R_MN10300_ALIGN): Likewise.
8613         (R_MN10300_NUM): Update.
8614
8615 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
8616
8617         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
8618         Remove.
8619
8620 2012-08-08  Roland McGrath  <roland@hack.frob.com>
8621
8622         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
8623
8624         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
8625         sysdeps/unix -> sysdeps/posix move.
8626         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
8627
8628 2012-08-07      Allan McRae     <allan@archlinux.org>
8629
8630         [BZ #14303]
8631         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
8632         (SUNOS_CPP): Likewise.
8633         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
8634         not found.
8635         (open_input): Call CPP using execvp.
8636
8637 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8638
8639         * sysdeps/unix/sysv/linux/kernel-features.h
8640         (__ASSUME_PROT_GROWSUPDOWN): Remove.
8641         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8642         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8643         (__ASSUME_WAITID_SYSCALL): Likewise.
8644         * sysdeps/unix/sysv/linux/dl-execstack.c
8645         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
8646         code unconditional.
8647         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
8648         conditional code.
8649         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
8650         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
8651         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
8652         code.
8653         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
8654         unconditional.
8655         [__ASSUME_WAITID_SYSCALL]: Likewise.
8656         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
8657
8658 2012-08-07  Roland McGrath  <roland@hack.frob.com>
8659
8660         * sysdeps/unix/closedir.c: Renamed to ...
8661         * sysdeps/posix/closedir.c: ... here.
8662         * sysdeps/unix/dirfd.c: Renamed to ...
8663         * sysdeps/posix/dirfd.c: ... here.
8664         * sysdeps/unix/dirstream.h: Renamed to ...
8665         * sysdeps/posix/dirstream.h: ... here.
8666         * sysdeps/unix/fdopendir.c: Renamed to ...
8667         * sysdeps/posix/fdopendir.c: ... here.
8668         * sysdeps/unix/opendir.c: Renamed to ...
8669         * sysdeps/posix/opendir.c: ... here.
8670         * sysdeps/unix/readdir.c: Renamed to ...
8671         * sysdeps/posix/readdir.c: ... here.
8672         * sysdeps/unix/readdir_r.c: Renamed to ...
8673         * sysdeps/posix/readdir_r.c: ... here.
8674         * sysdeps/unix/rewinddir.c: Renamed to ...
8675         * sysdeps/posix/rewinddir.c: ... here.
8676         * sysdeps/unix/seekdir.c: Renamed to ...
8677         * sysdeps/posix/seekdir.c: ... here.
8678         * sysdeps/unix/telldir.c: Renamed to ...
8679         * sysdeps/posix/telldir.c: ... here.
8680         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
8681         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
8682         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
8683         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
8684
8685         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
8686         * bits/fcntl.h: ... here.
8687
8688         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
8689         not 0.
8690         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
8691         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
8692         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
8693         (struct flock): Move l_start, l_len to the beginning.
8694         Use __pid_t for l_pid.
8695         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
8696         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
8697         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
8698         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
8699         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
8700         [__USE_LARGEFILE64] (struct flock64): New type.
8701         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
8702
8703         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
8704         * bits/dirent.h: ... here.
8705
8706         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
8707         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
8708
8709 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
8710
8711         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8712         Change from 2.6.0 to 2.6.16.
8713         * sysdeps/unix/sysv/linux/configure: Regenerated.
8714         * sysdeps/unix/sysv/linux/kernel-features.h
8715         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
8716         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
8717         version.
8718         (__ASSUME_UTIMES): Likewise.
8719         (__ASSUME_CLONE_STOPPED): Remove.
8720         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
8721         architectures, not kernel version.
8722         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
8723         (__ASSUME_NO_CLONE_DETACHED): Likewise.
8724         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
8725         (__ASSUME_WAITID_SYSCALL): Likewise.
8726         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
8727         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
8728         * README: State 2.6.16 as minimum Linux kernel version.  Do not
8729         refer to older versions.
8730
8731 2012-08-06  Roland McGrath  <roland@hack.frob.com>
8732
8733         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
8734         Define alphasort64 as an alias.
8735         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
8736         Define versionsort64 as an alias.
8737         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
8738         Define scandir64 as an alias.
8739         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
8740         Define scandirat64 as an alias.
8741         * dirent/alphasort64.c (alphasort64):
8742         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
8743         * dirent/versionsort64.c: Likewise.
8744         * dirent/scandir64.c: Likewise.
8745         * dirent/scandirat64.c: Likewise.
8746         * sysdeps/wordsize-64/alphasort.c: File removed.
8747         * sysdeps/wordsize-64/alphasort64.c: File removed.
8748         * sysdeps/wordsize-64/scandir.c: File removed.
8749         * sysdeps/wordsize-64/scandir64.c: File removed.
8750         * sysdeps/wordsize-64/scandirat.c: File removed.
8751         * sysdeps/wordsize-64/scandirat64.c: File removed.
8752         * sysdeps/wordsize-64/versionsort.c: File removed.
8753         * sysdeps/wordsize-64/versionsort64.c: File removed.
8754         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
8755         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
8756         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
8757         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
8758         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
8759         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
8760         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
8761         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
8762
8763         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
8764         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8765         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
8766         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8767         [defined __arch64__ || defined __sparcv9]
8768         (__INO_T_MATCHES_INO64_T): New macro.
8769         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8770         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
8771         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
8772         * sysdeps/unix/sysv/linux/bits/dirent.h
8773         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
8774         (_DIRENT_MATCHES_DIRENT64): New macro.
8775
8776         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
8777         Define lockf64 as an alias.
8778         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
8779         Define fseeko64 as an alias.
8780         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
8781         Define ftello64 as an alias.
8782         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
8783         Define _IO_fgetpos64 and fgetpos64 as aliases.
8784         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
8785         Define _IO_fsetpos64 and fsetpos64 as aliases.
8786         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
8787         Conditionalize body on this.
8788         * libio/fseeko64.c: Likewise.
8789         * libio/ftello64.c: Likewise.
8790         * libio/iofgetpos64.c: Likewise.
8791         * libio/iofsetpos64.c: Likewise.
8792         * sysdeps/wordsize-64/lockf.c: File removed.
8793         * sysdeps/wordsize-64/lockf64.c: File removed.
8794         * sysdeps/wordsize-64/fseeko.c: File removed.
8795         * sysdeps/wordsize-64/fseeko64.c: File removed.
8796         * sysdeps/wordsize-64/ftello.c: File removed.
8797         * sysdeps/wordsize-64/ftello64.c: File removed.
8798         * sysdeps/wordsize-64/iofgetpos.c: File removed.
8799         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
8800         * sysdeps/wordsize-64/iofsetpos.c: File removed.
8801         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
8802         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
8803         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
8804         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
8805         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
8806         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
8807         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
8808         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
8809         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
8810         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
8811         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
8812
8813         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8814         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
8815         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
8816         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
8817         [defined __arch64__ || defined __sparcv9]
8818         (__OFF_T_MATCHES_OFF64_T): New macro.
8819         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
8820         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
8821         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
8822         (__OFF_T_MATCHES_OFF64_T): New macro.
8823
8824 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8825
8826         * stdlib/secure-getenv.c (__secure_getenv): Replace
8827         GLIBC_2_16 with GLIBC_2_17.
8828
8829 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
8830
8831         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
8832         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
8833
8834 2012-08-03  David S. Miller  <davem@davemloft.net>
8835
8836         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8837
8838 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8839
8840         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
8841         Remove.
8842         (__ASSUME_CORRECT_SI_PID): Likewise.
8843         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
8844         (__ASSUME_TMPFS_NAME): Likewise.
8845         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
8846         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
8847         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
8848         (HAVE_AUX_SECURE): Make definition unconditional.
8849         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
8850         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
8851
8852 2012-08-03  Roland McGrath  <roland@hack.frob.com>
8853
8854         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
8855         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
8856         * sysdeps/mach/hurd/eloop-threshold.h: New file.
8857         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
8858         __eloop_threshold instead of SYMLOOP_MAX.
8859
8860         * sysdeps/generic/eloop-threshold.h: New file.
8861         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
8862         of MAXSYMLINKS.
8863         * elf/chroot_canon.c (chroot_canon): Likewise.
8864
8865 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
8866
8867         [BZ #13717]
8868         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
8869         Change to 2.6.0 everywhere.
8870         * sysdeps/unix/sysv/linux/configure: Regenerated.
8871         * sysdeps/unix/sysv/linux/kernel-features.h
8872         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
8873         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
8874         kernel versions.
8875         (__ASSUME_POSIX_TIMERS): Define unconditionally.
8876         (__ASSUME_FUTEX_REQUEUE): Remove.
8877         (__ASSUME_STATFS64): Define unconditionally.
8878         (__ASSUME_AT_SECURE): Likewise.
8879         (__ASSUME_CORRECT_SI_PID): Likewise.
8880         (__ASSUME_TGKILL): Define without depending on kernel version for
8881         i386.
8882         (__ASSUME_UTIMES): Likewise.
8883         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
8884         kernel version.
8885         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
8886         (__ASSUME_TMPFS_NAME): Likewise.
8887         * README: Update reference to Linux kernel versions.
8888
8889 2012-08-02  Marek Polacek  <polacek@redhat.com>
8890
8891         [BZ# 14150]
8892         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
8893         libc_cv_asm_type_prefix with %.
8894         * configure: Regenerated.
8895         * include/libc-symbols.h: Remove comment about
8896         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
8897         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
8898         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
8899         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
8900         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
8901         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
8902         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
8903         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
8904         * elf/tst-unique2mod1.c: Likewise.
8905         * elf/tst-unique1mod2.c: Likewise.
8906         * elf/tst-unique1mod1.c: Likewise.
8907         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
8908         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
8909         Replace ASM_TYPE_DIRECTIVE with .type.
8910         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8911         * sysdeps/i386/sysdep.h: Likewise.
8912         * sysdeps/x86_64/sysdep.h: Likewise.
8913         * sysdeps/sh/sysdep.h: Likewise.
8914         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
8915         Do not define ASM_TYPE_DIRECTIVE.
8916         * sysdeps/powerpc/sysdep.h: Likewise.
8917         * sysdeps/powerpc/powerpc32/sysdep.h:
8918         Replace ASM_TYPE_DIRECTIVE with .type.
8919         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
8920         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
8921         * sysdeps/i386/fpu/e_powf.S: Likewise.
8922         * sysdeps/i386/fpu/e_expl.S: Likewise.
8923         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
8924         * sysdeps/i386/fpu/e_acosh.S: Likewise.
8925         * sysdeps/i386/fpu/e_pow.S: Likewise.
8926         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
8927         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
8928         * sysdeps/i386/fpu/s_expm1.S: Likewise.
8929         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
8930         * sysdeps/i386/fpu/e_log2.S: Likewise.
8931         * sysdeps/i386/fpu/e_log2l.S: Likewise.
8932         * sysdeps/i386/fpu/e_scalb.S: Likewise.
8933         * sysdeps/i386/fpu/e_powl.S: Likewise.
8934         * sysdeps/i386/fpu/e_log10f.S: Likewise.
8935         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
8936         * sysdeps/i386/fpu/e_logl.S: Likewise.
8937         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
8938         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
8939         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
8940         * sysdeps/i386/fpu/e_log2f.S: Likewise.
8941         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
8942         * sysdeps/i386/fpu/e_log.S: Likewise.
8943         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
8944         * sysdeps/i386/fpu/e_logf.S: Likewise.
8945         * sysdeps/i386/fpu/e_log10l.S: Likewise.
8946         * sysdeps/i386/fpu/e_atanh.S: Likewise.
8947         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
8948         * sysdeps/i386/fpu/e_log10.S: Likewise.
8949         * sysdeps/i386/fpu/s_frexp.S: Likewise.
8950         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
8951         * sysdeps/i386/fpu/s_asinh.S: Likewise.
8952         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
8953         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
8954         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
8955         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
8956         * sysdeps/i386/i686/strtok.S: Likewise.
8957         * sysdeps/i386/i386-mcount.S: Likewise.
8958         * sysdeps/i386/strtok.S: Likewise.
8959         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
8960         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
8961         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
8962         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
8963         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
8964         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
8965         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
8966         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
8967         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
8968         * sysdeps/x86_64/_mcount.S: Likewise.
8969         * sysdeps/x86_64/strtok.S: Likewise.
8970         * sysdeps/sh/_mcount.S: Likewise.
8971
8972 2012-08-01  Roland McGrath  <roland@hack.frob.com>
8973
8974         * libio/iofopen.c: Include <fcntl.h>.
8975         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
8976         (_IO_fopen64, fopen64): Define as aliases.
8977         * libio/iofopen64.c: Include <fcntl.h>.
8978         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
8979         Conditionalize body on this.
8980         * sysdeps/wordsize-64/iofopen.c: File removed.
8981         * sysdeps/wordsize-64/iofopen64.c: File removed.
8982
8983 2012-08-01  Marek Polacek  <polacek@redhat.com>
8984
8985         * libc/Makeconfig: Use elf in place of binfmt-subdir.
8986         Use dlfcn directly instead of a variable.
8987         (binfmt-subdir): Do not define.
8988         (dlfcn): Likewise.
8989
8990 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
8991
8992         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
8993         Remove all definitions.
8994         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
8995         <kernel-features.h>.
8996         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
8997         (miss_F_GETOWN_EX): Remove all definitions.
8998         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
8999         macro definition.
9000         [!__ASSUME_FCNTL64]: Remove conditional code.
9001         [__ASSUME_FCNTL64]: Make code unconditional.
9002         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
9003         <kernel-features.h>.
9004         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
9005         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
9006         (lockf64) [__NR_fcntl64]: Make code unconditional.
9007         (lockf64) [__ASSUME_FCNTL64]: Likewise.
9008
9009         * sysdeps/unix/sysv/linux/kernel-features.h
9010         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
9011         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
9012         Make code unconditional.
9013         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9014         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9015         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
9016         [__NR_vfork]: Make code unconditional.
9017         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9018         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
9020         [__NR_vfork]: Make code unconditional.
9021         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
9022         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
9023
9024 2012-08-01  Roland McGrath  <roland@hack.frob.com>
9025
9026         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
9027         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
9028
9029         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9030         Define mkstemp64 as an alias.
9031         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9032         Define mkstemps64 as an alias.
9033         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9034         Define mkostemp64 as an alias.
9035         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
9036         Define mkostemps64 as an alias.
9037         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
9038         Conditionalize body on this.
9039         * misc/mkostemp64.c: Likewise.
9040         * misc/mkostemps64.c: Likewise.
9041         * misc/mkstemps64.c: Likewise.
9042         * sysdeps/wordsize-64/mkstemp64.c: File removed.
9043         * sysdeps/wordsize-64/mkostemp64.c: File removed.
9044         * sysdeps/wordsize-64/mkostemp.c: File removed.
9045         * sysdeps/wordsize-64/mkstemp.c: File removed.
9046         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
9047         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
9048         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
9049         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
9050
9051         [BZ #14138]
9052         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
9053         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
9054         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
9055         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
9056
9057         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
9058         compat_symbol macros from <shlib-compat.h> rather than the underlying
9059         default_symbol_version and symbol_version macros, so that DEFAULT
9060         lines in shlib-versions are respected.
9061         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
9062
9063 2012-08-01  Florian Weimer  <fweimer@redhat.com>
9064
9065         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
9066         Declare with warn_unused_result.
9067         (setgid, setregid, setegid, setresgid): Likewise.
9068         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
9069         Likewise.
9070         * WUR-REPORT: Remove set*id functions.
9071
9072 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
9073
9074         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
9075
9076 2012-07-31  Roland McGrath  <roland@hack.frob.com>
9077
9078         * include/sys/socket.h (__libc_accept, __libc_accept4):
9079         Add attribute_hidden.
9080         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
9081
9082         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
9083         use of PTR_MANGLE.
9084         * inet/getnetgrent_r.c (setup): Likewise.
9085
9086         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
9087
9088 2012-07-31  David S. Miller  <davem@davemloft.net>
9089
9090         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9091
9092 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
9093
9094         [BZ #13629]
9095         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
9096         value between 1.0 and 2.0 and smaller part has absolute value less
9097         than 1.0.
9098         * math/s_clog10.c (__clog10): Likewise.
9099         * math/s_clog10f.c (__clog10f): Likewise.
9100         * math/s_clog10l.c (__clog10l): Likewise.
9101         * math/s_clogf.c (__clogf): Likewise.
9102         * math/s_clogl.c (__clogl): Likewise.
9103         * math/libm-test.inc (clog_test): Add more tests.
9104         (clog10_test): Likewise.
9105         * sysdeps/i386/fpu/libm-test-ulps: Update.
9106         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9107
9108 2012-07-31  Florian Weimer  <fweimer@redhat.com>
9109
9110         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
9111         Exit with zero in case no suitable GID is found, and write a
9112         message to standard error.
9113
9114 2012-07-30  Roland McGrath  <roland@hack.frob.com>
9115
9116         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
9117         rather than to 1.
9118         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
9119         (MAXPATHLEN): Removed.
9120         (NOGROUP, NODEV): New macros.
9121         (setbit, clrbit, isset, isclr): New macros.
9122         (howmany, roundup, powerof2): New macros.
9123         (DEV_BSIZE): New macro.
9124
9125         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
9126         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
9127
9128         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
9129         definition on [!__NO_LONG_DOUBLE_MATH].
9130
9131         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
9132         PTR_MANGLE and PTR_DEMANGLE.
9133
9134         * socket/accept4.c (accept4): Rename to __libc_accept4.
9135         Define accept4 as a weak alias.
9136
9137         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
9138         on [_DIRENT_HAVE_D_TYPE].
9139         * io/ftw.c (ftw_dir): Likewise.
9140
9141         * io/xmknod.c (__xmknod): Don't check PATH for being null.
9142
9143         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
9144
9145         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
9146         Use the BSD numbers rather than the arbitrary ones we had.
9147         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
9148         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
9149         (SIGXCPU, SIGXFSZ): New macros.
9150         (_NSIG): Now 32.
9151
9152         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
9153         initializer on [_LIBC_REENTRANT].
9154
9155         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
9156         definitions inside [_POSIX_MAPPED_FILES].
9157
9158         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
9159
9160         * dirent/opendir.c: Include <fcntl.h>.
9161
9162         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
9163         (__libc_getspecific): Likewise.
9164         (__libc_key_create): Likewise.
9165
9166         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
9167         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
9168         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
9169         (tmpfile64): Define as alias.
9170         * sysdeps/wordsize-64/tmpfile.c: File removed.
9171         * sysdeps/wordsize-64/tmpfile64.c: File removed.
9172         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
9173         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
9174
9175         * stdio-common/vfscanf.c: Include <stdbool.h>.
9176         * nss/makedb.c: Likewise.
9177         * stdio-common/_i18n_number.h: Likewise.
9178         * argp/argp-help.c: Likewise.
9179         * posix/wordexp.c: Likewise.
9180         * sysdeps/posix/spawni.c: Likewise.
9181         * nss/nss_files/files-initgroups.c: Likewise.
9182         * stdio-common/reg-modifier.c: Include <stdlib.h>.
9183         * nss/nss_files/files-initgroups.c: Likewise.
9184         * nss/nss_db/db-netgrp.c: Likewise.
9185         * nss/nss_db/db-initgroups.c: Likewise.
9186         * io/fchmodat.c: Include <sys/stat.h>.
9187
9188         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
9189         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
9190
9191         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
9192         [HAVE_MMAP].
9193
9194         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
9195         Add multiple inclusion protection.
9196
9197 2012-07-27  David S. Miller  <davem@davemloft.net>
9198
9199         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9200
9201 2012-07-27  Gary Benson  <gbenson@redhat.com>
9202
9203         [BZ #14298]
9204         * elf/rtld.c: Include <stap-probe.h>.
9205         (dl_main): Added static probes "init_start" and "init_complete".
9206         * elf/dl-load.c: Include <stap-probe.h>.
9207         (lose): Take new parameter "nsid".
9208         Added static probe "map_failed".
9209         (_dl_map_object_from_fd): Pass namespace id to lose.
9210         Added static probe "map_start".
9211         (open_verify): Pass namespace id to lose.
9212         * elf/dl-open.c: Include <stap-probe.h>.
9213         (dl_open_worker) Added static probes "map_complete", "reloc_start"
9214         and "reloc_complete".
9215         * elf/dl-close.c: Include <stap-probe.h>.
9216         (_dl_close_worker): Added static probes "unmap_start" and
9217         "unmap_complete".
9218         * elf/rtld-debugger-interface.txt: New file documenting the above.
9219
9220 2012-07-26  Roland McGrath  <roland@hack.frob.com>
9221
9222         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
9223         rather than a string variable.
9224         * sunrpc/rpc_main.c (h_output): Likewise.
9225         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
9226
9227 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
9228
9229         * inet/check_native.c: New file.
9230
9231 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
9232
9233         [BZ #13629]
9234         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
9235         if larger part has absolute value 1.0.
9236         * math/s_clog10.c (__clog10): Likewise.
9237         * math/s_clog10f.c (__clog10f): Likewise.
9238         * math/s_clog10l.c (__clog10l): Likewise.
9239         * math/s_clogf.c (__clogf): Likewise.
9240         * math/s_clogl.c (__clogl): Likewise.
9241         * math/libm-test.inc (clog_test): Add more tests.
9242         (clog10_test): Likewise.
9243         * sysdeps/i386/fpu/libm-test-ulps: Update.
9244         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9245
9246         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
9247         (pltexit): Likewise.
9248         (La_regs): Likewise.
9249         (La_retval): Likewise.
9250         (int_retval): Likewise.
9251         Update #error for removed macros to refer only to definitions in
9252         tst-audit.h.
9253         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
9254         macro.
9255         (pltexit): Likewise.
9256         (La_regs): Likewise.
9257         (La_retval): Likewise.
9258         (int_retval): Likewise.
9259         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
9260         macro.
9261         (pltexit): Likewise.
9262         (La_regs): Likewise.
9263         (La_retval): Likewise.
9264         (int_retval): Likewise.
9265         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
9266         macro.
9267         (pltexit): Likewise.
9268         (La_regs): Likewise.
9269         (La_retval): Likewise.
9270         (int_retval): Likewise.
9271         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
9272         macro.
9273         (pltexit): Likewise.
9274         (La_regs): Likewise.
9275         (La_retval): Likewise.
9276         (int_retval): Likewise.
9277         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
9278         macro.
9279         (pltexit): Likewise.
9280         (La_regs): Likewise.
9281         (La_retval): Likewise.
9282         (int_retval): Likewise.
9283         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
9284         macro.
9285         (pltexit): Likewise.
9286         (La_regs): Likewise.
9287         (La_retval): Likewise.
9288         (int_retval): Likewise.
9289         * sysdeps/generic/tst-audit.h: Update comment to refer only to
9290         macro definitions in tst-audit.h.
9291         * sysdeps/i386/tst-audit.h: New file.
9292         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
9293         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
9294         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
9295         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
9296         * sysdeps/sh/tst-audit.h: Likewise.
9297         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
9298         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
9299         * sysdeps/x86_64/tst-audit.h: Likewise.
9300
9301 2012-07-26  Andreas Jaeger  <aj@suse.de>
9302
9303         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
9304         ptrace.
9305
9306         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
9307         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
9308         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
9309         PTRACE_O_MASK.
9310         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
9311         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
9312         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
9313
9314         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
9315         value.
9316
9317         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
9318         _sigsys.
9319         (si_call_addr, si_syscall, si_arch): Define new macro.
9320         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
9321         _sigsys.
9322         (si_call_addr, si_syscall, si_arch): Define new marcro.
9323         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
9324         _sigsys.
9325         (si_call_addr, si_syscall, si_arch): Define new macro.
9326         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
9327         _sigsys.
9328         (si_call_addr, si_syscall, si_arch): Define new macro.
9329
9330 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
9331
9332         [BZ #13717]
9333         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9334         Change to 2.4.21 where previously 2.4.1.
9335         * sysdeps/unix/sysv/linux/configure: Regenerated.
9336         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
9337         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
9338         Linux kernel version.
9339         (__ASSUME_STD_AUXV): Remove.
9340         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
9341         kernel version.
9342         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
9343         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
9344         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
9345         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
9346         (__ASSUME_NETLINK_SUPPORT): Likewise.
9347         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
9348         (__no_netlink_support): Remove conditional definition.
9349         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
9350         Remove.
9351         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
9352         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
9353         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
9354         (if_nameindex_ioctl): Remove.
9355         (if_nameindex_netlink): Do not handle __no_netlink_support.
9356         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
9357         code.
9358         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
9359         Remove conditional code.
9360         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
9361         code.
9362         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
9363         unconditional.
9364         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
9365         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
9366         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
9367         Remove.
9368         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
9369         [!__ASSUME_STD_AUXV]: Remove conditional code.
9370         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
9371         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
9372         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
9373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
9374         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
9375         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
9376         code.
9377         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
9378         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
9379         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
9380         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
9381         conditional code.
9382         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
9383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
9384         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
9385         code.
9386         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
9387         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
9388         conditional code.
9389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
9390         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
9391         code unconditional.
9392         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9393         conditional code.
9394         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9395         unconditional.
9396         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9397         conditional code.
9398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
9399         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9400         unconditional.
9401         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9402         conditional code.
9403         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
9404         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
9405         code unconditional.
9406         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9407         conditional code.
9408         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9409         unconditional.
9410         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9411         conditional code.
9412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
9413         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
9414         code unconditional.
9415         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9416         conditional code.
9417         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
9418         unconditional.
9419         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
9420         conditional code.
9421
9422 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
9423
9424         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
9425         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
9426         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
9427         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
9428         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
9429         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
9430         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
9431         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
9432         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
9433         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
9434         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
9435         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
9436         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
9437         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
9438         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
9439         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
9440         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
9441         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
9442         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
9443         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
9444         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
9445         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
9446         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
9447
9448 2012-07-25  Florian Weimer  <fweimer@redhat.com>
9449
9450         * Versions.def: Add GLIBC_2.17.
9451         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
9452         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
9453         Introduce __libc_secure_getenv.
9454         * stdlib/Versions (2.17): Add secure_getenv
9455         (GLIBC_PRIVATE): Add __libc_secure_getenv.
9456         * stdlib/secure-getenv.c: Rename __secure_getenv to
9457         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
9458         symbol __secure_getenv for GLIBC_2.0.
9459         * stdlib/tst-secure-getenv.c: New.
9460         * stdlib/Makefile (tests): Add testcase.
9461         * manual/startup.texi (Environment Access): Document
9462         secure_getenv.
9463         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
9464         __libc_secure_getenv.
9465         * inet/ruserpass.c (ruserpass): Likewise.
9466         * malloc/mtrace.c (mtrace): Likewise.
9467         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
9468         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
9469         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
9470         * sysdeps/posix/tempname.c: Likewise.  Evaluate
9471         HAVE_SECURE_GETENV.
9472         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
9473         __secure_getenv to __libc_secure_getenv.
9474         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
9475         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9476         Likewise.
9477         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9478         Likewise.
9479         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
9480         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
9481         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9482         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
9483         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
9484         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9485         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
9486
9487 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
9488
9489         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
9490         (struct La_i86_retval): Likewise.
9491         (struct La_x86_64_regs): Likewise.
9492         (struct La_x86_64_retval): Likewise.
9493         (struct La_x32_regs): Likewise.
9494         (struct La_x32_retval): Likewise.
9495         (struct La_ppc32_regs): Likewise.
9496         (struct La_ppc32_retval): Likewise.
9497         (struct La_ppc64_regs): Likewise.
9498         (struct La_ppc64_retval): Likewise.
9499         (struct La_sh_regs): Likewise.
9500         (struct La_sh_retval): Likewise.
9501         (struct La_s390_32_regs): Likewise.
9502         (struct La_s390_32_retval): Likewise.
9503         (struct La_s390_64_regs): Likewise.
9504         (struct La_s390_64_retval): Likewise.
9505         (struct La_sparc32_regs): Likewise.
9506         (struct La_sparc32_retval): Likewise.
9507         (struct La_sparc64_regs): Likewise.
9508         (struct La_sparc64_retval): Likewise.
9509         (struct audit_ifaces): Remove architecture-specific pltenter and
9510         pltexit members.
9511         * sysdeps/i386/ldsodefs.h: New file.
9512         * sysdeps/powerpc/ldsodefs.h: Likewise.
9513         * sysdeps/s390/ldsodefs.h: Likewise.
9514         * sysdeps/sh/ldsodefs.h: Likewise.
9515         * sysdeps/sparc/ldsodefs.h: Likewise.
9516         * sysdeps/x86_64/ldsodefs.h: Likewise.
9517
9518 2012-07-25  Marek Polacek  <polacek@redhat.com>
9519
9520         [BZ #6808]
9521         * math/libm-test.inc (yn_test): Add another test.
9522         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
9523         to ERANGE when the result is +-Inf.
9524         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
9525         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
9526         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
9527         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
9528
9529 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
9530
9531         * conform/data/time.h-data (NULL): Use macro-constant.  Require
9532         equal to 0.
9533         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
9534         clock_t.
9535         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
9536
9537 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
9538
9539         * configure.in <sysdeps resolving>: Correct printing
9540         Implies_before.
9541         * configure: Regenerate.
9542
9543 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
9544
9545         * math/w_ilogb.c: Include <limits.h>.
9546         * math/w_ilogbl.c: Likewise.
9547
9548 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9549
9550         * manual/lang.texi (__va_copy): Document primarily as ISO C99
9551         va_copy.  Document allowing for unavailable va_copy only as
9552         pre-C99 compatibility.
9553         * manual/string.texi (Copying and Concatenation): Use va_copy
9554         instead of __va_copy in concat example.
9555
9556 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
9557
9558         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
9559         (__sendto): Use create_address_port.  Initialize APORT and deallocate
9560         it if not null.
9561
9562         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
9563         with O_NOLINK passed to __file_name_lookup.
9564
9565         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
9566         with O_NOLINK passed to __file_name_lookup.
9567
9568         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
9569         negative N or less than NGIDS.
9570
9571         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
9572         type to string_t.  Set ERANGE as errno and return it if NAME is not big
9573         enough.  Use memcpy instead of strncpy.
9574
9575 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
9576
9577         * elf/Makefile (check-data): Remove.
9578         (localplt.data): New vpath directive.
9579         ($(objpfx)check-localplt.out): Use localplt.data from vpath
9580         instead of $(check-data).
9581         * scripts/data/localplt-generic.data: Move to ...
9582         * sysdeps/generic/localplt.data: ... here.
9583         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
9584         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
9585         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
9586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
9587         ... here.
9588         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
9589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
9590         ... here.
9591         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
9592         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
9593         ... here.
9594         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
9595         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
9596         ... here.
9597         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
9598         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
9599         ... here.
9600         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
9601         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
9602         ... here.
9603
9604 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9605
9606         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
9607         PPC32 and PPC64 files.
9608         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
9609         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
9610
9611 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9612
9613         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
9614         __makecontext_ret to ...
9615         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
9616         ... here and call exit if uc_link is NULL.  New file.
9617         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
9618         __makecontext_ret.S.
9619         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
9620         __makecontext_ret to ...
9621         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
9622         ... here and call exit if uc_link is NULL.  New file.
9623         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
9624         __makecontext_ret.S.
9625
9626 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9627
9628         * elf/elf.h (R_390_IRELATIVE): New definition.
9629         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
9630         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
9631         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
9632         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
9633         (elf_machine_lazy_rel): Likewise.
9634         * sysdeps/s390/dl-irel.h: New file.
9635         * sysdeps/s390/s390-64/memcpy.S: New asm code.
9636         * sysdeps/s390/s390-64/memset.S: New asm code.
9637         * sysdeps/s390/s390-64/memcmp.S: New asm code.
9638         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
9639         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
9640         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
9641         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
9642         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
9643         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
9644         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
9645         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
9646         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
9647         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
9648         * sysdeps/s390/s390-32/memcpy.S: New asm code.
9649         * sysdeps/s390/s390-32/memset.S: New asm code.
9650         * sysdeps/s390/s390-32/memcmp.S: New asm code.
9651
9652 2012-07-17  Marek Polacek  <polacek@redhat.com>
9653
9654         [BZ #14349]
9655         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
9656         * sysdeps/s390/s390-64/configure.in: Likewise.
9657         * sysdeps/sparc/configure.in: Likewise.
9658         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
9659         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
9660         * sysdeps/i386/configure.in: Likewise.
9661         * sysdeps/x86_64/configure.in: Likewise.
9662         * sysdeps/sh/configure.in: Likewise.
9663         * sysdeps/s390/s390-32/configure: Regenerated.
9664         * sysdeps/s390/s390-64/configure: Likewise.
9665         * sysdeps/x86_64/configure: Likewise.
9666         * sysdeps/sh/configure: Likewise.
9667         * sysdeps/powerpc/powerpc64/configure: Likewise.
9668         * sysdeps/powerpc/powerpc32/configure: Likewise.
9669         * sysdeps/sparc/configure: Likwise.
9670         * sysdeps/i386/configure: Likewise.
9671
9672         * elf/dl-open.c: Comment fixes.
9673
9674 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
9675
9676         * Makefile [CXX] (check-data): Remove.
9677         [CXX] (c++-types.data): New vpath directive.
9678         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
9679         vpath.  Do not allow for C++ type data being missing.
9680         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
9681         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
9682         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
9683         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
9684         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
9685         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
9686         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
9687         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
9688         ... here.
9689         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
9690         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
9691         ... here.
9692         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
9693         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
9694         ... here.
9695         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
9696         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
9697         ... here.
9698         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
9699         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
9700         ... here.
9701         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
9702         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
9703         ... here.
9704         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
9705         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
9706         ... here.
9707         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
9708         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
9709
9710         * elf/tls-macros.h (TLS_LE): Move architecture-specific
9711         definitions to architecture-specific files.
9712         (TLS_IE): Likewise.
9713         (TLS_LD): Likewise.
9714         (TLS_GD): Likewise.
9715         * sysdeps/i386/tls-macros.h: New file.
9716         * sysdeps/powerpc/tls-macros.h: Likewise.
9717         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
9718         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
9719         * sysdeps/sh/tls-macros.h: Likewise.
9720         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
9721         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
9722         * sysdeps/x86_64/tls-macros.h: Likewise.
9723
9724 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9725
9726         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
9727         zero value for regular exit case.
9728
9729         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
9730         (__start_context): Preserve zero value for regular exit case.
9731
9732 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
9733             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9734
9735         * manual/setjmp.texi (setcontext): Clarify normal process
9736         termination when uc_link is the null pointer.
9737         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
9738         exit call.
9739
9740 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
9741
9742         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
9743         preprocessor.  Test for each exception mask separately.
9744
9745 2012-07-16  Andreas Jaeger  <aj@suse.de>
9746
9747         * po/ru.po: Update from translation team.
9748
9749 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
9750
9751         * conform/data/string.h-data (NULL): Use macro-constant.  Require
9752         equal to 0.
9753         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
9754         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
9755         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
9756         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
9757         [ISO || ISO99 || ISO11] (*_t): Do not allow.
9758
9759 2012-07-13  Andreas Jaeger  <aj@suse.de>
9760
9761         * po/fr.po: Update from translation team.
9762
9763 2012-07-12  Marek Polacek  <polacek@redhat.com>
9764
9765         [BZ #14173]
9766         * math/libm-test.inc (yn_test): Add test for BZ #14173.
9767         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
9768         loop condition.
9769
9770 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
9771
9772         [BZ #13717]
9773         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
9774         Change to 2.4.1 where previously 2.4.0.
9775         * sysdeps/unix/sysv/linux/configure: Regenerated.
9776         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
9777         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
9778         version.
9779         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
9780         (__ASSUME_AT_CLKTCK): Remove.
9781         (__ASSUME_AT_PAGESIZE): Likewise.
9782         (__ASSUME_AT_XID): Likewise.
9783         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
9784         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
9785         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
9786         unconditionally.
9787         (HAVE_AUX_PAGESIZE): Likewise.
9788         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
9789         [__ASSUME_AT_CLKTCK]: Make code unconditional.
9790         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
9791
9792 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
9793
9794         [BZ #14307]
9795         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
9796         the temporary buffer used to invoke __gethostbyname2_r,
9797         __gethostbyaddr_r and gethostbyname4_r to make room for struct
9798         host_data / struct gaih_addrtuple.
9799         * resolv/nss_dns/dns-host.c (global scope): Move definition of
9800         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
9801         header file nss/nsswitch.h.
9802         * nss/nsswitch.h (global scope): Add definition of implementation
9803         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
9804         resolv/nss_dns/dns-host.c).
9805
9806 2012-07-11  Andreas Jaeger  <aj@suse.de>
9807
9808         * po/fr.po: Update from translation team.
9809
9810         * po/sv.po: Update from translation team
9811         * po/fr.po: Another update from translation team.
9812
9813 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9814
9815         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
9816         for subnormals or multiply small sinh result by itself.
9817         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
9818         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9819
9820 2012-07-11  David S. Miller  <davem@davemloft.net>
9821
9822         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9823
9824 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
9825
9826         [BZ #14347]
9827         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
9828         (INTERNAL_MARK): Shift it here.
9829
9830 2012-07-10  Marek Polacek  <polacek@redhat.com>
9831
9832         [BZ #14151]
9833         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
9834         libc_cv_asm_global_directive with .globl.
9835         * configure: Regenerated.
9836         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
9837         with .globl.
9838         * sysdeps/i386/configure: Regenerated.
9839         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
9840         with .globl.
9841         * sysdeps/x86_64/configure: Regenerated.
9842         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
9843         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
9844         * elf/tst-unique2mod2.c: Likewise.
9845         * elf/tst-unique2mod1.c: Likewise.
9846         * elf/tst-unique1mod2.c: Likewise.
9847         * elf/tst-unique1mod1.c: Likewise.
9848         * sysdeps/s390/s390-32/sysdep.h: Likewise.
9849         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
9850         * sysdeps/s390/s390-64/sysdep.h: Likewise.
9851         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
9852         * sysdeps/mach/sysdep.h: Likewise.
9853         * sysdeps/i386/sysdep.h: Likewise.
9854         * sysdeps/i386/i386-mcount.S: Likewise.
9855         * sysdeps/x86_64/_mcount.S: Likewise.
9856         * sysdeps/x86_64/sysdep.h: Likewise.
9857         * sysdeps/sh/_mcount.S: Likewise.
9858         * sysdeps/sh/sysdep.h: Likewise.
9859         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
9860         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
9861         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
9862         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9863         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
9864         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
9865         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
9866         * locale/localeinfo.h: Likewise.
9867         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
9868         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
9869
9870 2012-07-09  Roland McGrath  <roland@hack.frob.com>
9871
9872         [BZ #14336]
9873         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
9874         system".
9875         * manual/message.texi (The Uniforum approach): Likewise.
9876         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
9877         (glibc iconv Implementation): Likewise.
9878
9879 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
9880
9881         [BZ #14337]
9882         * math/s_clog.c (__clog): Avoid scaling a value down where that
9883         could result in underflow.
9884         * math/s_clog10.c (__clog10): Likewise.
9885         * math/s_clog10f.c (__clog10f): Likewise.
9886         * math/s_clog10l.c (__clog10l): Likewise.
9887         * math/s_clogf.c (__clogf): Likewise.
9888         * math/s_clogl.c (__clogl): Likewise.
9889         * math/libm-test.inc (clog_test): Add more tests.
9890         (clog10_test): Likewise.
9891         * sysdeps/i386/fpu/libm-test-ulps: Update.
9892         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9893
9894 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
9895
9896         [BZ #14283]
9897         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
9898         by 7 not 8 to examine high bit of fractional part.
9899
9900         [BZ #14042]
9901         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
9902         for call to __mcount_internal.
9903         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
9904         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
9905         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
9906
9907 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
9908
9909         [BZ #14154]
9910         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
9911         approximation for values within 0x1p-13f of an odd multiple of
9912         pi/4.
9913         * math/libm-test.inc (tan_test): Do not allow spurious underflow
9914         exception.  Add more tests.
9915         * sysdeps/i386/fpu/libm-test-ulps: Update.
9916
9917         [BZ #6778]
9918         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
9919         inputs and return -1 for them.  Do not check for +Inf in case not
9920         reachable for +Inf.
9921         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
9922         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
9923         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
9924         and return -1 for them.  Do not check for +Inf in case not
9925         reachable for +Inf.
9926         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
9927         define.
9928         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
9929         and return -1 for them.  Do not check for +Inf in case not
9930         reachable for +Inf.
9931         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
9932         spurious underflow.
9933         * sysdeps/i386/fpu/libm-test-ulps: Update.
9934         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9935
9936 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
9937
9938         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
9939
9940 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
9941
9942         [BZ #14157]
9943         [BZ #14331]
9944         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
9945         could result in spurious underflow.  Scale down values above
9946         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
9947         * math/s_csqrtf.c (__csqrtf): Likewise.
9948         * math/s_csqrtl.c (__csqrtl): Likewise.
9949         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
9950         spurious underflow.
9951         * sysdeps/i386/fpu/libm-test-ulps: Update.
9952         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9953
9954 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
9955
9956         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
9957         xopen-msg.sed.
9958         * catgets/xopen-msg.awk: New file.
9959         * catgets/xopen-msg.sed: Removed.
9960
9961         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
9962         po2text.sed.
9963         * intl/po2test.awk: New file.
9964         * intl/po2test.sed: Removed.
9965
9966 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
9967
9968         [BZ #14328]
9969         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
9970         or multiply small sinh result by itself.
9971         * math/s_ctanf.c (__ctanf): Likewise.
9972         * math/s_ctanh.c (__ctanh): Likewise.
9973         * math/s_ctanhf.c (__ctanhf): Likewise.
9974         * math/s_ctanhl.c (__ctanhl): Likewise.
9975         * math/s_ctanl.c (__ctanl): Likewise.
9976         * math/libm-test.inc (ctan_test_tonearest): New function.
9977         (ctan_test_towardzero): Likewise.
9978         (ctan_test_downward): Likewise.
9979         (ctan_test_upward): Likewise.
9980         (ctanh_test_tonearest): Likewise.
9981         (ctanh_test_towardzero): Likewise.
9982         (ctanh_test_downward): Likewise.
9983         (ctanh_test_upward): Likewise.
9984         (main): Call these new functions.
9985         * sysdeps/i386/fpu/libm-test-ulps: Update.
9986         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9987
9988 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
9989
9990         * .gitignore: Delete /ports entry.
9991
9992 2012-07-03  Andreas Jaeger  <aj@suse.de>
9993
9994         * po/bg.po: Update from translation team.
9995         * po/cs.po: Likewise.
9996         * po/de.po: Likewise.
9997         * po/hr.po: Likewise.
9998         * po/nl.pl: Likewise.
9999         * po/pl.po: Likewise.
10000         * po/vi.po: Likewise.
10001
10002 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
10003
10004         * Makeconfig [!+link] (+link-before-libc): New variable.
10005         [!+link] (+link-after-libc): Likewise.
10006         [!+link] (+link-tests): Likewise.
10007         [!+link] (+link): Define in terms of $(+link-before-libc) and
10008         $(+link-after-libc).
10009         [!+link-static] (+link-static-before-libc): New variable.
10010         [!+link-static] (+link-static-after-libc): Likewise.
10011         [!+link-static] (+link-static-tests): Likewise.
10012         [!+link-static] (+link-static): Define in terms of
10013         $(+link-static-before-libc) and $(+link-static-after-libc).
10014         [build-shared] (link-libc-before-gnulib): New variable.
10015         [build-shared] (link-libc-tests): Likewise.
10016         [build-shared] (link-libc): Define in terms of
10017         $(link-libc-before-gnulib).
10018         [!build-shared] (link-libc-tests): New variable.
10019         (link-libc-static-tests): New variable.
10020         [!gnulib] (gnulib-arch): New variable.
10021         [!gnulib] (gnulib-tests): Likewise.
10022         [!gnulib] (static-gnulib-arch): Likewise.
10023         [!gnulib] (static-gnulib-tests): Likewise.
10024         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
10025         Define with "=" instead of ":=".
10026         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
10027         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
10028         * Rules (binaries-all-notests): New variable.
10029         (binaries-all-tests): Likewise.
10030         (binaries-static-notests): Likewise.
10031         (binaries-static-tests): Likewise.
10032         (binaries-all): Define using $(binaries-all-notests) and
10033         $(binaries-all-tests).
10034         (binaries-static): Define using $(binaries-static-notests) and
10035         $(binaries-static-tests).
10036         (binaries-shared-tests): New variable.
10037         (binaries-shared-notests): Likewise.
10038         (binaries-shared): Remove variable.
10039         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
10040         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
10041         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
10042         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
10043         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
10044         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
10045         * elf/Makefile (sln-modules): New variable.
10046         (extra-objs): Add $(sln-modules:=.o).
10047         (ldconfig-modules): Add static-stubs.
10048         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
10049         * elf/static-stubs.c: New file.
10050
10051         [BZ #14283]
10052         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
10053         by 7 not 8 to examine high bit of fractional part.  Use volatile
10054         variables when splitting into final array of floats if
10055         __FLT_EVAL_METHOD__ != 0.
10056         * math/libm-test.inc (cos_test): Add another test.
10057         (sin_test): Likewise.
10058         * sysdeps/i386/fpu/libm-test-ulps: Update.
10059
10060         [BZ #14273]
10061         * math/libm-test.inc (cosh_test): Add more tests.
10062
10063         * version.h (RELEASE): Set to "development".
10064         (VERSION): Set to "2.16.90".
10065
10066 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
10067
10068         * NEWS: Update copyright. Remove last-updated date.
10069         Mention math library bug fixes and timezone data changes.
10070         * README: Mention GNU/Hurd, x32, and HPPA support status.
10071
10072 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
10073
10074         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
10075
10076 2012-06-27  Andreas Jaeger  <aj@suse.de>
10077
10078         * manual/contrib.texi (Contributors): Add Samuel Thibault.
10079
10080 2012-06-25  Andreas Jaeger  <aj@suse.de>
10081
10082         * sysdeps/s390/fpu/libm-test-ulps: Update.
10083
10084 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
10085             Thomas Schwinge  <thomas@codesourcery.com>
10086
10087         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
10088         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
10089         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
10090         fanotify_mark.
10091
10092 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
10093
10094         * sysdeps/mach/start.c: Remove file.
10095         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
10096         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
10097         * sysdeps/sh/init-first.c: Likewise.
10098
10099         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
10100         registers for frame unwinding purposes, add CFI directives.
10101         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
10102         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
10103         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
10104         Likewise.
10105
10106         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
10107         __fortify_fail returning.
10108         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
10109
10110         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
10111         sysdeps/sh/____longjmp_chk.S.
10112         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
10113         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
10114         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
10115         (gen-as-const-headers): Append sigaltstack-offsets.sym.
10116
10117         * sysdeps/sh/abort-instr.h: New file.
10118         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
10119         process in case exit returns.
10120
10121         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
10122         initialize the GOT register before use.
10123
10124         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
10125         calculation of ARGC > 4.
10126
10127         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
10128         meaningful names to some local labels.
10129
10130 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
10131             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10132
10133         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
10134         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
10135         (__arch_compare_and_exchange_val_16_acq): Likewise.
10136         (__arch_compare_and_exchange_val_32_acq): Likewise.
10137         (atomic_exchange_and_add): Fix gUSA sequence.
10138         (atomic_add): Likewise.
10139         (atomic_add_negative): Likewise.
10140         (atomic_add_zero): Likewise.
10141         (atomic_bit_test_set): Likewise.
10142
10143 2012-06-22  Andreas Schwab  <schwab@redhat.com>
10144
10145         [BZ #13579]
10146         * include/link.h (struct link_map): Add l_free_initfini.
10147         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
10148         l_initfini.
10149         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
10150         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
10151         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
10152         set.
10153
10154 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
10155
10156         * configure.in: Use AC_LANG_SOURCE.
10157         * configure: Regenerate.
10158
10159 2012-06-22  Roland McGrath  <roland@hack.frob.com>
10160
10161         * configure.in (libc_cv_localstatedir): New substituted variable.
10162         * configure: Regenerated.
10163         * config.make.in (localstatedir): New variable, substituted from
10164         libc_cv_localstatedir.
10165         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
10166         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
10167         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
10168         * sysdeps/gnu/configure: Regenerated.
10169
10170 2012-06-21  Jeff Law  <law@redhat.com>
10171
10172         [BZ #14277]
10173         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
10174         free.  Simplify list management for _LIBC case.
10175
10176 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
10177
10178         [BZ #14273]
10179         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
10180         Clear sign bit of 64-bit integer value before comparing against
10181         overflow value.
10182
10183         * sysdeps/mach/configure: Regenerated.
10184
10185 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
10186
10187         [BZ #14278]
10188         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
10189
10190 2012-06-21  Jeff Law  <law@redhat.com>
10191
10192         [BZ #13882]
10193         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
10194         uint16_t for elements in the "seen" array to avoid char overflows.
10195         * elf/dl-fini.c (_dl_sort_fini): Likewise.
10196         * elf/dl-open.c (dl_open_worker): Likewise.
10197
10198 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
10199
10200         * scripts/list-sources.sh: Scan PORTS for translations.
10201         * po/libc.pot: Regenerated.
10202
10203 2012-06-21  Andreas Jaeger  <aj@suse.de>
10204
10205         [BZ #12194]
10206         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
10207         warning.
10208         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
10209         * bits/byteswap-16.h (__bswap_16): Likewise.
10210         * bits/byteswap.h (__bswap_constant_16): Likewise.
10211
10212 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
10213
10214         [BZ #14117]
10215         * sysdeps/i386/fpu_control.h: Removed.
10216         * sysdeps/x86_64/fpu_control.h: Moved to ...
10217         * sysdeps/x86/fpu_control.h: Here.
10218
10219         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
10220         (_FPU_SETCW): Likewise.
10221
10222 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
10223
10224         [BZ #14117]
10225         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
10226         * sysdeps/x86/fpu/bits/mathinline.h: This.
10227         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
10228
10229         [BZ #14050]
10230         [BZ #14117]
10231         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
10232         functions if __x86_64__ is defined.
10233
10234 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
10235
10236         * string/endian.h: Add !__ASSEMBLER__ condition for including
10237         conversion interfaces.
10238
10239 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
10240
10241         [BZ #14241]
10242         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
10243         of ABS(x) in calculating zero to negative powers other than odd
10244         integers.
10245         * math/libm-test.inc (pow_test): Add more tests.
10246
10247 2012-06-15  Andreas Jaeger  <aj@suse.de>
10248
10249         * manual/contrib.texi (Contributors): Update entry of Liubov
10250         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
10251         Machado Filho.
10252
10253 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
10254
10255         * string/string.h: Add __wur to GNU version of strerror_r.
10256
10257 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
10258
10259         [BZ #14229]
10260         * string/Makefile (tests): Add tst-strtok_r.
10261         * string/tst-strtok_r.c: New file.
10262         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
10263         RAX_LP/RDX_LP on SAVE_PTR.
10264
10265 2012-06-14  Roland McGrath  <roland@hack.frob.com>
10266
10267         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
10268
10269 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
10270
10271         * libm_test.inc (csqrt_test): Allow more spurious underflow
10272         exceptions.
10273         (j0_test): Likewise.
10274         (j1_test): Likewise.
10275         (y0_test): Likewise.
10276         (y1_test): Likewise.
10277
10278 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
10279
10280         * po/Makefile (libc.pot): Use UTF-8 charset.
10281
10282 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
10283
10284         [BZ #14210]
10285         Suppress sign-conversion warning from FD_SET.
10286         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
10287         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
10288         not unsigned long int.
10289         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
10290
10291 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
10292
10293         [BZ #14050]
10294         [BZ #14117]
10295         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
10296         __extern_always_inline instead of __extern_inline.
10297         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
10298         (__signbit): Likewise.
10299         (__signbitl): Support C++ namespace.
10300         (lrintf): New inline function.
10301         (lrint): Likewise.
10302         (llrintf): Likewise.
10303         (llrint): Likewise.
10304         (fmaxf): Likewise.
10305         (fmax): Likewise.
10306         (fminf): Likewise.
10307         (fmin): Likewise.
10308         (rint): Likewise.
10309         (rintf): Likewise.
10310         (ceil): Likewise.
10311         (ceilf): Likewise.
10312         (floor): Likewise.
10313         (floorf): Likewise.
10314         (nearbyint): Likewise.
10315         (nearbyintf): Likewise.
10316
10317 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
10318
10319         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
10320         non-default versions.
10321
10322 2012-06-11  Roland McGrath  <roland@hack.frob.com>
10323
10324         [BZ #14218]
10325         * manual/argp.texi (Argp): Reword argp_parse description slightly.
10326
10327 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
10328
10329         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
10330         (FE_UPWARD, FE_DOWNWARD): Don't define.
10331         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
10332         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
10333
10334         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
10335         reading it.
10336         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
10337         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10338
10339 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10340
10341         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
10342         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
10343         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
10344         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
10345
10346 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
10347
10348         [BZ #14117]
10349         * sysdeps/i386/fpu/bits/fenv.h: Removed.
10350         * sysdeps/i386/fpu/Implies: New file.
10351         * sysdeps/x86_64/fpu/Implies: Likewise.
10352         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
10353         * sysdeps/x86/fpu/bits/fenv.h: This.
10354
10355         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
10356         __SSE_MATH__.
10357
10358 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
10359
10360         [BZ #14134]
10361         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
10362         character 0xffff that matches the last element of the
10363         conversion table.
10364
10365 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10366
10367         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
10368         fmodl commit.
10369
10370 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10371
10372         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
10373         values higher than 25.6283.
10374
10375 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10376
10377         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
10378         subnormal exponent extraction and add some __builtin_expect.
10379         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
10380         Fix for subnormal mantissa calculation.
10381
10382 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
10383
10384         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
10385         cpu2 is -1 and errno is not ENOSYS.
10386
10387 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
10388
10389         [BZ #14117]
10390         * sysdeps/i386/i486/bits/string.h: Renamed to ...
10391         * sysdeps/x86/bits/string.h: This.
10392         * sysdeps/x86_64/bits/string.h: Removed.
10393
10394         * sysdeps/i386/i486/bits/string.h: Define inline functions only
10395         if not compiling for x86-64, but compiling for >= i486.
10396
10397         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
10398         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
10399
10400         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
10401         New macro from Linux kernel 3.4.0.
10402         (FP_XSTATE_MAGIC2): Likewise.
10403         (FP_XSTATE_MAGIC2_SIZE): Likewise.
10404         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
10405         (struct _fpx_sw_bytes): New struct.
10406         (struct _xsave_hdr): Likewise.
10407         (struct _ymmh_state): Likewise.
10408         (struct _xstate): Likewise.
10409
10410         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
10411         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
10412         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
10413         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
10414         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
10415         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
10416
10417         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
10418         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
10419         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
10420         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
10421         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
10422         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
10423
10424 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
10425
10426         [BZ #13743]
10427         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
10428         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
10429         (sysdep_headers): Include sys/platform/ppc.h.
10430         * sysdeps/powerpc/test-gettimebase.c: Test for
10431         __ppc_get_timebase() to catch future ISA opcode/insn changes.
10432         * manual/Makefile (appendices): Include platform.texi.
10433         * manual/contrib.texi (Contributors): Update @node pointers.
10434         * manual/maint.texi (Maintenance): Likewise.
10435         (Platform): New node.
10436         * manual/platform.texi: New file.  Document the new features.
10437
10438 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
10439             Jakub Jelinek  <jakub@redhat.com>
10440
10441         [BZ #14188]
10442         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
10443         where __builtin_expect is unavailable.
10444
10445 2012-06-03  David S. Miller  <davem@davemloft.net>
10446
10447         * stdlib/longlong.h: Updated from GCC.
10448
10449 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
10450
10451         [BZ #14042]
10452         * sysdeps/powerpc/powerpc32/mcount.c: New file.
10453         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
10454         __mcount_internal.
10455         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
10456         (GLIBC_2.16): Likewise.
10457
10458 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
10459
10460         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
10461
10462 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
10463
10464         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
10465         (default-abi): New variable.
10466         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
10467         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
10468         variable.
10469         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
10470         Likewise.
10471         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
10472         Likewise.
10473         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
10474         Likewise.
10475
10476         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
10477         definition.  Document in comment.
10478
10479 2012-06-01  David S. Miller  <davem@davemloft.net>
10480
10481         * stdlib/longlong.h: Updated from GCC.
10482
10483 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
10484
10485         [BZ #14117]
10486         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
10487         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
10488         sys/debugreg.h sys/io.h here.
10489         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
10490         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
10491         sys/io.h.
10492         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
10493         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
10494         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
10495         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
10496         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
10497         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
10498
10499         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
10500         Define only if __x86_64__ is defined.
10501
10502 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
10503
10504         [BZ #14048]
10505         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
10506         Use int64_t for variable i.
10507         * math/libm-test.inc (fmod_test): Add more tests.
10508
10509         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
10510         z computation is not scheduled after fetestexcept.
10511         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
10512         Use math_force_eval instead of asm to ensure calculation scheduled
10513         before exception test.
10514         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
10515         Ensure a1 + u.d computation is not scheduled after fetestexcept.
10516
10517 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
10518
10519         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
10520         computation is not scheduled after fetestexcept.
10521
10522 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
10523
10524         [BZ #14117]
10525         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
10526         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
10527
10528 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
10529
10530         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
10531         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
10532
10533 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10534
10535         [BZ #14117]
10536         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
10537         <bits/wordsize.h>.
10538         (__WCHAR_MIN): Support __WORDSIZE == 64.
10539         (__WCHAR_MAX): Likewise.
10540
10541         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
10542         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
10543
10544         [BZ #14183]
10545         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
10546         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
10547
10548         [BZ #14117]
10549         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
10550         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
10551
10552         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
10553         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
10554
10555         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
10556         Defined to 1 if __x86_64__ isn't defined.
10557         (_STAT_VER_LINUX_OLD): New.
10558         (st_atime): Remove duplicate.
10559         (st_mtime): Likewise.
10560         (st_ctime): Likewise.
10561
10562 2012-05-31  David S. Miller  <davem@davemloft.net>
10563
10564         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
10565         entries.
10566
10567 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
10568
10569         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
10570         gen-libm-test.pl.
10571
10572         [BZ #14132]
10573         * elf/dl-reloc.c: Include <_itoa.h>.
10574         (_dl_reloc_bad_type): Remove use of INTUSE.
10575         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
10576         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
10577         * stdio-common/psiginfo.c (psiginfo): Likewise.
10578         * stdio-common/psignal.c (psignal): Likewise.
10579         * string/strsignal.c (strsignal): Likewise.
10580         * include/signal.h (_sys_siglist): Declare hidden proto.
10581         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
10582         INTVARDEF with libc_hidden_data_def.
10583         * stdio-common/itoa-udigits.c: Likewise.
10584         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
10585         (_itoa_lower_digits_internal): Remove declaration.
10586         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
10587         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
10588         (_sys_sigabbrev_internal): Remove aliases.
10589         (_sys_siglist): Define hidden alias.
10590
10591 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
10592
10593         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
10594         bits/sysctl.h.
10595
10596 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
10597
10598         [BZ #14117]
10599         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
10600         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
10601
10602         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
10603         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
10604         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
10605         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
10606         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
10607         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
10608
10609         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
10610         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
10611         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
10612
10613         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
10614         with __addr.
10615         (insw): Likewise.
10616         (insl): Likewise.
10617         (outsb): Likewise.
10618         (outsw): Likewise.
10619         (outsl): Likewise.
10620
10621         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
10622         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
10623         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
10624
10625         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
10626         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
10627         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
10628         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
10629         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
10630         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
10631
10632         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
10633         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
10634
10635         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
10636         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
10637
10638         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
10639         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
10640         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
10641
10642         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
10643         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
10644         to ...
10645         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
10646
10647         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
10648         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
10649         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
10650
10651         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
10652         for x86-64.
10653         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
10654
10655 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
10656
10657         * math/math.h (M_El): Use two more decimal places.
10658         (M_LOG2El): Likewise.
10659         (M_LOG10El): Likewise.
10660         (M_LN2l): Likewise.
10661         (M_LN10l): Likewise.
10662         (M_PIl): Likewise.
10663         (M_PI_2l): Likewise.
10664         (M_PI_4l): Likewise.
10665         (M_1_PIl): Likewise.
10666         (M_2_PIl): Likewise.
10667         (M_2_SQRTPIl): Likewise.
10668         (M_SQRT2l): Likewise.
10669         (M_SQRT1_2l): Likewise.
10670
10671 2012-05-31  David S. Miller  <davem@davemloft.net>
10672
10673         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
10674         values between float registers.
10675         * sysdeps/sparc/sparc64/memset.S: Likewise.
10676         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
10677
10678 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
10679
10680         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
10681         -D_FORTIFY_SOURCE=1.
10682         (CPPFLAGS-tst-longjmp_chk.c): Define.
10683         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
10684         (CPPFLAGS-tst-longjmp_chk2.c): Define.
10685         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
10686         CFLAGS-tst-wchar-h.c.
10687
10688 2012-05-31  Marek Polacek  <polacek@redhat.com>
10689
10690         [BZ #14132]
10691         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
10692         __endmntent_internal): Remove declaration.
10693         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
10694         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
10695         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
10696
10697 2012-05-30  David S. Miller  <davem@davemloft.net>
10698
10699         * sysdeps/sparc/sparc32/soft-fp/q_util.c
10700         (___Q_simulate_exceptions): Use real FP ops rather than writing
10701         into the %fsr.
10702         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
10703         Likewise.
10704
10705 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10706
10707         [BZ #14117]
10708         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
10709         * sysdeps/x86/bits/xtitypes.h: This.
10710
10711         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
10712         * sysdeps/x86/bits/wordsize.h: This.
10713
10714         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
10715         * sysdeps/x86/bits/huge_vall.h: This.
10716
10717         * sysdeps/i386/bits/select.h: Removed.
10718         * sysdeps/x86_64/bits/select.h: Renamed to ...
10719         * sysdeps/x86/bits/select.h: This.
10720
10721         * sysdeps/i386/bits/setjmp.h: Removed.
10722         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
10723         * sysdeps/x86/bits/setjmp.h: This.
10724
10725         * sysdeps/i386/bits/mathdef.h: Removed.
10726         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
10727         * sysdeps/x86/bits/mathdef.h: This.
10728
10729 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
10730
10731         [BZ #14132]
10732         * include/sys/socket.h (__connect_internal)
10733         (__libc_sa_len_internal): Remove declaration.
10734         (__connect, __libc_sa_len): Declare hidden_proto.
10735         (SA_LEN): Remove use of INTUSE.
10736         * socket/connect.c: Add libc_hidden_def.
10737         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
10738         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
10739         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
10740         alias.
10741         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
10742         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
10743         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
10744         of adding _internal alias.
10745
10746 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10747
10748         [BZ #14117]
10749         * sysdeps/i386/bits/link.h: Removed.
10750         * sysdeps/i386/bits/linkmap.h: Likewise.
10751         * sysdeps/x86_64/bits/link.h: Renamed to ...
10752         * sysdeps/x86/bits/link.h: This.
10753         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
10754         * sysdeps/x86/bits/linkmap.h: This.
10755
10756         * sysdeps/i386/bits/endian.h: Removed.
10757         * sysdeps/x86_64/bits/endian.h: Renamed to ...
10758         * sysdeps/x86/bits/endian.h: This.
10759
10760         * sysdeps/i386/bits/byteswap.h: Removed.
10761         * sysdeps/i386/bits/byteswap-16.h: Likewise.
10762         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
10763         * sysdeps/x86/bits/byteswap.h: This.
10764         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
10765         * sysdeps/x86/bits/byteswap-16.h: This.
10766         * sysdeps/i386/Implies: Add x86.
10767         * sysdeps/x86_64/Implies: Likewise.
10768
10769 2012-05-30  David S. Miller  <davem@davemloft.net>
10770
10771         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
10772         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
10773         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
10774         (FP_TRAPPING_EXCEPTIONS): Define.
10775         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
10776         (FP_TRAPPING_EXCEPTIONS): Define.
10777         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
10778         subnormals only when inexact has been signalled or underflow
10779         exceptions are enabled.
10780         (_FP_PACK_CANONICAL): Likewise.
10781
10782 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10783
10784         [BZ #14183]
10785         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
10786         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
10787
10788 2012-05-30  Richard Henderson  <rth@twiddle.net>
10789
10790         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
10791         with #ifndef NOT_IN_libc.
10792
10793         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
10794         marked to avoid plt entry.
10795
10796 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
10797
10798         [BZ #14112]
10799         * Makeconfig (default-abi): New macro.
10800         (abi-includes): Likewise.
10801         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
10802         $(abi-$(default-abi)-lib-soname) for soname if defined.
10803         ($(common-objpfx)gnu/lib-names.stmp): Generate from
10804         abi-variants.
10805         * Makefile (installed-stubs): Likewise.
10806         * include/stubs-biarch.h: Removed.
10807         * scripts/lib-names.awk: Only handle one library at a time.
10808         * scripts/soversions.awk: Remove WORDSIZE support.
10809         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
10810         entries.
10811         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
10812         Removed.
10813         (syscall-list-default-condition): Likewise.
10814         (syscall-list-default-condition): Likewise.
10815         (syscall-list-includes): Likewise.
10816         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
10817         syscall-list-* with abi-*.  Handle undefined abi-variants.
10818         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
10819         * sysdeps/unix/sysv/linux/i386/Implies: New file.
10820         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
10821         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
10822         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
10823         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
10824         Removed.
10825         (syscall-list-32-options): Likewise.
10826         (syscall-list-32-condition): Likewise.
10827         (syscall-list-64-options): Likewise.
10828         (syscall-list-64-condition): Likewise.
10829         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
10830         macro.
10831         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
10832         Renamed to ...
10833         (abi-*): This.
10834         (abi-64-ld-soname): New macro.
10835         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
10836         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
10837         Renamed to ...
10838         (abi-*): This.
10839         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
10840         * sysdeps/x86_64/x32/shlib-versions: Likewise.
10841
10842 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
10843
10844         * sysdeps/unix/sysv/linux/kernel-features.h
10845         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
10846         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
10847         include <kernel-features.h>.
10848         [!__NR_ftruncate64]: Remove conditional code.
10849         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10850         [__NR_ftruncate64]: Make code unconditional.
10851         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10852         * sysdeps/unix/sysv/linux/truncate64.c: Do not
10853         include <kernel-features.h>.
10854         [!__NR_ftruncate64]: Remove conditional code.
10855         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10856         [__NR_ftruncate64]: Make code unconditional.
10857         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10858         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
10859         include <kernel-features.h>.
10860         [!__NR_ftruncate64]: Remove conditional code.
10861         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10862         [__NR_ftruncate64]: Make code unconditional.
10863         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10864         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
10865         include <kernel-features.h>.
10866         [!__NR_ftruncate64]: Remove conditional code.
10867         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10868         [__NR_ftruncate64]: Make code unconditional.
10869         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
10870
10871         * configure.in (libc_cv_fpie): Weaken to a compile test using
10872         LIBC_TRY_CC_OPTION.
10873         * configure: Regenerated.
10874
10875 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10876
10877         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
10878         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
10879         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
10880         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
10881         Refreshed.
10882         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
10883         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
10884         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
10885         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
10886         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
10887         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
10888         Refreshed.
10889
10890 2012-05-27  David S. Miller  <davem@davemloft.net>
10891
10892         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
10893         (___Q_zero): New.
10894         (__Q_simulate_exceptions): Return void.  Change to simulate
10895         exceptions by writing into the %fsr.
10896         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
10897         (__Qp_handle_exceptions): Likewise.
10898         (numbers): Delete.
10899         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
10900         __Qp_handle_exceptions.
10901         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
10902         __Qp_handle_exceptions.
10903         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
10904         as unused and give dummy FP_RND_NEAREST initializer.
10905         (FP_INHIBIT_RESULTS): Define.
10906         (___Q_simulate_exceptions): Update declaration.
10907         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
10908         formatting.
10909         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
10910         as unused and give dummy FP_RND_NEAREST initializer.
10911         (__Qp_handle_exceptions): Update declaration.
10912         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
10913         formatting.
10914
10915 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
10916
10917         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
10918         the temporary FPU control word.
10919         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
10920         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
10921         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
10922         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
10923         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
10924         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
10925         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
10926         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
10927         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
10928         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
10929         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
10930
10931 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
10932
10933         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
10934         fields.
10935
10936 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
10937
10938         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
10939         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
10940         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
10941         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
10942         Likewise.
10943         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
10944         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
10945         Likewise.
10946
10947 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
10948
10949         * po/h.po: Update from translation team.
10950
10951 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
10952
10953         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
10954
10955         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
10956         handling of denormals.
10957         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
10958         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
10959         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
10960         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
10961         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
10962         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
10963         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
10964         Likewise.
10965
10966 2012-05-26  Marek Polacek  <polacek@redhat.com>
10967
10968         [BZ #14152]
10969         * math/libm-test.inc (fma_test): Don't always expect underflow
10970         exception.
10971
10972 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
10973
10974         [BZ #12416]
10975         * elf/tst-execstack.c: Include stackinfo.h.
10976         (do_test): Adjust test case to ensure that pthread_getattr_np
10977         behaviour remains the same after marking stack executable.
10978
10979 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
10980
10981         * sysdeps/unix/sysv/linux/kernel-features.h
10982         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
10983         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
10984         kernel-features.h.
10985         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10986         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10987         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
10988         kernel-features.h.
10989         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
10990         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
10991
10992 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
10993
10994         * configure.in: Define the default includes to being none.
10995         * configure: Regenerated.
10996
10997 2012-05-25  Roland McGrath  <roland@hack.frob.com>
10998
10999         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
11000         * sysdeps/x86_64/setjmp.S: Likewise.
11001         * sysdeps/i386/bsd-setjmp.S: Likewise.
11002         * sysdeps/i386/bsd-_setjmp.S: Likewise.
11003         * sysdeps/i386/setjmp.S: Likewise.
11004         * sysdeps/i386/__longjmp.S: Likewise.
11005         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
11006         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
11007
11008         * include/stap-probe.h: New file.
11009         * configure.in: Handle --enable-systemtap.
11010         * configure: Regenerated.
11011         * config.h.in (USE_STAP_PROBE): New #undef.
11012         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
11013         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
11014         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
11015
11016 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
11017
11018         [BZ #13717]
11019         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
11020         to 2.4.0 where earlier.
11021         * sysdeps/unix/sysv/linux/configure: Regenerated.
11022         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
11023         <kernel-features.h>.
11024         [__ASSUME_32BITUIDS]: Make code unconditional.
11025         [!__ASSUME_32BITUIDS]: Remove conditional code.
11026         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
11027         <kernel-features.h>.
11028         [__ASSUME_32BITUIDS]: Make code unconditional.
11029         [!__ASSUME_32BITUIDS]: Remove conditional code.
11030         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
11031         [__ASSUME_32BITUIDS]: Make code unconditional.
11032         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
11033         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
11034         <kernel-features.h>.
11035         [__ASSUME_32BITUIDS]: Make code unconditional.
11036         [!__ASSUME_32BITUIDS]: Remove conditional code.
11037         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
11038         <kernel-features.h>.
11039         [__ASSUME_32BITUIDS]: Make code unconditional.
11040         [!__ASSUME_32BITUIDS]: Remove conditional code.
11041         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
11042         <kernel-features.h>.
11043         [__ASSUME_32BITUIDS]: Make code unconditional.
11044         [!__ASSUME_32BITUIDS]: Remove conditional code.
11045         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
11046         <kernel-features.h>.
11047         [__ASSUME_32BITUIDS]: Make code unconditional.
11048         [!__ASSUME_32BITUIDS]: Remove conditional code.
11049         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
11050         <kernel-features.h>.
11051         [__ASSUME_32BITUIDS]: Make code unconditional.
11052         [!__ASSUME_32BITUIDS]: Remove conditional code.
11053         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
11054         <kernel-features.h>.
11055         [__ASSUME_32BITUIDS]: Make code unconditional.
11056         [!__ASSUME_32BITUIDS]: Remove conditional code.
11057         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
11058         <kernel-features.h>.
11059         [__ASSUME_32BITUIDS]: Make code unconditional.
11060         [!__ASSUME_32BITUIDS]: Remove conditional code.
11061         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
11062         <kernel-features.h>.
11063         [__ASSUME_32BITUIDS]: Make code unconditional.
11064         [!__ASSUME_32BITUIDS]: Remove conditional code.
11065         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
11066         <kernel-features.h>.
11067         [__ASSUME_32BITUIDS]: Make code unconditional.
11068         [!__ASSUME_32BITUIDS]: Remove conditional code.
11069         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
11070         <kernel-features.h>.
11071         [__ASSUME_32BITUIDS]: Make code unconditional.
11072         [!__ASSUME_32BITUIDS]: Remove conditional code.
11073         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
11074         <kernel-features.h>.
11075         [__NR_setresgid] (__setresgid): Do not declare.
11076         [__ASSUME_32BITUIDS]: Make code unconditional.
11077         [!__ASSUME_32BITUIDS]: Remove conditional code.
11078         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
11079         <kernel-features.h>.
11080         [__NR_setresuid] (__setresuid): Do not declare.
11081         [__ASSUME_32BITUIDS]: Make code unconditional.
11082         [!__ASSUME_32BITUIDS]: Remove conditional code.
11083         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
11084         <kernel-features.h>.
11085         [__ASSUME_32BITUIDS]: Make code unconditional.
11086         [!__ASSUME_32BITUIDS]: Remove conditional code.
11087         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
11088         <kernel-features.h>.
11089         [__ASSUME_32BITUIDS]: Make code unconditional.
11090         [!__ASSUME_32BITUIDS]: Remove conditional code.
11091         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
11092         <kernel-features.h>.
11093         [__ASSUME_32BITUIDS]: Make code unconditional.
11094         [!__ASSUME_32BITUIDS]: Remove conditional code.
11095         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
11096         <kernel-features.h>.
11097         [__ASSUME_32BITUIDS]: Make code unconditional.
11098         [!__ASSUME_32BITUIDS]: Remove conditional code.
11099         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
11100         <kernel-features.h>.
11101         [__ASSUME_32BITUIDS]: Make code unconditional.
11102         [!__ASSUME_32BITUIDS]: Remove conditional code.
11103         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
11104         <kernel-features.h>.
11105         [__ASSUME_32BITUIDS]: Make code unconditional.
11106         [!__ASSUME_32BITUIDS]: Remove conditional code.
11107         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
11108         <kernel-features.h>.
11109         [__ASSUME_32BITUIDS]: Make code unconditional.
11110         [!__ASSUME_32BITUIDS]: Remove conditional code.
11111         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
11112         <kernel-features.h>.
11113         [__ASSUME_32BITUIDS]: Make code unconditional.
11114         [!__ASSUME_32BITUIDS]: Remove conditional code.
11115         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
11116         <kernel-features.h>.
11117         [__ASSUME_32BITUIDS]: Make code unconditional.
11118         [!__ASSUME_32BITUIDS]: Remove conditional code.
11119         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
11120         <kernel-features.h>.
11121         [__ASSUME_32BITUIDS]: Make code unconditional.
11122         [!__ASSUME_32BITUIDS]: Remove conditional code.
11123         * sysdeps/unix/sysv/linux/kernel-features.h
11124         (__ASSUME_SETRESUID_SYSCALL): Remove.
11125         (__ASSUME_SETRESGID_SYSCALL): Likewise.
11126         (__ASSUME_32BITUIDS): Likewise.
11127         (__ASSUME_LDT_WORKS): Likewise.
11128         (__ASSUME_O_DIRECTORY): Likewise.
11129         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
11130         architecture but not kernel version.
11131         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
11132         (__ASSUME_MMAP2_SYSCALL): Likewise.
11133         (__ASSUME_STAT64_SYSCALL): Likewise.
11134         (__ASSUME_IPC64): Likewise.
11135         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
11136         <kernel-features.h>.
11137         [__ASSUME_32BITUIDS]: Make code unconditional.
11138         [!__ASSUME_32BITUIDS]: Remove conditional code.
11139         * sysdeps/unix/sysv/linux/opendir.c: Do not include
11140         <kernel-features.h>.
11141         [__ASSUME_O_DIRECTORY]: Make code unconditional.
11142         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
11143         132096]: Remove conditional code.
11144         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
11145         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
11146         <kernel-features.h>.
11147         [__ASSUME_32BITUIDS]: Make code unconditional.
11148         [!__ASSUME_32BITUIDS]: Remove conditional code.
11149         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
11150         <kernel-features.h>.
11151         [__ASSUME_32BITUIDS]: Make code unconditional.
11152         [!__ASSUME_32BITUIDS]: Remove conditional code.
11153         * sysdeps/unix/sysv/linux/setegid.c: Do not include
11154         <kernel-features.h>.
11155         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
11156         unconditional.
11157         (__setresgid): Do not declare.
11158         [__ASSUME_32BITUIDS]: Make code unconditional.
11159         [!__ASSUME_32BITUIDS]: Remove conditional code.
11160         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
11161         <kernel-features.h>.
11162         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
11163         unconditional.
11164         (__setresuid): Do not declare.
11165         [__ASSUME_32BITUIDS]: Make code unconditional.
11166         [!__ASSUME_32BITUIDS]: Remove conditional code.
11167         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
11168         <kernel-features.h>.
11169         [__ASSUME_32BITUIDS]: Make code unconditional.
11170         [!__ASSUME_32BITUIDS]: Remove conditional code.
11171         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
11172         <kernel-features.h>.
11173         [__ASSUME_32BITUIDS]: Make code unconditional.
11174         [!__ASSUME_32BITUIDS]: Remove conditional code.
11175
11176 2012-05-25  Richard Henderson  <rth@twiddle.net>
11177
11178         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
11179         dl_hwcap to ifunc resolver.
11180         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
11181         elf_ifunc_invoke.
11182         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
11183         dl_hwcap to ifunc resolver.
11184         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
11185
11186 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
11187
11188         [BZ #14153]
11189         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
11190         for |x| <= 2**-26, not 2**-57.
11191         * math/libm-test.inc (acos_test): Do not allow spurious underflow
11192         exception.
11193
11194 2012-05-24  Jeff Law  <law@redhat.com>
11195
11196         * stdio-common/Makefile (tests): Add bug25.
11197         * stdio-common/bug25.c: New test.
11198
11199 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11200
11201         [BZ #13576]
11202         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
11203         multiple of MALLOC_ALIGNMENT in size.
11204         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
11205
11206 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
11207
11208         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
11209         Require >= 256.
11210         (FILENAME_MAX): Use macro-int-constant.
11211         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
11212         (_IOFBF): Use macro-int-constant.
11213         (_IOLBF): Likewise.
11214         (_IONBF): Likewise.
11215         (SEEK_CUR): Likewise.
11216         (SEEK_END): Likewise.
11217         (SEEK_SET): Likewise.
11218         (TMP_MAX): Likewise.
11219         (EOF): Use macro-int-constant.  Require < 0.
11220         (NULL): Use macro-constant.  Require == 0.
11221         (stdin): Require type to be FILE *.
11222         (stdout): Likewise.
11223         (stderr): Likewise.
11224         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
11225         macro-int-constant.
11226         (EXIT_SUCCESS): Likewise.
11227         (NULL): Use macro-constant.  Require == 0.
11228         (RAND_MAX): Use macro-int-constant.
11229         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
11230         [C99-based standards] (strtof): Require function.
11231         [C99-based standards] (strtold): Likewise.
11232         [C99-based standards] (strtoll): Likewise.
11233         [C99-based standards] (strtoull): Likewise.
11234         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
11235         [ISO || ISO99 || ISO11] (limits.h): Likewise.
11236         [ISO || ISO99 || ISO11] (math.h): Likewise.
11237         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
11238         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
11239         [ISO || ISO99 || ISO11] (*_t): Do not allow.
11240
11241 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
11242
11243         [BZ #14132]
11244         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
11245         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
11246         * intl/dgettext.c (DCGETTEXT): Likewise.
11247         * intl/gettext.c (DCGETTEXT): Likewise.
11248         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
11249         * posix/regex_internal.h (gettext): Likewise.
11250         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
11251         Remove declaration.
11252         * include/argz.h (__argz_count_internal)
11253         (__argz_stringify_internal): Remove declaration.
11254         (__argz_count, __argz_stringify): Declare hidden proto.
11255         * intl/dcgettext.c: Remove use of INTDEF.
11256         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
11257         * string/argz-stringify.c: Likewise.
11258         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
11259         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
11260         Declare hidden proto.
11261         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
11262         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
11263         Declare hidden proto.
11264         * include/stdio.h (__asprintf_internal): Don't declare.
11265         (__asprintf): Don't define as macro.  Declare hidden proto.
11266         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
11267         (__fsetlocking): Declare hidden proto.
11268         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
11269         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
11270         hidden proto.
11271         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
11272         (_IO_setlinebuf): Remove use of INTUSE.
11273         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
11274         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
11275         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
11276         Remove declaration.
11277         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
11278         (_IO_do_flush): Remove use of INTUSE.
11279         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
11280         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
11281         (_IO_adjust_column, _IO_least_wmarker)
11282         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
11283         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
11284         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
11285         (_IO_default_doallocate, _IO_wdefault_doallocate)
11286         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
11287         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
11288         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
11289         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
11290         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
11291         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
11292         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
11293         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
11294         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
11295         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
11296         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
11297         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
11298         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
11299         proto.
11300         (_IO_flush_all_internal, _IO_adjust_column_internal)
11301         (_IO_default_uflow_internal, _IO_default_finish_internal)
11302         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
11303         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
11304         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
11305         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
11306         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
11307         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
11308         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
11309         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
11310         (_IO_file_close_internal, _IO_file_close_it_internal)
11311         (_IO_file_underflow_internal, _IO_file_overflow_internal)
11312         (_IO_file_init_internal, _IO_file_attach_internal)
11313         (_IO_file_fopen_internal, _IO_file_read_internal)
11314         (_IO_file_sync_internal, _IO_file_seek_internal)
11315         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
11316         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
11317         (_IO_str_underflow_internal, _IO_str_overflow_internal)
11318         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
11319         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
11320         (_IO_list_all_internal, _IO_link_in_internal)
11321         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
11322         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
11323         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
11324         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
11325         (_IO_do_write_internal, _IO_padn_internal)
11326         (_IO_getline_info_internal, _IO_getline_internal)
11327         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
11328         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
11329         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
11330         (_IO_vfscanf_internal, _IO_vfprintf_internal)
11331         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
11332         (_IO_init_internal, _IO_un_link_internal): Don't declare.
11333         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
11334         with libc_hidden_ver, remove use of INTUSE.
11335         * libio/genops.c: Likewise.
11336         * libio/freopen.c: Likewise.
11337         * libio/freopen64.c: Likewise.
11338         * libio/iofclose.c: Likewise.
11339         * libio/iofdopen.c: Likewise.
11340         * libio/iofflush.c: Likewise.
11341         * libio/iofflush_u.c: Likewise.
11342         * libio/iofgets.c: Likewise.
11343         * libio/iofgets_u.c: Likewise.
11344         * libio/iofopen.c: Likewise.
11345         * libio/iofopncook.c: Likewise.
11346         * libio/iofread.c: Likewise.
11347         * libio/iofread_u.c: Likewise.
11348         * libio/ioftell.c: Likewise.
11349         * libio/iofwrite.c: Likewise.
11350         * libio/iogetline.c: Likewise.
11351         * libio/iogets.c: Likewise.
11352         * libio/iogetwline.c: Likewise.
11353         * libio/iopadn.c: Likewise.
11354         * libio/iopopen.c: Likewise.
11355         * libio/ioseekoff.c: Likewise.
11356         * libio/ioseekpos.c: Likewise.
11357         * libio/iosetbuffer.c: Likewise.
11358         * libio/iosetvbuf.c: Likewise.
11359         * libio/ioungetc.c: Likewise.
11360         * libio/ioungetwc.c: Likewise.
11361         * libio/iovdprintf.c: Likewise.
11362         * libio/iovsprintf.c: Likewise.
11363         * libio/iovsscanf.c: Likewise.
11364         * libio/memstream.c: Likewise.
11365         * libio/obprintf.c: Likewise.
11366         * libio/oldfileops.c: Likewise.
11367         * libio/oldiofclose.c: Likewise.
11368         * libio/oldiofdopen.c: Likewise.
11369         * libio/oldiofopen.c: Likewise.
11370         * libio/oldiopopen.c: Likewise.
11371         * libio/oldstdfiles.c: Likewise.
11372         * libio/putc.c: Likewise.
11373         * libio/setbuf.c: Likewise.
11374         * libio/setlinebuf.c: Likewise.
11375         * libio/stdfiles.c: Likewise.
11376         * libio/strops.c: Likewise.
11377         * libio/vasprintf.c: Likewise.
11378         * libio/vscanf.c: Likewise.
11379         * libio/vsnprintf.c: Likewise.
11380         * libio/vswprintf.c: Likewise.
11381         * libio/wfiledoalloc.c: Likewise.
11382         * libio/wfileops.c: Likewise.
11383         * libio/wgenops.c: Likewise.
11384         * libio/wmemstream.c: Likewise.
11385         * libio/wstrops.c: Likewise.
11386         * libio/__fpurge.c: Likewise.
11387         * libio/__fsetlocking.c: Likewise.
11388         * assert/assert.c: Likewise.
11389         * debug/fgets_chk.c: Likewise.
11390         * debug/fgets_u_chk.c: Likewise.
11391         * debug/fread_chk.c: Likewise.
11392         * debug/fread_u_chk.c: Likewise.
11393         * debug/gets_chk.c: Likewise.
11394         * debug/obprintf_chk.c: Likewise.
11395         * debug/vasprintf_chk.c: Likewise.
11396         * debug/vdprintf_chk.c: Likewise.
11397         * debug/vsnprintf_chk.c: Likewise.
11398         * debug/vsprintf_chk.c: Likewise.
11399         * malloc/mtrace.c: Likewise.
11400         * misc/error.c: Likewise.
11401         * misc/syslog.c: Likewise.
11402         * stdio-common/asprintf.c: Likewise.
11403         * stdio-common/fxprintf.c: Likewise.
11404         * stdio-common/getw.c: Likewise.
11405         * stdio-common/isoc99_fscanf.c: Likewise.
11406         * stdio-common/isoc99_scanf.c: Likewise.
11407         * stdio-common/isoc99_vfscanf.c: Likewise.
11408         * stdio-common/isoc99_vscanf.c: Likewise.
11409         * stdio-common/isoc99_vsscanf.c: Likewise.
11410         * stdio-common/printf-prs.c: Likewise.
11411         * stdio-common/printf_fp.c: Likewise.
11412         * stdio-common/printf_fphex.c: Likewise.
11413         * stdio-common/printf_size.c: Likewise.
11414         * stdio-common/putw.c: Likewise.
11415         * stdio-common/scanf.c: Likewise.
11416         * stdio-common/sprintf.c: Likewise.
11417         * stdio-common/tmpfile.c: Likewise.
11418         * stdio-common/vfprintf.c: Likewise.
11419         * stdio-common/vfscanf.c: Likewise.
11420         * stdlib/strfmon_l.c: Likewise.
11421         * sunrpc/openchild.c: Likewise.
11422         * sunrpc/xdr_stdio.c: Likewise.
11423         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
11424         * sysdeps/mach/hurd/tmpfile.c: Likewise.
11425
11426 2012-05-24  Roland McGrath  <roland@hack.frob.com>
11427
11428         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
11429
11430         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
11431         in the third column, to generate for the shared library an IFUNC
11432         that uses _dl_vdso_vsym.
11433         * Makerules (COMPILE.c, compile-stdin.c): New variables.
11434         * Makeconfig (object-suffixes-noshared): New variable.
11435
11436         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
11437         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
11438         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
11439         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
11440
11441         [BZ #14132]
11442         * include/sys/time.h (__gettimeofday): Remove macro.
11443         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
11444         * time/gettimeofday.c (__gettimeofday): Remove #undef.
11445         Remove INTDEF.
11446         (__gettimeofday): Add libc_hidden_def.
11447         (gettimeofday): Add libc_hidden_weak.
11448         * sysdeps/mach/gettimeofday.c: Likewise.
11449         * sysdeps/posix/gettimeofday.c: Likewise.
11450         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
11451         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
11452         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
11453         (__gettimeofday_internal): Remove strong_alias.
11454         (__gettimeofday): Add libc_hidden_def.
11455         (gettimeofday): Add libc_hidden_weak.
11456         * sysdeps/unix/syscalls.list (gettimeofday):
11457         Remove __gettimeofday_internal alias.
11458
11459 2012-05-24  Daniel Jacobowitz  <drow@false.org>
11460             H.J. Lu  <hongjiu.lu@intel.com>
11461
11462         [BZ #12495]
11463         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
11464         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
11465         (largebin_index_32_big): New.
11466         (largebin_index): Use it for 16-byte alignment.
11467         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
11468         correction with front_misalign.
11469
11470 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
11471
11472         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
11473         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
11474         Likewise.
11475         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
11476         Likewise.
11477         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
11478         Likewise.
11479         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
11480         Likewise.
11481         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
11482         Likewise.
11483         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
11484         Likewise.
11485         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
11486         Likewise.
11487         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
11488         Likewise.
11489         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
11490         Likewise.
11491         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
11492         Likewise.
11493         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
11494         Likewise.
11495         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
11496         Likewise.
11497
11498         * scripts/data/c++-types-x32-linux-gnu.data: New file.
11499         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
11500
11501 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
11502
11503         [BZ #10846]
11504         [BZ #14036]
11505         * math/libm-test.inc (exp_test): Add test from bug 14036.
11506         (pow_test): Add test from bug 10846.
11507
11508         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
11509         and other flags.
11510         (special_function): Do not include flags in test name.
11511         (parse_args): Likewise.
11512         * sysdeps/i386/fpu/libm-test-ulps: Update.
11513         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
11514         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
11515         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
11516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11517
11518         * math/gen-libm-test.pl (%beautify): Add entries for underflow
11519         exceptions.
11520         * math/libm-test.inc ("Philosophy"): Update comment about
11521         exception testing.
11522         (UNDERFLOW_EXCEPTION): New macro.
11523         (UNDERFLOW_EXCEPTION_OK): Likewise.
11524         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
11525         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
11526         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
11527         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
11528         (INVALID_EXCEPTION_OK): Update value.
11529         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
11530         (OVERFLOW_EXCEPTION_OK): Likewise.
11531         (IGNORE_ZERO_INF_SIGN): Likewise.
11532         (test_exceptions): Handle underflow exceptions.
11533         (acos_test): Update for underflow exception expectations.
11534         (cexp_test): Likewise.
11535         (clog_test): Likewise.
11536         (clog10_test): Likewise.
11537         (csqrt_test): Likewise.
11538         (ctan_test): Likewise.
11539         (ctanh_test): Likewise.
11540         (exp_test): Likewise.
11541         (exp10_test): Likewise.
11542         (exp2_test): Likewise.
11543         (expm1_test): Likewise.
11544         (fma_test): Likewise.
11545         (j0_test): Likewise.
11546         (jn_test): Likewise.
11547         (nexttoward_test): Likewise.
11548         (pow_test): Likewise.
11549         (scalbn_test): Likewise.
11550         (scalbln_test): Likewise.
11551         (tan_test): Likewise.
11552         (y1_test): Likewise.
11553         * sysdeps/i386/fpu/libm-test-ulps: Update.
11554         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11555
11556 2012-05-23  David S. Miller  <davem@davemloft.net>
11557
11558         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
11559         (__libc_sigaction): Remove unused local variables.
11560
11561 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11562
11563         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
11564
11565 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
11566
11567         mktime: avoid signed integer overflow
11568         * time/mktime.c (__mktime_internal): Do not mishandle the case
11569         where diff == INT_MIN.
11570
11571         mktime: simplify computation of average
11572         * time/mktime.c (ranged_convert): Use new time_t_avg function
11573         instead of rolling our own (probably-slower) code.
11574
11575         mktime: do not assume signed right shift propagates sign bit
11576         * time/mktime.c (isdst_differ): New static function.
11577         (__mktime_internal): No need to normalize tm_isdst now.
11578         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
11579         tm_isdst values.
11580
11581         mktime: merge another wrapv change from gnulib
11582         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
11583         from some compilers.
11584
11585         mktime: remove incorrect attempt at unusual arithmetics
11586         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
11587         The code didn't really work on such machines anyway.
11588         (TYPE_MINIMUM): Assume two's complement.
11589         (twos_complement_arithmetic): Verify that long_int and time_t
11590         are two's complement (or unsigned, in the latter case).
11591
11592         mktime: check signed shifts on long_int and time_t, too
11593         * time/mktime.c (SHR): Check that shifts work as desired
11594         on the types long_int and time_t too, as SHR is used on
11595         such types.
11596
11597         mktime: do not assume 'long' is wide enough
11598         * time/mktime.c (verify): Move decl up.
11599         (long_int): New type.
11600         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
11601         to remove assumption in the code that 'long' is wide enough to
11602         store year values.  This assumption is not true on x32 and on
11603         some non-glibc platforms.
11604
11605         mktime: merge wrapv change from gnulib
11606         * time/mktime.c (WRAPV): New macro.
11607         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
11608         (guess_time_tm, __mktime_internal): Do not assume that signed
11609         integer overflow wraps around; modern compilers generate code
11610         where this assumption is no longer valid.
11611
11612 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11613
11614         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11615         Replace "jmp L(pseudo_end)" with "ret".
11616         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
11617         Likewise.
11618
11619 2012-05-23  Andreas Jaeger  <aj@suse.de>
11620
11621         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
11622         * sysdeps/unix/sysv/linux/poll.c: Remove file.
11623
11624 2012-05-23  Andreas Jaeger  <aj@suse.de>
11625             Maximilian Attems  <max@stro.at>
11626
11627         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
11628         New macros.
11629
11630 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
11631
11632         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
11633         code so that pseudo_end is just ret and the stack pointer is
11634         correct also for static library in error case.
11635
11636 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
11637
11638         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
11639         move to syscalls.list.
11640         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
11641         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
11642         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
11643         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
11644
11645         * manual/install.texi (Running make install): Do not mention Linux
11646         kernel version for which pt_chown is not needed.
11647         (Linux): Do not mention problems with nscd with 2.0 kernels.
11648         * INSTALL: Regenerated.
11649
11650 2012-05-23  Andreas Jaeger  <aj@suse.de>
11651
11652         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
11653         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
11654         macro.
11655         * sysdeps/unix/sysv/linux/s390/bits/mman.h
11656         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11657         * sysdeps/unix/sysv/linux/sh/bits/mman.h
11658         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11659         * sysdeps/unix/sysv/linux/i386/bits/mman.h
11660         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11661         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
11662         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11663         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
11664         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
11665         * sysdeps/unix/sysv/linux/bits/in.h
11666         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
11667
11668 2012-05-22  Roland McGrath  <roland@hack.frob.com>
11669
11670         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
11671         (PREPARE_VERSION): Just use assert instead, it will be elided
11672         under [NDEBUG] anyway.
11673
11674 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11675
11676         * sysdeps/unix/sysv/linux/Makefile: Include
11677         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
11678         (sysdep_routines): Remove sysctl.
11679         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
11680         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
11681         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
11682         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
11683         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
11684
11685 2012-05-22  Andreas Jaeger  <aj@suse.de>
11686
11687         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
11688         that pseudo_end is just ret and the stack pointer is correct also
11689         for static library in error case.
11690
11691 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
11692
11693         [BZ #14122]
11694         * nss/nsswitch.c (defconfig_entries): New variable.
11695         (__nss_database_lookup): Don't leak defconfig entries.
11696         (nss_parse_service_list): Don't leak on error paths.
11697         (free_database_entries): New function.
11698         (free_defconfig): New function.
11699         (free_mem): Move common code to free_database_entries.
11700
11701 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11702
11703         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
11704         Add arch_prctl.
11705         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
11706
11707         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
11708         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
11709         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
11710         New macro.
11711         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
11712         (INTERNAL_SYSCALL_TYPES): Likewise.
11713         (LOAD_ARGS_TYPES_[1-6]): Likewise.
11714         (LOAD_REGS_TYPES_[1-6]): Likewise.
11715         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
11716         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
11717
11718 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11719
11720         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
11721         copysignl for GLIBC_2_0.
11722         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
11723         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
11724         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
11725         logbl for GLIBC_2_0.
11726         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
11727         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
11728
11729 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11730
11731         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
11732         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
11733
11734         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
11735         Use "neg %eax".
11736
11737         * time/mktime.c: Update copyright years.
11738
11739 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11740
11741         mktime: merge comment-quoting-style change from gnulib
11742         * time/mktime.c: Quote 'like this' in comments.
11743         The GNU coding standards suggest that we no longer quote `like this',
11744         as "`" and "'" are typically rendered asymmetrically nowadays.
11745         The typical gnulib style is to quote 'like this' when quoting
11746         code, and "like this" when quoting English.
11747
11748         * time/mktime.c (compile-command): Add "-I.".
11749
11750         mktime: merge mktime-internal.h change from gnulib
11751         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
11752
11753         mktime: merge time_r change from gnulib
11754         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
11755
11756         mktime: merge DEBUG change from gnulib
11757         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
11758         case system <time.h> has a #define.
11759
11760         mktime: merge <sys/types.h> change from gnulib
11761         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
11762         since <time.t> is now guaranteed to define time_t.
11763
11764         mktime: merge HAVE_CONFIG_H change from gnulib
11765         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
11766
11767 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
11768
11769         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11770         Use "neg %eax".
11771
11772         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
11773         __rlim_t cast.
11774         (struct rusage): Use anonymous union to pad each field to
11775         __syscall_slong_t.
11776
11777 2012-05-21  David S. Miller  <davem@davemloft.net>
11778
11779         * Makefules (o-iterator): Remove .s cases.
11780         (compile-command.s): Delete.
11781         (COMPILE.s): Delete.
11782         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
11783
11784 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
11785
11786         * configure.in (libc_cv_predef_stack_protector): Only consider
11787         "foobar" and "__stack_chk_fail" lines in libc_undefs.
11788         * configure: Regenerated.
11789
11790 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11791
11792         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
11793         New macro.  Use R*LP on int and pointer.
11794         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
11795         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
11796         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
11797         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
11798
11799         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
11800         [__WORDSIZE_TIME64_COMPAT32] instead of
11801         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
11802         (struct utmp): Likewise.
11803         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
11804         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
11805         Renamed to ...
11806         (__WORDSIZE_TIME64_COMPAT32): This.
11807         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
11808         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
11809         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
11810         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
11811         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
11812         (__WORDSIZE_TIME64_COMPAT32): New macro.
11813
11814 2012-05-21  Andreas Jaeger  <aj@suse.de>
11815
11816         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
11817         only if [SHARED]. Add prototype for __wcschr_ia32.
11818
11819 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11820
11821         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
11822         of %rbp unmolested in the jmp_buf while mangling the low bits.
11823         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
11824         unmolested high bits of %rbp while demangling the low bits.
11825         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
11826
11827 2012-05-21  Andreas Jaeger  <aj@suse.de>
11828
11829         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
11830         * sunrpc/svc_simple.c: Use it for registerrpc.
11831         * sunrpc/xcrypt.c: Use it for passwd2des.
11832
11833         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
11834
11835 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11836
11837         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
11838         Don't define if [__SYSCALL_WORDSIZE != 32].
11839         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
11840         New macro.
11841
11842 2012-05-21  Bruno Haible  <bruno@clisp.org>
11843             Andreas Jaeger  <aj@suse.de>
11844
11845         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
11846         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
11847         inptr and inend for must_buffer_ch.
11848         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
11849         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
11850         * stdio-common/Makefile (tests): Remove bug15.
11851         (bug15-ENV): Remove macro.
11852         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
11853         anymore.
11854
11855 2012-05-19  Andreas Jaeger  <aj@suse.de>
11856             Roland McGrath  <roland@hack.frob.com>
11857
11858         * manual/contrib.texi: Completely rewritten. It contains now an
11859         alphabetical list of contributors and their contributions.
11860
11861 2012-05-21  Richard Henderson  <rth@twiddle.net>
11862
11863         * misc/getauxval.c (__getauxval): Use unsigned long int.
11864         * misc/sys/auxv.h: Include <sys/cdefs.h>.
11865         (getauxval): Use unsigned long int.
11866
11867 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
11868
11869         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
11870
11871 2012-05-21  Roland McGrath  <roland@hack.frob.com>
11872
11873         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
11874         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
11875         __alignof__ (long double).
11876
11877 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11878
11879         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11880
11881 2012-05-20  Richard Henderson  <rth@twiddle.net>
11882
11883         * misc/getauxval.c: New file.
11884         * misc/sys/auxv.h: New file.
11885         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
11886         (routines): Add getauxval.
11887         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
11888         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
11889         * elf/dl-sysdep.c (_dl_auxv): Remove.
11890         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
11891         * elf/dl-support.c (_dl_auxv): New variable.
11892         (_dl_aux_init): Initialize it.
11893         * manual/startup.texi (Auxiliary Vector): New node.
11894         * sysdeps/generic/bits/hwcap.h: New file.
11895         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
11896         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
11897         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
11898         * sysdeps/sparc/sysdep.h: ... here.  Include it.
11899         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
11900         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
11901         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11902         Update.
11903         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
11904         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
11905         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
11906         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
11907         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
11908         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
11909         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
11910         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
11911
11912 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11913
11914         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11915
11916 2012-05-19  David S. Miller  <davem@davemloft.net>
11917
11918         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11919
11920 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
11921
11922         [BZ #14123]
11923         * math/s_ccosh.c: Include <float.h>
11924         (__ccosh): Avoid internal overflow calculating sinh and cosh
11925         values before multiplying by sin and cos values.
11926         * math/s_ccoshf.c: Likewise.
11927         * math/s_ccoshl.c: Likewise.
11928         * math/s_csin.c: Likewise.
11929         * math/s_csinf.c: Likewise.
11930         * math/s_csinl.c: Likewise.
11931         * math/s_csinh.c: Likewise.
11932         * math/s_csinhf.c: Likewise.
11933         * math/s_csinhl.c: Likewise.
11934         * math/libm-test.inc (ccos_test): Add more tests.
11935         (ccosh_test): Likewise.
11936         (csin_test): Likewise.
11937         (csinh_test): Likewise.
11938         * sysdeps/i386/fpu/libm-test-ulps: Update.
11939         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11940
11941 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
11942
11943         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
11944         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
11945
11946         * sysdeps/x86_64/x32/_itoa.h: Add comment.
11947
11948 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
11949
11950         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
11951         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
11952         * sysdeps/powerpc/soft-fp/Versions: Likewise.
11953         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
11954         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
11955         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
11956         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
11957         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
11958         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
11959         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
11960         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
11961         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
11962         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
11963         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
11964         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
11965         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
11966         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
11967         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
11968         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
11969         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
11970         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
11971         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
11972         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
11973         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
11974         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
11975         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
11976         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
11977         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
11978         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
11979         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
11980         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
11981
11982 2012-05-18  Andreas Jaeger  <aj@suse.de>
11983
11984         * csu/.gitignore: Delete.
11985
11986 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11987
11988         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
11989         (timex): Use __syscall_slong_t.
11990
11991 2012-05-18  Andreas Jaeger  <aj@suse.de>
11992             Carlos O'Donell  <carlos_odonell@mentor.com>
11993
11994         * manual/install.texi (Configuring and compiling): Update
11995         description about files modified in the source directory.
11996         * INSTALL: Regenerated.
11997
11998 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
11999
12000         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
12001         value.  Use "or" to set return value to -1.
12002         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
12003         negate return value.
12004
12005 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12006
12007         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
12008         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
12009         failure if the compiler has Graphite support disabled.
12010         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
12011         Likewise.
12012         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
12013         CFLAGS-memmove.c): Likewise.
12014         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
12015         Likewise.
12016
12017 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
12018
12019         * sysdeps/x86_64/x32/_itoa.h: New file.
12020
12021         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
12022         getdents system call only if kernel and user dirents have the
12023         same d_ino and d_off.
12024
12025         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
12026         LLONG_MAX != LONG_MAX.
12027         (_itoa_word): Use _ITOA_WORD_TYPE on value.
12028         (_fitoa_word): Likewise.
12029
12030         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
12031         years.
12032         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
12033         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
12034         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
12035
12036         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
12037         include <bits/wordsize.h>.  Check __x86_64__ instead of
12038         __WORDSIZE.
12039         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
12040         if __x86_64__ is defined.  Use anonymous union on fpstate.
12041
12042         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
12043         anonymous union.
12044
12045 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
12046
12047         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
12048         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
12049         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
12050         Refer to _rtld_local_ro instead of _rtld_global_ro.
12051         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
12052         Likewise.
12053         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
12054         Likewise.
12055         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
12056         Likewise.
12057         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
12058         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
12059         of _rtld_global, and rtld_progname instead of _dl_argv[0].
12060
12061         * sysdeps/powerpc/powerpc32/dl-machine.c
12062         (__elf_machine_runtime_setup) [PROF]: Don't reference
12063         _dl_prof_resolve.
12064
12065 2012-05-18  Andreas Jaeger  <aj@suse.de>
12066
12067         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
12068         function only available for GCCs before 3.4 since GCC 3.4
12069         introduced a builtin.
12070         (lrint): Likewise.
12071         (llrintf): Likewise.
12072         (llrint): Likewise.
12073         (fmaxf): Likewise.
12074         (fmax): Likewise.
12075         (fminf): Likewise.
12076         (fmin): Likewise.
12077         (rint): Likewise.
12078         (rintf): Likewise.
12079         (nearbyint): Likewise.
12080         (nearbyintf): Likewise.
12081         (ceil): Likewise.
12082         (ceilf): Likewise.
12083         (floor): Likewise.
12084         (floorf): Likewise.
12085
12086 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12087
12088         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
12089         on both fields and cast pointer to __syscall_ulong_t.
12090
12091         * bits/types.h (__fsword_t): New type.
12092         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
12093         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
12094         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12095         (__FSWORD_T_TYPE): Likewise.
12096         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12097         (__FSWORD_T_TYPE): Likewise.
12098         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12099         (__FSWORD_T_TYPE): Likewise.
12100         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
12101         (__FSWORD_T_TYPE): Likewise.
12102         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
12103         __SWORD_TYPE with __fsword_t.
12104         (statfs64): Likewise.
12105
12106 2012-05-17  David S. Miller  <davem@davemloft.net>
12107
12108         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
12109
12110 2012-05-17  Andreas Jaeger  <aj@suse.de>
12111
12112         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
12113         warning.
12114
12115 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12116
12117         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
12118
12119 2012-05-17  Andreas Jaeger  <aj@suse.de>
12120
12121         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
12122         when it is used.
12123
12124 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
12125
12126         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
12127
12128 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
12129
12130         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
12131         * sysdeps/x86_64/tst-mallocalign1.c: New file.
12132
12133 2012-05-17  Andreas Jaeger  <aj@suse.de>
12134             Carlos O'Donell  <carlos_odonell@mentor.com>
12135
12136         [BZ #14059]
12137         * sysdeps/x86_64/multiarch/init-arch.h
12138         (bit_YMM_Usable): Rename to...
12139         (bit_AVX_Usable): ... this.
12140         (bit_FMA4_Usable): New macro.
12141         (bit_XMM_state): New macro.
12142         (bit_YMM_state): New macro.
12143         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
12144         [__ASSEMBLER__] (index_AVX_Usable): ... this.
12145         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
12146         (CPUID_OSXSAVE): New macro.
12147         (CPUID_AVX): New macro.
12148         (CPUID_FMA4): New macro.
12149         (index_YMM_Usable): Rename to...
12150         (index_AVX_Usable): ... this.
12151         (HAS_AVX): Use HAS_ARCH_FEATURE.
12152         (HAS_FMA4): Likewise.
12153         (HAS_YMM_USABLE): Remove.
12154         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12155         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
12156         are present.
12157         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
12158         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
12159         * sysdeps/x86_64/multiarch/Makefile: Likewise.
12160         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
12161         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
12162
12163 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
12164
12165         * math/libm-test.c: Support platforms without multiple rounding modes.
12166         * math/bug-nextafter.c: Support platforms without FP exceptions.
12167         * math/bug-nexttoward.c: Likewise.
12168         * math/test-fenv.c: Likewise.
12169         * math/test-misc.c: Likewise.
12170         * stdlib/bug-getcontext.c: Likewise.
12171
12172 2012-05-17  Andreas Jaeger  <aj@suse.de>
12173
12174         * manual/examples/search.c (critter_cmp): Change signature to
12175         avoid warnings.
12176         * manual/string.texi (Collation Functions): Likewise.
12177
12178 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12179
12180         * bits/types.h: Fold copyright years.
12181         * bits/typesizes.h: Likewise.
12182         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
12183         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
12184         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
12185         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
12186         * time/time.h: Likewise.
12187
12188 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
12189
12190         [BZ #208]
12191         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
12192         in instead of returning them.  Return void.
12193         (__libc_mallinfo): Accumulate over all arenas.
12194         (__malloc_stats): Adjust for change in int_mallinfo interface.
12195
12196 2012-05-16  Roland McGrath  <roland@hack.frob.com>
12197
12198         [BZ #10375]
12199         * configure.in (NM): Add AC_CHECK_TOOL for it.
12200         (libc_extra_cflags): New substituted variable.
12201         Check for -fstack-protector being used implicitly.
12202         * configure: Regenerated.
12203         * config.make.in (config-extra-cflags): New variable,
12204         gets @libc_extra_cflags@.
12205         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
12206
12207         [BZ #10375]
12208         * configure.in: Check for _FORTIFY_SOURCE being predefined.
12209         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
12210         * configure: Regenerated.
12211         * config.make.in (CPPUNDEFS): New substituted variable.
12212         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
12213         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
12214         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
12215
12216 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12217
12218         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
12219         (mq_attr): Use __syscall_slong_t.
12220
12221 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12222
12223         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
12224         Check __x86_64__ instead of __WORDSIZE.
12225         (_STAT_VER_LINUX): Likewise.
12226         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
12227         __syscall_ulong_t and __syscall_slong_t.
12228         (stat64): Likewise.
12229
12230 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12231
12232         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
12233
12234 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12235
12236         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
12237
12238 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12239
12240         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
12241         __syscall_ulong_t.
12242
12243         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
12244         include <bits/wordsize.h>.  Check __x86_64__ instead of
12245         __WORDSIZE.
12246         (greg_t): Use "__extension__ long long int" if __x86_64__ is
12247         defined.
12248         (mcontext_t): Replace "unsigned long" with "unsigned long long".
12249
12250         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
12251         include <bits/wordsize.h>.  Check __x86_64__ instead of
12252         __WORDSIZE.
12253         (user_regs_struct): Use "__extension__ unsigned long long"
12254         instead of "unsigned long" if __x86_64__ is defined.
12255         (user): Likewise.  Pad after pointer field if __ILP32__ is
12256         defined.
12257
12258 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
12259
12260         * configure.in (makeinfo): Require version 4.5 or later.  Allow
12261         versions 5 to 9.
12262         * configure: Regenerated.
12263         * manual/install.texi (texinfo): Increase version requirement to
12264         4.5 or later.
12265         * INSTALL: Regenerated.
12266
12267         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
12268
12269 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
12270
12271         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
12272
12273         * sysdeps/x86_64/x32/ffs.c: New file.
12274
12275         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
12276         __syscall_ulong_t.
12277         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
12278         defined.  Use __syscall_ulong_t.
12279         (shminfo): Use __syscall_ulong_t.
12280         (shm_info): Likewise.
12281
12282         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
12283         __syscall_ulong_t.
12284
12285         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
12286         <bits/wordsize.h>.
12287         (msgqnum_t): Use __syscall_ulong_t.
12288         (msglen_t): Likewise.
12289         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
12290         __syscall_ulong_t.
12291
12292         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
12293         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
12294
12295         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
12296
12297         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
12298         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
12299
12300         * sysvipc/sys/msg.h (msgbuf): Replace long int with
12301         __syscall_slong_t.
12302
12303         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
12304         include <bits/wordsize.h>.  Check __x86_64__ instead of
12305         __WORDSIZE.
12306
12307         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
12308         "unsigned long long int" if __x86_64__ is defined.
12309         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
12310
12311         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
12312         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
12313         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
12314
12315         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
12316         <stdint.h>.
12317         (GET_PC): Cast to uintptr_t first.
12318         (GET_FRAME): Likewise.
12319         (GET_STACK): Likewise.
12320
12321         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
12322         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
12323         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
12324         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
12325         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
12326         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
12327         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
12328         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
12329         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
12330         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
12331         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
12332         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
12333         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
12334         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
12335         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
12336         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
12337         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
12338         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
12339         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
12340         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
12341         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
12342         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
12343         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
12344         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
12345         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
12346         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
12347         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
12348         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
12349         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
12350
12351 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
12352
12353         * Makerules (+depfiles): Also collect depfiles from .oS in
12354         $(extra-objs).
12355         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
12356         .oS, $(libnldbl-routines)).
12357
12358         * Makerules (native-compile-mkdep-flags): Define.
12359         * sunrpc/Makefile (extra-objs): Add $(addprefix
12360         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
12361         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
12362         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
12363         calling $(make-target-directory).
12364
12365 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12366
12367         * bits/types.h (__snseconds_t): Removed.
12368         * time/time.h (struct timespec): Replace __snseconds_t with
12369         __syscall_slong_t.
12370         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
12371         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
12372         Likewise.
12373         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12374         (__SNSECONDS_T_TYPE): Likewise.
12375         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12376         (__SNSECONDS_T_TYPE): Likewise.
12377         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12378         (__SNSECONDS_T_TYPE): Likewise.
12379
12380 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12381
12382         * sysdeps/mach/hurd/bits/typesizes.h
12383         (__SYSCALL_SLONG_TYPE): New macro.
12384         (__SYSCALL_ULONG_TYPE): Likewise.
12385
12386 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12387
12388         * bits/types.h (__syscall_slong_t): New type.
12389         (__syscall_ulong_t): Likewise.
12390
12391         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
12392         (__SYSCALL_ULONG_TYPE): Likewise.
12393         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12394         (__SYSCALL_SLONG_TYPE): Likewise.
12395         (__SYSCALL_ULONG_TYPE): Likewise.
12396         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12397         (__SYSCALL_SLONG_TYPE): Likewise.
12398         (__SYSCALL_ULONG_TYPE): Likewise.
12399         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12400         (__SYSCALL_SLONG_TYPE): Likewise.
12401         (__SYSCALL_ULONG_TYPE): Likewise.
12402
12403 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12404
12405         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
12406         Add sigaltstack-offsets.sym.
12407         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
12408         <sigaltstack-offsets.h>.
12409         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
12410         longjmp_msg pointer.
12411         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
12412         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
12413         signal stack.
12414         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
12415
12416 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
12417
12418         * elf/stackguard-macros.h: Remove file.
12419         * sysdeps/generic/stackguard-macros.h: New file.
12420         * sysdeps/i386/stackguard-macros.h: Likewise.
12421         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
12422         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
12423         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
12424         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
12425         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
12426         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
12427         * sysdeps/x86_64/stackguard-macros.h: Likewise.
12428         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
12429         <elf/stackguard-macros.h>.
12430
12431         [BZ #14109]
12432         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
12433         __aligned__ in attribute.
12434         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
12435         (gregset_t): Likewise.
12436
12437 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12438
12439         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
12440         * sysdeps/x86_64/64/Implies-after: Here.  New file.
12441         * sysdeps/x86_64/x32/Implies-after: New file.
12442
12443 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12444
12445         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
12446         and access return value for _dl_profile_fixup.  Use R10_LP to
12447         load frame size.
12448
12449 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12450
12451         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
12452
12453 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12454
12455         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
12456         * sysdeps/x86_64/x32/sysdep.h: New file.
12457
12458 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12459
12460         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
12461         * sysdeps/x86_64/setjmp.S: Likewise.
12462
12463 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12464
12465         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
12466         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
12467         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
12468         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
12469         remove unused global constant.
12470
12471 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
12472
12473         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
12474         include of <not-cancel.h>.
12475
12476 2012-05-15  Roland McGrath  <roland@hack.frob.com>
12477
12478         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
12479
12480 2012-05-15  Jeff Law  <law@redhat.com>
12481             Andreas Jaeger  <aj@suse.de>
12482
12483         [BZ #13594]
12484         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
12485         out from...
12486         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
12487         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
12488         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
12489         code changing __hst_map_handle.map.
12490
12491 2012-05-15  Roland McGrath  <roland@hack.frob.com>
12492
12493         * configure.in (sysnames): Look for Implies-before and Implies-after
12494         files.
12495         * configure: Regenerated.
12496
12497 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12498
12499         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
12500         8-byte data alignment with LP_SIZE alignment.
12501
12502 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12503
12504         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
12505         into R10_LP.
12506
12507 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12508
12509         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
12510
12511 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12512
12513         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
12514         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
12515         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
12516         Likewise.
12517         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
12518
12519 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12520
12521         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
12522         (stackinfo_sub_sp): Likewise.
12523
12524 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12525
12526         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
12527         RAX_LP.
12528
12529 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12530
12531         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
12532         into R*_LP.
12533
12534 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12535
12536         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
12537         sizes into R*_LP.
12538
12539 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12540
12541         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
12542
12543 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12544
12545         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
12546         into R11_LP and load __x86_64_shared_cache_size_half into
12547         R8_LP.
12548
12549 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
12550
12551         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
12552         R8_LP.
12553
12554 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
12555
12556         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
12557         logb for POWER7.
12558         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
12559         logbf for POWER7.
12560         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
12561         logbl for POWER7.
12562         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
12563         powerpc32/power7/fpu/s_logb.c via #include.
12564         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
12565         powerpc32/power7/fpu/s_logbf.c via #include.
12566         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
12567         powerpc32/power7/fpu/s_logbl.c via #include.
12568
12569 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
12570
12571         * README.libm: Remove file.
12572
12573 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12574
12575         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
12576         count for x32.  Use R*_LP and omit operand-size suffix.
12577
12578 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12579
12580         * shlib-versions: Move x86_64-.*-linux.* entries to ...
12581         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
12582         * sysdeps/x86_64/x32/shlib-versions: New file.
12583
12584 2012-05-14  Roland McGrath  <roland@hack.frob.com>
12585
12586         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
12587         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
12588         Use _dl_fatal_printf instead.
12589
12590 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12591
12592         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
12593         set if not set by the user.  Do not allow for being unset.
12594         * sysdeps/unix/sysv/linux/configure: Regenerated.
12595
12596 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12597
12598         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
12599         the `q' suffix from lea and replace .quad with ASM_ADDR.
12600
12601 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12602
12603         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
12604         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
12605         instead of $17.
12606         (PTR_DEMANGLE): Likewise.
12607
12608 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12609
12610         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
12611         (LP_OP): Likewise.
12612         (ASM_ADDR): Likewise.
12613         (RAX_LP): Likewise.
12614         (RBP_LP): Likewise.
12615         (RBX_LP): Likewise.
12616         (RCX_LP): Likewise.
12617         (RDI_LP): Likewise.
12618         (RSI_LP): Likewise.
12619         (RSP_LP): Likewise.
12620         (R8_LP): Likewise.
12621         (R9_LP): Likewise.
12622         (R10_LP): Likewise.
12623         (R10_LP): Likewise.
12624         (R11_LP): Likewise.
12625         (R12_LP): Likewise.
12626         (R13_LP): Likewise.
12627         (R14_LP): Likewise.
12628         (R15_LP): Likewise.
12629
12630 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12631
12632         * sysdeps/x86_64/x32/dl-machine.h: New file.
12633
12634 2012-05-14  Andreas Jaeger  <aj@suse.de>
12635
12636         * manual/Makefile (subdir): Remove export of subdir.
12637         (all): Remove target.
12638         (.PHONY): Remove all from list.
12639         (mkinstalldirs): Remove.
12640         (.PHONY): Remove installdirs from list.
12641         ($(inst_infodir)/libc.info): Use make-target-directory.
12642         (installdirs): Remove.
12643         (subdir_%): Remove.
12644         (glibc-targets): Remove.
12645         (lib): Remove.
12646         (stubs): Remove.
12647         ($(objpfx)stubs ../po/manual.pot): Remove.
12648         ($(objpfx)stamp%): Remove.
12649         (make-target-directory): Remove.
12650         (subdir_install): Remove.
12651         (routines): Remove.
12652         (aux): Remove.
12653         (sources): Remove.
12654         (objects): Remove.
12655         (headers): Remove.
12656
12657         [BZ #13750]
12658         * manual/.gitignore: Remove, it's not needed anymore.
12659         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
12660         all files in it.
12661         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
12662         directory.
12663         (texis): Renamed to $(objpfx)texis.
12664         (texis-path): New, contains path to generated files.
12665         (chapters.%): Use texis-path for complete path, add extra argument
12666         libc-texinfo.sh.
12667         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
12668         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
12669         (summary,texi, stamp-summary): Use complete path of
12670         files. Generate files in build dir.
12671         (dir-add.texi): Build in build dir.
12672         (libm-err.texi,stamp-libm-err): Likewise.
12673         (version.texi, stamp-version): Likewise.
12674         (.%c.texi): Likewise.
12675         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
12676         (mostlyclean): Remove target.
12677         (realclean): Remove target.
12678         (generated): Add new variable with contents from mostlyclean and
12679         realclean, remove entries duplicated in common-mostlyclean, add
12680         stamp-libm-err and stamp-version.
12681         (generated-dirs): Add libc directory.
12682         ($(inst_infodir)/libc.info): Install files from build dir.
12683
12684         * manual/install.texi (Configuring and compiling): Adjust since
12685         the info files are not part of the tar ball anymore.
12686
12687 2012-05-14  Andreas Jaeger  <aj@suse.de>
12688
12689         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
12690         variable.
12691
12692 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
12693
12694         [BZ #13717]
12695         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
12696         to 2.2.0 where earlier.
12697         * sysdeps/unix/sysv/linux/configure: Regenerated.
12698         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
12699         Remove conditional code.
12700         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
12701         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
12702         Remove conditional code.
12703         [!__NR_lchown]: Likewise.
12704         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12705         [__NR_lchown]: Likewise.
12706         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
12707         comment referencing __ASSUME_LCHOWN_SYSCALL.
12708         * sysdeps/unix/sysv/linux/i386/sigaction.c
12709         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12710         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12711         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
12712         Remove conditional code.
12713         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
12714         (__protocol_available): Remove #if 0 code.
12715         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
12716         conditional code.
12717         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
12718         * sysdeps/unix/sysv/linux/kernel-features.h
12719         (__ASSUME_GETCWD_SYSCALL): Don't define.
12720         (__ASSUME_REALTIME_SIGNALS): Likewise.
12721         (__ASSUME_PREAD_SYSCALL): Likewise.
12722         (__ASSUME_PWRITE_SYSCALL): Likewise.
12723         (__ASSUME_POLL_SYSCALL): Likewise.
12724         (__ASSUME_LCHOWN_SYSCALL): Likewise.
12725         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
12726         non-SPARC.
12727         (__ASSUME_SIOCGIFNAME): Don't define.
12728         (__ASSUME_MSG_NOSIGNAL): Likewise.
12729         (__ASSUME_SENDFILE): Define unconditionally.
12730         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
12731         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
12732         conditional code.
12733         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
12734         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
12735         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12736         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12737         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
12738         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
12739         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
12740         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
12741         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12742         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12743         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
12744         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12745         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12746         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
12747         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12748         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
12750         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12751         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
12753         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12754         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12755         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
12756         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
12757         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
12759         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12760         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12761         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
12762         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12763         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12764         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
12765         Remove conditional code.
12766         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12767         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12768         Remove conditional code.
12769         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12770         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
12771         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
12772         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12773         Remove conditional code.
12774         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12775         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
12776         Remove conditional code.
12777         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12778         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
12779         Remove conditional code.
12780         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12781         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
12782         Remove conditional code.
12783         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
12784         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
12785         Remove conditional code.
12786         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12787         * sysdeps/unix/sysv/linux/sh/pwrite64.c
12788         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
12789         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
12790         * sysdeps/unix/sysv/linux/sigaction.c
12791         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12792         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12793         * sysdeps/unix/sysv/linux/sigpending.c
12794         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12795         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12796         * sysdeps/unix/sysv/linux/sigprocmask.c
12797         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12798         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12799         * sysdeps/unix/sysv/linux/sigsuspend.c
12800         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
12801         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
12802         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
12803         (__libc_missing_rt_sigs): Remove.
12804         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
12805         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
12806         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
12807         Remove conditional code.
12808         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
12809         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
12810         return 1.
12811         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
12812         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
12813         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
12814         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
12815
12816 2012-05-14  Andreas Jaeger  <aj@suse.de>
12817
12818         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
12819         it's not used in glibc.
12820         (__coshm1): Likewise.
12821         (__acosh1p): Likewise.
12822         (__sgn): Likewise.
12823
12824         * manual/string.texi (Copying and Concatenation): Add missing
12825         variable in concat example.
12826         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
12827
12828 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12829
12830         [BZ #14103]
12831         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
12832         __builtin_clzl with __builtin_clzll.
12833
12834 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
12835
12836         [BZ #14104]
12837         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
12838         libc_freeres_ptr.
12839
12840 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12841
12842         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
12843         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
12844         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
12845         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
12846
12847 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
12848
12849         * NEWS: Update ia64 info.
12850
12851 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
12852
12853         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
12854         used as bcopy.
12855
12856 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
12857
12858         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
12859         * sysdeps/unix/syscalls.list (dup3): Likewise.
12860         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
12861         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
12862
12863 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12864
12865         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
12866         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
12867
12868 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
12869
12870         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
12871         thread pointer.
12872         (TLS_IE): Use mov/add instead of movq/addq to load thread
12873         pointer.
12874         (TLS_GD_PREFIX): New.
12875         (TLS_GD): Use it.
12876
12877 2012-05-11  David S. Miller  <davem@davemloft.net>
12878
12879         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
12880         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
12881         (_FPU_SETCW): Likewise.
12882
12883 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12884
12885         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
12886         is 32-byte aligned.
12887
12888 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
12889
12890         [BZ #11837]
12891         * iconvdata/gb18030.c: Update tables.
12892         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
12893         characters specially.
12894         (BODY for TO_LOOP): Add encoding of missing ranges.
12895
12896 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
12897
12898         [BZ #13673]
12899         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
12900         * sysdeps/mach/hurd/dup3.c: Likewise.
12901         * sysdeps/mach/hurd/readlinkat.c: Likewise.
12902         * sysdeps/powerpc/memmove.c:: Likewise.
12903
12904 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12905
12906         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
12907         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
12908
12909 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
12910
12911         * elf/elf.h (R_X86_64_RELATIVE64): New.
12912         (R_X86_64_NUM): Updated.
12913         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
12914         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
12915         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
12916         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
12917         tst-quad1pie tst-quad2pie
12918         (modules-names): Add tst-quadmod1 tst-quadmod2.
12919         ($(objpfx)tst-quad1): New dependency.
12920         ($(objpfx)tst-quad2): Likewise.
12921         ($(objpfx)tst-quad1pie): Likewise.
12922         ($(objpfx)tst-quad2pie): Likewise.
12923         * sysdeps/x86_64/tst-quad1.c: New file.
12924         * sysdeps/x86_64/tst-quad1pie.c: New file.
12925         * sysdeps/x86_64/tst-quad2.c: Likewise.
12926         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
12927         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
12928         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
12929         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
12930         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
12931
12932 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12933
12934         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
12935         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
12936         * streams/stropts.h (t_scalar_t): Define type.
12937
12938         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
12939         (_PATH_PRESERVE): Set to "/var/lib".
12940         (_PATH_RWHODIR): Set to "/var/spool/rwho".
12941
12942         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
12943         instead of int.
12944
12945         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
12946         if __dir_mkfile succeeded.
12947
12948         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
12949         checking for _hurd_dtablesize.  Unlock it right after having
12950         finished _hurd_dtable allocation.
12951
12952 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
12953
12954         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
12955         * sysdeps/mach/hurd/configure: Regenerated.
12956         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
12957         special-casing to...
12958         * sysdeps/gnu/configure.in: ... this new file.
12959         * sysdeps/unix/sysv/linux/configure: Regenerated.
12960         * sysdeps/gnu/configure: New generated file.
12961
12962         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
12963         for Linux: use nsec instead of usec, as well as:
12964         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
12965         members of type struct timespec.
12966         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
12967         New macros.
12968         (struct stat64): Likewise.
12969         (_STATBUF_ST_NSEC): New macro.
12970         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
12971
12972         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
12973         __strtoul_internal rather than strtoul.
12974
12975 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12976
12977         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
12978         and reject them.
12979
12980 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12981
12982         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
12983         which preserves existing values.
12984         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
12985
12986 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
12987
12988         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
12989         TIMEOUT values.  Return EINVAL for NFDS values either negative or
12990         greater than FD_SETSIZE.
12991
12992 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
12993
12994         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
12995         allocated, call __vm_protect to finish enabling the existing space, and
12996         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
12997         allocate the remainder.
12998
12999 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13000
13001         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
13002         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
13003
13004 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13005
13006         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
13007         sysdeps/mach/hurd/readlink.c.
13008
13009         * posix/tst-sysconf.c (posix_options): Only use
13010         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
13011         _POSIX_SYNCHRONIZED_IO when they are defined
13012         * sysdeps/mach/hurd/bits/posix_opt.h:
13013         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
13014         (_XOPEN_REALTIME): Undefine macro.
13015         (_XOPEN_REALTIME_THREADS): Undefine macro.
13016         (_XOPEN_SHM): Undefine macro.
13017         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
13018         macro to -1.
13019         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
13020         macro to -1.
13021         (_POSIX_ASYNC_IO): Undefine macro.
13022         (_POSIX_PRIORITIZED_IO): Undefine macro.
13023         (_POSIX_SPIN_LOCKS): Define macro to -1.
13024
13025         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
13026         SA_NODEFER, SA_RESETHAND.
13027         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
13028         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
13029         F_DUPFD_CLOEXEC.
13030
13031 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13032
13033         * elf/Makefile (pldd-modules): Define unconditionally.
13034
13035 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13036
13037         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
13038
13039 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13040
13041         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
13042         Return ENOENT when name is empty.
13043         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
13044
13045 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13046
13047         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
13048
13049         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
13050
13051 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13052
13053         Fix mlock in all cases except non-readable pages.
13054         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
13055         instead of VM_PROT_ALL as parameter to __vm_wire function.
13056
13057         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
13058         (__mkdir): When path is `/', just fail with EEXIST.
13059         * sysdeps/mach/hurd/mkdirat.c: Likewise.
13060
13061 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13062
13063         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
13064         <sys/uio.h> (for writev).
13065         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
13066         and <sys/param.h> (for MIN).
13067
13068 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
13069
13070         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
13071         REQUESTED_TIME.  Properly set the remaining time and return EINTR
13072         if interrupted.
13073
13074 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13075
13076         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
13077         Depend on against $(link-rpcuserlibs).
13078
13079 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13080
13081         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
13082         (__libc_stack_end): Do not use attribute_relro.
13083         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
13084         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
13085         to libthread-provided value.
13086         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
13087         attribute_relro.
13088
13089 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13090
13091         [BZ #3748]
13092         * bits/libc-lock.h (__libc_once_get): New macro.
13093         * sysdeps/mach/bits/libc-lock.h: Likewise.
13094         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
13095         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
13096         instead of using implementation details.
13097
13098         * libio/fileops.c: Unconditionally include <kernel-features.h>.
13099         * libio/freopen.c: Likewise.
13100         * libio/freopen64.c: Likewise.
13101         * misc/syslog.c: Likewise.
13102         * nscd/connections.c: Likewise.
13103         * nscd/netgroupcache.c: Likewise.
13104         * sysdeps/posix/getcwd.c: Likewise.
13105
13106 2012-05-10  Roland McGrath  <roland@hack.frob.com>
13107
13108         * math/w_ilogbf.c: Add #include <limits.h>.
13109
13110 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13111
13112         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
13113         path instead of returning without unlocking.
13114
13115         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
13116         immediate-write ioctls.
13117         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
13118
13119 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13120
13121         * sysdeps/mach/hurd/i386/init-first.c (init): Use
13122         __builtin_frame_address instead of making assumptions about the
13123         location of the return address relative to DATA.  Force early load of
13124         the return address.
13125         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
13126         __builtin_frame_address.
13127
13128         dup3 for GNU Hurd.
13129         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
13130         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
13131         implement dup3 and do some further code clean-ups.
13132         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
13133         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
13134
13135 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13136
13137         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
13138
13139         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
13140         HURD_CRITICAL_END around holding _hurd_dtable_lock.
13141         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
13142         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
13143         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
13144         d->port.lock.
13145
13146         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
13147         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
13148         when handler == SIG_ERR, not when handler != SIG_ERR.
13149
13150 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13151
13152         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
13153         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
13154         definitions.
13155
13156         accept4 for GNU Hurd.
13157         * include/sys/socket.h (__libc_accept4): New prototype.
13158         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
13159         to implement __libc_accept4.
13160         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
13161         __libc_accept4.
13162         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
13163
13164         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
13165         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
13166         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
13167         signal-defines.sym.
13168
13169 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13170
13171         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
13172
13173 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
13174
13175         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
13176         assertion on O_CLOEXEC flag.
13177         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
13178         * hurd/intern-fd.c: Likewise.
13179         * hurd/port2fd.c: Likewise.
13180
13181 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13182
13183         [BZ #3906]
13184         * bits/in.h (IPV6_PKTINFO): Define new macro.
13185         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
13186
13187 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13188
13189         [BZ #13954]
13190         [BZ #13955]
13191         [BZ #13956]
13192         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
13193         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
13194         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
13195         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
13196         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
13197         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
13198         * math/libm-test.inc (logb_test) : Additional logb tests.
13199
13200 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
13201             Andreas Jaeger  <aj@suse.de>
13202
13203         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
13204         * configure: Regenerated.
13205         * config.h.in (LINK_OBSOLETE_RPC): New macro.
13206         * config.make.in (link-obsolete-rpc): New substituted variable.
13207         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
13208         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
13209         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
13210         (shared-only-routines): Don't set it under [link-obsolete-rpc],
13211         so that libc.a contains the symbols.
13212         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
13213         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
13214         * sunrpc/auth_none.c: Likewise.
13215         * sunrpc/auth_unix.c: Likewise.
13216         * sunrpc/authdes_prot.c: Likewise.
13217         * sunrpc/authuxprot.c: Likewise.
13218         * sunrpc/clnt_gen.c: Likewise.
13219         * sunrpc/clnt_perr.c: Likewise.
13220         * sunrpc/clnt_raw.c: Likewise.
13221         * sunrpc/clnt_simp.c: Likewise.
13222         * sunrpc/clnt_tcp.c: Likewise.
13223         * sunrpc/clnt_udp.c: Likewise.
13224         * sunrpc/clnt_unix.c: Likewise.
13225         * sunrpc/des_crypt.c: Likewise.
13226         * sunrpc/des_soft.c: Likewise.
13227         * sunrpc/get_myaddr.c: Likewise.
13228         * sunrpc/key_call.c: Likewise.
13229         * sunrpc/key_prot.c: Likewise.
13230         * sunrpc/netname.c: Likewise.
13231         * sunrpc/pm_getmaps.c: Likewise.
13232         * sunrpc/pm_getport.c: Likewise.
13233         * sunrpc/pmap_clnt.c: Likewise.
13234         * sunrpc/pmap_prot.c: Likewise.
13235         * sunrpc/pmap_prot2.c: Likewise.
13236         * sunrpc/pmap_rmt.c: Likewise.
13237         * sunrpc/publickey.c: Likewise.
13238         * sunrpc/rpc_cmsg.c: Likewise.
13239         * sunrpc/rpc_common.c: Likewise.
13240         * sunrpc/rpc_dtable.c: Likewise.
13241         * sunrpc/rpc_prot.c: Likewise.
13242         * sunrpc/rpc_thread.c: Likewise.
13243         * sunrpc/rtime.c: Likewise.
13244         * sunrpc/svc.c: Likewise.
13245         * sunrpc/svc_auth.c: Likewise.
13246         * sunrpc/svc_raw.c: Likewise.
13247         * sunrpc/svc_run.c: Likewise.
13248         * sunrpc/svc_tcp.c: Likewise.
13249         * sunrpc/svc_udp.c: Likewise.
13250         * sunrpc/svc_unix.c: Likewise.
13251         * sunrpc/svcauth_des.c: Likewise.
13252         * sunrpc/xcrypt.c: Likewise.
13253         * sunrpc/xdr.c: Likewise.
13254         * sunrpc/xdr_array.c: Likewise.
13255         * sunrpc/xdr_float.c: Likewise.
13256         * sunrpc/xdr_intXX_t.c: Likewise.
13257         * sunrpc/xdr_mem.c: Likewise.
13258         * sunrpc/xdr_rec.c: Likewise.
13259         * sunrpc/xdr_ref.c: Likewise.
13260         * sunrpc/xdr_sizeof.c: Likewise.
13261         * sunrpc/xdr_stdio.c: Likewise.
13262
13263 2012-05-10  Roland McGrath  <roland@hack.frob.com>
13264
13265         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
13266         change.  Update copyright years.
13267
13268 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
13269
13270         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
13271
13272 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
13273             Joseph Myers  <joseph@codesourcery.com>
13274             Paul Pluzhnikov  <ppluzhnikov@google.com>
13275
13276         [BZ #14012]
13277         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
13278         requiring rpcgen.
13279         [cross-compiling] (extra-libs): Likewise.
13280         [cross-compiling] (extra-libs-others): Likewise.
13281         [cross-compiling] (librpcsvc-routines): Likewise.
13282         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
13283         [cross-compiling] (omit-deps): Likewise.
13284         (sunrpc-CPPFLAGS): New variable.
13285         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
13286         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
13287         (cross-rpcgen-objs): New variable.
13288         (extra-objs): Append $(cross-rpcgen-objs).
13289         ($(cross-rpcgen-objs)): New rule.
13290         ($(objpfx)cross-rpcgen): Likewise.
13291         (rpcgen-cmd): Define to use $(built-program-file).  Expand
13292         comment.
13293         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
13294         ($(objpfx)x%.stmp): Likewise.
13295         * sunrpc/proto.h [IS_IN_build] (_): Define.
13296         [IS_IN_build] (_libc_intl_domainname): Likewise.
13297
13298 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
13299
13300         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
13301         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
13302         and R_X86_64_TPOFF64.
13303
13304 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
13305
13306         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
13307         sysdeps/unix/sysv/syscalls.list.
13308         (stime): Likewise.
13309         (utime): Likewise.
13310         * sysdeps/unix/sysv/syscalls.list: Remove file.
13311
13312 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
13313
13314         [BZ #3440]
13315         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
13316         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
13317         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
13318         (__LC_IDENTIFICATION): Make these macros useful in #if
13319         expressions, as required by C99.
13320
13321 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
13322
13323         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
13324         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
13325         after this.
13326
13327 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
13328
13329         * stdlib/longlong.h: Updated from GCC.
13330
13331 2012-05-09  Andreas Jaeger  <aj@suse.de>
13332
13333         * nscd/nscd.c (run_modes): Make named enum, reorder so that
13334         default is first entry.
13335         (run_mode): Set type.
13336         (main): Remove informal message about syslog.
13337         (options): Fix typo.
13338
13339         [BZ #14053]
13340         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
13341         to asm.
13342         (lrint): Likewise.
13343         (llrintf): Likewise.
13344         (llrint): Likewise.
13345         (rint): Likewise.
13346         (rintf): Likewise.
13347         (nearbyint): Likewise.
13348         (nearbyintf): Likewise.
13349
13350 2012-05-09  Andreas Jaeger  <aj@suse.de>
13351             Pedro Alves  <palves@redhat.com>
13352
13353         * nscd/nscd.c (run_mode): Use enum.
13354         (main): Cleanup coding style issue.
13355
13356 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
13357             Andreas Jaeger  <aj@suse.de>
13358
13359         * nscd/nscd.c (go_background): Replaced with...
13360         (run_mode): ... this.
13361         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
13362         (options): Add -F --foreground.
13363         (main): Implement it.
13364         (parse_opt): Parse it.
13365
13366 2012-05-09  Andreas Jaeger  <aj@suse.de>
13367
13368         [BZ #14083]
13369         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
13370         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
13371         -Wconversion warning.
13372         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
13373         Likewise.
13374
13375 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
13376
13377         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
13378         == 0.
13379         (LC_ALL): Use macro-int-constant.
13380         (LC_COLLATE): Likewise.
13381         (LC_CTYPE): Likewise.
13382         (LC_MESSAGES): Likewise.
13383         (LC_MONETARY): Likewise.
13384         (LC_NUMERIC): Likewise.
13385         (LC_TIME): Likewise.
13386         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
13387         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
13388         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13389         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
13390         Specify type.
13391         [C99-based standards] (float_t): Expect type.
13392         [C99-based standards] (double_t): Expect type.
13393         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
13394         type.
13395         [C99-based standards] (HUGE_VALL): Likewise.
13396         [C99-based standards] (INFINITY): Likewise.
13397         [C99-based standards] (NAN): Likewise.
13398         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
13399         [C99-based standards] (FP_NAN): Likewise.
13400         [C99-based standards] (FP_NORMAL): Likewise.
13401         [C99-based standards] (FP_SUBNORMAL): Likewise.
13402         [C99-based standards] (FP_ZERO): Likewise.
13403         [C99-based standards] (FP_FAST_FMA): Use
13404         optional-macro-int-constant.  Specify type.  Require == 1.
13405         [C99-based standards] (FP_FAST_FMAF): Likewise.
13406         [C99-based standards] (FP_FAST_FMAL): Likewise.
13407         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
13408         [C99-based standards] (FP_ILOGBNAN): Likewise.
13409         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
13410         Specify type.
13411         [C99-based standards] (MATH_ERREXCEPT): Likewise.
13412         [C99-based standards] (math_errhandling): Specify type.
13413         [ISO99 || ISO11] (signgam): Do not allow.
13414         [non-C99-based standards] (copysignf): Do not allow.
13415         [non-C99-based standards] (exp2f): Likewise.
13416         [non-C99-based standards] (log2f): Likewise.
13417         [non-C99-based standards] (modff): Allow.
13418         [non-C99-based standards] (erff): Do not allow.
13419         [non-C99-based standards] (erfcf): Likewise.
13420         [non-C99-based standards] (gammaf): Likewise.
13421         [non-C99-based standards] (hypotf): Likewise.
13422         [non-C99-based standards] (j0f): Likewise.
13423         [non-C99-based standards] (j1f): Likewise.
13424         [non-C99-based standards] (jnf): Likewise.
13425         [non-C99-based standards] (lgammaf): Likewise.
13426         [non-C99-based standards] (tgammaf): Likewise.
13427         [non-C99-based standards] (y0f): Likewise.
13428         [non-C99-based standards] (y1f): Likewise.
13429         [non-C99-based standards] (ynf): Likewise.
13430         [non-C99-based standards] (isnanf): Likewise.
13431         [non-C99-based standards] (acoshf): Likewise.
13432         [non-C99-based standards] (asinhf): Likewise.
13433         [non-C99-based standards] (atanhf): Likewise.
13434         [non-C99-based standards] (cbrtf): Likewise.
13435         [non-C99-based standards] (expm1f): Likewise.
13436         [non-C99-based standards] (ilogbf): Likewise.
13437         [non-C99-based standards] (log1pf): Likewise.
13438         [non-C99-based standards] (logbf): Likewise.
13439         [non-C99-based standards] (nextafterf): Likewise.
13440         [non-C99-based standards] (remainderf): Likewise.
13441         [non-C99-based standards] (rintf): Likewise.
13442         [non-C99-based standards] (scalbf): Likewise.
13443         [non-C99-based standards] (copysignl): Likewise.
13444         [non-C99-based standards] (exp2l): Likewise.
13445         [non-C99-based standards] (log2l): Likewise.
13446         [non-C99-based standards] (modfl): Allow.
13447         [non-C99-based standards] (erfl): Do not allow.
13448         [non-C99-based standards] (erfcl): Likewise.
13449         [non-C99-based standards] (gammal): Likewise.
13450         [non-C99-based standards] (hypotl): Likewise.
13451         [non-C99-based standards] (j0l): Likewise.
13452         [non-C99-based standards] (j1l): Likewise.
13453         [non-C99-based standards] (jnl): Likewise.
13454         [non-C99-based standards] (lgammal): Likewise.
13455         [non-C99-based standards] (tgammal): Likewise.
13456         [non-C99-based standards] (y0l): Likewise.
13457         [non-C99-based standards] (y1l): Likewise.
13458         [non-C99-based standards] (ynl): Likewise.
13459         [non-C99-based standards] (isnanl): Likewise.
13460         [non-C99-based standards] (acoshl): Likewise.
13461         [non-C99-based standards] (asinhl): Likewise.
13462         [non-C99-based standards] (atanhl): Likewise.
13463         [non-C99-based standards] (cbrtl): Likewise.
13464         [non-C99-based standards] (expm1l): Likewise.
13465         [non-C99-based standards] (ilogbl): Likewise.
13466         [non-C99-based standards] (log1pl): Likewise.
13467         [non-C99-based standards] (logbl): Likewise.
13468         [non-C99-based standards] (nextafterl): Likewise.
13469         [non-C99-based standards] (remainderl): Likewise.
13470         [non-C99-based standards] (rintl): Likewise.
13471         [non-C99-based standards] (scalbl): Likewise.
13472         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13473         [non-C99-based standards] (FP_*): Do not allow.
13474         [C99-based standards] (FP_*): Change to
13475         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
13476         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13477         allow.
13478         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
13479         (SIG_ERR): Likewise.
13480         [X/Open-based standards] (SIG_HOLD): Likewise.
13481         (SIG_IGN): Likewise.
13482         (SIGABRT): Use macro-int-constant.  Specify type.  Require
13483         positive value.
13484         (SIGFPE): Likewise.
13485         (SIGILL): Likewise.
13486         (SIGINT): Likewise.
13487         (SIGSEGV): Likewise.
13488         (SIGTER): Likewise.
13489         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
13490         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
13491         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
13492         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
13493         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
13494         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
13495         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
13496         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
13497         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
13498         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
13499         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
13500         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
13501         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
13502         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
13503         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
13504         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
13505         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
13506         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
13507         [X/Open-based standards] (SIGTRAP): Likewise.
13508         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
13509         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
13510         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
13511         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
13512         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13513         allow.
13514
13515 2012-05-08  Ian Wienand  <ianw@vmware.com>
13516
13517         [BZ #14080]
13518         * time/tzset.c (__tzset_parse_tz): Update default rules for
13519         daylight time changes in the Energy Policy Act of 2005.
13520
13521 2012-05-09  Andreas Jaeger  <aj@suse.de>
13522
13523         [BZ #13983]
13524         * elf/ldconfig.c (parse_conf): Change string to make clear that
13525         ldconfig only issued a warning if ld.so.conf does not exist.
13526
13527 2012-05-08  David S. Miller  <davem@davemloft.net>
13528
13529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
13530         movxtod instead of popping the value on the stack.
13531
13532         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13533
13534 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
13535
13536         * config.h.in: Add HAVE_ARM_PCS_VFP.
13537
13538 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
13539
13540         [BZ #13979]
13541         * include/features.h: Warn if user requests __FORTIFY_SOURCE
13542         checking but the checks are disabled for any reason.
13543
13544 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
13545
13546         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
13547         and ELF64_R_TYPE with ELFW(R_TYPE).
13548
13549 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
13550
13551         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
13552         (ulimit): Likewise.
13553
13554         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
13555         (settimeofday): Likewise.
13556
13557 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
13558
13559         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
13560         a struct th_u2 inside the union, and move tu_block/tu_code into
13561         a new th_u3 union of tu_block/tu_code inside of that.  Move
13562         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
13563         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
13564         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
13565         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
13566         (th_stuff): Change to th_u1.tu_stuff.
13567         (th_data): Define.
13568         (th_msg): Change to th_u1.th_u2.tu_data.
13569
13570 2012-05-07  David S. Miller  <davem@davemloft.net>
13571
13572         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13573
13574         [BZ #14074]
13575         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
13576         (SETUP_PIC_REG): Use it.
13577         (SETUP_PIC_REG_LEAF): Use it.
13578
13579 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
13580
13581         [BZ #13885]
13582         [BZ #13923]
13583         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13584         USE_AS_EXPM1L.
13585         (EXPL_FINITE): Likewise.
13586         (FLDLOG): Likewise.
13587         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13588         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13589         e_expl.S.
13590         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13591         USE_AS_EXPM1L.
13592         (EXPL_FINITE): Likewise.
13593         (FLDLOG): Likewise.
13594         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
13595         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
13596         e_expl.S.
13597         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
13598         test of -max_value argument for long double.
13599         * sysdeps/i386/fpu/libm-test-ulps: Update.
13600         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13601
13602 2012-05-06  David S. Miller  <davem@davemloft.net>
13603
13604         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
13605         quad soft-float symbols whose references which are compiler
13606         generated.
13607         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
13608
13609 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
13610
13611         [BZ #13884]
13612         [BZ #13914]
13613         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13614         USE_AS_EXP10L.
13615         (EXPL_FINITE): Likewise.
13616         (FLDLOG): Likewise.
13617         (c0): Likewise.
13618         (c1): Likewise.
13619         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13620         Adjust comments for base varying.
13621         (__expl_finite): Change alias to EXPL_FINITE.
13622         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
13623         e_expl.S.
13624         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
13625         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
13626         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
13627         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
13628         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
13629         USE_AS_EXP10L.
13630         (EXPL_FINITE): Likewise.
13631         (FLDLOG): Likewise.
13632         (c0): Likewise.
13633         (c1): Likewise.
13634         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
13635         Adjust comments for base varying.
13636         (__expl_finite): Change alias to EXPL_FINITE.
13637         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
13638         tests for bugs.
13639         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13640
13641         [BZ #14064]
13642         * math/libm-test.inc (check_float_internal): Correct ulp
13643         calculation for subnormal expected results.
13644
13645 2012-05-06  Andreas Jaeger  <aj@suse.de>
13646
13647         * Makeconfig (+math-flags): New, set to -frounding-math.
13648         (+cflags): Add +math-flags so that all of glibc gets compiled with
13649         it.
13650
13651         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
13652
13653 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
13654
13655         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
13656         Disable one test.
13657
13658         [BZ #13787]
13659         [BZ #13922]
13660         [BZ #14036]
13661         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
13662         (__ieee754_expl): Allow for and saturate large arguments.
13663         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
13664         (u_threshold): Likewise.
13665         (__exp): Call __ieee754_exp before checking for overflow and
13666         underflow.
13667         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
13668         (u_threshold): Likewise.
13669         (__expf): Call __ieee754_expf before checking for overflow and
13670         underflow.
13671         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
13672         (u_threshold): Likewise.
13673         (__expl): Call __ieee754_expl before checking for overflow and
13674         underflow.
13675         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
13676         (__ieee754_expl): Allow for and saturate large arguments.
13677         * math/libm-test.inc (exp_test): Add another test.  Do not allow
13678         missing overflow exception on overflow.
13679         (expm1_test): Do not allow missing overflow exception on overflow.
13680
13681         * sysdeps/i386/fpu/e_expl.c: Move to ...
13682         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
13683         rather than using inline asm.
13684         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
13685         * sysdeps/x86_64/fpu/e_expl.S: Copy from
13686         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
13687
13688         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
13689         (nice): Likewise.
13690         (poll): Likewise.
13691         (signal): Likewise.
13692         (time): Likewise.
13693         (times): Likewise.
13694
13695 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13696
13697         * sysdeps/unix/syscalls.list (adjtime): Add entry from
13698         sysdeps/unix/common/syscalls.list.
13699         (fchmod): Likewise.
13700         (fchown): Likewise.
13701         (ftruncate): Likewise.
13702         (getrusage): Likewise.
13703         (gettimeofday): Likewise.
13704         (setpgid): Likewise.
13705         (setregid): Likewise.
13706         (setreuid): Likewise.
13707         (sigaction): Likewise.
13708         (truncate): Likewise.
13709         (vhangup): Likewise.
13710         * sysdeps/unix/common/syscalls.list: Remove file.
13711         * sysdeps/unix/bsd/Implies: Don't include unix/common.
13712         * sysdeps/unix/sysv/linux/Implies: Likewise.
13713
13714 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
13715
13716         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
13717         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
13718         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
13719         Moved to ...
13720         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
13721         Here.
13722         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
13723         to ...
13724         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
13725         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
13726         to ...
13727         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
13728         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
13729         to ...
13730         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
13731         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
13732         to ...
13733         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
13734         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
13735         to ...
13736         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
13737         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
13738         to ...
13739         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
13740         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
13741         to ...
13742         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
13743         Here.
13744         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
13745         to ...
13746         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
13747         Here.
13748         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
13749         to ...
13750         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
13751         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
13752         Moved to ...
13753         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
13754         Here.
13755         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
13756         to ...
13757         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
13758
13759 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13760
13761         * sysdeps/unix/common/bits/dirent.h: Remove file.
13762         * sysdeps/unix/common/bits/fcntl.h: Likewise.
13763
13764         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
13765         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
13766         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
13767         * sysdeps/unix/bsd/isatty.c: Likewise.
13768         * sysdeps/unix/bsd/tcdrain.c: Likewise.
13769         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
13770         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
13771
13772 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13773
13774         [BZ #13563]
13775         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
13776         long double comparison inaccuracies.
13777         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
13778         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
13779
13780 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
13781
13782         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
13783         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
13784
13785 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
13786
13787         [BZ #14049]
13788         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
13789         nonzero digits before rounding a hex value.
13790         * stdlib/tst-strtod.c (tests): Add another test.
13791
13792 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13793
13794         * sysdeps/s390/fpu/libm-test-ulps: Update.
13795
13796 2012-05-03  Andreas Jaeger  <aj@suse.de>
13797
13798         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
13799         does not get optimized out.
13800         (malloc_opt_barrier): New.
13801
13802 2012-05-03  Andreas Jaeger  <aj@suse.de>
13803             Roland McGrath  <roland@hack.frob.com>
13804
13805         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
13806         intermediate file deletion.
13807         (generated): Add .symlist files.
13808
13809 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
13810
13811         [BZ #13775]
13812         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
13813         Redirect under this condition.
13814         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13815         [__USE_GNU] (__dprintf_chk): Not under this condition.
13816         [__USE_GNU] (__vdprintf_chk): Likewise.
13817         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
13818         under this condition.
13819         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
13820         [__USE_XOPEN2K8] (dprintf): Define under this condition.
13821         [__USE_XOPEN2K8] (vdprintf): Likewise.
13822         [__USE_GNU] (__dprintf_chk): Not under this condition.
13823         [__USE_GNU] (__vdprintf_chk): Likewise.
13824         [__USE_GNU] (dprintf): Likewise.
13825         [__USE_GNU] (vdprintf): Likewise.
13826
13827 2012-05-03  Roland McGrath  <roland@hack.frob.com>
13828
13829         * elf/Makefile (common-generated): Set this instead of generated for
13830         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
13831         $(all-built-dso)-derived lists.
13832
13833 2012-05-03  Andreas Jaeger  <aj@suse.de>
13834
13835         * sysdeps/i386/fpu/libm-test-ulps: Update.
13836
13837         * FAQ: Removed.
13838         * FAQ.in: Likewise.
13839         * scripts/gen-FAQ.pl: Likewise.
13840         * manual/install.texi (Installation): Point to online location of
13841         FAQ.
13842         * Makefile (files-for-dist): Remove FAQ.
13843         (FAQ): Remove.
13844
13845 2012-05-02  Allan McRae  <allan@archlinux.org>
13846
13847         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
13848         (LDFLAGS-reldepmod5.so): Likewise.
13849         (LDFLAGS-reldep6mod1.so): Likewise.
13850         (LDFLAGS-reldep6mod4.so): Likewise.
13851         (LDFLAGS-reldep8mod3.so): Likewise.
13852         (LDFLAGS-unload4mod1.so): Likewise.
13853         (LDFLAGS-unload4mod2.so): Likewise.
13854         (LDFLAGS-tst-initorder): Likewise.
13855         (LDFLAGS-tst-initordera2.so): Likewise.
13856         (LDFLAGS-tst-initordera3.so): Likewise.
13857         (LDFLAGS-tst-initordera4.so): Likewise.
13858         (LDFLAGS-tst-initorderb2.so): Likewise.
13859         (LDFLAGS-noload): Likewise.
13860         (LDFLAGS-next): Likewise.
13861         (LDFLAGS-order2mod1.so): Likewise.
13862         (LDFLAGS-order2mod2.so): Likewise.
13863         (LDFLAGS-tst-initorder2): Likewise.
13864         (LDFLAGS-tst-initorder2a.so): Likewise.
13865         (LDFLAGS-tst-initorder2b.so): Likewise.
13866         (LDFLAGS-tst-initorder2c.so): Likewise.
13867         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
13868
13869 2012-05-02  David S. Miller  <davem@davemloft.net>
13870
13871         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13872
13873 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
13874
13875         [BZ #14055]
13876         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
13877
13878 2012-05-02  Andreas Jaeger  <aj@suse.de>
13879
13880         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
13881         since we manipulate rounding mode.
13882         (CPPFLAGS-test-idouble.c): Likewise.
13883         (CPPFLAGS-test-ifloat.c): Likewise.
13884         (CFLAGS-test-ldouble.c): Likewise.
13885         (CFLAGS-test-double.c): Likewise.
13886         (CFLAGS-test-float.c): Likewise.
13887         (CFLAGS-test-misc.c): Likewise.
13888         (CFLAGS-test-test-fenv.c): Likewise.
13889
13890 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
13891
13892         [BZ #2550]
13893         [BZ #2570]
13894         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
13895         comparisons to determine direction to adjust input.
13896
13897 2012-05-01  Roland McGrath  <roland@hack.frob.com>
13898
13899         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
13900         output to the target.
13901
13902         * scripts/localplt.awk: New file.
13903         * elf/Makefile ($(objpfx)check-localplt): Target removed.
13904         (check-localplt-CFLAGS): Variable removed.
13905         ($(all-built-dso:=.jmprel)): New static pattern rule.
13906         (generated): Add those targets.
13907         (localplt-built-dso): New variable.
13908         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
13909
13910         * elf/check-localplt.c: File removed.
13911
13912         * scripts/check-execstack.awk: New file.
13913         * elf/Makefile ($(objpfx)check-execstack): Target removed.
13914         (check-execstack-CFLAGS): Variable removed.
13915         ($(objpfx)check-execstack.h): Target removed.
13916         ($(objpfx)execstack-default): New target.
13917         (generated): Add that instead of check-execstack.h.
13918         ($(all-built-dso:=.phdr)): New static pattern rule.
13919         (generated): Add those targets.
13920         * elf/check-execstack.c: File removed.
13921
13922         * scripts/check-textrel.awk: New file.
13923         * elf/Makefile ($(objpfx)check-textrel): Target removed.
13924         (check-textrel-CFLAGS): Variable removed.
13925         (all-built-dso): Use := to define.o
13926         ($(all-built-dso:=.dyn)): New static pattern rule.
13927         (generated): Add those targets.
13928         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
13929         * config.make.in (READELF): New substituted variable.
13930         * elf/check-textrel.c: File removed.
13931
13932 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
13933
13934         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
13935         allow.
13936         * conform/data/ctype.h-data [C99-based standards] (isblank):
13937         Expect function.
13938         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
13939         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
13940         [ISO || ISO99 || ISO11] (*_t): Do not allow.
13941         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
13942         Specify type.  Require positive value.
13943         (EILSEQ): Likewise.
13944         (ERANGE): Likewise.
13945         [ISO || POSIX] (EILSEQ): Do not expect.
13946         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
13947         Specify type.  Require positive value.
13948         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
13949         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
13950         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
13951         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
13952         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
13953         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
13954         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
13955         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
13956         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
13957         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
13958         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
13959         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
13960         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
13961         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
13962         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
13963         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
13964         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
13965         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
13966         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
13967         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
13968         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
13969         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
13970         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
13971         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
13972         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
13973         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
13974         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
13975         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
13976         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
13977         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
13978         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
13979         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
13980         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
13981         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
13982         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
13983         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
13984         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
13985         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
13986         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
13987         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
13988         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
13989         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
13990         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
13991         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
13992         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
13993         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
13994         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
13995         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
13996         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
13997         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
13998         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
13999         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
14000         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
14001         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
14002         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
14003         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
14004         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
14005         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
14006         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
14007         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
14008         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
14009         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
14010         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
14011         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
14012         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
14013         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
14014         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
14015         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
14016         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
14017         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
14018         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
14019         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
14020         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
14021         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
14022         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
14023         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
14024         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
14025         Require >= 2.
14026         (FLT_ROUNDS): Expect as macro, not constant.
14027         (FLT_MANT_DIG): Use macro-int-constant.
14028         (DBL_MANT_DIG): Likewise.
14029         (LDBL_MANT_DIG): Likewise.
14030         (FLT_DIG): Likewise.
14031         (DBL_DIG): Likewise.
14032         (LDBL_DIG): Likewise.
14033         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
14034         (DBL_MIN_EXP): Likewise.
14035         (LDBL_MIN_EXP): Likewise.
14036         (FLT_MAX_EXP): Use macro-int-constant.
14037         (DBL_MAX_EXP): Likewise.
14038         (LDBL_MAX_EXP): Likewise.
14039         (FLT_MAX_10_EXP): Likewise.
14040         (DBL_MAX_10_EXP): Likewise.
14041         (LDBL_MAX_10_EXP): Likewise.
14042         (FLT_MAX): Use macro-constant.
14043         (DBL_MAX): Likewise.
14044         (LDBL_MAX): Likewise.
14045         (FLT_EPSILON): Use macro-constant.  Give upper bound.
14046         (DBL_EPSILON): Likewise.
14047         (LDBL_EPSILON): Likewise.
14048         (FLT_MIN): Likewise.
14049         (DBL_MIN): Likewise.
14050         (LDBL_MIN): Likewise.
14051         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
14052         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
14053         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
14054         [ISO11] (FLT_HAS_SUBNORM): Likewise.
14055         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
14056         [ISO11] (DBL_DECIMAL_DIG): Likewise.
14057         [ISO11] (FLT_DECIMAL_DIG): Likewise.
14058         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
14059         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
14060         [ISO11] (FLT_TRUE_MIN): Likewise.
14061         [ISO11] (LDBL_TRUE_MIN): Likewise.
14062         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14063         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
14064         (SCHAR_MIN): Use macro-int-constant.  Specify type.
14065         (SCHAR_MAX): Likewise.
14066         (UCHAR_MAX): Likewise.
14067         (CHAR_MIN): Likewise.
14068         (CHAR_MAX): Likewise.
14069         (MB_LEN_MAX): Use macro-int-constant.
14070         (SHRT_MIN): Use macro-int-constant.  Specify type.
14071         (SHRT_MAX): Likewise.
14072         (USHRT_MAX): Likewise.
14073         (INT_MAX): Likewise.
14074         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
14075         bound negative.
14076         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14077         bound with "U".
14078         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14079         bound with "L".
14080         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
14081         bound negative.  Suffix upper bound with "L".
14082         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
14083         bound with "UL".
14084         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
14085         Specify type.
14086         [C99-based standards] (LLONG_MAX): Likewise.
14087         [C99-based standards] (ULLONG_MAX): Likewise.
14088         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
14089         == 0.
14090         [ISO11] (max_align_t): Require type.
14091         [ISO || ISO99 || ISO11] (*_t): Do not allow.
14092
14093         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
14094         from $CFLAGS, without defining away __attribute__ calls.
14095         (checknamespace): Use $CFLAGS_namespace.
14096
14097         * conform/conformtest.pl (@keywords): Only include C99 keywords
14098         for standards based on C99 or C11.
14099
14100         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
14101         Disable tests.
14102         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
14103         UNIX98]: Likewise.
14104
14105         * conform/conformtest.pl: Handle "macro-int-constant" and test for
14106         usability of symbols in #if.
14107
14108         * conform/conformtest.pl: If macro or constant types start
14109         "promoted:", expect the symbol to be of the following type
14110         promoted by the integer promotions.
14111
14112         * conform/conformtest.pl: Parse all "constant" and "macro" lines
14113         in one place.  Also handle "macro-constant".
14114
14115         * conform/conformtest.pl: Only accept expected macro values with
14116         "==".  Parse all "macro" lines in one place.
14117         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
14118
14119         * conform/conformtest.pl: Handle braced types on "constant" lines
14120         instead of handling "typed-constant".
14121         * conform/data/signal.h-data: Use "constant" instead of
14122         "typed-constant".
14123
14124         * conform/conformtest.pl: Handle "optional-" at start of lines in
14125         one place rather than duplicating several cases.  Handle each
14126         format of "macro" line with initial "optional-".
14127
14128         * conform/conformtest.pl: Only accept expected constant or
14129         optional-constant values with "==".  Parse all "constant" lines in
14130         one place.  Parse all "optional-constant" lines in one place.
14131         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
14132         * conform/data/fmtmsg.h-data: Likewise.
14133         * conform/data/netinet/in.h-data: Likewise.
14134         * conform/data/tar.h-data: Likewise.
14135         * conform/data/limits.h-data: Use "==" form on "constant" and
14136         "optional-constant" lines.
14137
14138         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
14139         Use -std=c99 for XOPEN2K.
14140         (@knownproblems): Remove.
14141         (newtoken): Don't check %isknown.
14142
14143         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
14144         Do not expect macro.
14145         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
14146         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
14147         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
14148         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
14149         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
14150         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
14151         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
14152         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
14153         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
14154         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
14155         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
14156         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
14157         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
14158         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
14159         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
14160         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
14161         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
14162         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
14163         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
14164         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
14165         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
14166         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
14167         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
14168         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
14169         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
14170         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
14171         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
14172         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
14173         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
14174         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
14175         [XPG3] (acosh): Likewise.
14176         [XPG3] (asinh): Likewise.
14177         [XPG3] (atanh): Likewise.
14178         [XPG3] (cbrt): Likewise.
14179         [XPG3] (expm1): Likewise.
14180         [XPG3] (ilogb): Likewise.
14181         [XPG3] (log1p): Likewise.
14182         [XPG3] (logb): Likewise.
14183         [XPG3] (nextafter): Likewise.
14184         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
14185         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
14186         [XPG3] (remainder): Likewise.
14187         [XPG3] (rint): Likewise.
14188         [XPG3 || XPG4 || UNIX98] (round): Likewise.
14189         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
14190         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
14191         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
14192         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
14193         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
14194         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
14195         [UNIX98 || XOPEN2K] (scalb): Expect.
14196         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
14197         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
14198         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
14199         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
14200         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
14201         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
14202         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
14203         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
14204         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
14205         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
14206         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
14207         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
14208         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
14209         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
14210         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
14211         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
14212         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
14213         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
14214         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
14215         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
14216         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
14217         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
14218         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
14219         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
14220         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
14221         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
14222         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
14223         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
14224         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
14225         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
14226         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
14227         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
14228         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
14229         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
14230         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
14231         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
14232         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
14233         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
14234         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
14235         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
14236         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
14237         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
14238         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
14239         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
14240         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
14241         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
14242         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
14243         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
14244         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
14245         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
14246         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
14247         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
14248         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
14249         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
14250         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
14251         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
14252         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
14253         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
14254         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
14255         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
14256         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
14257         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
14258         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
14259         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
14260         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
14261         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
14262         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
14263         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
14264         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
14265         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
14266         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
14267         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
14268         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
14269         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
14270         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
14271         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
14272         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
14273         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
14274         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
14275         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
14276         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
14277         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
14278         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
14279         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
14280         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
14281         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
14282         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
14283         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
14284         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
14285         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
14286         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
14287         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
14288         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
14289         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
14290         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
14291         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
14292         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
14293         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
14294         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
14295         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
14296         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
14297         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
14298         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
14299         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
14300         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
14301         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
14302         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
14303         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
14304         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
14305         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
14306         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
14307         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
14308         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
14309         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
14310         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
14311         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
14312         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
14313         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
14314         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
14315         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
14316         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
14317         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
14318         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
14319         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
14320         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
14321         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
14322         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
14323         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
14324         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
14325         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
14326         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
14327         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
14328         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
14329         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
14330         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
14331         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
14332         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
14333
14334         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
14335         _XOPEN_SOURCE_EXTENDED for XPG4.
14336
14337         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
14338
14339         * Makeconfig (localtime): Remove variable.
14340         (inst_localtime-file): Likewise.
14341
14342 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
14343
14344         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
14345         Update.
14346         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14347         Update.
14348         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
14349         Update.
14350         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
14351         Update.
14352         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
14353         Update.
14354         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
14355         Update.
14356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14357         Update.
14358         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
14359         Update.
14360         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14361         Update.
14362
14363 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
14364
14365         [BZ #2550]
14366         [BZ #2570]
14367         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
14368         comparisons to determine direction to adjust input.
14369         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
14370         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
14371         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
14372         Likewise.
14373         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
14374         Likewise.
14375         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
14376         Likewise.
14377         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
14378         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
14379         Likewise.
14380         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
14381         Likewise.
14382         * math/libm-test.inc (nexttoward_test): Add more tests.
14383
14384 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
14385
14386         [BZ #14040]
14387         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
14388         in version GLIBC_2.1, not GLIBC_2.0.
14389         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
14390         Likewise.
14391
14392 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
14393
14394         [BZ #13942]
14395         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
14396         (1 - x) * (1 + x).
14397         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
14398         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
14399         * math/libm-test.inc (acos_test): Add more tests.
14400         (asin_test): Likewise.
14401         * sysdeps/i386/fpu/libm-test-ulps: Update.
14402         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14403
14404         [BZ #14034]
14405         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
14406         of square root.
14407         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
14408         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
14409         * math/libm-test.inc (acos_test_tonearest): New function.
14410         (acos_test_towardzero): Likewise.
14411         (acos_test_downward): Likewise.
14412         (acos_test_upward): Likewise.
14413         (asin_test_tonearest): Likewise.
14414         (asin_test_towardzero): Likewise.
14415         (asin_test_downward): Likewise.
14416         (asin_test_upward): Likewise.
14417         (main): Call the new functions.
14418         * sysdeps/i386/fpu/libm-test-ulps: Update.
14419         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14420
14421         [BZ #13884]
14422         [BZ #13924]
14423         * math/e_exp10.c: Include <float.h>.
14424         (__ieee754_exp10): Handle underflow here rather than multiplying
14425         large negative argument by M_LN10.
14426         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
14427         of __ieee754_expf.
14428         * math/e_exp10l.c: Include <float.h>.
14429         (__ieee754_exp10l): Handle underflow here rather than multiplying
14430         large negative argument by M_LN10l.
14431         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
14432         spurious overflow exception on underflow.
14433
14434 2012-04-29  Marek Polacek  <polacek@redhat.com>
14435
14436         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
14437         (__fortify_function): New macro.
14438         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
14439         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
14440         __extern_always_inline.
14441         * libio/bits/stdio2.h: Likewise.
14442         * libio/bits/stdio.h: Likewise.
14443         * string/string.h: Likewise.
14444         * string/bits/string3.h: Likewise.
14445         * include/stdio.h: Likewise.
14446         * stdlib/bits/stdlib.h: Likewise.
14447         * stdlib/stdlib.h: Likewise.
14448         * rt/bits/mqueue2.h: Likewise.
14449         * rt/mqueue.h: Likewise.
14450         * posix/bits/unistd.h: Likewise.
14451         * posix/unistd.h: Likewise.
14452         * io/bits/poll2.h: Likewise.
14453         * io/bits/fcntl2.h: Likewise.
14454         * io/fcntl.h: Likewise.
14455         * io/sys/poll.h: Likewise.
14456         * misc/bits/syslog.h: Likewise.
14457         * misc/bits/syslog-ldbl.h: Likewise.
14458         * misc/sys/syslog.h: Likewise.
14459         * socket/bits/socket2.h: Likewise.
14460         * socket/sys/socket.h: Likewise.
14461         * debug/tst-chk1.c: Likewise.
14462         * wcsmbs/bits/wchar2.h: Likewise.
14463         * wcsmbs/bits/wchar-ldbl.h: Likewise.
14464         * wcsmbs/wchar.h: Likewise.
14465
14466 2012-04-29  Andreas Jaeger  <aj@suse.de>
14467
14468         * Makerules (tests): Remove enable-check-abi protection.
14469         (check-abi-warn): Remove.
14470         (check-abi-%): Remove check-abi-warn usage.
14471
14472         * configure.in: Remove check-abi configure option.
14473         * configure: Regenerated.
14474         * config.make.in (enable-check-abi): Remove.
14475
14476 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
14477
14478         [BZ #14033]
14479         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
14480         double functions to double *_finite functions.
14481
14482         [BZ #13941]
14483         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
14484         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
14485         LDBL_MIN_EXP.
14486         * stdio-common/Makefile (tests): Add tst-sprintf3.
14487         * stdio-common/tst-sprintf3.c: New file.
14488
14489         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
14490         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
14491
14492 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
14493
14494         * conform/conformtest.pl: Remove duplicate typed-constant
14495         handling.
14496
14497 2012-04-28  David S. Miller  <davem@davemloft.net>
14498
14499         * Makerules (%.abilist): Add vpath on sysdep_dirs.
14500         (check-abi-%): Remove AWK script prerequisite and explicit
14501         abilist directory.
14502         (check-abi): Rewrite to just diff the symlist with the abilist.
14503         (config-tls, config-abi-config): Delete, no longer used.
14504         (update-abi-%): Remove AWK script and explicit abilist directory.
14505         (update-abi): Rewrite to simply compare and conditionally copy the
14506         symlist and the sysdep abilist file.  Remove update-abi-config
14507         checks.
14508         * abilist/ld.abilist: Remove.
14509         * abilist/libBrokenLocale.abilist: Remove.
14510         * abilist/libanl.abilist: Remove.
14511         * abilist/libcrypt.abilist: Remove.
14512         * abilist/libdl.abilist: Remove.
14513         * abilist/librt.abilist: Remove.
14514         * abilist/libthread_db.abilist: Remove.
14515         * abilist/libutil.abilist: Remove.
14516         * scripts/extract-abilist.awk: Remove.
14517         * scripts/merge-abilist.awk: Remove.
14518         * sysdeps/generic/libcidn.abilist: New file.
14519         * sysdeps/generic/libnss_compat.abilist: New file.
14520         * sysdeps/generic/libnss_db.abilist: New file.
14521         * sysdeps/generic/libnss_dns.abilist: New file.
14522         * sysdeps/generic/libnss_files.abilist: New file.
14523         * sysdeps/generic/libnss_hesiod.abilist: New file.
14524         * sysdeps/generic/libnss_nis.abilist: New file.
14525         * sysdeps/generic/libnss_nisplus.abilist: New file.
14526         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
14527         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
14528         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
14529         file.
14530         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
14531         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
14532         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
14533         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
14534         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
14535         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
14536         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
14537         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
14538         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
14539         file.
14540         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
14541         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
14542         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
14543         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
14544         file.
14545         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
14546         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
14547         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
14548         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
14549         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
14550         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
14551         file.
14552         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
14553         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
14554         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
14555         file.
14556         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
14557         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
14558         New file.
14559         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
14560         New file.
14561         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
14562         New file.
14563         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
14564         New file.
14565         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
14566         New file.
14567         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
14568         New file.
14569         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
14570         New file.
14571         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
14572         New file.
14573         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
14574         New file.
14575         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
14576         New file.
14577         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
14578         New file.
14579         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
14580         New file.
14581         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
14582         New file.
14583         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
14584         file.
14585         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
14586         New file.
14587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
14588         New file.
14589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
14590         file.
14591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
14592         New file.
14593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
14594         New file.
14595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
14596         file.
14597         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
14598         New file.
14599         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
14600         New file.
14601         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
14602         New file.
14603         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
14604         New file.
14605         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
14606         New file.
14607         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
14608         New file.
14609         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
14610         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
14611         file.
14612         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
14613         New file.
14614         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
14615         file.
14616         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
14617         file.
14618         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
14619         file.
14620         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
14621         file.
14622         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
14623         file.
14624         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
14625         New file.
14626         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
14627         file.
14628         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
14629         file.
14630         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
14631         New file.
14632         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
14633         file.
14634         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
14635         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
14636         file.
14637         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
14638         New file.
14639         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
14640         file.
14641         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
14642         file.
14643         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
14644         file.
14645         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
14646         file.
14647         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
14648         file.
14649         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
14650         New file.
14651         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
14652         file.
14653         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
14654         file.
14655         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
14656         New file.
14657         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
14658         file.
14659         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
14660         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
14661         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
14662         file.
14663         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
14664         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
14665         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
14666         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
14667         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
14668         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
14669         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
14670         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
14671         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
14672         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
14673         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
14674         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
14675         file.
14676         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
14677         New file.
14678         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
14679         file.
14680         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
14681         file.
14682         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
14683         file.
14684         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
14685         file.
14686         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
14687         file.
14688         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
14689         New file.
14690         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
14691         New file.
14692         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
14693         file.
14694         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
14695         New file.
14696         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
14697         file.
14698         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
14699         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
14700         file.
14701         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
14702         New file.
14703         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
14704         file.
14705         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
14706         file.
14707         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
14708         file.
14709         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
14710         file.
14711         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
14712         file.
14713         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
14714         New file.
14715         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
14716         New file.
14717         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
14718         file.
14719         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
14720         New file.
14721         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
14722         file.
14723
14724 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
14725
14726         * conform/conformtest.pl: Fix typo in handling typed-constant from
14727         allow-header.
14728
14729 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14730
14731         * README: Cut down references to pre-2.6 Linux kernels and
14732         Linuxthreads.  Update lists of configurations in libc and ports
14733         and sort alphabetically.  Say "or newer" with Linux kernel version
14734         requirements.
14735
14736         * config.h.in [IS_IN_build]: Allow compiling without optimization.
14737
14738 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
14739
14740         [BZ #887]
14741         * math/libm-test.inc (logb_test_downward): New test to expose
14742         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
14743         rounding mode.
14744
14745 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
14746
14747         [BZ #14027]
14748         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
14749         to be done.
14750         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
14751         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
14752
14753 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
14754
14755         * sysdeps/unix/i386/brk.S: Remove file.
14756         * sysdeps/unix/i386/dl-brk.S: Likewise.
14757         * sysdeps/unix/i386/pipe.S: Likewise.
14758         * sysdeps/unix/i386/sigreturn.S: Likewise.
14759         * sysdeps/unix/i386/syscall.S: Likewise.
14760         * sysdeps/unix/i386/vfork.S: Likewise.
14761         * sysdeps/unix/i386/wait.S: Likewise.
14762
14763         * sysdeps/unix/common/tcsendbrk.c: Move to ...
14764         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
14765
14766         * configure.in (arm*-none*): Do not allow without
14767         --enable-hacker-mode.
14768         (netbsd*): Remove case setting base_os.
14769         (386bsd*): Likewise.
14770         (freebsd*): Likewise.
14771         (bsdi*): Likewise.
14772         (osf*): Likewise.
14773         (sunos*): Likewise.
14774         (ultrix*): Likewise.
14775         (newsos*): Likewise.
14776         (dynix*): Likewise.
14777         (*bsd*): Likewise.
14778         (sysv*): Likewise.
14779         (isc*): Likewise.
14780         (esix*): Likewise.
14781         (sco*): Likewise.
14782         (minix*): Likewise.
14783         (irix4*): Likewise.
14784         (irix6*): Likewise.
14785         (solaris[2-9]*): Likewise.
14786         (none): Likewise.
14787         * configure: Regenerated.
14788
14789 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14790
14791         [BZ #11521]
14792         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
14793         overflow or cancellation in calculating denominator.
14794         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
14795         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
14796         down expression to avoid unexpected rounding in newer GCCs.
14797         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
14798
14799 2012-04-26  David S. Miller  <davem@davemloft.net>
14800
14801         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
14802         long-double compat symbols.
14803         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
14804         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
14805         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
14806         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
14807         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
14808         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
14809         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
14810         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
14811         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
14812         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
14813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
14814         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
14815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
14816
14817 2012-04-25  David S. Miller  <davem@davemloft.net>
14818
14819         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
14820         HWCAP_* values only after the memory barriers have been defined.
14821         (atomic_full_barrier): Define.
14822         (atomic_read_barrier): Define.
14823         (atomic_write_barrier): Define.
14824
14825 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
14826
14827         * shlib-versions: Add libgcc_s version information.
14828         * sysdeps/generic/libgcc_s.h: Remove.
14829         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
14830         libgcc_s.h.
14831         * sysdeps/gnu/unwind-resume.c: Likewise.
14832         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
14833
14834 2012-04-25  David S. Miller  <davem@davemloft.net>
14835
14836         * sysdeps/unix/sparc/brk.S: Delete.
14837         * sysdeps/unix/sparc/dl-brk.S: Delete.
14838         * sysdeps/unix/sparc/pipe.S: Delete.
14839         * sysdeps/unix/sparc/sysdep.S: Delete.
14840         * sysdeps/unix/sparc/sysdep.h: Delete.
14841         * sysdeps/unix/sparc/vfork.S: Delete.
14842         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
14843         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
14844         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
14845         ret_ERRVAL, r0, r1, MOVE): Define.
14846         (JUMPTARGET): Remove.
14847         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
14848         sysdeps/unix/sparc/sysdep.h
14849         (ENTRY, END): Remove.
14850         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
14851
14852 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
14853
14854         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
14855         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
14856         -DIS_IN_build.
14857
14858         * timezone/README: Update upstream location and email address for
14859         tzcode and tzdata.
14860         * timezone/zdump.c: Update from tzcode 2012b.
14861         * timezone/zic.c: Likewise.
14862
14863         * configure.in (libc_cv_as_needed): Remove test.
14864         * configure: Regenerated.
14865         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
14866         conditional definition.
14867         [$(have-as-needed) != yes] (no-as-needed): Likewise.
14868         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
14869         * config.make.in (have-as-needed): Remove variable.
14870
14871 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
14872             Paul Pluzhnikov  <ppluzhnikov@google.com>
14873
14874         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
14875         strings correctly.
14876
14877 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
14878
14879         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
14880         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
14881         * sysdeps/sh/strlen.S: Likewise.
14882
14883 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14884
14885         * sysdeps/unix/fork.S: Remove file.
14886         * sysdeps/unix/i386/fork.S: Likewise.
14887         * sysdeps/unix/sparc/fork.S: Likewise.
14888
14889         * sysdeps/unix/system.c: Remove file.
14890         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
14891
14892         * sysdeps/unix/getegid.S: Remove file.
14893         * sysdeps/unix/geteuid.S: Likewise.
14894
14895 2012-04-24  Roland McGrath  <roland@hack.frob.com>
14896
14897         * scripts/check-localplt.awk: New file.
14898         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
14899         of diff.
14900         * scripts/data/localplt-generic.data: Add a comment.
14901
14902         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
14903         NODE when __dir_mkfile failed.
14904         * sysdeps/mach/hurd/symlinkat.c: Likewise.
14905         Reported by Ludovic Courtès <ludo@gnu.org>.
14906
14907 2012-04-24  Andreas Jaeger  <aj@suse.de>
14908
14909         * Makerules (common-clean): Also remove gen-as-const-headers
14910         files.
14911
14912 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14913
14914         * Makerules (native-compile): Do not change working directory for
14915         build.  Use $(OUTPUT_OPTION) in command.
14916         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
14917
14918 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
14919
14920         [BZ #13886]
14921         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
14922         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
14923         * math/libm-test.inc (floor_test): Add more tests.
14924         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
14925
14926 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
14927
14928         * sysdeps/unix/getdents.c: Remove file.
14929         * sysdeps/unix/sysv/getdents.c: Likewise.
14930         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
14931
14932         * sysdeps/unix/syscalls.list (madvise): Add syscall from
14933         sysdeps/unix/mman/syscalls.list.
14934         (mmap): Likewise.
14935         (mprotect): Likewise.
14936         (msync): Likewise.
14937         (munmap): Likewise.
14938         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
14939         * sysdeps/unix/mman/syscalls.list: Remove.
14940         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
14941
14942         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
14943         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
14944         * configure: Regenerated.
14945         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
14946         $(libgcc_s_suffix).
14947         * config.make.in (libgcc_s_suffix): Remove variable.
14948
14949 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
14950
14951         * sysdeps/unix/sysv/gethostname.c: Move to ...
14952         * sysdeps/posix/gethostname.c: ... here.
14953
14954         * sysdeps/unix/execve.S: Remove file.
14955
14956         * sysdeps/unix/_exit.S: Remove file.
14957
14958 2012-04-23  Andreas Jaeger  <aj@suse.de>
14959
14960         [BZ #13739]
14961         * manual/Makefile: Remove make dist support, there's no
14962         need for a stand-alone documentation tar ball.
14963         (TEXI2DVI): Define always, it's not in Makeconfig.
14964         (dist): Removed.
14965         (tar-it): Removed.
14966         (edition): Removed.
14967         (glibc-doc-$(edition).tar): Removed
14968         (%.Z): Removed.
14969         (%.gz): Removed.
14970         (%.uu): Removed.
14971         (ETAGS): Remove, it's in Makeconfig.
14972         (move-if-change): Remove, it's in Makeconfig.
14973
14974 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
14975
14976         [BZ #13970]
14977         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
14978         (strtod, strtof, strtold, strtol, strtoul, strtoq)
14979         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
14980         (strtod_l, strtof_l, strtold_l): Remove __wur.
14981         It is not necessarily an error to ignore strtol's return value.
14982         One can reliably look at the stored endptr to decide whether
14983         the number had valid syntax.
14984
14985 2012-04-21  Andreas Jaeger  <aj@suse.de>
14986
14987         [BZ #13739]
14988         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
14989
14990 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
14991
14992         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
14993         * sysdeps/unix/sysv/Versions: Remove file.
14994
14995 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
14996
14997         [BZ #13927]
14998         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14999
15000 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
15001
15002         [BZ #7064]
15003         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
15004         version from __vm86.
15005
15006 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
15007
15008         * sysdeps/unix/common/lxstat.c: Remove file.
15009         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
15010
15011         * sysdeps/unix/sysv/Makefile: Remove file.
15012
15013         * sysdeps/unix/sysv/direct.h: Remove file.
15014
15015         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
15016         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
15017         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
15018         * sysdeps/unix/sysv/bits/signum.h: Likewise.
15019         * sysdeps/unix/sysv/bits/stat.h: Likewise.
15020         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
15021         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
15022
15023         * sysdeps/unix/sysv/setrlimit.c: Remove file.
15024
15025         * sysdeps/unix/xmknod.c: Remove file.
15026         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
15027
15028         * sysdeps/unix/sysv/settimeofday.c: Remove file.
15029
15030         * sysdeps/unix/sysv/i386/time.S: Remove file.
15031
15032         * sysdeps/unix/fxstat.c: Remove file.
15033         * sysdeps/unix/xstat.c: Likewise.
15034         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
15035
15036         * sysdeps/unix/sysv/sigaction.c: Remove file.
15037
15038         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
15039         (sysdep_headers): Remove variable.
15040         [termio.h not in sysdep_headers] (generated): Likewise.
15041         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
15042         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
15043         * sysdeps/unix/sysv/tcdrain.c: Likewise.
15044         * sysdeps/unix/sysv/tcflow.c: Likewise.
15045         * sysdeps/unix/sysv/tcflush.c: Likewise.
15046         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
15047         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
15048         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
15049         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
15050         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
15051
15052         * sysdeps/unix/siglist.c: Remove file.
15053
15054         * sysdeps/unix/getppid.S: Remove file.
15055
15056         * sysdeps/unix/mkdir.c: Remove file.
15057         * sysdeps/unix/rmdir.c: Likewise.
15058
15059 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
15060
15061         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
15062         ERR_MAX value.
15063         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
15064         errlist-compat value.
15065
15066 2012-04-18  David S. Miller  <davem@davemloft.net>
15067
15068         * sysdeps/generic/memcopy.h (reg_char): Delete.
15069         * debug/strcat_chk.c: Use char, not reg_char.
15070         * debug/strcpy_chk.c: Likewise.
15071         * debug/strncat_chk.c: Likewise.
15072         * debug/strncpy_chk.c: Likewise.
15073         * string/memchr.c: Likewise.
15074         * string/memrchr.c: Likewise.
15075         * string/rawmemchr.c: Likewise.
15076         * string/strcat.c: Likewise.
15077         * string/strchr.c: Likewise.
15078         * string/strchrnul.c: Likewise.
15079         * string/strcmp.c: Likewise.
15080         * string/strcpy.c: Likewise.
15081         * string/strncat.c: Likewise.
15082         * string/strncmp.c: Likewise.
15083         * string/strncpy.c: Likewise.
15084
15085 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15086
15087         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
15088         __builtin_memcopy is called when src and dest ranges are known to not
15089         overlap.
15090
15091 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15092
15093         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
15094         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
15095         fwd_align_merge macro call.
15096         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
15097         bwd_align_merge macro call.
15098         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15099
15100 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
15101
15102         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
15103         bwd_align_merge macros.
15104         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
15105         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
15106         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
15107
15108 2012-04-18  David S. Miller  <davem@davemloft.net>
15109
15110         * sysdeps/sparc/sparc64/memcopy.h: Delete.
15111
15112 2012-04-18  Andreas Jaeger  <aj@suse.de>
15113
15114         [BZ# 6794]
15115         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
15116         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
15117         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15118
15119         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
15120         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
15121         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15122
15123         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
15124         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
15125         Adjust for changed ldbl-128 files.
15126
15127         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
15128         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
15129         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
15130
15131 2012-04-17  David S. Miller  <davem@davemloft.net>
15132
15133         * sysdeps/sparc/sparc32/memcopy.h: Delete.
15134
15135 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
15136
15137         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
15138         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
15139         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
15140         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
15141         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
15142         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
15143
15144 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15145
15146         [BZ #6794]
15147         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
15148         * math/libm-test.inc: Add ilogb errno and exception tests.
15149         * math/w_ilogb.c: New file: ilogb wrapper.
15150         * math/w_ilogbf.c: New file: ilogbf wrapper.
15151         * math/w_ilogbl.c: New file: ilogbl wrapper.
15152         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
15153         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
15154         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
15155         exception being thrown with 0.0 as argument.
15156         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
15157         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
15158         exception being thrown with 0.0 as argument.
15159         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
15160         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
15161         exception being thrown with 0.0 as argument.
15162         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
15163         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
15164         exception being thrown with 0.0 as argument.
15165         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
15166         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
15167         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
15168         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
15169         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
15170         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
15171         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
15172         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
15173         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
15174
15175 2012-04-17  Petr Baudis  <pasky@ucw.cz>
15176
15177         * include/sys/uio.h: Change __vector to __iovec to avoid clash
15178         with altivec.
15179
15180 2012-04-16  Marek Polacek  <polacek@redhat.com>
15181
15182         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
15183
15184 2012-04-16  Marek Polacek  <polacek@redhat.com>
15185
15186         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
15187         operands of fdivp instruction.
15188
15189 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
15190
15191         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
15192         * elf/tst-auditmod3b.c: Likewise.
15193         * elf/tst-auditmod4b.c: Likewise.
15194         * elf/tst-auditmod5b.c: Likewise.
15195         * elf/tst-auditmod6b.c: Likewise.
15196         * elf/tst-auditmod6c.c: Likewise.
15197         * elf/tst-auditmod7b.c: Likewise.
15198         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
15199         * sysdeps/x86_64/preconfigure.in: Likewise.
15200         * sysdeps/x86_64/preconfigure: Regenerated.
15201
15202 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
15203
15204         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
15205         __ILP32__.
15206
15207 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
15208
15209         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
15210         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
15211
15212 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
15213
15214         [BZ #13973]
15215         * locale/iso-639.def: Fix gl language name. Spotted by
15216         Yaron Shahrabani.
15217
15218 2012-04-12  Roland McGrath  <roland@hack.frob.com>
15219
15220         [BZ #2074]
15221         * libio/libio.h (__io_write_fn): Update comment.
15222
15223 2012-04-12  Petr Baudis  <pasky@ucw.cz>
15224
15225         [BZ #2074]
15226         * stdio.texi (Hook Functions): The user provided writer function
15227         is not allowed to return -1.
15228
15229 2012-04-11  David S. Miller  <davem@davemloft.net>
15230
15231         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15232
15233 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
15234
15235         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
15236         Add a leading slash to rtkaio.
15237
15238 2012-04-11  Jim Meyering  <meyering@redhat.com>
15239
15240         [BZ #11959]
15241         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
15242         It is not necessarily an error to ignore fwrite's return
15243         value.  One can reliably use ferror to test for errors after
15244         the fact.
15245
15246 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
15247
15248         * bits/types.h (__snseconds_t): New type.
15249         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
15250
15251         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
15252         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15253         (__SNSECONDS_T_TYPE): Likewise.
15254         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15255         (__SNSECONDS_T_TYPE): Likewise.
15256         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15257         (__SNSECONDS_T_TYPE): Likewise.
15258
15259 2012-04-10  Andreas Jaeger  <aj@suse.de>
15260
15261         [BZ #2636]
15262         * manual/time.texi (Processor Time): Return type of times is
15263         elapsed real time since an arbitrary point in the past.
15264         (CPU Time): Move CLK_TCK from here...
15265         (Processor Time): ...to here.  Correct description.
15266         * manual/conf.texi (Constants for Sysconf): Correct description of
15267         _SC_CLK_TCK.
15268
15269 2012-04-10  David S. Miller  <davem@davemloft.net>
15270
15271         [BZ #13967]
15272         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
15273         where the is a gap between DT_REL(A) and DT_JMPREL.
15274
15275 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
15276
15277         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
15278         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
15279         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
15280
15281 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
15282
15283         * elf/dl-support.c (_dl_inhibit_cache): New variable.
15284         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
15285         (dl_main): Handle --inhibit-cache.
15286         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
15287         _dl_inhibit_cache.
15288         * elf/dl-load.c (_dl_map_object): Use it.
15289         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
15290
15291 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
15292
15293         [BZ #13872]
15294         * sysdeps/i386/fpu/e_powl.S (p78): New object.
15295         (__ieee754_powl): Saturate large exponents rather than testing for
15296         overflow of y*log2(x).
15297         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15298         * math/libm-test.inc (pow_test): Do not permit spurious overflow
15299         exceptions.
15300
15301         [BZ #11521]
15302         * math/s_ctan.c: Include <float.h>.
15303         (__ctan): Avoid internal overflow or cancellation in calculating
15304         denominator.
15305         * math/s_ctanf.c: Likewise.
15306         * math/s_ctanl.c: Likewise.
15307         * math/s_ctanh.c: Likewise.
15308         * math/s_ctanhf.c: Likewise.
15309         * math/s_ctanhl.c: Likewise.
15310         * math/libm-test.inc (ctan_test): Add more tests.
15311         (ctanh_test): Likewise.
15312         * sysdeps/i386/fpu/libm-test-ulps: Update.
15313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15314
15315 2012-04-09  Andreas Jaeger  <aj@suse.de>
15316
15317         [BZ #6894]
15318         * manual/filesys.texi (Directory Entries): Mention that d_namlen
15319         is an optional BSD extension.
15320
15321         [BZ #10254]
15322         * manual/stdio.texi (Opening Streams): Document additional fopen
15323         parameters.
15324
15325 2012-04-09  Roland McGrath  <roland@hack.frob.com>
15326
15327         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
15328         %eax without telling the compiler.
15329
15330 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
15331
15332         [BZ # 13963]
15333         * manual/install.texi: Use sourceware.org.
15334
15335 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
15336
15337         [BZ #13873]
15338         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
15339         (__ieee754_pow): Generate overflow and underflow using huge*huge
15340         and tiny*tiny rather than just returning constant infinity or zero
15341         for large exponents.
15342         * math/libm-test.inc (pow_test): Require overflow exceptions for
15343         applicable cases of large exponents.
15344
15345         [BZ #706]
15346         * sysdeps/i386/fpu/e_pow.S (p10): New object.
15347         (__ieee754_pow): Use iterative multiplication algorithm only for
15348         integer exponents with absolute value below 1024.  Check for odd
15349         integer exponents when using algorithm for real exponents.
15350         * math/libm-test.inc (pow_test): Add more tests.
15351         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15352
15353 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
15354
15355         [BZ #13705]
15356         * math/libm-test.inc (exp_test): Do not allow overflow exception
15357         on underflow test.
15358
15359 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
15360
15361         [BZ #13705]
15362         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
15363         instead of __kernel_standard_f.
15364
15365 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
15366
15367         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
15368         * sysdeps/x86_64/memset_chk.S: Likewise.
15369
15370 2012-04-08  Andreas Jaeger  <aj@suse.de>
15371
15372         [BZ #10153]
15373         * manual/startup.texi (Environment Access): Describe return value
15374         for putenv and setenv.
15375
15376         [BZ #6895]
15377         * manual/filesys.texi (Directory Entries): Add description for
15378         DT_LNK.
15379
15380         [BZ #6890]
15381         * manual/filesys.texi (Directory Entries): Clarify that it's file
15382         system not operating system in the description of DT_UNKNOWN.
15383
15384         [BZ #6578]
15385         * manual/syslog.texi (closelog): Fix reference, it's openlog.
15386
15387 2012-04-08  Stephen Compall  <s11@member.fsf.org>
15388
15389         [BZ #6649]
15390         * manual/llio.texi (Opening and Closing Files): Add cross
15391         reference to explain mode argument.
15392
15393 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
15394
15395         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
15396         * sysdeps/x86_64/memset_chk.S: Likewise.
15397
15398 2012-04-07  David S. Miller  <davem@davemloft.net>
15399
15400         * elf/elf.h (R_SPARC_WDISP10): Define.
15401         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
15402         R_SPARC_SIZE32.
15403         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
15404         R_SPARC_SIZE64 and R_SPARC_H34.
15405
15406 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
15407
15408         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
15409         conditions and remove no longer applicable assertion.
15410
15411 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
15412
15413         * bits/byteswap.h: Include <features.h>.
15414         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
15415         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
15416
15417 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
15418
15419         * bits/byteswap.h (__bswap_16): Removed.
15420         Include <bits/byteswap-16.h> to get __bswap_16.
15421         * sysdeps/i386/bits/byteswap.h: Likewise.
15422         * sysdeps/s390/bits/byteswap.h: Likewise.
15423         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15424         * bits/byteswap-16.h: New file.
15425         * sysdeps/i386/bits/byteswap-16.h: Likewise.
15426         * sysdeps/s390/bits/byteswap-16.h: Likewise.
15427         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
15428         * string/Makefile (headers): Add bits/byteswap-16.h.
15429
15430 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
15431
15432         [BZ #13895]
15433         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
15434         extra indirection.
15435         * nss/Makefile (tests-static, tests): Add tst-nss-static.
15436         * nss/tst-nss-static.c: New.
15437
15438 2012-04-06  Robert Millan  <rmh@gnu.org>
15439
15440         [BZ #6486]
15441         * manual/llio.texi (File Position Primitive): lseek
15442         refers to WHENCE when it really means OFFSET.
15443
15444 2012-04-06  Andreas Jaeger  <aj@suse.de>
15445
15446         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
15447         strncmp declarations.
15448
15449         * abilist/libc.abilist: Add __poll and __ppoll.
15450
15451 2012-04-05  David S. Miller  <davem@davemloft.net>
15452
15453         * scripts/check-local-headers.sh: Accept a host triplet in the
15454         path matched by the exclude regexp.
15455
15456         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
15457         definition.
15458         * sysdeps/powerpc/powerpc32/dl-machine.h
15459         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
15460         * sysdeps/s390/s390-32/dl-machine.h
15461         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
15462         * sysdeps/sparc/sparc32/dl-machine.h
15463         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
15464         * sysdeps/sparc/sparc64/dl-machine.h
15465         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
15466
15467         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
15468         lazy binding.
15469         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
15470         undefined symbol errors.
15471
15472         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
15473         DT_NEEDED entries.
15474
15475 2012-04-05  Michael Matz  <matz@suse.de>
15476
15477         [BZ #13592]
15478         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
15479
15480 2012-04-05  Andreas Jaeger  <aj@suse.de>
15481
15482         [BZ #13908]
15483         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
15484         comment.
15485
15486 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15487
15488         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
15489         which ROUND is no valid rounding mode.
15490
15491 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15492
15493         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
15494         read again.
15495         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
15496
15497 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15498
15499         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
15500         an exception using FPU order intentionally.
15501
15502 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15503
15504         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
15505         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
15506         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
15507         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
15508
15509 2012-04-05  Simon Josefsson  <simon@josefsson.org>
15510
15511         [BZ #12340]
15512         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
15513         EINVAL when BUFLEN is too smal.
15514
15515 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
15516
15517         [BZ #13553]
15518         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
15519         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
15520
15521 2012-04-03  Andreas Jaeger  <aj@suse.de>
15522
15523         [BZ #13938]
15524         * manual/setjmp.texi (System V contexts): Fix sentence.
15525
15526         [BZ #13926]
15527         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
15528         New macro for this case.
15529         [!__GNUC__] (__bswap_64): New inline function for this case.
15530         * sysdeps/x86_64/bits/byteswap.h: Likewise.
15531         * bits/byteswap.h: Likewise.
15532         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
15533         ull, guard with __GLIBC_HAVE_LONG_LONG.
15534
15535         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
15536         __GLIBC_HAVE_LONG_LONG.
15537
15538         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
15539         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
15540
15541 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
15542
15543         [BZ #13691]
15544         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
15545         inptr and inend, rather than using last_ch.
15546
15547 2012-04-02  David S. Miller  <davem@davemloft.net>
15548
15549         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
15550         * stdio-common/printf-parse.h (read_int): Change return type to
15551         'int', return -1 on INT_MAX overflow.
15552         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
15553         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
15554         overflows INT_MAX.  Check for overflow of in-format-string precision
15555         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
15556         SIZE_MAX not INT_MAX for integer overflow test.
15557         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
15558         skip the construct in the format string but do not record anything.
15559         * stdio-common/bug22.c: Adjust to test both width/prevision
15560         INT_MAX overflow as well as total length INT_MAX overflow.  Check
15561         explicitly for proper errno values.
15562
15563 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
15564
15565         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
15566         CHAR_MAX.
15567         * string/test-strcmp.c [! WIDE]: Likewise.
15568         * time/tst-mktime2.c: Likewise for INT_MAX.
15569         * string/test-string.h: #include <sys/param.h> for MIN.
15570
15571         * csu/init-first.c (__libc_init_first): Call __ctype_init.
15572         * sysdeps/i386/init-first.c (init): Likewise.
15573         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
15574         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
15575         * sysdeps/sh/init-first.c (init): Likewise.
15576
15577 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
15578
15579         * po/ru.po: Update from translation team.
15580         * po/vi.po: Likewise.
15581
15582 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
15583
15584         * resolv/nss_dns/dns-host.c: Merge copyright years.
15585
15586 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15587
15588         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
15589         Optimize memcpy with prefetch if
15590         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
15591         src, dst pointers have unequal 16 byte alignments.
15592
15593 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
15594
15595         [BZ #13928]
15596         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
15597         from a CNAME entry and return the minimum ttl for the query.
15598         (gaih_getanswer_slice): Likewise.
15599
15600 2012-03-30  Jeff Law  <law@redhat.com>
15601
15602         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
15603         due to long keys.
15604         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
15605         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
15606
15607         * resolv/nss_dns/dns-host.c: Update copyright year.
15608
15609 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
15610
15611         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
15612         requests to save a system call.  Fix check that all bytes are sent.
15613
15614         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
15615         comments for sendmmsg.
15616
15617 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15618
15619         [BZ #13691]
15620         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
15621         with only 1 character between 0x0041 and 0x01b0.
15622         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
15623         * wcsmbs/tst-mbsnrtowcs.c: New file.
15624
15625 2012-03-29  David S. Miller  <davem@davemloft.net>
15626
15627         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
15628         small copies by hand.
15629
15630 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15631
15632         [BZ #13761]
15633         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
15634         _nss_compat_initgroups_dyn): Fall back to malloc/free
15635         for large group memberships.
15636
15637 2012-03-28  David S. Miller  <davem@davemloft.net>
15638
15639         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
15640         that branches into memcpy.
15641         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
15642         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
15643         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
15644         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
15645         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
15646         bits.
15647         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
15648         implementation too.
15649         * sysdeps/sparc/mempcpy.S: New file.
15650
15651         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
15652         the IFUNC routine in the libc case.
15653         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
15654
15655         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
15656         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
15657         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
15658         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
15659         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
15660         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
15661         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
15662         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
15663
15664         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
15665         loop to 256 bytes instead of 64 bytes and fix test signedness.
15666
15667         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
15668         * sysdeps/sparc/sparc32/Makefile: rather than here...
15669         * sysdeps/sparc/sparc64/Makefile: and here.
15670
15671 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
15672
15673         * malloc/mallocbug.c: Avoid warnings about unused variables.
15674
15675 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
15676
15677         [BZ #13760]
15678         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
15679         in the right place. Discard and retry query if response is
15680         larger than input buffer size.
15681
15682 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
15683
15684         [BZ #369]
15685         [BZ #2678]
15686         [BZ #3866]
15687         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
15688         x for large integer exponent.
15689         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
15690         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
15691         sign of result as needed afterwards.
15692         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
15693         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
15694         result for underflowing pow the same as for overflow.
15695         (__kernel_standard_l): Handle powl overflow and underflow here
15696         rather than calling __kernel_standard.
15697         * math/libm-test.inc (pow_test): Add more tests.
15698
15699         [BZ #3868]
15700         [BZ #13879]
15701         [BZ #13910]
15702         [BZ #13911]
15703         [BZ #13912]
15704         [BZ #13913]
15705         [BZ #13915]
15706         [BZ #13916]
15707         [BZ #13917]
15708         [BZ #13918]
15709         [BZ #13919]
15710         [BZ #13920]
15711         [BZ #13921]
15712         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
15713         * sysdeps/ieee754/k_standard.c: Include <float.h>.
15714         (__kernel_standard_l): New function.
15715         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
15716         __kernel_standard.
15717         * math/w_acosl.c (__acosl): Likewise.
15718         * math/w_asinl.c (__asinl): Likewise.
15719         * math/w_atan2l.c (__atan2l): Likewise.
15720         * math/w_atanhl.c (__atanhl): Likewise.
15721         * math/w_coshl.c (__coshl): Likewise.
15722         * math/w_exp10l.c (__exp10l): Likewise.
15723         * math/w_exp2l.c (__exp2l): Likewise.
15724         * math/w_fmodl.c (__fmodl): Likewise.
15725         * math/w_hypotl.c (__hypotl): Likewise.
15726         * math/w_j0l.c (__j0l, __y0l): Likewise.
15727         * math/w_j1l.c (__j1l, __y1l): Likewise.
15728         * math/w_jnl.c (__jnl, __ynl): Likewise.
15729         * math/w_lgammal.c (__lgammal): Likewise.
15730         * math/w_log10l.c (__log10l): Likewise.
15731         * math/w_log2l.c (__log2l): Likewise.
15732         * math/w_logl.c (__logl): Likewise.
15733         * math/w_powl.c (__powl): Likewise.
15734         * math/w_remainderl.c (__remainderl): Likewise.
15735         * math/w_scalbl.c (sysv_scalbl): Likewise.
15736         * math/w_sinhl.c (__sinhl): Likewise.
15737         * math/w_sqrtl.c (__sqrtl): Likewise.
15738         * math/w_tgammal.c (__tgammal): Likewise.
15739         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
15740         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
15741         * math/libm-test.inc (acos_test): Add more tests.
15742         (acosh_test): Likewise.
15743         (asin_test): Likewise.
15744         (atanh_test): Likewise.
15745         (exp_test): Likewise.
15746         (exp10_test): Likewise.
15747         (exp2_test): Likewise.
15748         (expm1_test): Likewise.
15749         (lgamma_test): Likewise.
15750         (log_test): Likewise.
15751         (log10_test): Likewise.
15752         (log1p_test): Likewise.
15753         (log2_test): Likewise.
15754         (pow_test): Do not allow some spurious overflow exceptions.
15755         (sqrt_test): Add more tests.
15756         (tgamma_test): Likewise.
15757         (y0_test): Likewise.
15758         (y1_test): Likewise.
15759         (yn_test): Likewise.
15760
15761 2012-03-27  Anton Blanchard  <anton@samba.org>
15762
15763         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
15764         MAP_HUGETLB.
15765         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
15766         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
15767         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
15768
15769 2012-03-27  David S. Miller  <davem@davemloft.net>
15770
15771         * conform/Makefile: Run run-conformtest.sh using $(BASH).
15772
15773         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
15774         have-as-vis3 check.
15775
15776 2012-03-27  Andreas Jaeger  <aj@suse.de>
15777
15778         * sysdeps/x86_64/elf/configure.in: Moved to ...
15779         * sysdeps/x86_64/configure.in: ... here.
15780         * sysdeps/x86_64/elf/start.S: Moved to ...
15781         * sysdeps/x86_64/start.S: ... here.
15782         * sysdeps/x86_64/elf/configure: Delete.
15783
15784         * sysdeps/x86_64/configure.in: Merge contents from
15785         sysdeps/i386/configure.in (without i686 check).
15786
15787         * sysdeps/i386/elf/Versions: Merge into ...
15788         * sysdeps/i386/Versions: ... this.
15789         * sysdeps/i386/elf/Versions: Delete file.
15790         * sysdeps/i386/elf/start.S: Moved to ...
15791         * sysdeps/i386/start.S: ...here.
15792         * sysdeps/i386/elf/configure.in: Merge into...
15793         * sysdeps/i386/configure.in: ...here.
15794         * sysdeps/i386/elf/configure.in: Delete file.
15795         * sysdeps/i386/elf/configure: Delete file.
15796
15797         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
15798         * debug/backtracesyms.c: ... here.
15799         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
15800         * debug/backtracesymsfd.c: ... here.
15801         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
15802         * sysdeps/generic/ifunc-sel.h: ... here.
15803
15804         * sysdeps/unix/i386/start.c: Delete file.
15805         * sysdeps/unix/sparc/start.c: Delete file.
15806         * sysdeps/unix/start.c: Delete file.
15807
15808         * sysdeps/sh/elf/configure.in: Moved to ...
15809         * sysdeps/sh/configure.in: ... here.
15810         * sysdeps/sh/elf/start.S: Moved to ...
15811         * sysdeps/sh/start.S: ... here.
15812         * sysdeps/sh/elf/configure: Delete file.
15813
15814         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
15815         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
15816         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
15817         * sysdeps/powerpc/powerpc64/entry.h: ... here.
15818         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
15819         * sysdeps/powerpc/powerpc64/start.S: here.
15820         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
15821         * sysdeps/powerpc/powerpc64/Makefile: ... this.
15822         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
15823         * sysdeps/powerpc/powerpc64/configure.in: ... this.
15824         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
15825
15826         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
15827         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
15828         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
15829         * sysdeps/powerpc/powerpc32/start.S: ... here.
15830         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
15831         * sysdeps/powerpc/powerpc32/configure.in: ... this.
15832         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
15833
15834         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
15835         * sysdeps/powerpc/ifunc-sel.h: ... here.
15836         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
15837         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
15838
15839         * sysdeps/sparc/elf/configure.in: Moved to ...
15840         * sysdeps/sparc/configure.in: ... here.
15841         * sysdeps/sparc/elf/configure: Delete file.
15842         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
15843         * sysdeps/sparc/sparc32/start.S: ... here.
15844         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
15845         * sysdeps/sparc/sparc64/start.S: ... here.
15846         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
15847         * sysdeps/sparc/sparc32/Makefile: ... this.
15848         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
15849         * sysdeps/sparc/sparc64/Makefile: ... this.
15850
15851         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
15852         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
15853         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
15854         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
15855         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
15856         * sysdeps/s390/s390-32/setjmp.S: ... here.
15857         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
15858         * sysdeps/s390/s390-32/configure.in: ... here.
15859         * sysdeps/s390/s390-32/elf/configure: Delete file.
15860         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
15861         * sysdeps/s390/s390-32/start.S: ... here.
15862
15863         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
15864         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
15865         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
15866         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
15867         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
15868         * sysdeps/s390/s390-64/setjmp.S: ... here.
15869         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
15870         * sysdeps/s390/s390-64/configure.in: ... here
15871         * sysdeps/s390/s390-64/elf/configure: Delete file.
15872         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
15873         * sysdeps/s390/s390-64/start.S: ... here.
15874         * sysdeps/s390/s390-64/elf/configure: Delete.
15875
15876         * configure.in: Remove support for elf directories in sysdeps.
15877
15878         * configure: Regenerated.
15879         * sysdeps/i386/configure: Regenerated.
15880         * sysdeps/powerpc/powerpc32/configure: Regenerated.
15881         * sysdeps/powerpc/powerpc64/configure: Regenerated.
15882         * sysdeps/s390/s390-32/configure: Regenerated.
15883         * sysdeps/s390/s390-64/configure: Regenerated.
15884         * sysdeps/sh/configure: Regenerated.
15885         * sysdeps/sparc/configure: Regenerated.
15886         * sysdeps/x86_64/configure: Regenerated.
15887
15888 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
15889
15890         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15891
15892         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
15893         denormal result into account.
15894
15895 2012-03-25  Roland McGrath  <roland@hack.frob.com>
15896
15897         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
15898         Reported by Allan McRae <allan@archlinux.org>.
15899
15900 2012-03-23  Jeff Law  <law@redhat.com>
15901
15902         * nss/getnssent.c (__nss_getent): Fix typo.
15903
15904 2012-03-23  David S. Miller  <davem@davemloft.net>
15905
15906         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15907
15908 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
15909
15910         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
15911         to pad to uint64_t for each field.
15912         (dl_tls_index): Replace unsigned long with uint64_t.
15913
15914 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
15915         Paul Pluzhnikov  <ppluzhnikov@google.com>
15916
15917         [BZ #6528]
15918         * grp/Makefile (otherlibs): Don't set it.
15919         * inet/Makefile (otherlibs): Likewise.
15920         * login/Makefile (otherlibs): Likewise.
15921         * nscd/Makefile (otherlibs): Likewise.
15922         * posix/Makefile (otherlibs): Likewise.
15923         * pwd/Makefile (otherlibs): Likewise.
15924         * rt/Makefile (otherlibs): Likewise.
15925         * sunrpc/Makefile (otherlibs): Likewise.
15926         * nss/Makefile (otherlibs): Likewise.
15927         Add libnss_files to routines and static-only-routines.
15928         ($(objpfx)getent): Remove rule.
15929         * resolv/Makefile: Add libnss_dns and libresolv to routines and
15930         static-only-routines.
15931
15932 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
15933
15934         [BZ #13892]
15935         * math/s_cexp.c: Include <float.h>.
15936         (__cexp): Handle exp result overflowing not necessarily
15937         overflowing both real and imaginary parts of result.
15938         * math/s_cexpf.c: Likewise.
15939         * math/s_cexpl.c: Likewise.
15940         * math/libm-test.inc (cexp_test): Add more tests.
15941         * sysdeps/i386/fpu/libm-test-ulps: Update.
15942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15943
15944 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15945
15946         * include/link.h (ELFW): New macro.
15947         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
15948         Replace ELF64_R_TYPE with ELFW(R_TYPE).
15949
15950 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15951
15952         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
15953         with uint64_t.
15954
15955 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15956
15957         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
15958         declaration.
15959         (struct La_x32_retval): Likewise.
15960
15961 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
15962
15963         * sysdeps/x86_64/preconfigure.in: New file.
15964         * sysdeps/x86_64/preconfigure: New generated file.
15965
15966 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
15967
15968         [BZ #13824]
15969         * math/e_exp2l.c: Include <float.h>.
15970         (__ieee754_exp2l): Handle overflow and underflow cases
15971         separately.  Only pass fractional part of argument to
15972         __ieee754_expl.
15973         * math/libm-test.inc (exp2_test): Add more tests.
15974
15975         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
15976         negating x to take absolute value.
15977         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
15978         Likewise.
15979         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
15980         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
15981         Likewise.
15982         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
15983         computing low part if x was negated.
15984         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
15985
15986 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
15987
15988         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
15989         la_x32_gnu_pltexit.
15990         (pltexit): Cast int_retval to ptrdiff_t.
15991         * elf/tst-auditmod3b.c: Likewise.
15992         * elf/tst-auditmod4b.c: Likewise.
15993         * elf/tst-auditmod5b.c: Likewise.
15994         * elf/tst-auditmod6b.c: Likewise.
15995         * elf/tst-auditmod6c.c: Likewise.
15996         * elf/tst-auditmod7b.c: Likewise.
15997
15998         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
15999         and x32_gnu_pltexit.
16000
16001         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
16002         __ELF_NATIVE_CLASS.
16003         (La_x32_regs): New macro.
16004         (La_x32_retval): Likewise.
16005         (la_x32_gnu_pltenter): New function prototype.
16006         (la_x32_gnu_pltexit): Likewise.
16007
16008 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
16009
16010         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
16011         exponent.
16012
16013         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16014
16015         * configure.in (libc_cv_cc_nofma): Check for option to disable
16016         generation of FMA instructions.
16017         * configure: Regenerate.
16018         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
16019         * sysdeps/ieee754/dbl-64/Makefile: New file.
16020         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
16021         Remove brandred-fma4.
16022         (CFLAGS-brandred-fma4.c): Remove.
16023         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
16024         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
16025         define.
16026         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
16027         define.
16028
16029 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16030
16031         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
16032         LLONG_MAX != LONG_MAX.
16033         (_itoa_word): Use _ITOA_WORD_TYPE on value.
16034         (_fitoa_word): Likewise.
16035         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
16036         LLONG_MAX != LONG_MAX.
16037         * stdio-common/_itowa.h: Include <_itoa.h>.
16038         (_itowa_word): Use _ITOA_WORD_TYPE on value.
16039         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
16040         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
16041         only if not defined.
16042         (_ITOA_WORD_TYPE): Likewise.
16043         (_itoa_word): Use _ITOA_WORD_TYPE on value.
16044         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
16045
16046 2012-03-21  David S. Miller  <davem@davemloft.net>
16047
16048         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16049
16050 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
16051
16052         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
16053         of x86_64 when setting libc_cv_slibdir, libdir and
16054         libc_cv_localedir.
16055         * sysdeps/unix/sysv/linux/configure: Regenerated.
16056
16057 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16058
16059         * manual/lang.texi (Old Varargs): Remove section.
16060         (How Variadic): Update menu.
16061         (va_start): Do not mention varargs.h.
16062
16063 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
16064             Joseph Myers  <joseph@codesourcery.com>
16065
16066         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
16067         link test.
16068         * configure: Regenerated.
16069
16070 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
16071
16072         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
16073         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
16074         conformtest.pl
16075
16076 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16077
16078         * NOTES: Remove.
16079         * Makefile (files-for-dist): Remove NOTES.
16080         (NOTES): Remove rule.
16081         * README: Don't refer to NOTES.
16082         * manual/creature.texi: Don't include macros.texi.
16083         * manual/intro.texi (creature.texi): Remove comment referring to
16084         NOTES.
16085
16086         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
16087         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
16088         * configure: Regenerated.
16089         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
16090         LIBC_TRY_CC_OPTION.
16091         (libc_cv_as_i686): Likewise.
16092         (libc_cv_cc_avx): Likewise.
16093         (libc_cv_cc_sse2avx): Likewise.
16094         (libc_cv_cc_fma4): Likewise.
16095         (libc_cv_cc_novzeroupper): Likewise.
16096         * sysdeps/i386/configure: Regenerated.
16097
16098         [BZ #13883]
16099         * sysdeps/i386/fpu/s_cexp.S: Remove.
16100         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
16101         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
16102         * math/libm-test.inc (cexp_test): Add more tests.
16103         * sysdeps/i386/fpu/libm-test-ulps: Update.
16104         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16105
16106 2012-03-21  Allan McRae  <allan@archlinux.org>
16107
16108         * timezone/Makefile: Do not install iso3166.tab and zone.tab
16109
16110 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
16111
16112         [BZ #13871]
16113         * math/w_exp2.c: Do not include <float.h>.
16114         (o_threshold, u_threshold): Remove.
16115         (__exp2): Calculate result before checking finiteness and calling
16116         __kernel_standard.
16117         * math/w_exp2f.c: Likewise.
16118         * math/w_exp2l.c: Likewise.
16119         * math/libm-test.inc (exp2_test): Require overflow exception for
16120         1e6 input.
16121
16122         [BZ #3866]
16123         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
16124         range of signed 64-bit integers before using fistpll.  Remove
16125         checks for whether integers fit in mantissa bits.
16126         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
16127         the range of signed 32-bit integers before using fistpl.  Remove
16128         checks for whether integers fit in mantissa bits.
16129         * sysdeps/i386/fpu/e_powl.S (p64): New object.
16130         (__ieee754_powl): Test for y outside the range of signed 64-bit
16131         integers before using fistpll.  Reduce 64-bit values to 63-bit
16132         ones as needed.
16133         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
16134         divide-by-zero is raised for zero to large negative powers.
16135         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
16136         (__ieee754_powl): Test for y outside the range of signed 64-bit
16137         integers before using fistpll.  Reduce 64-bit values to 63-bit
16138         ones as needed.
16139         * math/libm-test.inc (pow_test): Add more tests.
16140
16141 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16142
16143         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
16144         <stdio-common/_itoa.h>.
16145         * debug/segfault.c: Likewise.
16146         * elf/dl-cache.c: Likewise.
16147         * elf/dl-minimal.c: Likewise.
16148         * elf/dl-misc.c: Likewise.
16149         * elf/dl-sysdep.c: Likewise.
16150         * elf/dl-version.c: Likewise.
16151         * elf/rtld.c: Likewise.
16152         * hurd/hurdsock.c: Likewise.
16153         * hurd/lookup-retry.c: Likewise.
16154         * malloc/malloc.c: Likewise.
16155         * malloc/mtrace.c: Likewise.
16156         * nscd/nscd_getgr_r.c: Likewise.
16157         * nscd/nscd_getpw_r.c: Likewise.
16158         * nscd/nscd_getserv_r.c: Likewise.
16159         * posix/getopt_init.c: Likewise.
16160         * posix/wordexp.c: Likewise.
16161         * stdio-common/_itoa.c: Likewise.
16162         * stdio-common/printf_fphex.c: Likewise.
16163         * stdio-common/vfprintf.c: Likewise.
16164         * string/_strerror.c: Likewise.
16165         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
16166         * sysdeps/i386/i686/hp-timing.h: Likewise.
16167         * sysdeps/mach/_strerror.c: Likewise.
16168         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
16169         * sysdeps/mach/hurd/sethostid.c: Likewise.
16170         * sysdeps/mach/hurd/xmknodat.c: Likewise.
16171         * sysdeps/mach/xpg-strerror.c: Likewise.
16172         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
16173         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
16174         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
16175         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
16176         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
16177         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
16178         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
16179         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
16180         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
16181         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
16182         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
16183         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
16184         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
16185         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
16186         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
16187         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
16188         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
16189         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
16190         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
16191         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
16192         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
16193
16194         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
16195
16196         * stdio-common/_itoa.h: Moved to ...
16197         * sysdeps/generic/_itoa.h: Here.
16198
16199         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
16200
16201         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
16202         instead of "_itoa.h" and "_itowa.h".
16203         * stdio-common/vfprintf.: Likewise.
16204
16205 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16206
16207         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
16208         <bits/wordsize.h>.
16209         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
16210         (__signbit): Likwise.
16211         (llrintf): Likwise.
16212         (llrint): Likwise.
16213
16214 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
16215
16216         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
16217         __WORDSIZE != 64.
16218
16219 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
16220
16221         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
16222         OVERFLOW_EXCEPTION_OK.
16223         * math/libm-test.inc ("Philosophy"): Update comment about
16224         exception testing.
16225         (OVERFLOW_EXCEPTION): Define.
16226         (OVERFLOW_EXCEPTION_OK): Likewise.
16227         (INVALID_EXCEPTION_OK): Renumber.
16228         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
16229         (IGNORE_ZERO_INF_SIGN): Likewise.
16230         (test_exceptions): Handle FE_OVERFLOW.
16231         (exp10_test): Expect overflow exceptions.
16232         (exp2_test): Likewise.
16233         (expm1_test): Likewise.
16234         (nextafter_test): Likewise.
16235         (pow_test): Likewise.
16236         (scalbn_test): Likewise.
16237         (scalbln_test): Likewise.
16238
16239 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16240
16241         * sysdeps/x86_64/bits/atomic.h
16242         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
16243         64bit integer.
16244         (atomic_exchange_acq): Likewise.
16245         (__arch_exchange_and_add_body): Likewise.
16246         (__arch_add_body): Likewise.
16247         (atomic_add_negative): Likewise.
16248         (atomic_add_zero): Likewise.
16249
16250 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16251
16252         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
16253         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
16254
16255 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16256
16257         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
16258         Check __x86_64__ instead of __WORDSIZE.
16259
16260 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16261
16262         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
16263
16264 2012-03-19  David S. Miller  <davem@davemloft.net>
16265
16266         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16267
16268         * sysdeps/sparc/fpu/fenv_private.h: New file.
16269         * sysdeps/sparc/fpu/math_private.h: Use it.
16270         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
16271         Remove.
16272         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
16273         (libc_feholdexcept_setroundl): Remove.
16274         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
16275         Remove.
16276         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
16277         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
16278
16279 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16280
16281         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
16282         int64_t instead of long int.
16283         (INSERT_WORDS64): Likwise.
16284
16285 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
16286
16287         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
16288         _Unwind_GetCFA return to _Unwind_Ptr first.
16289
16290 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
16291
16292         [BZ #13629]
16293         * math/s_clog.c: Include <float.h>.
16294         (__clog): Scale large or subnormal inputs.
16295         * math/s_clogf.c: Likewise.
16296         * math/s_clogl.c: Likewise.
16297         * math/s_clog10.c: Include <float.h>.
16298         (M_LOG10_2): Define.
16299         (__clog10): Scale large or subnormal inputs.
16300         * math/s_clog10f.c: Likewise.
16301         * math/s_clog10l.c: Likewise.
16302         * math/libm-test.inc (clog_test): Add more tests.
16303         (clog10_test): Likewise.
16304         * sysdeps/i386/fpu/libm-test-ulps: Update.
16305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16306
16307         [BZ #11451]
16308         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
16309         x and y.
16310         * math/libm-test.inc (atan2_test): Add another test.
16311
16312         * Makerules (common-objdir-compile): Remove.
16313         * sysdeps/unix/Makefile (config-generated): Do not add
16314         $(unix-generated) to variable.
16315         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
16316         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
16317         Remove rule.
16318         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
16319         Likewise.
16320         [generic bits/local_lim.h] (before-compile): Do not append to
16321         variable.
16322         [generic bits/local_lim.h] (common-generated): Likewise.
16323         [generic sys/param.h] (before-compile): Do not append to variable.
16324         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
16325         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
16326         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
16327         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
16328         include.
16329         [generic sys/param.h] (sys/param.h-includes): Remove variable.
16330         [generic sys/param.h] (sys/param.h-includes): Remove rule.
16331         [generic sys/param.h] ($(addprefix
16332         $(common-objpfx),$(sys/param.h-includes))): Likewise.
16333         [generic sys/param.h] (common-generated): Do not append to
16334         variable.
16335         [generic sys/param.h] (sysdep_headers): Likewise.
16336         [generic bits/errno.h] (before-compile): Do not append to
16337         variable.
16338         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
16339         rule.
16340         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
16341         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
16342         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
16343         [generic bits/errno.h] (common-generated): Do not append to
16344         variable.
16345         [generic bits/ioctls.h] (before-compile): Do not append to
16346         variable.
16347         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
16348         rule.
16349         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
16350         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
16351         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
16352         rule.
16353         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
16354         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
16355         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
16356         [generic bits/ioctls.h] (common-generated): Do not append to
16357         variable.
16358         [generic sys/syscall.h] (syscall.h): Remove variable.
16359         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
16360         rule.
16361         [generic sys/syscall.h] (before-compile): Do not append to
16362         variable.
16363         [generic sys/syscall.h] (common-generated): Likewise.
16364         * sysdeps/unix/errnos-tmpl.c: Remove file.
16365         * sysdeps/unix/errnos.awk: Likewise.
16366         * sysdeps/unix/ioctls-tmpl.c: Likewise.
16367         * sysdeps/unix/ioctls.awk: Likewise.
16368         * sysdeps/unix/mk-local_lim.c: Likewise.
16369         * sysdeps/unix/snarf-ioctls: Likewise.
16370
16371 2012-03-19  Richard Henderson  <rth@twiddle.net>
16372
16373         * sysdeps/i386/fpu/fenv_private.h: New file.
16374         * sysdeps/i386/fpu/math_private.h: Use it.
16375         (math_opt_barrier, math_force_eval): Remove.
16376         (libc_feholdexcept_setround_53bit): Remove.
16377         (libc_feupdateenv_53bit): Remove.
16378         * sysdeps/x86_64/fpu/math_private.h: Likewise.
16379         (math_opt_barrier, math_force_eval): Remove.
16380         (libc_feholdexcept): Remove.
16381         (libc_feholdexcept_setround): Remove.
16382         (libc_fetestexcept, libc_fesetenv): Remove.
16383         (libc_feupdateenv_test): Remove.
16384         (libc_feupdateenv, libc_feholdsetround): Remove.
16385         (libc_feresetround): Remove.
16386
16387         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
16388         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
16389
16390         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
16391         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
16392         (libc_feupdateenv_testl): New.
16393         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
16394         (libc_feupdateenv_testf): New.
16395         (libc_feupdateenv): Use libc_feupdateenv_test.
16396         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
16397         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
16398
16399         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
16400         (libc_feholdsetroundf, libc_feholdsetroundl): New.
16401         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
16402         (libc_feresetround_noex): New.
16403         (libc_feresetround_noexf): New.
16404         (libc_feresetround_noexl): New.
16405         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
16406         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
16407         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
16408         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
16409         SET_RESTORE_ROUND.
16410         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
16411         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
16412         (__cos): Likewise.
16413         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
16414         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
16415         SET_RESTORE_ROUND_NOEX.
16416         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
16417         SET_RESTORE_ROUND_NOEXF.
16418         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
16419         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
16420         (libc_feholdsetroundf): New.
16421         (libc_feresetround, libc_feresetroundf): New.
16422
16423         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
16424         (libc_feholdexcept_setround_53bit): Convert from macro to function.
16425         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
16426
16427         * sysdeps/generic/math_private.h: Include <fenv.h>.
16428         (default_libc_feholdexcept): New.
16429         (default_libc_feholdexcept_setround): New.
16430         (default_libc_fesetenv, default_libc_feupdateenv): New.
16431         (libc_feholdexcept): Only define if undefined.
16432         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
16433         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
16434         (libc_feholdexcept_setroundl): Likewise.
16435         (libc_feholdexcept_setround_53bit): Likewise.
16436         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
16437         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
16438         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
16439         (libc_feupdateenv_53bit): Likewise.
16440         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
16441         (libc_feholdexcept): Convert from macro to inline function.
16442         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
16443         (libc_fesetenv, libc_feupdateenv): Likewise.
16444
16445         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
16446         not previously defined.
16447         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
16448         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
16449         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
16450         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
16451         * sysdeps/ieee754/flt-32/math_private.h: New file.
16452         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
16453         math_private.h below SET_FLOAT_WORD.
16454         (__isnan, __isinf_ns, __finite): Remove.
16455         (__isnanf, __isinf_nsf, __finitef): Remove.
16456
16457 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
16458
16459         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16460
16461 2012-03-17  David S. Miller  <davem@davemloft.net>
16462
16463         [BZ #6471]
16464         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
16465         for 2.16.
16466
16467 2012-03-16  David S. Miller  <davem@davemloft.net>
16468
16469         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
16470         warnings.
16471
16472         [BZ #6471]
16473         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
16474         properly.
16475         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
16476         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
16477         sysdep_routines when subdir is sysvipc.
16478         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
16479         __getshmlba helper.
16480
16481         * sysdeps/sparc/fpu/libm-test/ulps: Update.
16482
16483 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16484
16485         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
16486         [__LP64__].
16487
16488 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16489
16490         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
16491         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
16492         (__lround): Renamed to ...
16493         (__llround): This.  Replace long int with long long int.
16494         Define lround functions as aliases of llround functions.
16495         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
16496
16497 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16498
16499         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
16500         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
16501         adresses to uintptr_t.  Replace "long int" and "unsigned long
16502         int" with "greg_t" on va_arg.
16503
16504 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16505
16506         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
16507         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
16508
16509         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
16510         Move e_machine check before EI_CLASS check.  Handle x32
16511         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
16512         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
16513         SKIP_EM_IA_64 and include
16514         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
16515
16516         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
16517         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
16518         (add_system_dir): New macro.
16519
16520         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
16521         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
16522
16523 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
16524
16525         [BZ #2551]
16526         [BZ #2552]
16527         [BZ #2553]
16528         [BZ #2554]
16529         [BZ #2562]
16530         [BZ #2563]
16531         [BZ #2565]
16532         [BZ #2566]
16533         [BZ #2576]
16534         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
16535         (y0): Likewise.
16536         * math/w_j0f.c (j0f): Likewise.
16537         (y0f): Likewise.
16538         * math/w_j0l.c (__j0l): Likewise.
16539         (__y0l): Likewise.
16540         * math/w_j1.c (j1): Likewise.
16541         (y1): Likewise.
16542         * math/w_j1f.c (j1f): Likewise.
16543         (y1f): Likewise.
16544         * math/w_j1l.c (__j1l): Likewise.
16545         (__y1l): Likewise.
16546         * math/w_jn.c (jn): Likewise.
16547         (yn): Likewise.
16548         * math/w_jnf.c (jnf): Likewise.
16549         (ynf): Likewise.
16550         * math/w_jnl.c (__jnl): Likewise.
16551         (__ynl): Likewise.
16552         * math/libm-test.inc (j0_test): Add more tests.
16553         (j1_test): Likewise.
16554         (jn_test): Likewise.  Add trailing semicolon to existing test.
16555         (y0_test): Likewise.
16556         (y1_test): Likewise.
16557         * sysdeps/i386/fpu/libm-test-ulps: Update.
16558         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16559
16560         [BZ #13851]
16561         [BZ #13854]
16562         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
16563         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
16564         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
16565         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
16566         (__tanl): Set errno for infinite argument.
16567         * sysdeps/i386/fpu/mptan.c: Remove.
16568         * sysdeps/i386/fpu/s_tan.S: Likewise.
16569         * sysdeps/i386/fpu/s_tanl.S: Likewise.
16570         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
16571         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
16572         * math/libm-test.inc (tan_test): Add more tests and enable more
16573         tests for double and long double.
16574         * sysdeps/i386/fpu/libm-test-ulps: Update.
16575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16576
16577 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
16578
16579         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
16580         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
16581
16582 2012-03-16  Roland McGrath  <roland@hack.frob.com>
16583
16584         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
16585         * configure.in: Use it for both main tree and add-ons.
16586         * configure: Regenerated.
16587
16588 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
16589
16590         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
16591
16592 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
16593
16594         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
16595         in comment.
16596
16597         [BZ #13851]
16598         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
16599         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
16600         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
16601         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
16602         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
16603         infinite argument.
16604         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
16605         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
16606         != 0 for prec == 2.
16607         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
16608         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
16609         * sysdeps/i386/fpu/s_cosl.S: Likewise.
16610         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
16611         * sysdeps/i386/fpu/s_sinl.S: Likewise.
16612         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
16613         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
16614         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
16615         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
16616         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
16617         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
16618         * math/libm-test.inc (cos_test): Add more tests and enable more
16619         tests for long double.
16620         (sin_test): Likewise.
16621         (sincos_test): Likewise.
16622         * sysdeps/i386/fpu/libm-test-ulps: Update.
16623         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16624
16625 2012-03-16  David S. Miller  <davem@davemloft.net>
16626
16627         * sysdeps/sparc/fpu/math_private.h: New file.
16628
16629 2012-03-15  David S. Miller  <davem@davemloft.net>
16630
16631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
16632         file.
16633         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
16634         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
16635         file.
16636         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
16637         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
16638         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
16639         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
16640         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
16641         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
16642         sysdep routines.
16643         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16644
16645         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
16646         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
16647
16648         * sysdeps/sparc/sparc-ifunc.h: New file.
16649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
16650         sparc-ifunc.h
16651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
16652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
16653         Likewise.
16654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
16655         Likewise.
16656         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
16657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
16658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
16659         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
16660         Likewise.
16661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
16662         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
16663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
16664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
16665         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
16666         Likewise.
16667         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
16668         Likewise.
16669         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
16670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
16671         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
16672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
16673         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
16674         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
16675         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
16676         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
16677         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
16678         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
16679         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
16680         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
16681         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
16682         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
16683         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
16684         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
16685         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
16686         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
16687         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
16688         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
16689         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
16690         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
16691         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
16692         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
16693
16694 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16695
16696         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
16697         scaling.
16698         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16699
16700 2012-03-15  Andreas Jaeger  <aj@suse.de>
16701
16702         [BZ #13852]
16703         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
16704         ieee754/flt-32 implementation for sin, cos and sincos.
16705         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
16706         * sysdeps/i386/fpu/s_cosf.S: Likewise.
16707         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
16708         * sysdeps/i386/fpu/s_sinf.S: Likewise.
16709         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
16710         ieee754/flt-32 implementation for tan.
16711
16712         * math/libm-test.inc (cos_test): Enable some large input tests for
16713         float as well
16714         (sin_test): Likewise.
16715         (sincos_test): Likewise.
16716         (tan_test): Add tests for large input.
16717
16718         * sysdeps/i386/fpu/libm-test-ulps: Update.
16719
16720 2012-03-15  Andreas Jaeger  <aj@suse.de>
16721
16722         [BZ #13658]
16723         * math/libm-test.inc (cos_test): Add more test cases.
16724         (sin_test): Likewise.
16725         (sincos_test): Likewise.
16726
16727 2012-03-15  Andreas Jaeger  <aj@suse.de>
16728
16729         [BZ #13837]
16730         * math/libm-test.inc (cos_test): Add a test case for large input
16731         value.
16732         (sin_test): Likewise.
16733         (sincos_test): Likewise.
16734
16735 2012-03-15  Andreas Jaeger  <aj@suse.de>,
16736         Joseph Myers  <joseph@codesourcery.com>
16737
16738         [BZ #13658]
16739         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
16740         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
16741         * sysdeps/i386/fpu/branred.c: Likewise.
16742         * sysdeps/i386/fpu/dosincos.c: Likewise.
16743         * sysdeps/i386/fpu/mpa.c: Likewise.
16744         * sysdeps/i386/fpu/s_cos.S: Likewise.
16745         * sysdeps/i386/fpu/s_sin.S: Likewise.
16746         * sysdeps/i386/fpu/s_sincos.S: Likewise.
16747         * sysdeps/i386/fpu/sincos32.c: Likewise.
16748
16749         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
16750         Define.
16751         (libc_feupdateenv_53bit): Define.
16752         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
16753         Define.
16754         (libc_feupdateenv_53bit): Define.
16755
16756         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
16757         53 bit (without extend i386 double precision).
16758
16759         * math/libm-test.inc (sincos_test): Add tests for large input.
16760         (sin): Likewise.
16761         (cos): Likewise.
16762
16763         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
16764
16765 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
16766
16767         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16768
16769 2012-03-15  David S. Miller  <davem@davemloft.net>
16770
16771         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
16772         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
16773         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
16774         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
16775         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
16776         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
16777         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
16778         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
16779         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
16780         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
16781         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
16782         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
16783         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
16784         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
16785         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
16786         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
16787         file.
16788         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
16789         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
16790         file.
16791         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
16792         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
16793         file.
16794         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
16795         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
16796         file.
16797         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
16798         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
16799         fmin/fmax sysdep routines.
16800         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
16801
16802 2012-03-14  David S. Miller  <davem@davemloft.net>
16803
16804         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
16805         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
16806         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
16807         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
16808         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
16809         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
16810         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
16811         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
16812         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
16813         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
16814         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
16815         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
16816         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
16817         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
16818         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
16819         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
16820         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
16821         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
16822         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
16823         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
16824         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
16825         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
16826         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
16827         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
16828         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
16829         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
16830         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
16831         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
16832         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
16833         routines.
16834         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
16835         file.
16836         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
16837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
16838         file.
16839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
16840         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
16841         file.
16842         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
16843         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
16844         file.
16845         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
16846         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
16847         file.
16848         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
16849         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
16850         file.
16851         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
16852         file.
16853         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
16854         file.
16855         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
16856         file.
16857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
16858         New file.
16859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
16860         file.
16861         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
16862         file.
16863         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
16864         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
16865         file.
16866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
16867         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
16868         file.
16869         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
16870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
16871         file.
16872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
16873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
16874         VIS3 routines.
16875
16876         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
16877         New file.
16878
16879         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16880
16881         * sysdeps/sparc/configure.in: New file.
16882         * sysdeps/sparc/configure: Generate.
16883         * configure.in (libc_cv_sparc_as_vis3): Substitute.
16884         * configure: Regenerate.
16885         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
16886         * config.make.in (have-as-vis3): New.
16887         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
16888         available use -Av9d instead of -Av9a.
16889         * sysdeps/sparc/sparc64/Makefile: Likewise.
16890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
16891         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
16892         New file.
16893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
16894         file.
16895         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
16896         New file.
16897         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
16898         file.
16899         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
16900         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
16901         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
16902         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
16903         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
16904
16905         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
16906         fzeros/fnegs to load 0x80000000 into a float register instead of
16907         using the stack.
16908         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
16909
16910 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
16911
16912         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16913         bits/syscall.h.
16914         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
16915         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
16916         ($(inst_includedir)/bits/syscall.h): Remove rule.
16917         ($(objpfx)bits/syscall.d): Include instead of
16918         $(objpfx)syscall-list.d.
16919         (generated): Change syscall-list.h and syscall-list.d to
16920         bits/syscall.h and bits/syscall.d.
16921
16922 2012-03-14  Roland McGrath  <roland@hack.frob.com>
16923
16924         [BZ #13846]
16925         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
16926
16927 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
16928
16929         [BZ #13841]
16930         * math/s_csqrt.c: Include <float.h>.
16931         (__csqrt): Scale large or subnormal inputs.
16932         * math/s_csqrtf.c: Likewise.
16933         * math/s_csqrtl.c: Likewise.
16934         * math/libm-test.inc (csqrt_test): Add more tests.
16935         * sysdeps/i386/fpu/libm-test-ulps: Update.
16936         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16937
16938         [BZ #13840]
16939         * math/libm-test.inc (hypot_test): Add more tests.
16940
16941 2012-03-13  David S. Miller  <davem@davemloft.net>
16942
16943         [BZ #13840]
16944         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
16945         double-precision for the calculation instead of scaling.
16946
16947 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
16948
16949         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
16950         manipulate bits before adding and subtracting TWO52[sx].
16951         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
16952         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
16953         Likewise.
16954         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
16955
16956 2012-03-13  David S. Miller  <davem@davemloft.net>
16957
16958         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
16959         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
16960         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
16961         rtld-global-offsets.h
16962         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
16963
16964         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
16965         large parameters.
16966
16967         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
16968
16969         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
16970         'err' in the ifdef scope in which it is actually used.
16971
16972         * nss/nss_db/db-init.c: Include string.h
16973
16974 2012-03-12  David S. Miller  <davem@davemloft.net>
16975
16976         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
16977         masking out of the most significant byte of random value used.
16978         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16979         Fix coding style in previous change.
16980
16981         * sysdeps/unix/sysv/linux/kernel-features.h
16982         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
16983         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
16984         expression.
16985         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
16986         later.
16987
16988 2012-03-11  David S. Miller  <davem@davemloft.net>
16989
16990         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
16991         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
16992         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
16993         for 'resultvar' otherwise things get truncated on 64-bit.
16994
16995         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
16996         Fix masking out of the most significant byte of random value used.
16997
16998         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16999
17000 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
17001
17002         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17003
17004 2012-03-09  David S. Miller  <davem@davemloft.net>
17005
17006         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
17007         variables with appropriate CPP guards.
17008         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
17009         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
17010         on resulting framesize and the management of the outregs buffer for pltexit.
17011         Preserve floating point return values across _dl_call_pltexit call.
17012         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
17013         framesize and the management of the outregs buffer for pltexit.
17014         Preserve floating point return values across _dl_call_pltexit
17015         call.
17016         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
17017         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
17018         (print_exit): Fix format string for return register value.
17019
17020 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
17021
17022         * sunrpc/Makefile (others): Add rpcgen.
17023         ($(objpfx)rpcgen): Remove special build rule and dependency on
17024         libc.
17025         * sunrpc/rpcgen.c: New file.
17026
17027 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
17028
17029         [BZ #13673]
17030         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
17031         * stdio-common/bug-vfprintf-nargs.c: Likewise.
17032         * sysdeps/i386/crti.S: Likewise.
17033         * sysdeps/i386/crtn.S: Likewise.
17034         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
17035         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
17036         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
17037         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
17038         * sysdeps/sh/crti.S: Likewise.
17039         * sysdeps/sh/crtn.S: Likewise.
17040         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
17041
17042         [BZ #13673]
17043         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
17044         with URL.
17045         * locale/programs/locfile-kw.gperf: Likewise.
17046         * locale/programs/charmap-kw.h: Regenerated.
17047         * locale/programs/locfile-kw.h: Likewise.
17048
17049         [BZ #13673]
17050         * intl/plural.y: Replace FSF snail mail address with URL.
17051         * intl/plural.c: Regenerated.
17052
17053 2012-03-09  Richard Henderson  <rth@twiddle.net>
17054
17055         * include/math_private.h: Remove file.
17056         * math/math_private.h: Move file ...
17057         * sysdeps/generic/math_private.h: ... here.
17058
17059         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
17060         * sysdeps/powerpc/fpu/math_private.h: Likewise.
17061         * sysdeps/x86_64/fpu/math_private.h: Likewise.
17062
17063         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
17064         and <math_private.h>.
17065         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
17066         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
17067         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
17068         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
17069         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
17070         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
17071         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
17072         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
17073         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
17074         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
17075         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
17076         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
17077         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
17078         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
17079         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
17080         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
17081         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
17082         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
17083         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
17084         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
17085         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
17086         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
17087         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
17088         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
17089         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
17090         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
17091         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
17092         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
17093         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
17094         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
17095         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
17096         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
17097         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
17098         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
17099         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
17100         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
17101         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
17102         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
17103         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
17104         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
17105         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
17106         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
17107         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
17108         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
17109         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
17110         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
17111         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
17112         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
17113         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
17114         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
17115         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
17116         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
17117         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
17118         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
17119         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
17120         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
17121         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
17122         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
17123         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
17124         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
17125         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
17126         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
17127         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
17128         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
17129         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
17130         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
17131         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
17132         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
17133         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
17134         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
17135         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
17136         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
17137         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
17138         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
17139         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
17140         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
17141         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
17142         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
17143         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
17144         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
17145         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
17146         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
17147         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
17148         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
17149         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
17150         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
17151         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
17152         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
17153         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
17154         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
17155         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
17156         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
17157         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
17158         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
17159         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
17160         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
17161         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
17162         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
17163         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
17164         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
17165         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
17166         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
17167         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
17168         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
17169         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
17170         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
17171         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
17172         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
17173         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
17174         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
17175         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
17176         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
17177         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
17178         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
17179         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
17180         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
17181         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
17182         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
17183         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
17184         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
17185         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
17186         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
17187         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
17188         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
17189         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
17190         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
17191         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
17192         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
17193         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
17194         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
17195         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
17196         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
17197         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
17198         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
17199         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
17200         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
17201         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
17202         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
17203         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
17204         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
17205         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
17206         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
17207         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
17208         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
17209         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
17210         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
17211         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
17212         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
17213         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
17214         * sysdeps/ieee754/k_standard.c: Likewise.
17215         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
17216         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
17217         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
17218         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
17219         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
17220         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
17221         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
17222         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
17223         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
17224         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
17225         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
17226         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
17227         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
17228         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
17229         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
17230         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
17231         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
17232         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
17233         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
17234         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
17235         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
17236         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
17237         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
17238         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
17239         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
17240         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
17241         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
17242         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
17243         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
17244         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
17245         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
17246         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
17247         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
17248         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
17249         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
17250         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
17251         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
17252         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
17253         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
17254         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
17255         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
17256         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
17257         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
17258         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
17259         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
17260         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
17261         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
17262         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
17263         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
17264         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
17265         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
17266         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
17267         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
17268         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
17269         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
17270         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
17271         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
17272         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
17273         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
17274         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
17275         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
17276         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
17277         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
17278         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
17279         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
17280         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
17281         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
17282         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
17283         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
17284         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
17285         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
17286         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
17287         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
17288         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
17289         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
17290         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
17291         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
17292         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
17293         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17294         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
17295         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
17296         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
17297         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
17298         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
17299         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
17300         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
17301         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
17302         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
17303         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
17304         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
17305         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
17306         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
17307         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
17308         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
17309         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
17310         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
17311         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
17312         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
17313         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
17314         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
17315         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
17316         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
17317         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
17318         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
17319         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
17320         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
17321         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
17322         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
17323         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
17324         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
17325         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
17326         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
17327         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
17328         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
17329         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
17330         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
17331         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
17332         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
17333         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
17334         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
17335         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
17336         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
17337         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
17338         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
17339         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
17340         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
17341         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
17342         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
17343         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
17344         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
17345         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
17346         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
17347         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
17348         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
17349         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
17350         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
17351         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
17352         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
17353         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
17354         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
17355         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
17356         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
17357         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
17358         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
17359         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
17360         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
17361         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
17362         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
17363         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
17364         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
17365         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
17366         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
17367         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
17368         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
17369         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
17370         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
17371         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
17372         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
17373         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
17374         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
17375         * sysdeps/ieee754/s_lib_version.c: Likewise.
17376         * sysdeps/ieee754/s_matherr.c: Likewise.
17377         * sysdeps/ieee754/s_signgam.c: Likewise.
17378         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
17379         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
17380         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
17381         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
17382         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
17383         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
17384         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
17385         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
17386         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
17387         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
17388         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
17389         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
17390         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
17391         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
17392         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
17393         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
17394         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
17395         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
17396         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
17397         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
17398         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
17399
17400 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
17401
17402         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
17403         * sunrpc/rpc_main.c: Likewise.
17404         * sunrpc/rpc_svcout.c: Likewise.
17405
17406 2012-03-09  David S. Miller  <davem@davemloft.net>
17407
17408         * include/math_private.h: New file.
17409
17410 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
17411
17412         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
17413         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
17414         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
17415         from <bits/socket_type.h>.
17416         (enum __socket_type): Don't define here.
17417         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
17418         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
17419         bits/socket_type.h.
17420
17421         [BZ #13566]
17422         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
17423         checking __USE_GNU.
17424
17425         * Makerules ($(inst_includedir)/%.h): New rule.
17426         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
17427         (install-others): Remove variable setting.
17428         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
17429
17430 2012-03-08  Richard Henderson  <rth@twiddle.net>
17431
17432         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
17433         from macro to inline function; merge with the
17434         !__LIBC_INTERNAL_MATH_INLINES version.
17435         (__ieee754_sqrtf): Likewise.
17436
17437         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
17438         to inline function.
17439         (__rintf, __floor, __floorf): Likewise.
17440
17441         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
17442         macro to inline function.
17443         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
17444
17445         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
17446         not <math/math_private.h>.
17447
17448 2012-03-08  David S. Miller  <davem@davemloft.net>
17449
17450         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
17451         copyright year.
17452         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
17453
17454 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
17455
17456         * resolv/gai_misc.c (handle_requests): Fix struct timespec
17457         normalization.
17458         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
17459         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
17460
17461 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
17462
17463         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
17464         be defined individually, they must be defined as a block.  Define
17465         S for printing a string instead of hidint the different by using a
17466         macro for adding the 'l'.
17467         * stdio-common/tst-fphex-wide.c: Adjust.
17468
17469 2012-03-07  Marek Polacek  <polacek@redhat.com>
17470
17471         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
17472
17473 2012-03-08  Marek Polacek  <polacek@redhat.com>
17474
17475         [BZ #13806]
17476         * stdio-common/Makefile (tests): Add tst-fphex-wide.
17477         * stdio-common/tst-fphex.c: Define a few macros to make the
17478         test reusable.  Use them.
17479         * stdio-common/tst-fphex-wide.c: New file.
17480
17481 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
17482
17483         [BZ #6911]
17484         * manual/macros.texi (gnusystems): New macro.
17485         (nongnusystems): Likewise.
17486         (gnulinuxhurdsystems): Likewise.
17487         (gnuhurdsystems): Likewise..
17488         (gnulinuxsystems): Likewise.
17489         * manual/charset.texi: Use new macros or @theglibc{} to refer to
17490         variants of the GNU system, not "GNU system".
17491         * manual/conf.texi: Likewise.
17492         * manual/errno.texi: Likewise.  Update example of errno macro
17493         expansion.
17494         * manual/filesys.texi: Likewise.
17495         (getumask): Document as specific to GNU/Hurd.
17496         * manual/install.texi: Likewise.  Reword some references to
17497         GNU/Linux.
17498         * manual/intro.texi: Likewise.
17499         * manual/io.texi: Likewise.
17500         (File Name Portability): Detail which constraints are inapplicable
17501         to all GNU systems and which are only inapplicable to GNU/Hurd.
17502         * manual/job.texi: Likewise.
17503         * manual/llio.texi: Likewise.
17504         (O_NOCTTY): Document as present on GNU/Linux.
17505         * manual/maint.texi: Likewise.
17506         * manual/memory.texi: Likewise.
17507         * manual/pattern.texi: Likewise.
17508         * manual/pipe.texi: Likewise.
17509         * manual/process.texi: Likewise.
17510         * manual/resource.texi: Likewise.
17511         (RUSAGE_CHILDREN): Remove statement about specifying a particular
17512         child on GNU/Hurd.
17513         * manual/setjmp.texi: Likewise.
17514         * manual/signal.texi: Likewise.
17515         * manual/startup.texi: Likewise.
17516         * manual/stdio.texi: Likewise.
17517         * manual/terminal.texi: Likewise.
17518         (ONLCR): Document as POSIX.
17519         (OXTABS): Document availability on GNU/Linux as XTABS.
17520         (ONOEOT): Document availability separately from other bits.
17521         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
17522         * manual/time.texi: Likewise.
17523         * manual/users.texi: Likewise.
17524         * INSTALL: Regenerated.
17525         * sysdeps/gnu/errlist.c: Regenerated.
17526
17527         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
17528         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
17529         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
17530         puts.
17531         * configure: Regenerated.
17532
17533 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
17534
17535         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
17536         default includes instead of AC_HEADER_CHECK.
17537         * sysdeps/i386/configure: Regenerated.
17538
17539         [BZ #10716]
17540         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
17541         * math/s_cacoshf.c (__cacoshf): Likewise.
17542         * math/s_cacoshl.c (__cacoshl): Likewise.
17543         * math/s_casinh.c (__casinh): Set signs of result from argument.
17544         * math/s_casinhf.c (__casinhf): Likewise.
17545         * math/s_casinhl.c (__casinhl): Likewise.
17546         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
17547         (casinh_test): Add more tests.
17548         * sysdeps/i386/fpu/libm-test-ulps: Update.
17549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17550
17551 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
17552
17553         * po/zh_TW.po: Update from translation team.
17554
17555         * login/Makefile (distribute): Remove variable.
17556         * catgets/Makefile: Likewise.
17557         * mach/Makefile: Likewise.
17558         * malloc/Makefile: Likewise.
17559         * misc/Makefile: Likewise.
17560         * iconv/Makefile: Likewise.
17561         * nscd/Makefile: Likewise.
17562         * hurd/Makefile: Likewise.
17563         * manual/Makefile: Likewise.
17564         * locale/Makefile: Likewise.
17565         * intl/Makefile: Likewise.
17566         * conform/Makefile: Likewise.
17567         * nss/Makefile: Likewise.
17568         * time/Makefile: Likewise.
17569         * soft-fp/Makefile: Likewise.
17570         * dirent/Makefile: Likewise.
17571         * gmon/Makefile: Likewise.
17572         * po/Makefile: Likewise.
17573         * rt/Makefile: Likewise.
17574         * socket/Makefile: Likewise.
17575         * math/Makefile: Likewise.
17576         * signal/Makefile: Likewise.
17577         * debug/Makefile: Likewise.
17578         * elf/Makefile: Likewise.
17579         * timezone/Makefile: Likewise.
17580         * stdlib/Makefile: Likewise.
17581         * iconvdata/Makefile: Likewise.
17582         * sunrpc/Makefile: Likewise.
17583         * io/Makefile: Likewise.
17584         * argp/Makefile: Likewise.
17585         * inet/Makefile: Likewise.
17586         * hesiod/Makefile: Likewise.
17587         * grp/Makefile: Likewise.
17588         * csu/Makefile: Likewise.
17589         * wctype/Makefile: Likewise.
17590         * crypt/Makefile: Likewise.
17591         * libio/Makefile: Likewise.
17592         * string/Makefile: Likewise.
17593         * nis/Makefile: Likewise.
17594         * resolv/Makefile: Likewise.
17595         * stdio-common/Makefile: Likewise.
17596         * wcsmbs/Makefile: Likewise.
17597         * dlfcn/Makefile: Likewise.
17598         * posix/Makefile: Likewise.
17599
17600         [BZ #6959]
17601         * timezone/Makefile: Don't install timezone files, just the programs
17602         and scripts.
17603
17604 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
17605
17606         * nss/databases.def: Add missing gshadow entry.
17607
17608         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
17609
17610 2012-03-06  Marek Polacek  <polacek@redhat.com>
17611
17612         [BZ #13726]
17613         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
17614         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
17615         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
17616         * stdio-common/tst-long-dbl-fphex.c: New file.
17617
17618 2012-03-06  David S. Miller  <davem@davemloft.net>
17619
17620         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
17621         (set_obp_int): New function.
17622         (get_obp_int): New function.
17623         (__get_clockfreq_via_dev_openprom): Likewise.
17624         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
17625         Avoid unused variable warnings on 'val' and use builtin_expect.
17626         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
17627         __builtin_expect.
17628         (INLINE_CLONE_SYSCALL): Likewise.
17629
17630 2012-03-05  David S. Miller  <davem@davemloft.net>
17631
17632         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17633
17634 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
17635
17636         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17637
17638         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
17639         only for |x| >= 40.
17640         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
17641
17642 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
17643
17644         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
17645         Replace gettimeofday with __vdso_gettimeofday.
17646
17647         * sysdeps/unix/sysv/linux/x86_64/init-first.c
17648         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
17649         __vdso_clock_gettime and __vdso_getcpu.
17650
17651         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
17652         time with __vdso_time.
17653
17654 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17655
17656         * manual/lang.texi (size_t): Note types to which size_t may be
17657         equivalent with the GNU C Library, but do not describe when
17658         differences between them are significant.
17659
17660 2012-03-05  Andreas Jaeger  <aj@suse.de>
17661
17662         * sysdeps/i386/fpu/libm-test-ulps: Update.
17663
17664 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
17665
17666         [BZ #3976]
17667         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
17668         (__ieee754_pow): Save and restore rounding mode and use
17669         round-to-nearest for main computations.
17670         * math/libm-test.inc (pow_test_tonearest): New function.
17671         (pow_test_towardzero): Likewise.
17672         (pow_test_downward): Likewise.
17673         (pow_test_upward): Likewise.
17674         (main): Call the new functions.
17675         * sysdeps/i386/fpu/libm-test-ulps: Update.
17676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17677
17678         [BZ #3976]
17679         * math/libm-test.inc (cosh_test_tonearest): New function.
17680         (cosh_test_towardzero): Likewise.
17681         (cosh_test_downward): Likewise.
17682         (cosh_test_upward): Likewise.
17683         (sinh_test_tonearest): Likewise.
17684         (sinh_test_towardzero): Likewise.
17685         (sinh_test_downward): Likewise.
17686         (sinh_test_upward): Likewise.
17687         (main): Call the new functions.
17688         * sysdeps/i386/fpu/libm-test-ulps: Update.
17689         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17690
17691 2012-03-05  Tom de Vries  <tom@codesourcery.com>
17692
17693         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
17694         default stack guard is set in last bytes.
17695         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
17696
17697 2012-03-05  Kees Cook  <keescook@chromium.org>
17698
17699         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
17700
17701         [BZ #13656]
17702         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
17703         possibly allocate from heap instead of stack.
17704         * stdio-common/bug-vfprintf-nargs.c: New file.
17705         * stdio-common/Makefile (tests): Add nargs overflow test.
17706
17707 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
17708
17709         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17710
17711 2012-03-03  Marek Polacek  <polacek@redhat.com>
17712
17713         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
17714         * math/math_private.h: Likewise.
17715         * stdlib/tst-strtod.c: Likewise.
17716         * sysdeps/i386/i486/bits/atomic.h: Likewise.
17717         * sysdeps/x86_64/bits/atomic.h: Likewise.
17718
17719 2012-03-02  David S. Miller  <davem@davemloft.net>
17720
17721         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
17722         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
17723         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
17724         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
17725         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
17726         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
17727         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
17728         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
17729
17730 2012-03-02  Roland McGrath  <roland@hack.frob.com>
17731
17732         [BZ #13792]
17733         * manual/examples/README: New file, says the example source files
17734         can be used under GPL>=2.
17735         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
17736         line containing just "*/".
17737         * manual/examples/add.c: Add copyright header (GPL>=2).
17738         * manual/examples/argp-ex1.c: Likewise.
17739         * manual/examples/argp-ex2.c: Likewise.
17740         * manual/examples/argp-ex3.c: Likewise.
17741         * manual/examples/argp-ex4.c: Likewise.
17742         * manual/examples/atexit.c: Likewise.
17743         * manual/examples/db.c: Likewise.
17744         * manual/examples/dir.c: Likewise.
17745         * manual/examples/dir2.c: Likewise.
17746         * manual/examples/execinfo.c: Likewise.
17747         * manual/examples/filecli.c: Likewise.
17748         * manual/examples/filesrv.c: Likewise.
17749         * manual/examples/fmtmsgexpl.c: Likewise.
17750         * manual/examples/genpass.c: Likewise.
17751         * manual/examples/inetcli.c: Likewise.
17752         * manual/examples/inetsrv.c: Likewise.
17753         * manual/examples/isockad.c: Likewise.
17754         * manual/examples/longopt.c: Likewise.
17755         * manual/examples/memopen.c: Likewise.
17756         * manual/examples/memstrm.c: Likewise.
17757         * manual/examples/mkfsock.c: Likewise.
17758         * manual/examples/mkisock.c: Likewise.
17759         * manual/examples/mygetpass.c: Likewise.
17760         * manual/examples/pipe.c: Likewise.
17761         * manual/examples/popen.c: Likewise.
17762         * manual/examples/rprintf.c: Likewise.
17763         * manual/examples/search.c: Likewise.
17764         * manual/examples/select.c: Likewise.
17765         * manual/examples/setjmp.c: Likewise.
17766         * manual/examples/sigh1.c: Likewise.
17767         * manual/examples/sigusr.c: Likewise.
17768         * manual/examples/stpcpy.c: Likewise.
17769         * manual/examples/strdupa.c: Likewise.
17770         * manual/examples/strftim.c: Likewise.
17771         * manual/examples/strncat.c: Likewise.
17772         * manual/examples/subopt.c: Likewise.
17773         * manual/examples/swapcontext.c: Likewise.
17774         * manual/examples/termios.c: Likewise.
17775         * manual/examples/testopt.c: Likewise.
17776         * manual/examples/testpass.c: Likewise.
17777         * manual/examples/timeval_subtract.c: Likewise.
17778
17779         [BZ #13792]
17780         * manual/time.texi (Elapsed Time): Move timeval_subtract example
17781         function to ...
17782         * manual/timeval_subtract.c.texi: ... here, new file.
17783
17784 2012-03-02  David S. Miller  <davem@davemloft.net>
17785
17786         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
17787
17788 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
17789
17790         [BZ #3976]
17791         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
17792         (__sin): Save and restore rounding mode and use round-to-nearest
17793         for all computations.
17794         (__cos): Save and restore rounding mode and use round-to-nearest
17795         for all computations.
17796         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
17797         <fenv.h>.
17798         (tan): Save and restore rounding mode and use round-to-nearest for
17799         all computations.
17800         * math/libm-test.inc (cos_test_tonearest): New function.
17801         (cos_test_towardzero): Likewise.
17802         (cos_test_downward): Likewise.
17803         (cos_test_upward): Likewise.
17804         (sin_test_tonearest): Likewise.
17805         (sin_test_towardzero): Likewise.
17806         (sin_test_downward): Likewise.
17807         (sin_test_upward): Likewise.
17808         (tan_test_tonearest): Likewise.
17809         (tan_test_towardzero): Likewise.
17810         (tan_test_downward): Likewise.
17811         (tan_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         [BZ #10135]
17817         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
17818         small n, then large n, before computing and testing k+n.
17819         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
17820         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
17821         Likewise.
17822         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
17823         Likewise.
17824         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
17825         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
17826         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
17827         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
17828         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
17829         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
17830         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
17831         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
17832         * math/libm-test.inc (scalbn_test): Add more tests.
17833         (scalbln_test): Likewise.
17834
17835         * manual/filesys.texi (mode_t): Describe constraints on size and
17836         signedness, not exact equivalence to a particular type.
17837         (ino_t): Likewise.
17838         (ino64_t): Likewise.
17839         (dev_t): Likewise.
17840         (nlink_t): Likewise.
17841         (blkcnt_t): Likewise.
17842         (blkcnt64_t): Likewise.
17843         * manual/llio.texi (off_t): Likewise.
17844
17845         [BZ #3976]
17846         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
17847         (__ieee754_exp): Save and restore rounding mode and use
17848         round-to-nearest for all computations.
17849         * math/libm-test.inc (exp_test_tonearest): New function.
17850         (exp_test_towardzero): Likewise.
17851         (exp_test_downward): Likewise.
17852         (exp_test_upward): Likewise.
17853         (main): Call the new functions.
17854         * sysdeps/i386/fpu/libm-test-ulps: Update.
17855         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17856
17857 2012-03-01  Chris Demetriou  <cgd@google.com>
17858
17859         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
17860         have predictable order.
17861
17862 2012-03-01  David S. Miller  <davem@davemloft.net>
17863
17864         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
17865
17866         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
17867         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
17868         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
17869         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
17870
17871         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
17872         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
17873         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
17874         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
17875         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
17876         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
17877         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
17878         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
17879         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
17880
17881         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17882
17883         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
17884         * sysdeps/sparc/fpu/libm-test-ulps: to here.
17885         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
17886
17887         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
17888         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
17889         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
17890         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
17891         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
17892         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
17893         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
17894         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
17895         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
17896         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
17897         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
17898         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
17899         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
17900         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
17901         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
17902         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
17903         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
17904         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
17905         * sysdeps/sparc/elf/configure: Regenerated.
17906
17907 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
17908
17909         * configure.in (AS, LD): Require binutils 2.20 or later.
17910         * configure: Regenerated.
17911         * manual/install.texi (Tools for Compilation): Give binutils 2.20
17912         as required minimum version.
17913         * INSTALL: Regenerated.
17914
17915         [BZ #2541]
17916         [BZ #4108]
17917         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
17918         before squaring exponent.
17919         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
17920         bottom long double and 27 bits of top long double before squaring
17921         exponent.
17922         * math/libm-test.inc (erfc_test): Add more tests.
17923         * sysdeps/i386/fpu/libm-test-ulps: Update.
17924         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17926
17927 2012-03-01  Kai Tietz  <ktietz@redhat.com>
17928
17929         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
17930         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
17931         containing bit-fields.
17932         * soft-fp/extended.h (_FP_UNION_E): Likewise.
17933         * soft-fp/single.h (_FP_UNION_S): Likewise.
17934         * soft-fp/double.h (_FP_UNION_D): Likewise.
17935
17936 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
17937
17938         [BZ #13786]
17939         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
17940         not include ../strcmp.S.
17941         [USE_AS_STRNCASECMP_L]: Likewise.
17942         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
17943         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
17944         * sysdeps/i386/i686/multiarch/strncase_l-c.c
17945         (__strncasecmp_l_ia32): Define as alias to
17946         __strncasecmp_l_nonascii.
17947
17948         [BZ #5794]
17949         * math/libm-test.inc (expm1_test): Add test for bug 5794.
17950         * sysdeps/i386/fpu/libm-test-ulps: Update.
17951         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17952
17953         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
17954         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17955
17956 2012-02-29  Jeff Law  <law@redhat.com>
17957
17958         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
17959         out of bounds read.
17960
17961 2012-02-29  Marek Polacek  <polacek@redhat.com>
17962
17963         [BZ #13706]
17964         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
17965         * elf/Makefile: Add rules to run tst-unused-dep.out.
17966
17967 2012-02-28  David S. Miller  <davem@davemloft.net>
17968
17969         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
17970         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
17971         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
17972         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
17973         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
17974         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
17975
17976 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
17977
17978         * math/libm-test.inc (llround_test): Move one test from
17979         lround_test.  Use TEST_f_L in moved test.
17980         (lround_test): Move misplaced test to llround_test.  Add testcase
17981         from bug 2561.
17982
17983 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
17984
17985         * sysdeps/x86_64/fpu/e_expf.S: New file.
17986         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
17987
17988 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
17989
17990         [BZ #13637]
17991         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
17992         of remain_len that may cause incomplete multi-byte character and
17993         false match.
17994         * posix/bug-regex33.c: New file.
17995         * posix/Makefile (tests): Add bug-regex33.
17996
17997 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
17998
17999         * manual/macros.texi: New file.
18000         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
18001         * manual/libc.texinfo: Include macros.texi.
18002         * manual/creatute.texi: Likewise.
18003         * manual/install.texi: Likewise.
18004         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
18005         @glibcadj{} in references to the GNU C Library.
18006         * manual/charset.texi: Likewise.
18007         * manual/conf.texi: Likewise.
18008         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
18009         when not using those macros.
18010         * manual/creature.texi: Likewise.
18011         * manual/crypt.texi: Likewise.
18012         * manual/errno.texi: Likewise.
18013         * manual/filesys.texi: Likewise.
18014         * manual/header.texi: Likewise.
18015         * manual/install.texi: Likewise.
18016         * manual/intro.texi: Likewise.
18017         * manual/io.texi: Likewise.
18018         * manual/job.texi: Likewise.
18019         * manual/lang.texi: Likewise.
18020         * manual/libc.texiinfo: Likewise.
18021         * manual/llio.texi: Likewise.
18022         * manual/locale.texi: Likewise.
18023         * manual/maint.texi: Likewise.
18024         * manual/math.texi: Likewise.
18025         * manual/memory.texi: Likewise.
18026         * manual/message.texi: Likewise.
18027         * manual/nss.texi: Likewise.
18028         * manual/pattern.texi: Likewise.
18029         * manual/process.texi: Likewise.
18030         * manual/resource.texi: Likewise.
18031         * manual/search.texi: Likewise.
18032         * manual/setjmp.texi: Likewise.
18033         * manual/signal.texi: Likewise.
18034         * manual/socket.texi: Likewise.
18035         * manual/startup.texi: Likewise.
18036         * manual/stdio.texi: Likewise.
18037         * manual/string.texi: Likewise.
18038         * manual/sysinfo.texi: Likewise.
18039         * manual/syslog.texi: Likewise.
18040         * manual/terminal.texi: Likewise.
18041         * manual/time.texi: Likewise.
18042         * manual/users.texi: Likewise.
18043         * INSTALL: Regenerated.
18044         * NOTES: Regenerated.
18045         * sysdeps/gnu/errlist.c: Regenerated.
18046
18047 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
18048
18049         * include/dirent.h: Include <dirstream.h> before
18050         <dirent/dirent.h>.
18051
18052 2012-02-28  David S. Miller  <davem@davemloft.net>
18053
18054         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
18055         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
18056         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
18057         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
18058
18059 2012-02-27  David S. Miller  <davem@davemloft.net>
18060
18061         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
18062         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
18063         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
18064         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
18065
18066         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
18067         frame pointer instead of stack pointer relative arg slot.
18068         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
18069         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
18070         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
18071
18072 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
18073
18074         [BZ #3992]
18075         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
18076
18077 2012-02-27  David S. Miller  <davem@davemloft.net>
18078
18079         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
18080         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
18081         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
18082         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
18083         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
18084         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
18085         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
18086         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
18087
18088 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
18089
18090         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
18091         later.  Allow versions 5-9.
18092         * configure: Regenerated.
18093         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
18094         required minimum version and 4.6 as recommended version.  Do not
18095         mention bugs in GCC 2.7 and 2.8.
18096         * INSTALL: Regenerated.
18097
18098 2012-02-27  David S. Miller  <davem@davemloft.net>
18099
18100         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
18101         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
18102         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
18103         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
18104         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
18105         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
18106         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
18107         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
18108
18109         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
18110         manipulate bits before adding and subtracting TWO112[sx].
18111         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
18112
18113 2012-02-27  Roland McGrath  <roland@hack.frob.com>
18114
18115         [BZ #13775]
18116         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
18117         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
18118         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
18119         being in POSIX, because they are in 1003.1-2008.
18120
18121         * rt/tst-aio.c: Include <fcntl.h>.
18122         * rt/tst-aio7.c: Likewise.
18123         * rt/tst-aio64.c: Likewise.
18124
18125         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
18126
18127 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
18128
18129         * manual/install.texi (--with-headers): Describe headers as
18130         interface headers, not private headers.
18131         (Specific advice for GNU/Linux systems): Describe use of headers
18132         from "make headers_install", not private headers from older
18133         kernels.
18134         * INSTALL: Regenerated.
18135         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
18136         Change to 2.6.19.
18137         * sysdeps/unix/sysv/linux/configure: Regenerated.
18138
18139         * manual/llio.texi (fclean): Remove documentation.
18140
18141         * manual/Makefile (libc-texi-generated): New variable.  Include
18142         version.texi.
18143         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
18144         $(libc-texi-generated), not duplicated list of files.
18145         (version.texi, stamp-version): New rules.
18146         (realclean): Remove $(libc-texi-generated), not individual files
18147         from that list.  Do not remove dir-add.texinfo.
18148         * manual/libc.texinfo: Comment out uses of edition numbers and
18149         references to printed manual.  Remove last-updated dates.
18150         (EDITION): Comment out.
18151         (ISBN): Likewise.
18152         (VERSION, UPDATED): Remove.
18153         (version.texi): Include.
18154
18155 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
18156
18157         * sysdeps/posix/spawni.c: Include <signal.h>.
18158         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
18159         * sysdeps/pthread/aio_fsync.c: Likewise.
18160
18161 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
18162
18163         * conform/Makefile (tests): Run only when not cross-compiling and
18164         when fast-check is not defined.
18165
18166         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
18167         * conform/data/limits.h-data: Fixes for POSIX2008.
18168         * conform/run-conformtest.sh: Run all tests.
18169         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
18170         headers.
18171         * include/bits/dlfcn.h: Likewise.
18172         * include/langinfo.h: Likewise.
18173         * include/monetary.h: Likewise.
18174         * include/sys/poll.h: Likewise.
18175
18176         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
18177         for __USE_GNU.
18178         * posix/spawn.h: Define __need_sigset_t.
18179         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
18180         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
18181         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
18182         to get sigevent_t only.
18183         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
18184         only for __USE_GNU.
18185         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
18186         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
18187         process_vm_writev only for __USE_GNU.
18188         * termios/termios.h: Declare tcgetsid also for POSIX2008.
18189
18190         * conform/Makefile: For now ignore errors from run-conformtest.
18191         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
18192         POSIX to avoid namespace pollution.  Don't prepend headers.
18193         * conform/data/aio.h-data: Fixes for POSIX testing.
18194         * conform/data/fcntl.h-data: Likewise.
18195         * conform/data/glob.h-data: Likewise.
18196         * conform/data/grp.h-data: Likewise.
18197         * conform/data/pthread.h-data: Likewise.
18198         * conform/data/pwd.h-data: Likewise.
18199         * conform/data/signal.h-data: Likewise.
18200         * conform/data/spawn.h-data: Likewise.
18201         * conform/data/stdio.h-data: Likewise.
18202         * conform/data/stdlib.h-data: Likewise.
18203         * conform/data/stropts.h-data: Likewise.
18204         * conform/data/sys/mman.h-data: Likewise.
18205         * conform/data/sys/stat.h-data: Likewise.
18206         * conform/data/sys/types.h-data: Likewise.
18207         * conform/data/sys/wait.h-data: Likewise.
18208         * conform/data/time.h-data: Likewise.
18209         * conform/data/unistd.h-data: Likewise.
18210         * conform/data/utime.h-data: Likewise.
18211
18212         * io/sys/stat.h: fchmod was always in POSIX.
18213         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
18214         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
18215         * rt/aio.h: Define __need_timespec before including <time.h>.
18216         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
18217         struct.  Add forward declaration of pthread_attr_t and use it in
18218         sigevent.
18219         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
18220         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
18221         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
18222         always remove CLK_TCK definition.
18223
18224 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
18225
18226         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
18227
18228 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
18229
18230         * conform/run-conformtest.sh: New file.
18231         * conform/Makefile: Run run-conformtest for tests.
18232         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
18233         support.
18234
18235         * conform/data/uchar.h-data: New file.
18236         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
18237         * conform/data/arpa/inet.h-data: Likewise.
18238         * conform/data/assert.h-data: Likewise.
18239         * conform/data/complex.h-data: Likewise.
18240         * conform/data/cpio.h-data: Likewise.
18241         * conform/data/ctype.h-data: Likewise.
18242         * conform/data/dirent.h-data: Likewise.
18243         * conform/data/dlfcn.h-data: Likewise.
18244         * conform/data/errno.h-data: Likewise.
18245         * conform/data/fcntl.h-data: Likewise.
18246         * conform/data/float.h-data: Likewise.
18247         * conform/data/fmtmsg.h-data: Likewise.
18248         * conform/data/fnmatch.h-data: Likewise.
18249         * conform/data/ftw.h-data: Likewise.
18250         * conform/data/glob.h-data: Likewise.
18251         * conform/data/grp.h-data: Likewise.
18252         * conform/data/iconv.h-data: Likewise.
18253         * conform/data/inttypes.h-data: Likewise.
18254         * conform/data/langinfo.h-data: Likewise.
18255         * conform/data/libgen.h-data: Likewise.
18256         * conform/data/limits.h-data: Likewise.
18257         * conform/data/locale.h-data: Likewise.
18258         * conform/data/math.h-data: Likewise.
18259         * conform/data/monetary.h-data: Likewise.
18260         * conform/data/mqueue.h-data: Likewise.
18261         * conform/data/ndbm.h-data: Likewise.
18262         * conform/data/net/if.h-data: Likewise.
18263         * conform/data/netdb.h-data: Likewise.
18264         * conform/data/netinet/in.h-data: Likewise.
18265         * conform/data/nl_types.h-data: Likewise.
18266         * conform/data/poll.h-data: Likewise.
18267         * conform/data/pthread.h-data: Likewise.
18268         * conform/data/pwd.h-data: Likewise.
18269         * conform/data/regex.h-data: Likewise.
18270         * conform/data/sched.h-data: Likewise.
18271         * conform/data/search.h-data: Likewise.
18272         * conform/data/semaphore.h-data: Likewise.
18273         * conform/data/setjmp.h-data: Likewise.
18274         * conform/data/signal.h-data: Likewise.
18275         * conform/data/spawn.h-data: Likewise.
18276         * conform/data/stdarg.h-data: Likewise.
18277         * conform/data/stdio.h-data: Likewise.
18278         * conform/data/stdlib.h-data: Likewise.
18279         * conform/data/string.h-data: Likewise.
18280         * conform/data/strings.h-data: Likewise.
18281         * conform/data/stropts.h-data: Likewise.
18282         * conform/data/sys/ipc.h-data: Likewise.
18283         * conform/data/sys/mman.h-data: Likewise.
18284         * conform/data/sys/msg.h-data: Likewise.
18285         * conform/data/sys/resource.h-data: Likewise.
18286         * conform/data/sys/select.h-data: Likewise.
18287         * conform/data/sys/sem.h-data: Likewise.
18288         * conform/data/sys/shm.h-data: Likewise.
18289         * conform/data/sys/socket.h-data: Likewise.
18290         * conform/data/sys/stat.h-data: Likewise.
18291         * conform/data/sys/statvfs.h-data: Likewise.
18292         * conform/data/sys/time.h-data: Likewise.
18293         * conform/data/sys/timeb.h-data: Likewise.
18294         * conform/data/sys/times.h-data: Likewise.
18295         * conform/data/sys/types.h-data: Likewise.
18296         * conform/data/sys/uio.h-data: Likewise.
18297         * conform/data/sys/un.h-data: Likewise.
18298         * conform/data/sys/utsname.h-data: Likewise.
18299         * conform/data/sys/wait.h-data: Likewise.
18300         * conform/data/syslog.h-data: Likewise.
18301         * conform/data/tar.h-data: Likewise.
18302         * conform/data/termios.h-data: Likewise.
18303         * conform/data/utime.h-data: Likewise.
18304         * conform/data/utmpx.h-data: Likewise.
18305         * conform/data/varargs.h-data: Likewise.
18306         * conform/data/wchar.h-data: Likewise.
18307         * conform/data/wctype.h-data: Likewise.
18308         * conform/data/wordexp.h-data: Likewise.
18309
18310         * include/stropts.h: New file.
18311         * include/uchar.h: New file.
18312         * include/aio.h: Changes to allow conformtest.pl to use the headers.
18313         * include/assert.h: Likewise.
18314         * include/ctype.h: Likewise.
18315         * include/dirent.h: Likewise.
18316         * include/dlfcn.h: Likewise.
18317         * include/fcntl.h: Likewise.
18318         * include/fnmatch.h: Likewise.
18319         * include/glob.h: Likewise.
18320         * include/grp.h: Likewise.
18321         * include/libio.h: Likewise.
18322         * include/locale.h: Likewise.
18323         * include/math.h: Likewise.
18324         * include/net/if.h: Likewise.
18325         * include/netdb.h: Likewise.
18326         * include/netinet/in.h: Likewise.
18327         * include/pthread.h: Likewise.
18328         * include/pwd.h: Likewise.
18329         * include/regex.h: Likewise.
18330         * include/sched.h: Likewise.
18331         * include/search.h: Likewise.
18332         * include/setjmp.h: Likewise.
18333         * include/signal.h: Likewise.
18334         * include/stdio.h: Likewise.
18335         * include/stdlib.h: Likewise.
18336         * include/string.h: Likewise.
18337         * include/sys/cdefs.h: Likewise.
18338         * include/sys/mman.h: Likewise.
18339         * include/sys/msg.h: Likewise.
18340         * include/sys/resource.h: Likewise.
18341         * include/sys/select.h: Likewise.
18342         * include/sys/socket.h: Likewise.
18343         * include/sys/stat.h: Likewise.
18344         * include/sys/statvfs.h: Likewise.
18345         * include/sys/time.h: Likewise.
18346         * include/sys/times.h: Likewise.
18347         * include/sys/uio.h: Likewise.
18348         * include/sys/utsname.h: Likewise.
18349         * include/sys/wait.h: Likewise.
18350         * include/termios.h: Likewise.
18351         * include/time.h: Likewise.
18352         * include/ulimit.h: Likewise.
18353         * include/unistd.h: Likewise.
18354         * include/utime.h: Likewise.
18355         * include/wchar.h: Likewise.
18356         * include/wctype.h: Likewise.
18357         * include/wordexp.h: Likewise.
18358
18359         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
18360
18361         * time/time.h: TIME_UTC must be a macro.
18362         Make timespec_get available for ISO C11 only as well.
18363
18364 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
18365
18366         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
18367         Reported by Peng Haitao <penght@cn.fujitsu.com>.
18368
18369 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
18370
18371         * configure.in: Use -o not -a in test for unsupported multi-arch.
18372
18373 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
18374
18375         * manual/texinfo.tex: Update to version 2012-01-19.16.
18376
18377 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
18378
18379         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
18380
18381 2012-02-24  Roland McGrath  <roland@hack.frob.com>
18382
18383         [BZ #13738]
18384         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
18385         * manual/fdl-1.3.texi: New file.
18386         * manual/fdl-1.1.texi: File removed.
18387
18388         [BZ #13738]
18389         * manual/libc.texinfo (FDL_VERSION): New @set.
18390         Use it for mention of FDL in cover text.
18391         (Documentation License): Use it in @include file name.
18392
18393 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18394             Roland McGrath  <roland@hack.frob.com>
18395
18396         [BZ #5461]
18397         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
18398         not LONG_LONG_MAX and LONG_LONG_MIN.
18399         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
18400         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
18401         name.
18402         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
18403
18404 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18405
18406         [BZ #2547]
18407         [BZ #11365]
18408         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
18409         manipulate bits before adding and subtracting TWO23[sx].
18410         * math/libm-test.inc (nearbyint_test): Add more tests.
18411
18412 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18413
18414         [BZ #2548]
18415         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
18416         bits before adding and subtracting TWO23[sx].
18417         * math/libm-test.inc (rint_test): Add more tests.
18418         (rint_test_tonearest): Likewise.
18419         (rint_test_towardzero): Likewise.
18420         (rint_test_downward): Likewise.
18421         (rint_test_upward: Likewise.
18422
18423 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18424
18425         [BZ #10110]
18426         * include/stdc-predef.h: New file.  Extracted from features.h.
18427         * include/features.h: Include stdc-predef.h.
18428         * Makefile (headers): Add stdc-predef.h.
18429         * CONFORMANCE (Compiler limitations): Update.
18430
18431 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
18432
18433         * manual/libc.texinfo (VERSION, UPDATED): Revert.
18434
18435 2012-02-21  David S. Miller  <davem@davemloft.net>
18436
18437         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
18438         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
18439
18440 2012-02-20  David S. Miller  <davem@davemloft.net>
18441
18442         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
18443         using a normal save/restore sequence, rather than allocating a
18444         dummy stack frame just to store a frame pointer and restore.
18445         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
18446
18447 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
18448
18449         * manual/install.texi: Fix stray word in line-wrapped comment.
18450
18451 2012-02-20  David S. Miller  <davem@davemloft.net>
18452
18453         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
18454         both binutils and gcc support GOTDATA.
18455
18456         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
18457         "rd %pc" in the PIC register setup sequences.
18458
18459         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
18460         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
18461         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
18462         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
18463         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
18464         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
18465         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
18466         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
18467         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
18468         (SYSCALL_ERROR_HANDLER): Likewise.
18469         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
18470         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
18471         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
18472         (SYSCALL_ERROR_HANDLER): Likewise.
18473
18474         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
18475         (HAVE_GCC_GOTDATA): New.
18476         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
18477         relocation support in both binutils and gcc.
18478         * sysdeps/sparc/elf/configure: Regenerate.
18479
18480         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
18481         * sysdeps/sparc/sparc32/elf/configure: Delete.
18482         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
18483         * sysdeps/sparc/sparc64/elf/configure: Delete.
18484         * sysdeps/sparc/elf/configure.in: New file.
18485         * sysdeps/sparc/elf/configure: Generate.
18486
18487         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
18488         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
18489         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
18490         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
18491         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
18492
18493 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
18494
18495         * manual/install.texi: Do not mention specific glibc version
18496         numbers.
18497         * manual/libc.texinfo (VERSION, UPDATED): Update.
18498         (@copying): Use @copyright{} and range of years.
18499
18500 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
18501
18502         [BZ #13695]
18503         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
18504         [crti.S not in sysdirs] (generated): Do not append.
18505         [crti.S not in sysdirs] (omit-deps): Likewise.
18506         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
18507         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
18508         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
18509         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
18510         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
18511         Likewise.
18512         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
18513         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
18514         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
18515         * csu/defs.awk: Remove file.
18516         * sysdeps/generic/initfini.c: Likewise.
18517         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
18518         variable.
18519         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
18520         Likewise.
18521
18522 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18523
18524         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
18525         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
18526         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
18527         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
18528         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
18529         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
18530         <bits/epoll.h>.
18531         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
18532         (__EPOLL_PACKED): Define to empty if not defined by
18533         <bits/epoll.h>.
18534         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
18535         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18536         bits/epoll.h.
18537
18538 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18539
18540         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
18541         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
18542         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
18543         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
18544         <bits/timerfd.h>.
18545         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
18546         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18547         bits/timerfd.h.
18548
18549 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
18550
18551         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
18552         in C locale.
18553         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
18554         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
18555         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
18556         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18557
18558 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
18559
18560         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18561         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
18562
18563 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
18564
18565         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
18566         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
18567         defined.
18568         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
18569         Likewise.
18570         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
18571         entry for 2.16.
18572
18573 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
18574
18575         * math/w_acos.c: Use non-signaling floating-point comparisons.
18576         * math/w_acosf.c: Likewise.
18577         * math/w_acosh.c: Likewise.
18578         * math/w_acoshf.c: Likewise.
18579         * math/w_acoshl.c: Likewise.
18580         * math/w_acosl.c: Likewise.
18581         * math/w_asin.c: Likewise.
18582         * math/w_asinf.c: Likewise.
18583         * math/w_asinl.c: Likewise.
18584         * math/w_atanh.c: Likewise.
18585         * math/w_atanhf.c: Likewise.
18586         * math/w_atanhl.c: Likewise.
18587         * math/w_exp2.c: Likewise.
18588         * math/w_exp2f.c: Likewise.
18589         * math/w_exp2l.c: Likewise.
18590         * math/w_j0.c: Likewise.
18591         * math/w_j0f.c: Likewise.
18592         * math/w_j0l.c: Likewise.
18593         * math/w_j1.c: Likewise.
18594         * math/w_j1f.c: Likewise.
18595         * math/w_j1l.c: Likewise.
18596         * math/w_jn.c: Likewise.
18597         * math/w_jnf.c: Likewise.
18598         * math/w_log.c: Likewise.
18599         * math/w_log10.c: Likewise.
18600         * math/w_log10f.c: Likewise.
18601         * math/w_log10l.c: Likewise.
18602         * math/w_log2.c: Likewise.
18603         * math/w_log2f.c: Likewise.
18604         * math/w_log2l.c: Likewise.
18605         * math/w_logf.c: Likewise.
18606         * math/w_logl.c: Likewise.
18607         * math/w_sqrt.c: Likewise.
18608         * math/w_sqrtf.c: Likewise.
18609         * math/w_sqrtl.c: Likewise.
18610         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
18611         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
18612         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
18613         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
18614         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
18615
18616 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18617
18618         [BZ #9739]
18619         * manual/string.texi (strnlen): Use correct parameter name in
18620         equivalent expression.
18621
18622 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18623
18624         [BZ #11174]
18625         * manual/users.texi (seteuid): Consistently use neweuid for
18626         argument name.
18627
18628 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
18629
18630         [BZ #13704]
18631         * manual/nss.texi (Services in the NSS configuration): Correct
18632         list of services in example configuration file.
18633
18634 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
18635
18636         [BZ #11322]
18637         * manual/arith.texi: Remove statements about negative zero
18638         behaving identically to zero.
18639
18640 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18641
18642         [BZ #5993]
18643         * manual/install.texi: Do not document upgrading from libc5.
18644
18645 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
18646
18647         [BZ #4596]
18648         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
18649
18650 2012-02-18  David S. Miller  <davem@davemloft.net>
18651
18652         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
18653         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
18654         %o7 across the call.
18655         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
18656         instead.
18657         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
18658         SETUP_PIC_REG_LEAF.
18659         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
18660         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
18661         * sysdeps/sparc/crtn.S: Likewise.
18662
18663 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
18664
18665         * aout/Makefile: Remove.
18666
18667 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
18668
18669         [BZ #13058]
18670         * manual/examples/argp-ex1.c (main): Format definition in GNU
18671         style.
18672         * manual/examples/argp-ex2.c (main): Likewise.
18673         * manual/examples/argp-ex3.c (main): Likewise.
18674         * manual/examples/argp-ex4.c (main): Likewise.
18675         * manual/examples/longopt.c (main): Use new-style prototype
18676         definition.
18677         * manual/examples/strncat.c (main): Specify return type and use
18678         (void) for arguments.
18679         * manual/examples/subopt.c (main): Use char **argv argument.
18680
18681 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18682
18683         [BZ #5077]
18684         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
18685         rounding modes.
18686
18687 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
18688
18689         [BZ #6907]
18690         * manual/string.texi (strchr): Change when strchrnul is
18691         recommended.
18692
18693 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
18694
18695         [BZ #174]
18696         * manual/locale.texi (setlocale): Document LOCPATH.
18697
18698 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18699
18700         [BZ #10210]
18701         * manual/process.texi (execle): Move @dots{} before last argument.
18702
18703 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
18704
18705         [BZ #12047]
18706         * manual/charset.texi (Generic Charset Conversion): Fix typo
18707         (LC_TYPE -> LC_CTYPE).
18708
18709 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
18710
18711         [BZ #5805]
18712         * manual/arith.texi (scalbn): Use @var{} on parameter names.
18713         (scalbnf): Likewise.
18714         (scalbnl): Likewise.
18715         (scalbln): Likewise.
18716         (scalblnf): Likewise.
18717         (scalblnl): Likewise.
18718         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
18719         (vwarnx): Likewise.
18720         (verr): Likewise.
18721         (verrx): Likewise.
18722         * manual/filesys.texi (telldir): Use braces around return type.
18723         * manual/llio.texi (mmap): Add space after comma.
18724         (mmap64): Likewise.
18725         * manual/math.texi (jn): Use @var{} on parameter names.
18726         (jnf): Likewise.
18727         (jnl): Likewise.
18728         (yn): Likewise.
18729         (ynf): Likewise.
18730         (ynl): Likewise.
18731         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
18732         line.
18733         * manual/resource.texi (ulimit): Use @dots{} instead of literal
18734         "...".
18735         (sched_get_priority_min): Remove semicolon on @deftypefun line.
18736         (sched_get_priority_max): Likewise.
18737         * manual/signal.texi (sigvec): Add space after comma.
18738         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
18739         names.
18740         (if_indextoname): Likewise.
18741         (if_freenameindex): Likewise.
18742         (sendto): Use ',' instead of '.' in prototype.
18743         * manual/startup.texi (syscall): Use @dots{} instead of literal
18744         "...".
18745         * manual/stdio.texi (__fpending): Separate initial words of
18746         paragraph from @deftypefun line.
18747         * manual/syslog.texi (syslog): Use @dots{} instead of literal
18748         "...".
18749         (vsyslog): Use @var{} on parameter names.
18750         * manual/terminal.texi (stty): Use @var{} on parameter names.
18751         * manual/users.texi (getutmp): Use @var{} on parameter names.
18752         (getutmpx): Likewise.
18753
18754 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18755
18756         [BZ #6884]
18757         * manual/stdio.texi (fopen): Fix typos in description of
18758         ",ccs=STRING".
18759
18760 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
18761
18762         [BZ #4026]
18763         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
18764         get clock_id definition.
18765
18766 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
18767
18768         [BZ #4822]
18769         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
18770         (madvise): Cast every argument to void on its own.
18771
18772 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18773
18774         [BZ #9902]
18775         * manual/startup.texi (Exit Status): Fix typo.
18776
18777 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
18778
18779         [BZ #10140]
18780         * manual/examples/argp-ex1.c: Include <stdlib.h>.
18781         * manual/examples/argp-ex2.c: Likewise.
18782         * manual/examples/argp-ex3.c: Likewise.
18783
18784 2012-02-16  Richard Henderson  <rth@redhat.com>
18785
18786         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
18787         * sysdeps/s390/s390-32/initfini.c: Remove.
18788         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
18789         * sysdeps/s390/s390-64/initfini.c: Remove.
18790
18791 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18792
18793         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
18794         compiler output for sysdeps/generic/initfini.c.
18795         * sysdeps/sh/elf/initfini.c: Remove file.
18796
18797 2012-02-16  David S. Miller  <davem@davemloft.net>
18798
18799         [BZ #11494]
18800         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
18801
18802         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
18803         * sysdeps/sparc/crti.S: New file.
18804         * sysdeps/sparc/crtn.S: New file.
18805         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
18806         * sysdeps/sparc/sparc64/Makefile: Likewise.
18807
18808 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
18809
18810         [BZ #3335]
18811         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
18812
18813 2012-02-15  Roland McGrath  <roland@hack.frob.com>
18814
18815         [BZ #4822]
18816         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
18817
18818         * mach/devstream.c (cookie_io_functions_t): Macro removed.
18819         (write, read, close): Likewise.
18820         Patch by Aurelien Jarno <aurelien@aurel32.net>.
18821
18822 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
18823
18824         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
18825         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
18826         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
18827         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
18828         <bits/signalfd.h>.
18829         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
18830         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18831         bits/signalfd.h.
18832
18833 2012-02-14  Marek Polacek  <polacek@redhat.com>
18834
18835         * sysdeps/x86_64/crti.S: New file.
18836         * sysdeps/x86_64/crtn.S: New file.
18837         * sysdeps/x86_64/elf/initfini.c: Remove file.
18838
18839 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18840
18841         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
18842         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
18843         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
18844         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
18845         <bits/inotify.h>.
18846         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
18847         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18848         bits/inotify.h.
18849
18850 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
18851
18852         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
18853         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
18854         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
18855         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
18856         <bits/eventfd.h>.
18857         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
18858         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
18859         bits/eventfd.h.
18860
18861 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
18862
18863         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
18864         __feraiseexcept instead of feraiseexcept.
18865
18866         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
18867         nanosleep invocations.
18868         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
18869         strings, and add error checking for a nanosleep invocations.
18870
18871 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
18872
18873         Replace FSF snail mail address with URLs, as per GNU coding standards.
18874         Most of the snail mail addresses were wrong anyway, and omitting
18875         them makes the source code easier to maintain.  Almost all of the
18876         changes are to license notices and to locale LC_IDENTIFICATION
18877         addresses, except for this one:
18878         * manual/libc.texinfo: In "Published by", give the FSF's URL,
18879         not its snail mail address.
18880
18881 2012-02-09  Richard Henderson  <rth@twiddle.net>
18882
18883         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
18884         of kernel-features.h.
18885
18886         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
18887
18888 2012-02-08  Marek Polacek  <polacek@redhat.com>
18889
18890         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
18891         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
18892         * sysdeps/gnu/_G_config.h: Likewise.
18893         * sysdeps/generic/_G_config.h: Likewise.
18894
18895 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
18896
18897         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
18898         tests.
18899         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18900
18901         * sysdeps/powerpc/powerpc32/crti.S: New file.
18902         * sysdeps/powerpc/powerpc32/crtn.S: New file.
18903         * sysdeps/powerpc/powerpc64/crti.S: New file.
18904         * sysdeps/powerpc/powerpc64/crtn.S: New file.
18905
18906         * Makeconfig (have-initfini): Don't set.
18907         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
18908         * configure.in (nopic_initfini): Don't substitute.
18909         * config.h.in (HAVE_INITFINI): Don't #undef.
18910         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
18911         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
18912
18913 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
18914
18915         Support crti.S and crtn.S provided directly by architectures.
18916         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
18917         [crti.S in sysdirs] (omit-deps): Likewise.
18918         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
18919         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
18920         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
18921         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
18922         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
18923         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
18924         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
18925         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
18926         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
18927         compiler output for sysdeps/generic/initfini.c.
18928         * sysdeps/i386/elf/Makefile: Remove file.
18929         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
18930
18931 2012-02-07  Marek Polacek  <polacek@redhat.com>
18932
18933         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
18934         * sysdeps/gnu/_G_config.h: Likewise.
18935         * sysdeps/mach/hurd/_G_config.h: Likewise.
18936
18937 2012-02-07  Marek Polacek  <polacek@redhat.com>
18938
18939         * math/Makefile (tests): Add tst-CMPLX2.
18940         * math/tst-CMPLX2.c: New file.
18941
18942 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
18943
18944         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
18945
18946         * math/libm-test.inc (jn_test): Add missing L suffix.
18947
18948 2012-02-06  Marek Polacek  <polacek@redhat.com>
18949
18950         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
18951         * sysdeps/i386/fpu/e_powf.S: Likewise.
18952         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
18953         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
18954         * sysdeps/i386/fpu/e_acosh.S: Likewise.
18955         * sysdeps/i386/fpu/e_pow.S: Likewise.
18956         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
18957         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
18958         * sysdeps/i386/fpu/s_expm1.S: Likewise.
18959         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
18960         * sysdeps/i386/fpu/e_log2.S: Likewise.
18961         * sysdeps/i386/fpu/e_log2l.S: Likewise.
18962         * sysdeps/i386/fpu/e_scalb.S: Likewise.
18963         * sysdeps/i386/fpu/e_powl.S: Likewise.
18964         * sysdeps/i386/fpu/s_log1p.S: Likewise.
18965         * sysdeps/i386/fpu/e_log10f.S: Likewise.
18966         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
18967         * sysdeps/i386/fpu/e_logl.S: Likewise.
18968         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
18969         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
18970         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
18971         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
18972         * sysdeps/i386/fpu/e_log2f.S: Likewise.
18973         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
18974         * sysdeps/i386/fpu/e_log.S: Likewise.
18975         * sysdeps/i386/fpu/s_cexp.S: Likewise.
18976         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
18977         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
18978         * sysdeps/i386/fpu/e_logf.S: Likewise.
18979         * sysdeps/i386/fpu/e_log10l.S: Likewise.
18980         * sysdeps/i386/fpu/e_atanh.S: Likewise.
18981         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
18982         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
18983         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
18984         * sysdeps/i386/fpu/e_log10.S: Likewise.
18985         * sysdeps/i386/fpu/s_frexp.S: Likewise.
18986         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
18987         * sysdeps/i386/fpu/s_asinh.S: Likewise.
18988         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
18989         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
18990         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
18991         * sysdeps/i386/asm-syntax.h: Likewise.
18992         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
18993         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
18994         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
18995         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
18996         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
18997         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
18998         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
18999         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
19000         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
19001         * sysdeps/powerpc/sysdep.h: Likewise.
19002         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
19003         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
19004
19005 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
19006
19007         [BZ #411]
19008         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
19009
19010 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
19011
19012         * sysdeps/i386/sysdep.h: Include <features.h>.
19013         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
19014         version.
19015
19016 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
19017
19018         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
19019         Define.
19020         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
19021         LOAD_PIC_REG_STR.
19022
19023 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19024
19025         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
19026         (SETUP_PIC_REG): Use GET_PC_THUNK.
19027         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
19028         macro.
19029
19030 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19031
19032         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
19033         for non-PIC compilation.
19034         (SETUP_PIC_REG): Add .p2align directive.
19035         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
19036         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
19037         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
19038         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
19039         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
19040         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
19041         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
19042         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
19043         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
19044         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
19045         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
19046         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
19047         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
19048         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
19049         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
19050         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
19051         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
19052         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
19053         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
19054         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
19055         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
19056         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
19057         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
19058         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
19059         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
19060         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
19061         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
19062         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
19063         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
19064         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
19065         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
19066         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
19067         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
19068         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
19069         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
19070         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
19071         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
19072         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
19073         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
19074         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
19075         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
19076
19077 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
19078
19079         * math/tst-CMPLX.c: Include <stdio.h>.
19080
19081 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
19082
19083         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
19084         float.
19085         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
19086         * sysdeps/sparc/bits/mathdef.h: Likewise.
19087
19088 2012-01-31  Marek Polacek  <polacek@redhat.com>
19089
19090         * libio/libio.h: Don't define _PARAMS.
19091         * locale/programs/config.h: Don't define PARAMS.
19092         * stdlib/strtol_l.c: Likewise.
19093         (__strtol_l): Remove PARAMS from the prototype.
19094
19095 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
19096
19097         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
19098         names.  Just use the correct names.  Remove unnecessary wrapper
19099         functions.
19100         * malloc/arena.c: Likewise.
19101         * malloc/hooks.c: Likewise.
19102
19103         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
19104         ARENA_TEST says not to.  Simplify test for creation of a new arena.
19105         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
19106
19107 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
19108
19109         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
19110         into tail calls.
19111         (update_get_addr): New function.
19112         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
19113         GET_ADDR_MODULE parameter.
19114
19115 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
19116
19117         * crypt/cert.c: Remove __STDC__ conditionals.
19118         * crypt/crypt-entry.c: Likewise.
19119         * crypt/crypt_util.c: Likewise.
19120         * libio/filedoalloc.c: Likewise.
19121         * libio/fileops.c: Likewise.
19122         * libio/genops.c: Likewise.
19123         * libio/iofclose.c: Likewise.
19124         * libio/iofdopen.c: Likewise.
19125         * libio/iofopen.c: Likewise.
19126         * libio/iofopen64.c: Likewise.
19127         * libio/iogetdelim.c: Likewise.
19128         * libio/iopopen.c: Likewise.
19129         * libio/obprintf.c: Likewise.
19130         * libio/oldfileops.c: Likewise.
19131         * libio/oldiofclose.c: Likewise.
19132         * libio/oldiofdopen.c: Likewise.
19133         * libio/oldiofopen.c: Likewise.
19134         * libio/oldiopopen.c: Likewise.
19135         * libio/wfiledoalloc.c: Likewise.
19136         * libio/wgenops.c: Likewise.
19137         * locale/programs/xmalloc.c: Likewise.
19138         * misc/syslog.c: Likewise.
19139         * stdio-common/xbug.c: Likewise.
19140         * string/memchr.c: Likewise.
19141         * string/memcmp.c: Likewise.
19142         * string/memrchr.c: Likewise.
19143         * string/rawmemchr.c: Likewise.
19144         * sysdeps/posix/getcwd.c: Likewise.
19145         * time/strftime_l.c: Likewise.
19146
19147 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
19148
19149         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
19150         * config.make.in (config-cflags-sse2avx): Define.
19151         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
19152         Fix typo.
19153
19154 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
19155
19156         * scripts/config.guess: Update from upstream config git repository.
19157         * scripts/config.sub: Likewise.
19158
19159 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
19160
19161         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
19162         (EM_NUM): Update.
19163         (R_TILEPRO_*, R_TILEGX_*): New macros.
19164
19165         * scripts/firstversions.awk: Fix bug in version range handling.
19166
19167         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
19168
19169         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
19170
19171         * include/sys/epoll.h: New file.
19172         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
19173         libc_hidden_def.
19174
19175 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
19176
19177         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
19178         Avoid unnecessary __WORDSIZE == 64 test.
19179         (fmaxf): Use VEX format if possible.
19180         (fmax): Likewise.
19181         (fminf): Likewise.
19182         (fmin): Likewise.
19183
19184         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
19185         * math/math_private.h: Remove libc_fegetround* and
19186         libc_fesetround*.
19187         * sysdeps/i386/configure.in: Check for -msse2avx.
19188         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
19189         also if SSE2AVX is defined.
19190         Remove libc_fegetround* and libc_fesetround*.
19191         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
19192         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
19193         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
19194         of HAS_YMM_USABLE.
19195         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19196         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19197         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19198         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19199         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19200
19201         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
19202
19203 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19204
19205         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
19206         size is not set.
19207         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
19208
19209 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
19210
19211         [BZ #13618]
19212         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
19213         relocation.
19214         * Makeconfig (libm): Define.
19215         * elf/Makefile: Add rules to build and run tst-relsort1.
19216         * elf/tst-relsort1.c: New file.
19217         * elf/tst-relsort1mod1.c: New file.
19218         * elf/tst-relsort1mod2.c: New file.
19219
19220 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
19221
19222         * math/s_ldexp.c: Remove __STDC__ conditionals.
19223         * math/s_ldexpf.c: Likewise.
19224         * math/s_ldexpl.c: Likewise.
19225         * math/s_nextafter.c: Likewise.
19226         * math/s_nexttowardf.c: Likewise.
19227         * math/s_significand.c: Likewise.
19228         * math/s_significandf.c: Likewise.
19229         * math/s_significandl.c: Likewise.
19230         * math/w_jnl.c: Likewise.
19231         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
19232         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
19233         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
19234         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
19235         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
19236         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
19237         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
19238         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
19239         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
19240         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
19241         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
19242         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
19243         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
19244         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
19245         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
19246         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
19247         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
19248         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
19249         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
19250         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
19251         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
19252         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
19253         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
19254         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
19255         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
19256         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
19257         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
19258         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
19259         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
19260         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
19261         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
19262         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
19263         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
19264         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
19265         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
19266         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
19267         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
19268         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
19269         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
19270         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
19271         * sysdeps/ieee754/k_standard.c: Likewise.
19272         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
19273         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
19274         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
19275         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
19276         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
19277         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
19278         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
19279         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
19280         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
19281         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
19282         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
19283         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
19284         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
19285         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
19286         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
19287         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
19288         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
19289         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
19290         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
19291         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
19292         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
19293         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
19294         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
19295         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
19296         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
19297         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
19298         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
19299         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
19300         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
19301         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
19302         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
19303         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
19304         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
19305         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
19306         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
19307         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
19308         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
19309         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
19310         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
19311         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
19312         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
19313         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
19314         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
19315         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
19316         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
19317         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
19318         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
19319         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
19320         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
19321         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
19322         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
19323         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
19324         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
19325         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
19326         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
19327         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
19328         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
19329         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
19330         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
19331         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
19332         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
19333         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
19334         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
19335         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
19336         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
19337         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
19338         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
19339         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
19340         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
19341         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
19342         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
19343         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
19344         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
19345         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
19346         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
19347         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
19348         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
19349         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
19350         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
19351         * sysdeps/ieee754/s_matherr.c: Likewise.
19352         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
19353         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
19354         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
19355         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
19356
19357 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
19358
19359         * crypt/md5.h: Remove __STDC__ conditionals.
19360         * libio/libioP.h: Likewise.
19361         * locale/programs/config.h: Likewise.
19362         * sysdeps/generic/sysdep.h: Likewise.
19363         * sysdeps/i386/asm-syntax.h: Likewise.
19364         * sysdeps/s390/asm-syntax.h: Likewise.
19365         * sysdeps/unix/sysdep.h: Likewise.
19366         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
19367         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
19368
19369 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
19370
19371         * libio/libio.h: Remove __STDC__ conditionals.
19372         * malloc/obstack.h: Likewise.
19373         * math/complex.h: Likewise.
19374         * math/math.h: Likewise.
19375         * sysdeps/generic/_G_config.h: Likewise.
19376         * sysdeps/gnu/_G_config.h: Likewise.
19377         * sysdeps/mach/hurd/_G_config.h: Likewise.
19378         * sysdeps/powerpc/bits/mathdef.h: Likewise.
19379         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
19380         * sysdeps/sparc/bits/mathdef.h: Likewise.
19381
19382 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
19383
19384         [BZ #13583]
19385         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
19386         Clean up HAS_* macros.
19387         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
19388         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
19389         possible.
19390         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
19391         HAS_AVX.
19392         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
19393         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
19394         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
19395         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
19396         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
19397
19398 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
19399
19400         * elf/tst-unique3.cc (gets): Remove declaration.
19401         * elf/tst-unique3lib.cc (gets): Likewise.
19402         * elf/tst-unique3lib2.cc (gets): Likewise.
19403         * elf/tst-unique4.cc (gets): Likewise.
19404
19405 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
19406
19407         * include/stdio.h: Add C++ protection.  Add gets declarations and
19408         definitions.
19409         * debug/tst-chk1.c: Don't declare gets here.
19410         * stdio-common/tst-gets.c: Likewise.
19411
19412 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
19413
19414         * posix/glob: Remove directory.
19415
19416 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
19417
19418         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
19419
19420 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
19421
19422         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
19423         of the non-standard EPFNOSUPPORT.
19424
19425 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19426
19427         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
19428         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
19429         ANYWHERE set to 1 only on KERN_NO_SPACE error.
19430
19431 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
19432
19433         * wcsmbs/uchar.h: Test __STDC_VERSION__.
19434
19435 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
19436
19437         * nscd/aicache.c (addhstaiX): Do not cache negative results of
19438         transient errors.
19439         * nscd/grpcache.c (cache_addgr): Likewise.
19440         * nscd/hstcache.c (cache_addhst): Likewise.
19441         * nscd/initgrcache.c (addinitgroupsX): Likewise.
19442         * nscd/pwdcache.c (cache_addpw): Likewise.
19443         * nscd/servicescache.c (cache_addserv): Likewise.
19444
19445 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
19446
19447         * malloc/malloc.c: Various cleanups.
19448         * malloc/hooks.c: Likewise.
19449
19450         * stdlib/Makefile (tests): Add bug-fmtmsg1.
19451         * stdlib/bug-fmtmsg1.c: New file.
19452
19453         * stdlib/fmtmsg.c (init): Add missing unlock.
19454         Patch by Peng Haitao <penght@cn.fujitsu.com>.
19455
19456 2012-01-12  Marek Polacek  <polacek@redhat.com>
19457
19458         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
19459         and _GNU_SOURCE.
19460
19461 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
19462
19463         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
19464         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
19465         macro to ensure uniqueness of label name.
19466         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
19467         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
19468
19469 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
19470
19471         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
19472
19473         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
19474         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
19475         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
19476         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
19477
19478 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
19479
19480         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
19481
19482         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
19483         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
19484         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
19485
19486         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
19487
19488         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
19489         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
19490         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
19491         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
19492
19493         * math/bits/math-finite.h: Add ldexp support.
19494
19495 2012-01-10  Marek Polacek  <polacek@redhat.com>
19496
19497         * locale/programs/localedef.h (show_archive_content): Add noreturn
19498         attribute.
19499
19500 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
19501
19502         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
19503
19504 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19505
19506         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
19507
19508         * io/Makefile (headers): Add bits/poll2.h.
19509
19510 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
19511
19512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
19513         typo #include statement.
19514
19515 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19516
19517         * include/sys/cdefs.h: Define __attribute_alloc_size.
19518         * catgets/gencat.c: Add alloc_size attribute and apply consistently
19519         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
19520         * elf/pldd.c: Likewise.
19521         * iconv/iconv_charmap.c: Likewise.
19522         * iconv/iconvconfig.c: Likewise.
19523         * iconv/strtab.c: Likewise.
19524         * locale/programs/locale.c: Likewise.
19525         * locale/programs/localedef.h: Likewise.
19526         * locale/programs/simple-hash.c: Likewise.
19527         * nscd/nscd.h: Likewise.
19528         * nss/makedb.c: Likewise.
19529         * sysdeps/generic/ldconfig.h: Likewise.
19530         * locale/programs/localedef.c: Remove xmalloc prototype.
19531         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
19532
19533 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
19534
19535         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
19536         appropriate.
19537
19538 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
19539
19540         * math/Makefile (tests): Add tst-CMPLX.
19541         * math/tst-CMPLX.c: New file.
19542
19543         * math/complex.h (CMPLXL): Fix typo.
19544
19545         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
19546         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
19547         GLIBC_2.16.
19548         * debug/tst-chk1.c: Add poll and ppoll tests.
19549         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
19550         * include/sys/poll.h: Add hidden proto for ppoll.
19551         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
19552         * sysdeps/mach/hurd/ppoll.c: Likewise.
19553         * io/ppoll.c: Likewise.
19554         * debug/poll_chk.c: New file.
19555         * debug/ppoll_chk.c: New file.
19556         * include/bits/poll2.h: New file.
19557         * io/bits/poll2.h: New file.
19558
19559         [BZ #1350]
19560         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
19561
19562         * configure.in: static is always set to yes.  Remove.
19563         * config.make.in: Don't set build-static.
19564         * Makeconfig: Remove use of build-static.
19565         * dlfcn/Makefile: Likewise.
19566         * elf/Makefile: Likewise.
19567         * math/Makefile: Likewise.
19568         * misc/Makefile: Likewise.
19569         * nptl/Makefile: Likewise.
19570         * sysdeps/mach/hurd/Makefile: Likewise.
19571
19572         * configure.in: PWD_P is not used anymore.
19573         * config.make.in: Remove PWD_P entry.
19574
19575         * configure.in: Remove last remnants of RANLIB.
19576         No need to check for signed size_t anymore.
19577         Don't set libc_commonpagesize and libc_relro_required here for Alpha
19578         and IA-64.
19579         Remove __builtin_expect test because we require at least gcc 3.4.
19580         * aclocal.m4: Likewise.
19581
19582         * wcsmbs/mbrtoc16.c: Implement using towc function.
19583         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
19584         * wcsmbs/wcsmbsload.c: Likewise.
19585         * iconv/gconv_simple.c: Likewise.
19586         * iconv/gconv_int.h: Likewise.
19587         * iconv/gconv_builtin.h: Likewise.
19588         * iconv/iconv_prog.c: Remove CHAR16 handling.
19589
19590         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
19591
19592         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
19593
19594         * configure.in: Remove --with-elf and --enable-bounded options.
19595         Dont set base_machine for ia64.  More non-ELF conditions removed.
19596         Remove testing and setting of leading underscore information.
19597         * config.make.in (build-bounded): Set to no.
19598         * config.h.in: Remove NO_UNDERSCORES entry.
19599         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
19600         them.
19601         * csu/start.c: Remove !NO_UNDERSCORE code.
19602         * locale/localeinfo.h: Likewise.
19603         * sysdeps/generic/machine-gmon.h: Likewise.
19604         * sysdeps/generic/sysdep.h: Likewise.
19605         * sysdeps/i386/sysdep.h: Likewise.
19606         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19607         * sysdeps/mach/sysdep.h: Likewise.
19608         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19609         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19610         * sysdeps/sh/sysdep.h: Likewise.
19611         * sysdeps/sparc/sparc32/alloca.S: Likewise.
19612         * sysdeps/unix/i386/sysdep.S: Likewise.
19613         * sysdeps/unix/sparc/start.c: Likewise.
19614         * sysdeps/unix/sparc/sysdep.S: Likewise.
19615         * sysdeps/unix/sparc/sysdep.h: Likewise.
19616         * sysdeps/unix/start.c: Likewise.
19617         * sysdeps/unix/x86_64/sysdep.S: Likewise.
19618         * sysdeps/x86_64/sysdep.h: Likewise.
19619
19620 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
19621
19622         [BZ #13553]
19623         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
19624         for non-gcc.
19625         * argp/argp-fmtstream.h: Use const instead __const.
19626         * argp/argp.h: Likewise.
19627         * assert/assert.h: Likewise.
19628         * bits/fenv.h: Likewise.
19629         * bits/sched.h: Likewise.
19630         * bits/sigset.h: Likewise.
19631         * bits/sigthread.h: Likewise.
19632         * catgets/nl_types.h: Likewise.
19633         * conform/data/pthread.h-data: Likewise.
19634         * crypt/crypt-private.h: Likewise.
19635         * crypt/crypt.h: Likewise.
19636         * crypt/crypt_util.c: Likewise.
19637         * ctype/ctype.h: Likewise.
19638         * debug/execinfo.h: Likewise.
19639         * debug/mbsnrtowcs_chk.c: Likewise.
19640         * debug/mbsrtowcs_chk.c: Likewise.
19641         * debug/wcsnrtombs_chk.c: Likewise.
19642         * debug/wcsrtombs_chk.c: Likewise.
19643         * debug/wcstombs_chk.c: Likewise.
19644         * dirent/dirent.h: Likewise.
19645         * dlfcn/dlfcn.h: Likewise.
19646         * elf/neededtest4.c: Likewise.
19647         * grp/grp.h: Likewise.
19648         * gshadow/gshadow.h: Likewise.
19649         * iconv/gconv.h: Likewise.
19650         * iconv/gconv_int.h: Likewise.
19651         * iconv/gconv_simple.c: Likewise.
19652         * iconv/iconv.h: Likewise.
19653         * iconv/loop.c: Likewise.
19654         * iconv/skeleton.c: Likewise.
19655         * include/aio.h: Likewise.
19656         * include/aliases.h: Likewise.
19657         * include/argz.h: Likewise.
19658         * include/arpa/inet.h: Likewise.
19659         * include/assert.h: Likewise.
19660         * include/dirent.h: Likewise.
19661         * include/dlfcn.h: Likewise.
19662         * include/execinfo.h: Likewise.
19663         * include/fcntl.h: Likewise.
19664         * include/fenv.h: Likewise.
19665         * include/glob.h: Likewise.
19666         * include/grp.h: Likewise.
19667         * include/libintl.h: Likewise.
19668         * include/mntent.h: Likewise.
19669         * include/netdb.h: Likewise.
19670         * include/pwd.h: Likewise.
19671         * include/rpc/netdb.h: Likewise.
19672         * include/sched.h: Likewise.
19673         * include/search.h: Likewise.
19674         * include/shadow.h: Likewise.
19675         * include/signal.h: Likewise.
19676         * include/stdio.h: Likewise.
19677         * include/stdlib.h: Likewise.
19678         * include/string.h: Likewise.
19679         * include/sys/socket.h: Likewise.
19680         * include/sys/stat.h: Likewise.
19681         * include/sys/statfs.h: Likewise.
19682         * include/sys/statvfs.h: Likewise.
19683         * include/sys/syslog.h: Likewise.
19684         * include/sys/time.h: Likewise.
19685         * include/sys/uio.h: Likewise.
19686         * include/time.h: Likewise.
19687         * include/unistd.h: Likewise.
19688         * include/utmp.h: Likewise.
19689         * include/wchar.h: Likewise.
19690         * include/wctype.h: Likewise.
19691         * inet/aliases.h: Likewise.
19692         * inet/arpa/inet.h: Likewise.
19693         * inet/netinet/ether.h: Likewise.
19694         * inet/netinet/in.h: Likewise.
19695         * intl/libintl.h: Likewise.
19696         * io/bits/fcntl2.h: Likewise.
19697         * io/fcntl.h: Likewise.
19698         * io/ftw.h: Likewise.
19699         * io/sys/poll.h: Likewise.
19700         * io/sys/stat.h: Likewise.
19701         * io/sys/statfs.h: Likewise.
19702         * io/sys/statvfs.h: Likewise.
19703         * io/utime.h: Likewise.
19704         * libio/bits/stdio.h: Likewise.
19705         * libio/bits/stdio2.h: Likewise.
19706         * libio/libio.h: Likewise.
19707         * libio/libioP.h: Likewise.
19708         * libio/stdio.h: Likewise.
19709         * locale/lc-ctype.c: Likewise.
19710         * locale/locale.h: Likewise.
19711         * login/utmp.h: Likewise.
19712         * malloc/arena.c: Likewise.
19713         * malloc/malloc.c: Likewise.
19714         * malloc/malloc.h: Likewise.
19715         * malloc/mcheck.c: Likewise.
19716         * malloc/mtrace.c: Likewise.
19717         * math/bits/mathcalls.h: Likewise.
19718         * math/fenv.h: Likewise.
19719         * math/math_private.h: Likewise.
19720         * misc/bits/error.h: Likewise.
19721         * misc/bits/syslog.h: Likewise.
19722         * misc/err.h: Likewise.
19723         * misc/error.h: Likewise.
19724         * misc/fstab.h: Likewise.
19725         * misc/mntent.h: Likewise.
19726         * misc/regexp.h: Likewise.
19727         * misc/search.h: Likewise.
19728         * misc/sgtty.h: Likewise.
19729         * misc/sys/mman.h: Likewise.
19730         * misc/sys/syslog.h: Likewise.
19731         * misc/sys/uio.h: Likewise.
19732         * misc/sys/xattr.h: Likewise.
19733         * misc/ttyent.h: Likewise.
19734         * nis/rpcsvc/ypclnt.h: Likewise.
19735         * nss/nss.h: Likewise.
19736         * posix/bits/unistd.h: Likewise.
19737         * posix/fnmatch.h: Likewise.
19738         * posix/glob.h: Likewise.
19739         * posix/sched.h: Likewise.
19740         * posix/spawn.h: Likewise.
19741         * posix/sys/wait.h: Likewise.
19742         * posix/unistd.h: Likewise.
19743         * posix/wordexp.h: Likewise.
19744         * pwd/pwd.h: Likewise.
19745         * resolv/netdb.h: Likewise.
19746         * resource/sys/resource.h: Likewise.
19747         * rt/aio.h: Likewise.
19748         * rt/bits/mqueue2.h: Likewise.
19749         * rt/mqueue.h: Likewise.
19750         * shadow/shadow.h: Likewise.
19751         * signal/signal.h: Likewise.
19752         * socket/send.c: Likewise.
19753         * socket/sendto.c: Likewise.
19754         * socket/sys/socket.h: Likewise.
19755         * stdio-common/printf.h: Likewise.
19756         * stdlib/bits/stdlib.h: Likewise.
19757         * stdlib/fmtmsg.h: Likewise.
19758         * stdlib/monetary.h: Likewise.
19759         * stdlib/stdlib.h: Likewise.
19760         * stdlib/ucontext.h: Likewise.
19761         * streams/stropts.h: Likewise.
19762         * string/argz.h: Likewise.
19763         * string/bits/string2.h: Likewise.
19764         * string/string.h: Likewise.
19765         * string/strings.h: Likewise.
19766         * sunrpc/rpc/auth.h: Likewise.
19767         * sunrpc/rpc/auth_des.h: Likewise.
19768         * sunrpc/rpc/clnt.h: Likewise.
19769         * sunrpc/rpc/netdb.h: Likewise.
19770         * sunrpc/rpc/pmap_clnt.h: Likewise.
19771         * sunrpc/rpc/xdr.h: Likewise.
19772         * sysdeps/generic/inttypes.h: Likewise.
19773         * sysdeps/generic/net/if.h: Likewise.
19774         * sysdeps/generic/sys/swap.h: Likewise.
19775         * sysdeps/gnu/net/if.h: Likewise.
19776         * sysdeps/gnu/utmpx.h: Likewise.
19777         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
19778         * sysdeps/i386/i486/bits/string.h: Likewise.
19779         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
19780         * sysdeps/s390/bits/string.h: Likewise.
19781         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
19782         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
19783         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
19784         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
19785         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
19786         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
19787         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
19788         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
19789         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
19790         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
19791         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
19792         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
19793         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
19794         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
19795         * sysdeps/unix/sysv/linux/readv.c: Likewise.
19796         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
19797         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
19798         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
19799         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
19800         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
19801         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
19802         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
19803         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
19804         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
19805         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
19806         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
19807         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
19808         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
19809         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
19810         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
19811         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
19812         * sysvipc/sys/ipc.h: Likewise.
19813         * sysvipc/sys/msg.h: Likewise.
19814         * sysvipc/sys/sem.h: Likewise.
19815         * sysvipc/sys/shm.h: Likewise.
19816         * termios/termios.h: Likewise.
19817         * time/sys/time.h: Likewise.
19818         * time/time.h: Likewise.
19819         * wcsmbs/bits/wchar2.h: Likewise.
19820         * wcsmbs/uchar.h: Likewise.
19821         * wcsmbs/wchar.h: Likewise.
19822         * wctype/wctype.h: Likewise.
19823
19824         [BZ #13551]
19825         * Makeconfig: Remove all but ELF support including AIX support.
19826         * Makerules: Likewise.
19827         * config.h.in: Likewise.
19828         * config.make.in: Likewise.
19829         * configure: Likewise.
19830         * configure.in: Likewise.
19831         * csu/Makefile: Likewise.
19832         * csu/version.c: Likewise.
19833         * debug/Makefile: Likewise.
19834         * dlfcn/Makefile: Likewise.
19835         * elf/Makefile: Likewise.
19836         * extra-lib.mk: Likewise.
19837         * iconv/Makefile: Likewise.
19838         * include/libc-symbols.h: Likewise.
19839         * include/shlib-compat.h: Likewise.
19840         * resolv/Makefile: Likewise.
19841         * resolv/res_libc.c: Likewise.
19842         * rt/Makefile: Likewise.
19843         * sysdeps/i386/asm-syntax.h: Likewise.
19844         * sysdeps/i386/sysdep.h: Likewise.
19845         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
19846         * sysdeps/mach/sysdep.h: Likewise.
19847         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
19848         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
19849         * sysdeps/s390/asm-syntax.h: Likewise.
19850         * sysdeps/s390/s390-32/sysdep.h: Likewise.
19851         * sysdeps/s390/s390-64/sysdep.h: Likewise.
19852         * sysdeps/sh/sysdep.h: Likewise.
19853         * sysdeps/unix/sparc/sysdep.h: Likewise.
19854         * sysdeps/wordsize-32/divdi3.c: Likewise.
19855         * sysdeps/x86_64/sysdep.h: Likewise.
19856
19857         * argp/Versions: Remove _argp_unlock_xxx.
19858
19859         [BZ #13559]
19860         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
19861         * abilist/libBrokenLocale.abilist: Likewise.
19862         * abilist/libanl.abilist: Likewise.
19863         * abilist/libc.abilist: Likewise.
19864         * abilist/libcrypt.abilist: Likewise.
19865         * abilist/libdl.abilist: Likewise.
19866         * abilist/libm.abilist: Likewise.
19867         * abilist/libnsl.abilist: Likewise.
19868         * abilist/libpthread.abilist: Likewise.
19869         * abilist/libresolv.abilist: Likewise.
19870         * abilist/librt.abilist: Likewise.
19871         * abilist/libthread_db.abilist: Likewise.
19872         * abilist/libutil.abilist: Likewise.
19873         * abilist/libnss_db.abilist: New file.
19874
19875         * scripts/abilist.awk: Add support for indirect functions.
19876
19877         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
19878
19879         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
19880
19881         * shlib-versions: Remove entries for ports architectures.
19882
19883         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
19884         files in ports.
19885         * elf/stackguard-macros.h: Remove support for IA-64.
19886         * elf/tst-auditmod1.c: Likewise.
19887         * sysdeps/generic/ldsodefs.h: Likewise.
19888
19889         * sysdeps/unix/sysv/linux/configure.in: Ports should define
19890         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
19891         configure files.
19892
19893         [BZ #13552]
19894         * configure.in: Remove --enable-omitfp support.
19895         * FAQ.in: Adjust.
19896         * config.make.in: Likewise.
19897         * Makeconfig: Likewise.
19898         * manual/install.texi: Likewise.
19899
19900         In case anyone cares, the IA-64 architecture could move to ports.
19901         * sysdeps/ia64/*: Removed.
19902         * sysdeps/unix/sysv/linux/ia64/*: Removed.
19903         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
19904
19905         [BZ #13555]
19906         * configure.in: Remove entries for unsupported architectures.
19907
19908         [BZ #13533]
19909         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
19910         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
19911         routines.
19912         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
19913         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
19914         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
19915         fall back to using wcrtomb.
19916         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
19917         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
19918         renaming.
19919         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
19920         * wcsmbs/tst-c16c32-1.c: New file.
19921
19922         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
19923         local variable.
19924
19925         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
19926
19927         * elf/tst-unique3.cc: Add explicit declaration of gets.
19928         * elf/tst-unique3lib.cc: Likewise.
19929         * elf/tst-unique3lib2.cc: Likewise.
19930         * elf/tst-unique4.cc: Likewise.
19931
19932         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
19933
19934 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
19935
19936         [BZ #13566]
19937         * assert/assert.h (static_assert): Don't define for C++.
19938         * libio/stdio.h (gets): Do declare for C++ <= C++11.
19939         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
19940
19941 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
19942
19943         * iconv/loop.c (single loop): Fix assertion in storing of
19944         remaining bytes.
19945
19946         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
19947
19948 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
19949
19950         * posix/getconf.c: Update copyright year.
19951         * nss/getent.c: Likewise.
19952         * nss/makedb.c: Likewise.
19953         * iconv/iconvconfig.c: Likewise.
19954         * iconv/iconv_prog.c: Likewise.
19955         * elf/ldconfig.c: Likewise.
19956         * elf/pldd.c: Likewise.
19957         * elf/sotruss.ksh: Likewise.
19958         * catgets/gencat.c: Likewise.
19959         * csu/version.c: Likewise.
19960         * elf/ldd.bash.in: Likewise.
19961         * elf/sprof.c (print_version): Likewise.
19962         * locale/programs/locale.c: Likewise.
19963         * locale/programs/localedef.c: Likewise.
19964         * login/programs/pt_chown.c: Likewise.
19965         * nscd/nscd.c (print_version): Likewise.
19966         * debug/xtrace.sh: Likewise.
19967         * malloc/memusage.sh: Likewise.
19968         * malloc/mtrace.pl: Likewise.
19969         * debug/catchsegv.sh: Likewise.
19970
19971 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
19972
19973         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
19974         pure attribute.
19975
19976 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
19977
19978         [BZ #13533]
19979         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
19980         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
19981         transformations.
19982         * iconv/gconv_int.h: Likewise.
19983         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
19984         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
19985         from libc for GLIBC_2.16.
19986         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
19987         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
19988         * wcsmbs/uchar.h: Really define mbstate_t.
19989         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
19990         * wcsmbs/c16rtomb.c: New file.
19991         * wcsmbs/mbrtoc16.c: New file.
19992         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
19993         for C/POSIX locale.
19994         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
19995         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
19996
19997         * wcsmbs/wchar.h: Add missing __restrict.
19998
19999 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
20000
20001         [BZ #13532]
20002         * time/Makefile (routines): Add timespec_get.
20003         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
20004         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
20005         timespec for ISO C11.
20006         * time/timespec_get.c: New file.
20007         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
20008         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
20009
20010         [BZ #13531]
20011         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
20012         * stdlib/stdlib.h: Declare aligned_alloc.
20013         * Versions.def: Add GLIBC_2.16 for libc.
20014         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
20015
20016         [BZ 13527]
20017         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
20018         ISO C11.
20019
20020         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
20021         code.
20022
20023         [BZ #13528]
20024         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
20025
20026         [BZ #13529]
20027         * assert/assert.h (static_assert): Define.
20028
20029         * version.h: Update for 2.16 development version.
20030
20031         [BZ #13526]
20032         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
20033         _ISOC11_SOURCE.
20034
20035         * version.h (RELEASE): Bump for 2.15 release.
20036         * include/features.h (__GLIBC_MINOR__): Bump to 15.
20037
20038         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
20039         Patch by Marek Polacek <mpolacek@redhat.com>.
20040
20041         * bits/byteswap.h: Protect long long constants with __extension__.
20042         * sysdeps/i386/bits/byteswap.h: Likewise.
20043         * sysdeps/ia64/bits/byteswap.h: Likewise.
20044         * sysdeps/s390/bits/byteswap.h: Likewise.
20045         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20046
20047 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20048
20049         [BZ #13540]
20050         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
20051         destination buffer.
20052         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
20053
20054 2011-12-23  Marek Polacek  <polacek@redhat.com>
20055
20056         * elf/dl-addr.c (determine_info): Add inline keyword.
20057         * elf/tst-auditmod4b.c (check_avx): Likewise.
20058         * elf/tst-auditmod6b.c (check_avx): Likewise.
20059         * elf/tst-auditmod6c.c (check_avx): Likewise.
20060         * elf/tst-auditmod7b.c (check_avx): Likewise.
20061
20062 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
20063
20064         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
20065         !__SSE_MATH__.
20066
20067 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20068
20069         [BZ #13540]
20070         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
20071         processing for last bytes.
20072
20073 2011-08-06  Bruno Haible  <bruno@clisp.org>
20074
20075         [BZ #13061]
20076         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
20077         U+0385, not to U+1FEE.
20078
20079         [BZ #13062]
20080         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
20081         entry for U+00A5 U+0301.
20082
20083 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
20084
20085         [BZ #13166]
20086         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
20087         buffer for the output is too small.
20088
20089         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
20090         optimization.
20091
20092         [BZ #13185]
20093         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
20094         SSE flags if possible.
20095
20096 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20097
20098         [BZ #13540]
20099         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
20100         processing for last bytes.
20101
20102 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
20103
20104         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
20105         (syscall-list-default-options, syscall-list-default-condition)
20106         (syscall-list-includes): Define.
20107         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
20108         list of ABIs and options and #if conditions for each ABI.  Do not
20109         handle common syscalls between ABIs specially.
20110         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
20111         Remove.
20112         (syscall-list-variants, syscall-list-32bit-options)
20113         (syscall-list-32bit-condition, syscall-list-64bit-options)
20114         (syscall-list-64bit-condition): Define.
20115         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
20116         (syscall-list-variants, syscall-list-32bit-options)
20117         (syscall-list-32bit-condition, syscall-list-64bit-options)
20118         (syscall-list-64bit-condition): Define.
20119         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
20120         Remove.
20121         (syscall-list-variants, syscall-list-32bit-options)
20122         (syscall-list-32bit-condition, syscall-list-64bit-options)
20123         (syscall-list-64bit-condition): Define.
20124         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
20125         Remove.
20126         (syscall-list-variants, syscall-list-32bit-options)
20127         (syscall-list-32bit-condition, syscall-list-64bit-options)
20128         (syscall-list-64bit-condition): Define.
20129
20130 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
20131
20132         * locale/iso-639.def: Add brx entry.
20133
20134         [BZ #13328]
20135         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
20136         Proposed by Mariusz_Cukr <marcukr@op.pl>.
20137
20138         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
20139         __feraiseexcept_renamed.
20140
20141 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
20142
20143         [BZ #13538]
20144         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
20145         EPOLLET with unsigned values.
20146         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
20147         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
20148
20149         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
20150         to large cancellation.
20151         * math/s_cacoshf.c: Likewise.
20152         * math/s_cacoshl.c: Likewise.
20153
20154 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
20155
20156         [BZ #13305]
20157         [BZ #12786]
20158         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
20159         * math/s_cacoshf.c: Likewise.
20160         * math/s_cacoshl.c: Likewise.
20161
20162 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
20163
20164         [BZ #13439]
20165         * iconv/gconv.h: Define __GCONV_SWAP.
20166         * iconvdata/unicode.c: The swap bit must be stored in __flags.
20167         * iconvdata/utf-16.c: Likewise.
20168         * iconvdata/utf-32.c: Likewise.
20169
20170 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
20171
20172         [BZ #13524]
20173         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
20174         numerator after shifting it by one limb.
20175
20176 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
20177
20178         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
20179         under [__USE_EXTERN_INLINES].
20180
20181 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
20182
20183         [BZ #13446]
20184         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
20185
20186 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20187
20188         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
20189         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
20190         optimized code.
20191         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
20192         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
20193         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
20194         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
20195         for strncasecmp/strncasecmp_l compilation.
20196         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
20197         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
20198
20199 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
20200
20201         [BZ #13484]
20202         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
20203         of __asm__.
20204
20205 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
20206
20207         [BZ #13506]
20208         * time/tzfile.c (__tzfile_read): Check values from file header.
20209
20210 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
20211
20212         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
20213         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
20214         * powerpc/powerpc32/dl-start.S: Likewise.
20215         * powerpc/powerpc32/elf/start.S: Likewise.
20216         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
20217         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
20218         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
20219         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
20220         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
20221         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
20222         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
20223         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
20224         * powerpc/powerpc32/fpu/s_round.S: Likewise.
20225         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
20226         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
20227         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
20228         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
20229         * powerpc/powerpc32/memset.S: Likewise.
20230         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
20231         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
20232         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
20233         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
20234         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
20235         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
20236         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
20237         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
20238         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
20239         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
20240         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
20241         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
20242         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
20243
20244 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20245
20246         * math/libm-test.inc: Added more nearbyint tests.
20247         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
20248         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
20249         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
20250         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
20251
20252 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
20253
20254         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
20255         FD_CLOEXEC.
20256
20257 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20258
20259         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
20260         Add wcscpy-ssse3 wcscpy-c.
20261         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
20262         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
20263         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
20264         * sysdeps/x86_64/wcschr.S: New file.
20265         * sysdeps/x86_64/wcsrchr.S: New file.
20266         * string/test-strcmp.c: Remove checking of wcscmp function for
20267         wrong alignments.
20268         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
20269         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
20270         wcsrchr-sse2 wcsrchr-c.
20271         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
20272         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
20273         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
20274         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
20275         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
20276         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
20277         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
20278         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
20279         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
20280         * wcsmbc/wcschr.c (WCSCHR): New macro.
20281
20282 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20283
20284         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
20285         * wcsmbs/test-wcsrchr.c: New file.
20286         * string/test-strrchr.c: Add wcsrchr support.
20287         (WIDE): New macro.
20288         * wcsmbs/test-wcscpy.c: New file.
20289         * string/test-strcpy.c: Add wcscpy support.
20290         (WIDE): New macro.
20291
20292 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
20293
20294         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
20295         the inner loop.
20296
20297 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
20298
20299         [BZ #13472]
20300         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
20301
20302 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
20303
20304         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
20305         Minor optimizations.
20306
20307         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
20308         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
20309         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
20310
20311 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
20312
20313         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
20314         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
20315         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
20316         for gcc to avoid warnings.
20317         * inet/Makefile (tests): Add tst-checks.
20318         * inet/tst-checks.c: New file.
20319
20320         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
20321         warning.
20322
20323         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
20324         __wmemcmp_sse2.
20325
20326         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
20327         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
20328
20329         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
20330
20331 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
20332
20333         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
20334         problem.
20335
20336         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
20337
20338 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
20339
20340         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
20341         conditional on GCC version.
20342         (__arch_compare_and_exchange_val_8_acq)
20343         (__arch_compare_and_exchange_val_16_acq)
20344         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
20345         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
20346         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
20347
20348 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
20349
20350         * sysdeps/sh/backtrace.c: New file.
20351
20352 2011-12-02  Andreas Schwab  <schwab@redhat.com>
20353
20354         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
20355         parenthesis.
20356
20357 2011-12-01  Andreas Schwab  <schwab@redhat.com>
20358
20359         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
20360         falling back to utime.
20361
20362 2011-11-30  Andreas Schwab  <schwab@redhat.com>
20363
20364         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
20365         expectations for float.
20366
20367 2011-11-29  Andreas Schwab  <schwab@redhat.com>
20368
20369         * locale/weight.h (findidx): Add parameter len.
20370         * locale/weightwc.h (findidx): Likewise.
20371         * posix/fnmatch_loop.c (FCT): Adjust caller.
20372         * posix/regcomp.c (build_equiv_class): Likewise.
20373         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
20374         * posix/regexec.c (check_node_accept_bytes): Likewise.
20375         * string/strcoll_l.c (STRCOLL): Likewise.
20376         * string/strxfrm_l.c (STRXFRM): Likewise.
20377
20378 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
20379
20380         * Makefile.in: Remove CVSOPT handling.
20381         * configure.in: Remove use of AC_REVISION.
20382         * iconvdata/Makefile (distribute): No need to filter out CVS.
20383         * scripts/list-sources.sh: Remove CVS, subversion and monotone
20384         handling.
20385
20386 2011-11-16  Andreas Schwab  <schwab@redhat.com>
20387
20388         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
20389         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
20390         [USE_AS_STRNCASECMP_L]: Likewise.
20391         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
20392         NO_TLS_DIRECT_SEG_REFS.
20393         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
20394         Fix argument offsets for non-PIC.
20395         [USE_AS_STRNCASECMP_L]: Likewise.
20396         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
20397         NO_TLS_DIRECT_SEG_REFS.
20398
20399 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
20400
20401         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
20402         O_CLOEXEC.
20403         * locale/loadlocale.c (_nl_load_locale): Likewise.
20404
20405 2011-11-15  Andreas Schwab  <schwab@redhat.com>
20406
20407         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
20408         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
20409         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
20410         (SYSCALL_GETTIME): Set errno on error.
20411
20412         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
20413         count references to noai6ai_cached.
20414
20415 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
20416
20417         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
20418
20419         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
20420         FD_CLOEXEC for /proc/self/maps.
20421
20422         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
20423         FD_CLOEXEC for /proc/meminfo.
20424
20425         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
20426         gai.conf.
20427
20428         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
20429         FD_CLOEXEC for given file.
20430
20431         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
20432
20433         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
20434         FD_CLOEXEC for /etc/hosts.
20435         (_gethtent): Likewise.
20436
20437         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
20438
20439         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
20440         cancellation and set FD_CLOEXEC for /etc/netgroup.
20441
20442         * nss/nss_files/files-key.c (search): Don't allow cancellation when
20443         reading /etc/publickey.
20444
20445         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
20446         allow cancellation when reading /etc/group.
20447
20448         * nss/nss_files/files-alias.c (internal_setent): Don't allow
20449         cancellation.
20450         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
20451
20452         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
20453         when using data file.
20454
20455         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
20456
20457         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
20458         (write_nis_obj): Use "c" and "e" in fopen.
20459
20460         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
20461
20462         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
20463
20464         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
20465
20466         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
20467
20468         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
20469         locale.alias.
20470
20471         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
20472
20473         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
20474
20475         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
20476
20477         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
20478         file parsing and set FD_CLOEXEC.
20479
20480 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
20481
20482         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
20483
20484 2011-11-14  Andreas Schwab  <schwab@redhat.com>
20485
20486         * malloc/arena.c (arena_get2): Don't call reused_arena when
20487         _int_new_arena failed.
20488
20489 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
20490
20491         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
20492         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
20493         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
20494         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
20495         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
20496         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
20497         to compile strcasecmp and strncasecmp.
20498         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
20499         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
20500
20501         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
20502
20503 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
20504
20505         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
20506         locale-defines.sym to gen-as-const-headers.
20507         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
20508         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
20509         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
20510         to compile strcasecmp and strncasecmp.
20511         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
20512         strcasecmp_l and strncasecmp_l.
20513         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
20514         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
20515         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
20516         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
20517         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
20518         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
20519         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
20520         * sysdeps/i386/i686/multiarch/strncase.S: New file.
20521         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
20522         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
20523         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
20524
20525 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
20526
20527         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
20528         result of SYSDEP_GETTIME_CPU to retval.
20529         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
20530         parameter list to macro.  Remove trailing semicolon.  Adjust users.
20531
20532         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
20533         variable.
20534
20535         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
20536         mantissa words.
20537         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
20538
20539         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
20540         from unused variable.
20541
20542         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
20543         DWARF definitions.
20544         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
20545         for assembling.
20546
20547         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
20548         over namespaces.
20549
20550         * sunrpc/rpc_prot.c (rejected): Fix case value.
20551
20552         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
20553         unsigned long long int to avoid warnings in shift.
20554
20555         * posix/regex_internal.c (re_string_reconstruct): Actually use result
20556         of use of trans.
20557         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
20558         variable tmp.
20559
20560         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
20561         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
20562         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
20563
20564         * nis/nis_table.c (nis_list): Use variable of correct type for
20565         result of __follow_path call.
20566
20567 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20568
20569         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
20570         of math functions ceil, trunc, floor, round, and sqrt, when
20571         avaliable on the platform.
20572         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
20573         name clash.
20574         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
20575         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
20576         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
20577
20578 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
20579
20580         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
20581         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
20582
20583 2011-11-11  Roland McGrath  <roland@hack.frob.com>
20584
20585         * include/unistd.h: Fix __readlink return type.
20586         Reported by Chris Metcalf <cmetcalf@tilera.com>.
20587
20588 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
20589
20590         * stdlib/ucontext.h: Undo last change for makecontext.
20591
20592 2011-11-11  Andreas Schwab  <schwab@redhat.com>
20593
20594         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
20595
20596         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
20597         * setjmp/setjmp.h: Mark functions as non-leaf.
20598         * setjmp/bits/setjmp2.h: Likewise.
20599         * stdlib/ucontext.h: Likewise.
20600
20601 2011-11-10  Andreas Schwab  <schwab@redhat.com>
20602
20603         * malloc/arena.c (_int_new_arena): Don't increment narenas.
20604         (reused_arena): Don't check arena limit.
20605         (arena_get2): Atomically check arena limit.
20606
20607 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
20608
20609         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
20610         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
20611
20612         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
20613         instructions.
20614
20615 2011-11-07  Andreas Schwab  <schwab@redhat.com>
20616
20617         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
20618         handler when locking.
20619
20620         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
20621         Fix size of allocated buffer.
20622
20623 2011-11-04  Andreas Schwab  <schwab@redhat.com>
20624
20625         [BZ #10103]
20626         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
20627         declarations for long double functions.
20628         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
20629
20630         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
20631
20632 2011-11-03  Andreas Schwab  <schwab@redhat.com>
20633
20634         * nscd/nscd.c (main): Don't start AVC thread until credentials are
20635         installed.
20636
20637         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
20638         is disabled.
20639
20640 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
20641
20642         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
20643
20644 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
20645
20646         * include/alloca.h (stackinfo_alloca_round): Define.
20647         (extend_alloca): Use it.
20648         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
20649         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
20650         here.
20651
20652         * scripts/check-local-headers.sh: Ignore libaudit.h.
20653
20654         * nscd/Makefile (extra-objs): Make recursively expanded.
20655
20656 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
20657
20658         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
20659         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
20660
20661         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
20662         * posix/tst-rfc3484-2.c: Likewise.
20663         * posix/tst-rfc3484-3.c: Likewise.
20664
20665         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
20666         process_vm_writev.
20667         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
20668         process_vm_writev.
20669         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
20670         process_vm_writev from libc using GLIBC_2.15 version.
20671
20672         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
20673
20674 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
20675
20676         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
20677         stack usage.
20678
20679 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
20680
20681         [BZ #13367]
20682         * nss/getent.c (initgroups_keys): Show error message in case no group
20683         names are given.
20684
20685         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
20686         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
20687         __bump_nl_timestamp.
20688         * nscd/connections (nscd_init): When host database is served open
20689         netlink socket and request notification about configuration changes.
20690         (main_loop_poll): Track netlink file descriptor and bump timestamp
20691         in case data becomes available.
20692         (main_loop_epoll): Likewise.
20693         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
20694         (database_pers_head): Add extra_data fileds.
20695         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
20696         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
20697         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
20698         Adjust caller.
20699         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
20700         in6ai data, call __free_in6ai.
20701         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
20702         Add -DHAVE_NETLINK.
20703         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
20704         interface information.  Reuse previous data if netlink timestamp
20705         is not changed.
20706         (__bump_nl_timestamp): New function.
20707         (__free_in6ai): New function.
20708
20709 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
20710
20711         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
20712         close_not_cancel_no_status here.
20713         (__check_pf): Reorganize code a bit to not call close twice if OOM.
20714
20715 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20716
20717         [BZ #13276]
20718         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
20719         return value.
20720
20721         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
20722         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
20723         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
20724
20725 2011-07-03  Andreas Jaeger  <aj@suse.de>
20726
20727         [BZ #10709]
20728         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
20729         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
20730         * math/libm-test.inc (sin_test): Add test case.
20731
20732 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
20733
20734         [BZ #13337]
20735         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
20736         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20737
20738         * elf/chroot_canon.c (chroot_canon): Cleanups.
20739
20740         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
20741
20742         [BZ #13335]
20743         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
20744         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
20745
20746         * string/test-strchr.c: Make usable for strchrnul testing.
20747         * string/test-strchrnul.c: New file.
20748         * string/Makefile (strop-tests): Add strchrnul.
20749
20750         * po/it.po: Update from translation team.
20751         * po/es.po: Likewise.
20752
20753 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
20754
20755         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
20756         the three constants needed as parameters.  Drop the others.
20757         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
20758         __m128i_strloadu_tolower.
20759         Create and initialize variable zero and use it in all the places
20760         where _mm_setzero_si128 was used.
20761
20762         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
20763         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
20764         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
20765         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
20766         anymore.
20767         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
20768         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
20769         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
20770         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
20771         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
20772         __mpranred, __mptan.
20773         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
20774         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
20775         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
20776         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
20777         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
20778         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
20779         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
20780         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
20781         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
20782
20783 2011-10-28  Andreas Schwab  <schwab@redhat.com>
20784
20785         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
20786         redefine if SHARED.
20787         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
20788
20789         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
20790         wide char related routines to wcsmbs subdir.
20791
20792 2011-10-27  Andreas Schwab  <schwab@redhat.com>
20793
20794         [BZ #13344]
20795         * misc/sys/cdefs.h (__THROWNL): Define.
20796         * posix/unistd.h: Use __THREADNL instead of __THREAD
20797         for memory synchronization functions.
20798
20799 2011-10-26  Roland McGrath  <roland@hack.frob.com>
20800
20801         [BZ #13349]
20802         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
20803         doesn't exist.
20804         * manual/stdio.texi (Obstack Streams): Node removed.
20805
20806 2011-10-26  Andreas Schwab  <schwab@redhat.com>
20807
20808         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
20809         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20810         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20811
20812         * math/math_private.h (math_force_eval): Allow non-addressable
20813         arguments.
20814         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
20815
20816 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20817
20818         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
20819         file is not needed.
20820
20821         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
20822         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
20823         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
20824         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
20825         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
20826         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
20827         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
20828         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
20829         Add AVX variants.
20830         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
20831         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
20832         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
20833         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
20834         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
20835         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
20836         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
20837         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
20838         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
20839         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
20840         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
20841         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
20842         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
20843         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
20844         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
20845         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
20846         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
20847         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
20848         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
20849
20850         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
20851         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
20852
20853         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
20854         place.  Use VEX encoding when compiling for AVX.
20855
20856 2011-10-25  Andreas Schwab  <schwab@redhat.com>
20857
20858         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
20859         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
20860
20861         * string/test-strchr.c (do_test): Don't generate NUL bytes.
20862
20863 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20864
20865         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
20866         useless if() expression.
20867         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
20868         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
20869         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
20870         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
20871         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
20872         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
20873         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
20874         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
20875         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
20876         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
20877         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
20878         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
20879         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
20880         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
20881         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
20882         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
20883         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
20884         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
20885         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
20886
20887         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
20888
20889 2011-10-25  Andreas Schwab  <schwab@redhat.com>
20890
20891         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
20892         condition.
20893         * elf/dl-fini.c (_dl_sort_fini): Likewise.
20894
20895 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
20896
20897         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
20898         .text section.  Avoid duplicate constants.
20899         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
20900         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
20901         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
20902         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
20903         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20904         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20905         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20906         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
20907         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
20908         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
20909         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
20910         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
20911         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
20912         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
20913         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
20914         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
20915         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
20916         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
20917         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
20918         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
20919         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
20920         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
20921         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
20922         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
20923         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
20924         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
20925         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
20926         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
20927         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
20928         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
20929         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
20930         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
20931         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
20932         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
20933         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
20934         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
20935         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
20936         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
20937         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
20938         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
20939         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
20940         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
20941         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
20942         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
20943         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
20944
20945 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
20946
20947         * sysdeps/x86_64/dla.h: Move to ...
20948         * sysdeps/x86_64/fpu/dla.h: ...here.
20949         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
20950         situations.  Use __builtin_fma only for gcc 4.6 and up.
20951
20952         * config.make.in: Add have-mfma4 entry.
20953         * configure.in: Substitute libc_cv_cc_fma4.
20954         * math/Makefile (dbl-only-routines): Add sincostab.
20955         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
20956         Use __sincostab not sincos.
20957         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
20958         name is a macro.
20959         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
20960         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
20961         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
20962         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
20963         using __copysign.
20964         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
20965         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
20966         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
20967         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
20968         and __inv.
20969         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
20970         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
20971         __copysign.
20972         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
20973         define aliases when function name is a macro.
20974         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
20975         sysdeps/ieee754/dbl-64/sincos.tbl.
20976         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
20977         fma4-enabled routines.
20978         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
20979         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
20980         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
20981         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
20982         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
20983         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
20984         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
20985         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
20986         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
20987         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
20988         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
20989         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
20990         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
20991         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
20992         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
20993         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
20994         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
20995         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
20996         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
20997         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
20998         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
20999         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
21000         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
21001         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
21002         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
21003         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
21004         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
21005         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
21006         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
21007         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
21008
21009         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
21010         rename.
21011         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21012         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21013         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21014         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21015         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21016         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21017         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21018         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21019
21020 2011-10-24  Andreas Schwab  <schwab@redhat.com>
21021
21022         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
21023
21024 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21025
21026         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
21027
21028         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
21029         prediction.
21030         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
21031
21032         * string/strnlen.c: Don't define STRNLEN, reverse logic.
21033         Remove unused variable magic_bits.
21034         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
21035
21036         * string/strnlen.c: Define and use STRNLEN macro.
21037         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
21038         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
21039         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
21040         * wcsmbs/wcslen.c: Define and use WCSLEN.
21041         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
21042         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
21043         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
21044         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
21045         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
21046         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
21047         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
21048
21049 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21050
21051         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
21052         strnlen-sse2-no-bsf.
21053         Rename strlen-no-bsf to strlen-sse2-no-bsf.
21054         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
21055         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
21056         Add strnlen support.
21057         (USE_AS_STRNLEN): New macro.
21058         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
21059         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
21060         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
21061         * sysdeps/x86_64/wcslen.S: New file.
21062
21063 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
21064
21065         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
21066         XMM-moves are used for copying on small sizes.
21067
21068 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21069
21070         * wcsmbs/Makefile (strop-tests): Add wcschr.
21071         * wcsmbs/test-wcschr.c: New file.
21072         * string/test-strchr.c: Update.
21073         Add wcschr support.
21074         (WIDE): New macro.
21075
21076 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21077
21078         * wcsmbs/Makefile (strop-tests): Add wcslen.
21079         * wcsmbs/test-wcslen.c: New file.
21080         * string/test-strlen.c: Update.
21081         Add wcslen support.
21082         (WIDE): New macro.
21083
21084 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21085
21086         * po/it.po: Update from translation team.
21087
21088 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21089
21090         * sysdeps/x86_64/wcscmp.S: Update.
21091         Fix wrong comparison semantics.
21092         wcscmp shall use signed comparison not unsigned.
21093         Don't use substraction to avoid overflow bug.
21094         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
21095         * wcsmbc/wcscmp.c: Likewise.
21096         * string/test-strcmp.c: Likewise.
21097         Add new tests to check cases with negative values.
21098
21099 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
21100
21101         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
21102         * sysdeps/x86_64/dla.h: ...here.  New file.
21103         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
21104         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21105         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21106         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21107         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21108         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21109         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21110         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21111         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21112
21113 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
21114
21115         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
21116         __ynl_finite aliases.
21117
21118 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
21119
21120         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21121
21122         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
21123         define DLA_FMA.
21124         [DLA_FMA] (EMULV): Use DLA_FMA.
21125         [DLA_FMA] (MUL12): Use EMULV.
21126         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
21127         that are not needed.
21128         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
21129         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21130         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21131         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21132         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21133         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
21134         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
21135
21136 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
21137
21138         * math/s_nan.c: Undef __nan.
21139         * math/s_nanf.c: Undef __nanf.
21140         * math/s_nanl.c: Undef __nanl.
21141         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
21142         "math_private.h".
21143
21144 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
21145
21146         * math/s_catan.c: Add branch predictions.
21147         * math/s_catanf.c: Likewise.
21148         * math/s_catanh.c: Likewise.
21149         * math/s_catanhf.c: Likewise.
21150         * math/s_catanhl.c: Likewise.
21151         * math/s_catanl.c: Likewise.
21152         * math/s_cexp.c: Likewise.
21153         * math/s_cexpf.c: Likewise.
21154         * math/s_cexpl.c: Likewise.
21155         * math/s_clog.c: Likewise.
21156         * math/s_clog10.c: Likewise.
21157         * math/s_clog10f.c: Likewise.
21158         * math/s_clog10l.c: Likewise.
21159         * math/s_clogf.c: Likewise.
21160         * math/s_clogl.c: Likewise.
21161         * math/s_csqrt.c: Likewise.
21162         * math/s_csqrtf.c: Likewise.
21163         * math/s_csqrtl.c: Likewise.
21164         * math/s_ctanf.c: Likewise.
21165         * math/s_ctanh.c: Likewise.
21166         * math/s_ctanhf.c: Likewise.
21167         * math/s_ctanhl.c: Likewise.
21168         * math/s_ctanl.c: Likewise.
21169
21170         * math/math_private.h: Define __nan, __nanf, __nanl.
21171         * math/s_cacosh.c: Include <math_private.h>.
21172         * math/s_cacoshl.c: Likewise.
21173         * math/s_casinh.c: Likewise.
21174         * math/s_casinhf.c: Likewise.
21175         * math/s_casinhl.c: Likewise.
21176         * math/s_ccos.c: Rely entire on ccosh.
21177         * math/s_ccosf.c: Rely entire on ccoshf.
21178         * math/s_ccosl.c: Rely entirely on ccoshl.
21179         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
21180         Remove tests for FE_INVALID.
21181         * math/s_ccoshf.c: Likewise.
21182         * math/s_ccoshl.c: Likewise.
21183         * math/s_csin.c: Likewise.
21184         * math/s_csinf.c: Likewise.
21185         * math/s_csinh.c Likewise.
21186         * math/s_csinhf.c: Likewise.
21187         * math/s_csinhl.c: Likewise.
21188         * math/s_csinl.c: Likewise.
21189         * math/s_ctan.c: Likewise.
21190         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
21191         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
21192         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
21193
21194 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
21195
21196         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
21197         compilation problems.
21198
21199         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
21200         __builtin_expect.
21201
21202 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
21203
21204         * sysdeps/i386/configure.in: Test for -mfma4 option.
21205         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
21206         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
21207         COMMON_CPUID_INDEX_80000001.
21208         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
21209         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
21210         use it if FMA3 is not supported.
21211         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
21212
21213         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
21214         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
21215
21216 2011-10-20  Andreas Schwab  <schwab@redhat.com>
21217
21218         [BZ #12892]
21219         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
21220         it would create a cycle with a link time dependency.
21221
21222 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
21223
21224         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
21225         instruction.
21226         * string/Makefile (strop-tests): Add rawmemchr.
21227         * string/test-rawmemchr.c: New file.
21228
21229         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
21230         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
21231         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
21232         when compiling str{,n}casecmp and when AVX is available.  Hook up
21233         new optimized code in initializers.
21234
21235 2011-10-19  Andreas Schwab  <schwab@redhat.com>
21236
21237         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
21238         __feraiseexcept instead of feraiseexcept.
21239
21240 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
21241
21242         * math/math_private.h: Define defaults for libc_fetestexcept and
21243         libc_feupdateenv.
21244         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
21245         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
21246         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
21247         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
21248         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
21249         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
21250         libc_fetestexcept and libc_feupdateenv.
21251
21252         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
21253         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
21254         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
21255         * sysdeps/x86_64/fpu/math_private.h: Define special version of
21256         libc_feholdexcept_setround.
21257
21258         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
21259         Add s_nearbyint-c and s_nearbyintf-c.
21260         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
21261         nearbyintf inlines.
21262         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
21263         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
21264         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
21265         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
21266
21267         * math/math_private.h: Define defaults for libc_fegetround,
21268         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
21269         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
21270         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
21271         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
21272         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
21273         standard functions.
21274         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
21275         Remove comments and hacks for old compiler versions.
21276         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
21277         libc_fegetround, libc_fesetround, libc_feholdexcept, and
21278         libc_feholdexceptl.
21279
21280 2011-10-18  Andreas Schwab  <schwab@redhat.com>
21281
21282         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
21283         (__feraiseexcept_renamed): Add __NTH.
21284         (feraiseexcept): Add __NTH.  Rename local variables to fix
21285         namespace violations.
21286
21287 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
21288
21289         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
21290
21291         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
21292
21293         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
21294         recently added interfaces.
21295         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
21296
21297         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
21298         about macro parameter expansion.
21299
21300         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
21301         __NO_MATH_INLINES is defined.  Cleanups.
21302
21303         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
21304         and __floorf is target has SSE4.1.
21305         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
21306         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
21307         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
21308         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
21309
21310         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
21311         name.
21312         (floorf): Likewise.
21313
21314         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
21315
21316 2011-10-17  Andreas Schwab  <schwab@redhat.com>
21317
21318         * misc/sys/cdefs.h: Fix last change.
21319
21320         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
21321         database lookup.
21322
21323 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
21324
21325         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
21326
21327         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
21328         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
21329         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
21330         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
21331         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
21332         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
21333         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
21334         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
21335         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
21336         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
21337         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
21338         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
21339         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
21340         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
21341         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
21342         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
21343         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
21344         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
21345         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
21346         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
21347         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
21348         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
21349
21350         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
21351         ceil, ceilf, floor, floorf.
21352
21353         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
21354         Perform IRELATIVE relocations last.
21355
21356         * elf/do-rel.h: Add another parameter nrelative, replacing the
21357         local variable with the same name.  Change name of the function
21358         to end in Rel or Rela (uppercase).
21359         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
21360         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
21361         elf_dynamic_do_##reloc function.
21362
21363 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
21364
21365         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
21366         is sufficient, at least on modern CPUs.
21367
21368         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
21369
21370         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
21371         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
21372
21373         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
21374         __expl_finite.
21375         * math/bits/math-finite.h: Add entries for exp.
21376         * math/e_expl.c: Add __*_finite alias.
21377         * sysdeps/i386/fpu/e_exp.S: Likewise.
21378         * sysdeps/i386/fpu/e_expf.S: Likewise.
21379         * sysdeps/i386/fpu/e_expl.c: Likewise.
21380         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
21381         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
21382         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
21383         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
21384         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
21385         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
21386         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
21387
21388         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
21389         is sufficient, at least on modern CPUs.
21390
21391         * ctype/ctype-info.c (__ctype_init): Define.
21392         * include/ctype.h (__ctype_init): Declare.
21393         (__ctype_b_loc): The variable is always initialized.
21394         (__ctype_toupper_loc): Likewise.
21395         (__ctype_tolower_loc): Likewise.
21396         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
21397         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
21398
21399 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
21400
21401         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
21402
21403         * configure.in: Also look in $cxxmachine/include for C++ system
21404         headers.
21405
21406 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21407
21408         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
21409         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
21410         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
21411         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
21412         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
21413         (USE_AS_WMEMCMP): New macro.
21414         Fixing indents.
21415         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
21416         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
21417         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
21418         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
21419         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21420         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
21421         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
21422         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
21423         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
21424         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
21425         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
21426         (USE_AS_WMEMCMP): New macro.
21427         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
21428         * sysdeps/string/test-memcmp.c: Update.
21429         Fix simple_wmemcmp.
21430         Add new tests.
21431         * wcsmbs/wmemcmp.c: Update.
21432         (WMEMCMP): New macro.
21433         Fix overflow bug.
21434
21435 2011-10-12  Andreas Jaeger  <aj@suse.de>
21436
21437         [BZ #13268]
21438         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
21439
21440 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
21441
21442         * libio/iofwide.c (do_length): Avoid warning.
21443
21444         * ctype/ctype.h (__isctype_f): Add missing __THROW.
21445
21446 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
21447
21448         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
21449
21450         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
21451         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
21452         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
21453         * sysdeps/i386/i686/fpu/e_log.S: New file.
21454         * sysdeps/i386/i686/fpu/e_logf.S: New file.
21455         * sysdeps/i386/i686/fpu/e_logl.S: New file.
21456
21457         * ctype/ctype.h: Add support for inlined isXXX functions when
21458         compiling C++ code.
21459
21460 2011-10-14  Andreas Schwab  <schwab@redhat.com>
21461
21462         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
21463
21464         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
21465
21466 2011-10-13  Roland McGrath  <roland@hack.frob.com>
21467
21468         [BZ #13291]
21469         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
21470
21471 2011-10-13  Andreas Schwab  <schwab@redhat.com>
21472
21473         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
21474         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
21475         feraiseexcept.
21476
21477         * sysdeps/x86_64/memrchr.S: Check for zero size.
21478
21479         * string/stratcliff.c: Add memrchr tests.
21480
21481 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21482
21483         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
21484         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
21485         rawmemchr-sse2 rawmemchr-sse2-bsf.
21486         * sysdeps/i386/i686/multiarch/memchr.S: New file.
21487         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
21488         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
21489         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
21490         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
21491         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
21492         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
21493         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
21494         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
21495         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
21496         * string/memrchr.c (MEMRCHR): New macro.
21497
21498 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
21499
21500         Add integration with gcc's -ffinite-math-only and optimize wrapper
21501         functions in libm.
21502         * Versions.def: Define GLIBC_2.15 version for libm.
21503         * math/Makefile (headers): Add bits/math-finite.h.
21504         * math/bits/math-finite.h: New file.
21505         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
21506         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
21507         * math/e_acoshl.c: Add __*_finite alias.
21508         * math/e_acosl.c: Likewise.
21509         * math/e_asinl.c: Likewise.
21510         * math/e_atan2l.c: Likewise.
21511         * math/e_atanhl.c: Likewise.
21512         * math/e_coshl.c: Likewise.
21513         * math/e_exp10.c: Likewise.
21514         * math/e_exp10f.c: Likewise.
21515         * math/e_exp10l.c: Likewise.
21516         * math/e_exp2l.c: Likewise.
21517         * math/e_fmodl.c: Likewise.
21518         * math/e_gammal_r.c: Likewise.
21519         * math/e_hypotl.c: Likewise.
21520         * math/e_j0l.c: Likewise.
21521         * math/e_j1l.c: Likewise.
21522         * math/e_jnl.c: Likewise.
21523         * math/e_lgammal_r.c: Likewise.
21524         * math/e_log10l.c: Likewise.
21525         * math/e_log2l.c: Likewise.
21526         * math/e_logl.c: Likewise.
21527         * math/e_powl.c: Likewise.
21528         * math/e_sinhl.c: Likewise.
21529         * math/e_sqrtl.c: Likewise.
21530         * math/e_scalb.c: Completely rewritten and optimized.
21531         * math/e_scalbf.c: Likewise.
21532         * math/e_scalbl.c: Likewise.
21533         * math/w_acos.c: Likewise.
21534         * math/w_acosf.c: Likewise.
21535         * math/w_acosl.c: Likewise.
21536         * math/w_acosh.c: Likewise.
21537         * math/w_acoshf.c: Likewise.
21538         * math/w_acoshl.c: Likewise.
21539         * math/w_asin.c: Likewise.
21540         * math/w_asinf.c: Likewise.
21541         * math/w_asinl.c: Likewise.
21542         * math/w_atan2.c: Likewise.
21543         * math/w_atan2f.c: Likewise.
21544         * math/w_atan2l.c: Likewise.
21545         * math/w_atanh.c: Likewise.
21546         * math/w_atanhf.c: Likewise.
21547         * math/w_atanhl.c: Likewise.
21548         * math/w_exp10.c: Likewise.
21549         * math/w_exp10f.c: Likewise.
21550         * math/w_exp10l.c: Likewise.
21551         * math/w_fmod.c: Likewise.
21552         * math/w_fmodf.c: Likewise.
21553         * math/w_fmodl.c: Likewise.
21554         * math/w_j0.c: Likewise.
21555         * math/w_j0f.c: Likewise.
21556         * math/w_j0l.c: Likewise.
21557         * math/w_j1.c: Likewise.
21558         * math/w_j1f.c: Likewise.
21559         * math/w_j1l.c: Likewise.
21560         * math/w_jn.c: Likewise.
21561         * math/w_jnf.c: Likewise.
21562         * math/w_log.c: Likewise.
21563         * math/w_logf.c: Likewise.
21564         * math/w_logl.c: Likewise.
21565         * math/w_log10.c: Likewise.
21566         * math/w_log10f.c: Likewise.
21567         * math/w_log10l.c: Likewise.
21568         * math/w_log2.c: Likewise.
21569         * math/w_log2f.c: Likewise.
21570         * math/w_log2l.c: Likewise.
21571         * math/w_pow.c: Likewise.
21572         * math/w_powf.c: Likewise.
21573         * math/w_powl.c: Likewise.
21574         * math/w_remainder.c: Likewise.
21575         * math/w_remainderf.c: Likewise.
21576         * math/w_remainderl.c: Likewise.
21577         * math/w_scalb.c: Likewise.
21578         * math/w_scalbf.c: Likewise.
21579         * math/w_scalbl.c: Likewise.
21580         * math/w_sqrt.c: Likewise.
21581         * math/w_sqrtf.c: Likewise.
21582         * math/w_sqrtl.c: Likewise.
21583         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
21584         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
21585         used.
21586         * math/math_private.h: Declare __kernel_standard_f.
21587         * math/w_cosh.c: Remove cruft and optimize a bit.
21588         * math/w_coshf.c: Likewise.
21589         * math/w_coshl.c: Likewise.
21590         * math/w_exp2.c: Likewise.
21591         * math/w_exp2f.c: Likewise.
21592         * math/w_exp2l.c: Likewise.
21593         * math/w_hypot.c: Likewise.
21594         * math/w_hypotf.c: Likewise.
21595         * math/w_hypotl.c: Likewise.
21596         * math/w_lgamma.c: Likewise.
21597         * math/w_lgamma_r.c: Likewise.
21598         * math/w_lgammaf.c: Likewise.
21599         * math/w_lgammaf_r.c: Likewise.
21600         * math/w_lgammal.c: Likewise.
21601         * math/w_lgammal_r.c: Likewise.
21602         * math/w_sinh.c: Likewise.
21603         * math/w_sinhf.c: Likewise.
21604         * math/w_sinhl.c: Likewise.
21605         * math/w_tgamma.c: Likewise.
21606         * math/w_tgammaf.c: Likewise.
21607         * math/w_tgammal.c: Likewise.
21608         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
21609         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
21610         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
21611         Minor optimizations.  Pretty printing.  Remove cruft.
21612         * sysdeps/i386/fpu/e_acosf.S: Likewise.
21613         * sysdeps/i386/fpu/e_acosh.S: Likewise.
21614         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
21615         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
21616         * sysdeps/i386/fpu/e_acosl.c: Likewise.
21617         * sysdeps/i386/fpu/e_asin.S: Likewise.
21618         * sysdeps/i386/fpu/e_asinf.S: Likewise.
21619         * sysdeps/i386/fpu/e_atan2.S: Likewise.
21620         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
21621         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
21622         * sysdeps/i386/fpu/e_atanh.S: Likewise.
21623         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
21624         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
21625         * sysdeps/i386/fpu/e_exp10.S: Likewise.
21626         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
21627         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
21628         * sysdeps/i386/fpu/e_exp2.S: Likewise.
21629         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
21630         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
21631         * sysdeps/i386/fpu/e_fmod.S: Likewise.
21632         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
21633         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
21634         * sysdeps/i386/fpu/e_hypot.S: Likewise.
21635         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
21636         * sysdeps/i386/fpu/e_log.S: Likewise.
21637         * sysdeps/i386/fpu/e_log10.S: Likewise.
21638         * sysdeps/i386/fpu/e_log10f.S: Likewise.
21639         * sysdeps/i386/fpu/e_log10l.S: Likewise.
21640         * sysdeps/i386/fpu/e_log2.S: Likewise.
21641         * sysdeps/i386/fpu/e_log2f.S: Likewise.
21642         * sysdeps/i386/fpu/e_log2l.S: Likewise.
21643         * sysdeps/i386/fpu/e_logf.S: Likewise.
21644         * sysdeps/i386/fpu/e_logl.S: Likewise.
21645         * sysdeps/i386/fpu/e_pow.S: Likewise.
21646         * sysdeps/i386/fpu/e_powf.S: Likewise.
21647         * sysdeps/i386/fpu/e_powl.S: Likewise.
21648         * sysdeps/i386/fpu/e_remainder.S: Likewise.
21649         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
21650         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
21651         * sysdeps/i386/fpu/e_scalb.S: Likewise.
21652         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
21653         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
21654         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
21655         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
21656         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
21657         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
21658         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
21659         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
21660         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
21661         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
21662         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
21663         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
21664         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
21665         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
21666         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
21667         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
21668         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
21669         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
21670         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
21671         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
21672         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
21673         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
21674         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
21675         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
21676         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
21677         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
21678         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
21679         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
21680         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
21681         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
21682         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
21683         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
21684         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
21685         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
21686         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
21687         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
21688         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
21689         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
21690         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
21691         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
21692         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
21693         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
21694         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
21695         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
21696         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
21697         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
21698         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
21699         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
21700         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
21701         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
21702         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
21703         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
21704         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
21705         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
21706         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
21707         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
21708         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
21709         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
21710         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
21711         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
21712         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
21713         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
21714         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
21715         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
21716         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
21717         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
21718         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
21719         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
21720         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
21721         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
21722         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
21723         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
21724         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
21725         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
21726         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
21727         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
21728         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
21729         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
21730         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
21731         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
21732         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
21733         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
21734         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
21735         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
21736         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
21737         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
21738         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
21739         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
21740         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
21741         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
21742         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
21743         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
21744         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
21745         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
21746         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
21747         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
21748         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
21749         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
21750         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
21751         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
21752         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
21753         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
21754         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
21755         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
21756         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
21757         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
21758         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
21759         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
21760         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
21761         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
21762         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
21763         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
21764         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21765         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
21766         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
21767         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
21768         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
21769         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
21770         (__isnanf): Likewise.
21771         (__isinf_ns): Likewise.
21772         (__isinf_nsf): Likewise.
21773         (__finite): Likewise.
21774         (__finitef): Likewise.
21775         (__ieee754_sqrt): Define as macro.
21776         (__ieee754_sqrtf): Define as macro.
21777         (__ieee754_sqrtl): Define as macro.
21778         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
21779         inlined copy.
21780         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
21781         __FINITE_MATH_ONLY__ consistent.
21782         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
21783
21784 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
21785
21786         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
21787         of rawmemchr.
21788
21789         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
21790
21791 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
21792
21793         * po/ja.po: Update from translation team.
21794
21795 2011-10-08  Roland McGrath  <roland@hack.frob.com>
21796
21797         * locale/programs/locarchive.c (prepare_address_space): New function.
21798         (create_archive, enlarge_archive, open_archive): Use it.
21799
21800         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
21801         inside [SHARED], where it is used.
21802
21803         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
21804
21805         * nss/getent.c (netgroup_keys): Remove unused variable.
21806         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
21807
21808 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
21809
21810         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
21811         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
21812         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
21813         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
21814         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
21815         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
21816         * math/Makefile (libm-calls): Add s_isinf_ns.
21817         * math/divtc3.c: Use __isinf_nsl instead of isinf.
21818         * math/multc3.c: Likewise.
21819         * math/s_casin.c: Likewise.
21820         * math/s_casinf.c: Likewise.
21821         * math/s_casinl.c: Likewise.
21822         * math/s_ccos.c: Likewise.
21823         * math/s_ccosf.c: Likewise.
21824         * math/s_ccosl.c: Likewise.
21825         * math/s_ctan.c: Likewise.
21826         * math/s_ctanf.c: Likewise.
21827         * math/s_ctanh.c: Likewise.
21828         * math/s_ctanhf.c: Likewise.
21829         * math/s_ctanhl.c: Likewise.
21830         * math/s_ctanl.c: Likewise.
21831         * math/w_fmod.c: Likewise.
21832         * math/w_fmodf.c: Likewise.
21833         * math/w_fmodl.c: Likewise.
21834         * math/w_remainder.c: Likewise.
21835         * math/w_remainderf.c: Likewise.
21836         * math/w_remainderl.c: Likewise.
21837         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
21838         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
21839         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
21840         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
21841         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
21842         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
21843         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
21844         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
21845
21846         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
21847         of the number.
21848         * stdio-common/printf_fphex.c: Likewise.
21849         * stdio-common/printf_size.c: Likewise.
21850
21851         * math/e_exp10.c: Include math_private.h using <...> not "...".
21852         * math/e_exp10f.c: Likewise.
21853         * math/e_exp10l.c: Likewise.
21854         * math/e_exp2l.c: Likewise.
21855         * math/e_j0l.c: Likewise.
21856         * math/e_j1l.c: Likewise.
21857         * math/e_jnl.c: Likewise.
21858         * math/e_lgammal_r.c: Likewise.
21859         * math/e_rem_pio2l.c: Likewise.
21860         * math/e_scalb.c: Likewise.
21861         * math/e_scalbf.c: Likewise.
21862         * math/e_scalbl.c: Likewise.
21863         * math/k_cosl.c: Likewise.
21864         * math/k_sinl.c: Likewise.
21865         * math/k_tanl.c: Likewise.
21866         * math/s_cacoshf.c: Likewise.
21867         * math/s_catan.c: Likewise.
21868         * math/s_catanf.c: Likewise.
21869         * math/s_catanh.c: Likewise.
21870         * math/s_catanhf.c: Likewise.
21871         * math/s_catanhl.c: Likewise.
21872         * math/s_catanl.c: Likewise.
21873         * math/s_ccosh.c: Likewise.
21874         * math/s_ccoshf.c: Likewise.
21875         * math/s_ccoshl.c: Likewise.
21876         * math/s_cexp.c: Likewise.
21877         * math/s_cexpf.c: Likewise.
21878         * math/s_cexpl.c: Likewise.
21879         * math/s_clog.c: Likewise.
21880         * math/s_clog10.c: Likewise.
21881         * math/s_clog10f.c: Likewise.
21882         * math/s_clog10l.c: Likewise.
21883         * math/s_clogf.c: Likewise.
21884         * math/s_clogl.c: Likewise.
21885         * math/s_csin.c: Likewise.
21886         * math/s_csinf.c: Likewise.
21887         * math/s_csinh.c: Likewise.
21888         * math/s_csinhf.c: Likewise.
21889         * math/s_csinhl.c: Likewise.
21890         * math/s_csinl.c: Likewise.
21891         * math/s_csqrt.c: Likewise.
21892         * math/s_csqrtf.c: Likewise.
21893         * math/s_csqrtl.c: Likewise.
21894         * math/s_ctan.c: Likewise.
21895         * math/s_ctanf.c: Likewise.
21896         * math/s_ctanh.c: Likewise.
21897         * math/s_ctanhf.c: Likewise.
21898         * math/s_ctanhl.c: Likewise.
21899         * math/s_ctanl.c: Likewise.
21900         * math/s_ldexp.c: Likewise.
21901         * math/s_ldexpf.c: Likewise.
21902         * math/s_ldexpl.c: Likewise.
21903         * math/s_significand.c: Likewise.
21904         * math/s_significandf.c: Likewise.
21905         * math/s_significandl.c: Likewise.
21906         * math/w_acos.c: Likewise.
21907         * math/w_acosf.c: Likewise.
21908         * math/w_acosh.c: Likewise.
21909         * math/w_acoshf.c: Likewise.
21910         * math/w_acoshl.c: Likewise.
21911         * math/w_acosl.c: Likewise.
21912         * math/w_asin.c: Likewise.
21913         * math/w_asinf.c: Likewise.
21914         * math/w_asinl.c: Likewise.
21915         * math/w_atan2.c: Likewise.
21916         * math/w_atan2f.c: Likewise.
21917         * math/w_atan2l.c: Likewise.
21918         * math/w_atanh.c: Likewise.
21919         * math/w_atanhf.c: Likewise.
21920         * math/w_atanhl.c: Likewise.
21921         * math/w_cosh.c: Likewise.
21922         * math/w_coshf.c: Likewise.
21923         * math/w_coshl.c: Likewise.
21924         * math/w_dremf.c: Likewise.
21925         * math/w_exp10.c: Likewise.
21926         * math/w_exp10f.c: Likewise.
21927         * math/w_exp10l.c: Likewise.
21928         * math/w_exp2.c: Likewise.
21929         * math/w_exp2f.c: Likewise.
21930         * math/w_fmod.c: Likewise.
21931         * math/w_fmodf.c: Likewise.
21932         * math/w_fmodl.c: Likewise.
21933         * math/w_hypot.c: Likewise.
21934         * math/w_hypotf.c: Likewise.
21935         * math/w_hypotl.c: Likewise.
21936         * math/w_j0.c: Likewise.
21937         * math/w_j0f.c: Likewise.
21938         * math/w_j0l.c: Likewise.
21939         * math/w_j1.c: Likewise.
21940         * math/w_j1f.c: Likewise.
21941         * math/w_j1l.c: Likewise.
21942         * math/w_jn.c: Likewise.
21943         * math/w_jnf.c: Likewise.
21944         * math/w_jnl.c: Likewise.
21945         * math/w_lgamma.c: Likewise.
21946         * math/w_lgamma_r.c: Likewise.
21947         * math/w_lgammaf.c: Likewise.
21948         * math/w_lgammaf_r.c: Likewise.
21949         * math/w_lgammal.c: Likewise.
21950         * math/w_lgammal_r.c: Likewise.
21951         * math/w_log.c: Likewise.
21952         * math/w_log10.c: Likewise.
21953         * math/w_log10f.c: Likewise.
21954         * math/w_log10l.c: Likewise.
21955         * math/w_log2.c: Likewise.
21956         * math/w_log2f.c: Likewise.
21957         * math/w_log2l.c: Likewise.
21958         * math/w_logf.c: Likewise.
21959         * math/w_logl.c: Likewise.
21960         * math/w_pow.c: Likewise.
21961         * math/w_powf.c: Likewise.
21962         * math/w_powl.c: Likewise.
21963         * math/w_remainder.c: Likewise.
21964         * math/w_remainderf.c: Likewise.
21965         * math/w_remainderl.c: Likewise.
21966         * math/w_scalb.c: Likewise.
21967         * math/w_scalbf.c: Likewise.
21968         * math/w_scalbl.c: Likewise.
21969         * math/w_sinh.c: Likewise.
21970         * math/w_sinhf.c: Likewise.
21971         * math/w_sinhl.c: Likewise.
21972         * math/w_sqrt.c: Likewise.
21973         * math/w_sqrtf.c: Likewise.
21974         * math/w_sqrtl.c: Likewise.
21975         * math/w_tgamma.c: Likewise.
21976         * math/w_tgammaf.c: Likewise.
21977         * math/w_tgammal.c: Likewise.
21978
21979         * po/ja.po: Update from translation team.
21980
21981 2011-09-29  Andreas Jaeger  <aj@suse.de>
21982
21983         [BZ #13179]
21984         * sunrpc/netname.c (netname2host): Fix logic.
21985
21986         [BZ #6779]
21987         [BZ #6783]
21988         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
21989         correctly.
21990         * math/w_remainder.c (__remainder): Likewise.
21991         * math/w_remainderf.c (__remainderf): Likewise.
21992         * math/libm-test.inc (remainder_test): Add test cases.
21993
21994 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
21995
21996         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
21997         sdiv_qrnnd.
21998
21999 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
22000
22001         * string/test-memcmp.c: Avoid unncessary #defines.
22002         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
22003
22004 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22005
22006         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
22007         Use new sse2 version for core i3 - i7 as it's faster
22008         than sse42 version.
22009         (bit_Prefer_PMINUB_for_stringop): New.
22010         * sysdeps/x86_64/rawmemchr.S: Update.
22011         Replace with faster SSE2 version.
22012         * sysdeps/x86_64/memrchr.S: New file.
22013         * sysdeps/x86_64/memchr.S: Update.
22014         Replace with faster SSE2 version.
22015
22016 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
22017
22018         * elf/dl-load.c (lose): Add cast to avoid warning.
22019
22020 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
22021
22022         * po/ca.po: Update from translation team.
22023
22024         * inet/getnetgrent_r.c: Hook up nscd.
22025         * nscd/Makefile (routines): Add nscd_netgroup.
22026         (nscd-modules): Add netgroupcache.
22027         (CFLAGS-netgroupcache.c): Define.
22028         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
22029         (cache_search): Add const to second parameter.
22030         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
22031         INNETGR.
22032         (dbs): Add netgrdb entry.
22033         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
22034         (verify_persistent_db): Handle netgrdb.
22035         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
22036         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
22037         GETFDNETGR.
22038         (netgroup_response_header): Define.
22039         (innetgroup_response_header): Define.
22040         (datahead): Add netgroup_response_header and innetgroup_response_header
22041         elements.
22042         * nscd/nscd.conf: Add entries for netgroup cache.
22043         * nscd/nscd.h (dbtype): Add netgrdb.
22044         (_PATH_NSCD_NETGROUP_DB): Define.
22045         (netgroup_iov_disabled): Declare.
22046         (xmalloc, xcalloc, xrealloc): Move declarations here.
22047         (cache_search): Adjust prototype.
22048         Add netgroup-related prototypes.
22049         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
22050         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
22051         (__nscd_innetgr): Declare.
22052         * nscd/selinux.c (perms): Use access_vector_t as element type and
22053         add netgroup-related initializers.
22054         * nscd/netgroupcache.c: New file.
22055         * nscd/nscd_netgroup.c: New file.
22056         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
22057         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
22058         For four parameters use innetgr.
22059         * nss/nss_files/files-init.c: Add definition and callback for netgr.
22060         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
22061         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
22062         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
22063
22064         * nscd/connections.c (register_traced_file): Don't register file
22065         for disabled databases.
22066
22067 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
22068
22069         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
22070
22071         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
22072         from tree and freeing node.
22073
22074 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
22075
22076         * nss/nsswitch.c (__nss_database_lookup): Handle
22077         nss_parse_service_list out of memory case.
22078
22079 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
22080
22081         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
22082         out of memory case.
22083
22084 2011-10-04  Andreas Schwab  <schwab@redhat.com>
22085
22086         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
22087         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
22088         pass it down.
22089         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
22090         elf_machine_rela, elf_machine_lazy_rel.
22091         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
22092         (ELF_DYNAMIC_DO_REL): Likewise.
22093         (ELF_DYNAMIC_DO_RELA): Likewise.
22094         (ELF_DYNAMIC_RELOCATE): Likewise.
22095         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
22096         to ELF_DYNAMIC_DO_REL.
22097         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
22098         (dl_main): In trace mode always set __RTLD_NOIFUNC.
22099         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
22100         elf_machine_rela.
22101         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
22102         skip_ifunc, don't call ifunc function if non-zero.
22103         (elf_machine_rela): Likewise.
22104         (elf_machine_lazy_rel): Likewise.
22105         (elf_machine_lazy_rela): Likewise.
22106         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
22107         (elf_machine_lazy_rel): Likewise.
22108         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
22109         Likewise.
22110         (elf_machine_lazy_rel): Likewise.
22111         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22112         Likewise.
22113         (elf_machine_lazy_rel): Likewise.
22114         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
22115         (elf_machine_lazy_rel): Likewise.
22116         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
22117         (elf_machine_lazy_rel): Likewise.
22118         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
22119         (elf_machine_lazy_rel): Likewise.
22120         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
22121         (elf_machine_lazy_rel): Likewise.
22122         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
22123         (elf_machine_lazy_rel): Likewise.
22124         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
22125         (elf_machine_lazy_rel): Likewise.
22126
22127 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
22128
22129         * nss/nss_files/files-init.c (_nss_files_init): Use static
22130         initialization for all the *_traced_file variables.
22131
22132 2011-09-28  Andreas Schwab  <schwab@redhat.com>
22133
22134         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22135
22136 2011-09-27  Roland McGrath  <roland@hack.frob.com>
22137
22138         [BZ #13226]
22139         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
22140
22141 2011-09-27  Andreas Schwab  <schwab@redhat.com>
22142
22143         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
22144         Reread the line before reparsing it.
22145
22146 2011-09-26  Andreas Schwab  <schwab@redhat.com>
22147
22148         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
22149
22150 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
22151             Maxim Kuvyrkov  <maxim@codesourcery.com>
22152             Joseph Myers  <joseph@codesourcery.com>
22153
22154         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
22155         if needed for __stack_chk_guard.
22156
22157 2011-09-19  Roland McGrath  <roland@hack.frob.com>
22158
22159         * sysdeps/posix/spawni.c (script_execute): Always define it.
22160         It will be optimized away if unused.
22161         (maybe_script_execute): New function.
22162         (__spawni): Call it.
22163
22164         * Makerules: Don't include tls.make.
22165         (config-tls): Always set to thread.
22166         * tls.make.c: File removed.
22167
22168 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
22169
22170         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
22171         * config.make.in (CPPFLAGS-config): New substituted variable.
22172
22173 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
22174
22175         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
22176
22177         [BZ #13192]
22178         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
22179         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
22180
22181 2011-09-15  Roland McGrath  <roland@hack.frob.com>
22182
22183         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
22184         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
22185         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
22186         (CALL_FAIL): Likewise.
22187         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
22188         (CALL_FAIL): Macro removed.
22189         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
22190
22191 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
22192
22193         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
22194         for __FINITE_MATH_ONLY__ == 1.
22195
22196 2011-09-15  Andreas Schwab  <schwab@redhat.com>
22197
22198         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
22199         __ieee754_sqrt instead of sqrt.
22200         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
22201         __ieee754_sqrtf instead of sqrtf.
22202         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
22203         __floorf instead of floorf.
22204         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
22205         __floorf, __truncf instead of floorf, truncf.
22206
22207 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
22208
22209         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
22210
22211         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
22212         __extern_always_inline.
22213         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
22214         32-bit.
22215
22216 2011-09-14  Andreas Schwab  <schwab@redhat.com>
22217
22218         * elf/rtld.c (dl_main): Also relocate in dependency order when
22219         doing symbol dependency testing.
22220
22221 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
22222
22223         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
22224         Always define `refsym'.
22225
22226 2011-09-13  Andreas Schwab  <schwab@redhat.com>
22227
22228         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
22229         (__FD_ELT): Renamed from __FDELT.
22230         * misc/bits/select2.h (__FD_ELT): Likewise.
22231         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
22232         __FD_MASK instead of __FDELT, __FDMASK.
22233         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
22234         Likewise.
22235         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
22236         Likewise.
22237
22238         * elf/Makefile (gen-ldd): Fix pattern.
22239
22240         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
22241         (init_tls): Likewise.
22242
22243 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
22244
22245         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
22246
22247 2011-09-12  Andreas Schwab  <schwab@redhat.com>
22248
22249         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
22250         `struct cmsghdr *' instead of `void *'.
22251         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
22252         Likewise.
22253
22254 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
22255
22256         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
22257         if non-absolute.
22258         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
22259         ldd_rewrite_script.
22260
22261 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
22262
22263         * configure.in: Remove --with-tls option.
22264         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
22265         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
22266         out in case it is missing.
22267         * sysdeps/ia64/elf/configure.in: Likewise.
22268         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
22269         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
22270         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
22271         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
22272         * sysdeps/sh/elf/configure.in: Likewise.
22273         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
22274         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
22275         * sysdeps/x86_64/elf/configure.in: Likewise.
22276         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
22277         * sysdeps/mach/hurd/tls.h: Likewise.
22278
22279         [BZ #13067]
22280         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
22281
22282         [BZ #13090]
22283         * configure.in: Fix use of AC_INIT.
22284
22285         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
22286
22287 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
22288
22289         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
22290         __set_errno.
22291         * malloc/hooks.c: Likewise.
22292
22293         [BZ #11929]
22294         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
22295         variables statically.
22296         (narenas): Initialize.
22297         (list_lock): Initialize.
22298         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
22299         initializtion of main_arena and list_lock.  Small cleanups.
22300         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
22301         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
22302         Add initializers to main_arena and mp_.
22303         (malloc_state): Remove pagesize member.  Change all users to use
22304         GLRO(dl_pagesize).
22305
22306         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
22307         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
22308         is always initialized.
22309
22310         * malloc/malloc.c: Removed unused configurations and dead code.
22311         * malloc/arena.c: Likewise.
22312         * malloc/hooks.c: Likewise.
22313         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
22314
22315         * include/tls.h: Removed.  USE___THREAD must always be defined.
22316         * bits/libc-tsd.h: Don't handle !USE___THREAD.
22317         * elf/dl-libc.c: Likewise.
22318         * elf/dl-tsd.c: Likewise.
22319         * include/errno.h: Likewise.
22320         * include/netdb.h: Likewise.
22321         * include/resolv.h: Likewise.
22322         * inet/herrno-loc.c: Likewise.
22323         * inet/herrno.c: Likewise.
22324         * malloc/arena.c: Likewise.
22325         * malloc/hooks.c: Likewise.
22326         * malloc/malloc.c: Likewise.
22327         * resolv/res-state.c: Likewise.
22328         * resolv/res_libc.c: Likewise.
22329         * sysdeps/i386/dl-machine.h: Likewise.
22330         * sysdeps/ia64/dl-machine.h: Likewise.
22331         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
22332         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
22333         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
22334         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
22335         * sysdeps/sh/dl-machine.h: Likewise.
22336         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
22337         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
22338         * sysdeps/unix/i386/sysdep.S: Likewise.
22339         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
22340         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
22341         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
22342         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
22343         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
22344         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
22345         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
22346         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
22347         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
22348         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
22349         * sysdeps/unix/x86_64/sysdep.S: Likewise.
22350         * sysdeps/x86_64/dl-machine.h: Likewise.
22351         * tls.make.c: Likewise.
22352
22353         * configure.in: Remove --with-__thread option.  Make tests for
22354         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
22355         tls_model attribute fail if no support is available.  Remove
22356         USE_IN_LIBIO.
22357         * Makeconfig: Adjust for dropped configure option.  All features are
22358         now mandatory.
22359         * Makerules: Likewise.
22360         * Versions.def: Likewise.
22361         * argp/argp-fmtstream.c: Likewise.
22362         * argp/argp-fmtstream.h: Likewise.
22363         * argp/argp-help.c: Likewise.
22364         * assert/assert.c: Likewise.
22365         * config.h.in: Likewise.
22366         * config.make.in: Likewise.
22367         * configure: Likewise.
22368         * configure.in: Likewise.
22369         * csu/Versions: Likewise.
22370         * csu/init.c: Likewise.
22371         * elf/tst-audit2.c: Likewise.
22372         * elf/tst-tls10.c: Likewise.
22373         * elf/tst-tls10.h: Likewise.
22374         * elf/tst-tls11.c: Likewise.
22375         * elf/tst-tls12.c: Likewise.
22376         * elf/tst-tls14.c: Likewise.
22377         * elf/tst-tlsmod11.c: Likewise.
22378         * elf/tst-tlsmod12.c: Likewise.
22379         * elf/tst-tlsmod13.c: Likewise.
22380         * elf/tst-tlsmod13a.c: Likewise.
22381         * elf/tst-tlsmod14a.c: Likewise.
22382         * elf/tst-tlsmod15b.c: Likewise.
22383         * elf/tst-tlsmod16a.c: Likewise.
22384         * elf/tst-tlsmod16b.c: Likewise.
22385         * elf/tst-tlsmod7.c: Likewise.
22386         * elf/tst-tlsmod8.c: Likewise.
22387         * elf/tst-tlsmod9.c: Likewise.
22388         * gmon/gmon.c: Likewise.
22389         * grp/fgetgrent_r.c: Likewise.
22390         * grp/putgrent.c: Likewise.
22391         * hurd/fopenport.c: Likewise.
22392         * include/libc-symbols.h: Likewise.
22393         * include/tls.h: Likewise.
22394         * intl/gettextP.h: Likewise.
22395         * intl/loadinfo.h: Likewise.
22396         * locale/global-locale.c: Likewise.
22397         * locale/localeinfo.h: Likewise.
22398         * mach/devstream.c: Likewise.
22399         * malloc/arena.c: Likewise.
22400         * malloc/set-freeres.c: Likewise.
22401         * misc/err.c: Likewise.
22402         * misc/getttyent.c: Likewise.
22403         * misc/mntent_r.c: Likewise.
22404         * posix/getopt.c: Likewise.
22405         * posix/wordexp.c: Likewise.
22406         * pwd/fgetpwent_r.c: Likewise.
22407         * resolv/Versions: Likewise.
22408         * resolv/res_hconf.c: Likewise.
22409         * shadow/fgetspent_r.c: Likewise.
22410         * shadow/putspent.c: Likewise.
22411         * stdio-common/printf_fphex.c: Likewise.
22412         * stdio-common/tmpfile.c: Likewise.
22413         * stdlib/abort.c: Likewise.
22414         * stdlib/fmtmsg.c: Likewise.
22415         * sunrpc/auth_unix.c: Likewise.
22416         * sunrpc/clnt_perr.c: Likewise.
22417         * sunrpc/clnt_tcp.c: Likewise.
22418         * sunrpc/clnt_udp.c: Likewise.
22419         * sunrpc/clnt_unix.c: Likewise.
22420         * sunrpc/openchild.c: Likewise.
22421         * sunrpc/svc_simple.c: Likewise.
22422         * sunrpc/svc_tcp.c: Likewise.
22423         * sunrpc/svc_udp.c: Likewise.
22424         * sunrpc/svc_unix.c: Likewise.
22425         * sunrpc/xdr.c: Likewise.
22426         * sunrpc/xdr_array.c: Likewise.
22427         * sunrpc/xdr_rec.c: Likewise.
22428         * sunrpc/xdr_ref.c: Likewise.
22429         * sunrpc/xdr_stdio.c: Likewise.
22430
22431 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
22432
22433         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
22434
22435 2011-07-03  Andreas Jaeger  <aj@suse.de>
22436
22437         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
22438         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
22439         regenerate with gen-libm-tests.pl.
22440
22441 2010-05-12  Petr Baudis  <pasky@suse.cz>
22442
22443         [BZ #11589]
22444         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
22445         around j0() zero points by switching to j1().
22446         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
22447         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
22448         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
22449         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
22450
22451 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
22452
22453         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
22454         instead of 0.
22455         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
22456         instead of 0.
22457         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
22458         Patch in part by Pavel Roskin <proski@gnu.org>.
22459
22460         [BZ #13138]
22461         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
22462         realloc.
22463         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
22464         Free memory block if necessary.
22465
22466         [BZ #12847]
22467         * libio/genops.c (INTDEF): For string streams the _lock pointer can
22468         be NULL.  Don't lock in this case.
22469
22470 2011-09-09  Roland McGrath  <roland@hack.frob.com>
22471
22472         * elf/elf.h (ELFOSABI_GNU): New macro.
22473         (ELFOSABI_LINUX): Define to that.
22474
22475 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
22476
22477         * string/strncat.c (strncat): Undef the symbol in case it has been
22478         defined in bits/string.h.
22479
22480 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
22481
22482         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
22483
22484         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
22485         link map.
22486
22487 2011-08-17  Andreas Jaeger  <aj@suse.de>
22488
22489         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
22490
22491 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
22492             Ian Lance Taylor  <iant@google.com>
22493
22494         * math/libm-test.inc (lround_test): New testcase.
22495         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
22496
22497 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
22498
22499         * Makefile: Remove support for automatic cvs check-ins.
22500         * Makerules: Likewise.
22501         * config.make.in: Likewise.
22502         * configure.in: Likewise.
22503         * intl/Makefile: Likewise.
22504         * locale/Makefile: Likewise.
22505         * po/Makefile: Likewise.
22506         * posix/Makefile: Likewise.
22507         * sysdeps/gnu/Makefile: Likewise.
22508         * sysdeps/mach/hurd/Makefile: Likewise.
22509         * sysdeps/sparc/sparc32/Makefile: Likewise.
22510
22511         [BZ #13118]
22512         * posix/Makefile (bug-regex32-ENV): Define.
22513         Patch by John Stanley <jpsinthemix@verizon.net>.
22514
22515         * misc/Makefile (headers): Add bits/select2.h.
22516         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
22517         * misc/bits/select2.h: New file.
22518         * include/bits/select2.h: New file.
22519         * debug/Makefile (routines): Add fdelt_chk.
22520         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
22521         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
22522         FD_ISSET.
22523         * debug/fdelt_chk.c: New file.
22524
22525         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
22526         * wcsmbs/test-wmemcmp.c: Likewise.
22527         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
22528         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
22529
22530 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22531
22532         * string/Makefile (strop-tests): Add memcmp.
22533         * string/test-wmemcmp.c: New file.
22534         * string/test-memcmp.c: Add wmemcmp support.
22535
22536 2011-09-08  Roland McGrath  <roland@hack.frob.com>
22537
22538         [BZ #13153]
22539         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
22540         2011-07-19 change.
22541
22542         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
22543         garbage value in a __mach_port_mod_refs call in the cases of the
22544         task-self and thread-self ports.
22545
22546 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
22547
22548         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
22549
22550 2011-09-08  Andreas Schwab  <schwab@redhat.com>
22551
22552         * elf/dl-load.c (lose): Check for non-null L.
22553
22554 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22555
22556         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
22557
22558         * elf/dl-libc.c (dlerror_run): Pass back error code from
22559         dl_catch_error.
22560
22561         [BZ #13123]
22562         * elf/dl-load.c (lose): Free l_origin if it is valid.
22563
22564         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
22565         names.
22566         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
22567         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22568         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
22569         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22570         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
22571         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
22572
22573 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22574
22575         * sysdeps/powerpc/fpu/e_hypot.c: New file.
22576         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
22577         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
22578         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
22579         * sysdeps/powerpc/fpu/k_cosf.c: New file.
22580         * sysdeps/powerpc/fpu/k_sinf.c: New file.
22581         * sysdeps/powerpc/fpu/s_cosf.c: New file.
22582         * sysdeps/powerpc/fpu/s_sinf.c: New file.
22583         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
22584         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
22585
22586 2011-08-15  Alan Modra  <amodra@gmail.com>
22587
22588         [BZ #13092]
22589         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
22590         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
22591         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
22592         ppc_mcount to static-only-routines.
22593         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
22594         __mcount_internal.
22595         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
22596         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
22597
22598 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
22599
22600         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
22601         for finite and infinity parameters.
22602
22603 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
22604
22605         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
22606         and add nop instructions for throughput optimization.
22607         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
22608
22609 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
22610
22611         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
22612         aligned copy for power7 with vector-scalar instructions.
22613         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
22614
22615 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
22616
22617         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
22618         AVX check.
22619
22620 2011-09-07  Andreas Schwab  <schwab@redhat.com>
22621
22622         [BZ #13144]
22623         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
22624         last change.
22625
22626 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
22627
22628         * sysdeps/unix/sysv/linux/x86_64/init-first.c
22629         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
22630         syscall wrapper around clock_gettime in __vdso_clock_gettime.
22631         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
22632         clock_gettime.
22633
22634 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22635
22636         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
22637         Forgot to demangle the pointer.
22638
22639         * sysdeps/i386/sysdep.h: Define atom_text_section.
22640         * sysdeps/x86_64/sysdep.h: Likewise.
22641         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
22642         section with atom_text_section.
22643         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
22644         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
22645         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
22646         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
22647         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
22648
22649         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
22650         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
22651         already be defined.  Change to take two parameters and don't assign
22652         result to variable.  Adjust all users.
22653         Define INTERNAL_GETTIME if not already defined.
22654         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
22655         call.
22656         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
22657         HAVE_CLOCK_GETTIME_VSYSCALL.
22658         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
22659
22660         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
22661         gettimeofday vsyscall, just use time.
22662
22663 2011-09-06  Andreas Schwab  <schwab@redhat.com>
22664
22665         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
22666         <errno.h>.
22667
22668 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
22669
22670         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
22671         syscall on x86-64.
22672         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
22673         syscall.
22674         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
22675         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
22676         syscall if possible.
22677
22678 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22679
22680         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
22681         e_ident.  Don't pass to find_mapsXX.
22682         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
22683
22684 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22685
22686         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
22687         strchr-sse2-no-bsf strrchr-sse2-no-bsf
22688         * sysdeps/x86_64/multiarch/strchr.S: Update.
22689         Check bit_slow_BSF bit.
22690         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
22691         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
22692         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
22693
22694 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22695
22696         [BZ #13134]
22697         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
22698         before glibc 2.15.
22699         (tryshell): Define.
22700         (__spawni): Change last parameter to be flag.  Test
22701         SPAWN_XFLAGS_USE_PATH flag to use path or not.
22702         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
22703         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
22704         * posix/spawni.c: Likewise.
22705         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
22706         * posix/spawnp.c: Likewise.  Change normal version to use
22707         SPAWN_XFLAGS_USE_PATH.
22708         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
22709         SPAWN_XFLAGS_TRY_SHELL.
22710
22711         [BZ #13150]
22712         * posix/glob.h: Remove gcc 1.x support.
22713
22714         [BZ #13068]
22715         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
22716
22717 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
22718
22719         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
22720         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
22721         strrchr-sse2-bsf
22722         * sysdeps/i386/i686/multiarch/strchr.S: New file.
22723         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
22724         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
22725         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
22726         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
22727         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
22728
22729 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
22730
22731         * sysdeps/x86_64/wcscmp.S: New file.
22732
22733         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
22734         wcscmp-c wcscmp-sse2
22735         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
22736         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
22737         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
22738         * wcsmbs/wcscmp.c: Allow renaming.
22739
22740 2011-09-05  David S. Miller  <davem@davemloft.net>
22741
22742         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
22743         stack slot, rather than the struct return pointer slot.
22744         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
22745         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
22746         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
22747         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
22748
22749 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
22750
22751         * po/ja.po: Update from translation team.
22752
22753         [BZ #13144]
22754         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
22755         kernel in 64-bit binaries.
22756
22757 2011-09-01  David S. Miller  <davem@davemloft.net>
22758
22759         * elf/elf.h (HWCAP_SPARC_*): Move to..
22760         * sysdeps/sparc/sysdep.h: this new file and add new values.
22761         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
22762         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
22763         _DL_HWCAP_COUNT to 24.
22764         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
22765         entries.
22766         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
22767         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
22768         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
22769         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
22770         instead of magic constants.
22771         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22772
22773 2011-08-31  David S. Miller  <davem@davemloft.net>
22774
22775         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
22776         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
22777         Reimplement to do errno handling inline.
22778         (SYSCALL_ERROR_HANDLER): New macro.
22779         (__SYSCALL_STRING): Do not do errno handling in asm.
22780         (__CLONE_SYSCALL_STRING): Delete.
22781         (__INTERNAL_SYSCALL_STRING): Delete.
22782         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
22783         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
22784         (PSEUDO): Reimplement to do errno handling inline.
22785         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
22786         (SYSCALL_ERROR_HANDLER): New macro.
22787         (__SYSCALL_STRING): Do not do errno handling in asm.
22788         (__CLONE_SYSCALL_STRING): Delete.
22789         (__INTERNAL_SYSCALL_STRING): Delete.
22790         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
22791         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
22792         i386.
22793         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
22794         (inline_syscall*): Add 'err' argument.
22795         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
22796         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
22797         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
22798         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
22799
22800         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
22801         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
22802
22803 2011-08-30  Andreas Schwab  <schwab@redhat.com>
22804
22805         * elf/rtld.c (dl_main): Relocate objects in dependency order.
22806
22807 2011-08-29  Jiri Olsa <jolsa@redhat.com>
22808
22809         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
22810         directive.
22811
22812 2011-08-24  David S. Miller  <davem@davemloft.net>
22813
22814         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
22815
22816 2011-08-24  Andreas Schwab  <schwab@redhat.com>
22817
22818         * elf/Makefile: Add rules to build and run unload8 test.
22819         * elf/unload8.c: New file.
22820         * elf/unload8mod1.c: New file.
22821         * elf/unload8mod1x.c: New file.
22822         * elf/unload8mod2.c: New file.
22823         * elf/unload8mod3.c: New file.
22824
22825         * elf/dl-close.c (_dl_close_worker): Reset private search list if
22826         it wasn't used.
22827
22828 2011-08-23  David S. Miller  <davem@davemloft.net>
22829
22830         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
22831         subtract stack bias.
22832         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
22833         %sp not %fp in calculations.
22834         (_JMPBUF_UNWINDS_ADJ): Likewise.
22835
22836         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
22837         (aio_suspend): Call it to force an exception region around the
22838         AIO_MISC_WAIT() invocation.
22839
22840 2011-08-23  Andreas Schwab  <schwab@redhat.com>
22841
22842         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
22843         backslash.
22844
22845 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
22846
22847         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
22848         protection macro.
22849         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
22850         and <dl-machine.h>.
22851         (Elf64_FuncDesc): Remove.
22852
22853 2011-08-22  David S. Miller  <davem@davemloft.net>
22854
22855         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
22856         sigaltstack check, add missing cfi directives.
22857         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
22858         missing cfi directives, and sigaltstack handling.
22859
22860 2011-08-16  Andreas Schwab  <schwab@redhat.com>
22861
22862         [BZ #11724]
22863         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
22864         object is seen twice.
22865         * elf/dl-fini.c (_dl_sort_fini): Likewise.
22866
22867         * elf/Makefile (distribute): Add tst-initorder2.c.
22868         (tests): Add tst-initorder2.
22869         (modules-names): Add tst-initorder2a tst-initorder2b
22870         tst-initorder2c tst-initorder2d.  Add rules to build them.
22871         ($(objpfx)tst-initorder2.out): New rule.
22872         * elf/tst-initorder2.c: New file.
22873         * elf/tst-initorder2.exp: New file.
22874
22875 2011-08-22  Andreas Schwab  <schwab@redhat.com>
22876
22877         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
22878
22879         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
22880         dependencies back to end of function.
22881
22882         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
22883         $(elfobjdir)/ld.so.
22884
22885 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
22886
22887         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
22888         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
22889         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
22890         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
22891         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
22892         of __vdso_gettimeofday.
22893         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
22894         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
22895         attribute_hidden.
22896         (_libc_vdso_platform_setup): Remove initialization of
22897         __vdso_gettimeofday and __vdso_time.
22898
22899 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
22900
22901         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
22902         and fgetc_unlocked.
22903         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
22904         getc_unlocked.
22905
22906         * elf/dl-open.c (add_to_global): Report additions to the global scope
22907         for LD_DEBUG=scopes.
22908         (dl_open_worker): Also print scope of newly loaded dependencies.
22909         (_dl_show_scope): Indicate if there is no scope.
22910
22911         [BZ #13114]
22912         * stdio-common/Makefile (tests): Add bug24.
22913         * stdio-common/bug24.c: New file.
22914
22915 2011-08-19  Andreas Jaeger  <aj@suse.de>
22916
22917         [BZ #13114]
22918         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
22919         non-existant file when using close-on-exec mode.
22920
22921 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
22922
22923         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
22924         the very first instruction.
22925
22926         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
22927         the CFI state in the end.
22928         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
22929         inclusion of dl-trampoline.h.
22930         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
22931
22932 2011-08-19  Andreas Schwab  <schwab@redhat.com>
22933
22934         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
22935         expectations for long double.
22936
22937         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
22938         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
22939
22940 2011-08-14  David S. Miller  <davem@davemloft.net>
22941
22942         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
22943         artificual limit depends upon the system page size.
22944
22945 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
22946
22947         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
22948         * resolv/Makefile: Define CFLAGS-libresolv.
22949
22950 2011-08-17  Andreas Schwab  <schwab@redhat.com>
22951
22952         * nss/makedb.c (compute_tables): Make variables used in nested
22953         function static.
22954
22955 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
22956
22957         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
22958         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
22959         if buffer was too small.
22960
22961         * elf/pldd.c (main): Attach to all threads in the process.
22962         Rewrite /proc handling to use *at functions.
22963
22964 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
22965
22966         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
22967         specifies first scope to show.
22968         (dl_open_worker): Update callers.  Move printing scope of new
22969         object to before the relocation.
22970         * elf/rtld.c (dl_main): Update _dl_show_scope call.
22971         * sysdeps/generic/ldsodefs.h: Update declaration.
22972
22973         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
22974         string for the scope number.
22975
22976 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
22977
22978         * nscd/servicescache.c (cache_addserv): Make sure written is always
22979         initialized.
22980
22981 2011-08-14  Roland McGrath  <roland@hack.frob.com>
22982
22983         * sysdeps/i386/i486/bits/atomic.h
22984         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
22985         statement expression, so as to suppress "set but not used" warning.
22986         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
22987
22988         * string/strncat.c (STRNCAT): Use prototype definition.
22989
22990         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
22991         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
22992         -Iprograms here.
22993         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
22994         (localedef-modules): Add localedef.
22995         (locale-modules): Add locale.
22996
22997         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
22998         * elf/rtld.c (dl_main): Invert order of assignment in last change,
22999         to avoid a warning.
23000
23001 2011-08-14  David S. Miller  <davem@davemloft.net>
23002
23003         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
23004         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
23005
23006 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
23007
23008         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
23009         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
23010         * elf/rtld.c (dl_main): Set l_name of vDSO.
23011         Call _dl_show_scope when DL_DEBUG_SCOPES.
23012         (process_dl_debug): Recognize scopes flag and also set it for all.
23013         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
23014         Declare _dl_show_scope.
23015
23016         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
23017         (do_dlopen): Pass caller_dlopen to dl_open.
23018         (__libc_dlopen_mode): Initialize caller_dlopen.
23019
23020         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
23021         of libc.  Make tolower call locale-independent.  Optimize a bit by
23022         using isdigit instead of isalnum.
23023         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
23024
23025 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
23026
23027         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
23028         was a dependency or dynamically loaded.
23029
23030 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
23031
23032         * intl/l10nflist.c: Allow architecture-specific pop function.
23033         * sysdeps/x86_64/l10nflist.c: New file.
23034
23035         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
23036         classification.
23037
23038 2011-08-10  Andreas Schwab  <schwab@redhat.com>
23039
23040         * include/dirent.h: Add libc_hidden_proto for scandirat and
23041         scandirat64.  Don't declare __scandirat64.
23042         * dirent/scandirat.c: Add libc_hidden_def.
23043         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
23044         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
23045
23046 2011-08-10  David S. Miller  <davem@davemloft.net>
23047
23048         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
23049         enum.
23050         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23051         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23052         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23053
23054 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
23055
23056         * Versions.def [libc]: Add GLIBC_2.15.
23057         * dirent/Makefile (routines): Add scandirat and scandirat64.
23058         * dirent/Versions [libc]: Export scandirat and scandirat64 for
23059         GLIBC_2.15.
23060         * dirent/dirent.h: Declare scandirat and scandirat64.
23061         * dirent/scandirat.c: New file.
23062         * dirent/scandirat64.c: New file.
23063         * sysdeps/wordsize-64/scandirat.c: New file.
23064         * sysdeps/wordsize-64/scandirat64.c: New file.
23065         * dirent/opendir.c: Define opendirat.
23066         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
23067         using scandirat.
23068         * dirent/scandir64.c: Adjust for scandir.c change.
23069         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
23070         __scandirat64, and __scandir_cancel_handler.
23071         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
23072         additional parameter and use openat instead of open (outside of ld.so).
23073         Add new __opendir as wrapper around __opendirat.
23074         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
23075         here without requiring old scandirat implementation.
23076
23077 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
23078
23079         * dirent/scandir.c (cancel_handler): Renamed to
23080         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
23081         defined.  Adjust users.
23082         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
23083         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
23084
23085 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
23086
23087         * string/test-string.h (IMPL): Use __STRING to expand name and then
23088         stringify it.
23089
23090         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
23091         of cleanups.
23092
23093 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23094
23095         * string/Makefile: Update.
23096         (strop-tests): Append strncat.
23097         * string/test-wcscmp.c: New file.
23098         New comprehensive test for wcscmp.
23099         * string/test-strcmp.c: Update.
23100         (WIDE): New define.
23101
23102 2011-07-22  Andreas Schwab  <schwab@redhat.com>
23103
23104         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
23105         line.
23106
23107 2011-07-26  Andreas Schwab  <schwab@redhat.com>
23108
23109         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
23110         encoding to ACE if AI_IDN.
23111
23112 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
23113
23114         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
23115         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
23116
23117 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23118
23119         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
23120         Fix overflow bug in strncat.
23121         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
23122
23123         * string/test-strncat.c: Update.
23124         Add new tests for checking overflow bugs.
23125
23126 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23127
23128         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23129         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
23130         * sysdeps/i386/i686/multiarch/strcat.S: New file.
23131         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
23132         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
23133         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
23134         * sysdeps/i386/i686/multiarch/strncat.S: New file.
23135         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
23136         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
23137
23138         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
23139         (USE_AS_STRCAT): Define.
23140         Add strcat and strncat support.
23141         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
23142
23143 2011-07-25  Andreas Schwab  <schwab@redhat.com>
23144
23145         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
23146         __n bigger than INT_MAX+1.
23147         (__strncmp_g): Likewise.
23148
23149 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
23150
23151         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
23152         * libio/stido.h: Likewise.
23153
23154         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
23155         (AF_NFC): Define.
23156         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
23157         (AF_NFC): Define.
23158
23159         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
23160         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
23161         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
23162         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
23163         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
23164
23165         [BZ #13021]
23166         * scripts/test-installation.pl: Don't expect libnss_test1 to be
23167         installed.
23168
23169         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
23170         typo.
23171         (_dl_x86_64_save_sse): Likewise.
23172
23173 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
23174
23175         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
23176         OSXSAVE.
23177         (_dl_x86_64_save_sse): Likewise.
23178
23179         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
23180
23181         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
23182
23183 2011-07-21  Andreas Schwab  <schwab@redhat.com>
23184
23185         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
23186         change.
23187         (_dl_x86_64_save_sse): Use correct AVX check.
23188
23189 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
23190
23191         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
23192         bug in strncpy/strncat.
23193         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
23194
23195 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
23196
23197         * string/tester.c (test_strcat): Add tests for different alignments
23198         of source and destination.
23199         (test_strncat): Likewise.
23200
23201 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
23202
23203         [BZ #12852]
23204         * posix/glob.c (glob): Check passed in values before using them in
23205         expressions to avoid some overflows.
23206         (glob_in_dir): Likewise.
23207
23208         [BZ #13007]
23209         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
23210         check for AVX enablement so that we don't crash with old kernels and
23211         new hardware.
23212         * elf/tst-audit4.c: Add same checks here.
23213         * elf/tst-audit6.c: Likewise.
23214
23215         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
23216
23217 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
23218
23219         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
23220
23221 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
23222
23223         * po/cs.po: Update from translation team.
23224         * po/bg.po: Likewise.
23225
23226 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
23227
23228         * misc/sys/cdefs.h: Add support for const attribute.
23229         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
23230         to gnu_dev_{major,minor,makedev} functions.
23231
23232 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
23233
23234         * intl/dcigettext.c (get_output_charset): Add missing bracket.
23235
23236 2011-07-20  Andreas Schwab  <schwab@redhat.com>
23237
23238         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
23239         strlen results.
23240
23241 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23242
23243         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
23244         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
23245         register in order to avoid conflicts with the soft frame pointer
23246         being held in r11 when necessary.
23247         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
23248         (INTERNAL_VSYSCALL_NCS): Likewise.
23249
23250 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
23251
23252         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
23253         * elf/dl-fini.c (_dl_fini): Adjust caller.
23254         * elf/dl-close.c (_dl_close_worker): Likewise.
23255         * sysdeps/generic/ldsodefs.h: Adjust declaration.
23256
23257 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
23258
23259         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
23260         "aux_cache->nlibs < 0".
23261
23262         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
23263         in the reload-count case.
23264
23265 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
23266
23267         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23268         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
23269         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
23270         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
23271         * sysdeps/x86_64/multiarch/strcat.S: New file.
23272         * sysdeps/x86_64/multiarch/strncat.S: New file.
23273         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
23274         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
23275         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
23276         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
23277         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
23278         (USE_AS_STRCAT): Define.
23279         Add strcat and strncat support.
23280         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
23281         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
23282         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
23283         * string/strncat.c: Update.
23284         (USE_AS_STRNCAT): Define.
23285         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23286         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
23287         and i7.
23288         * sysdeps/x86_64/multiarch/init-arch.h
23289         (bit_Prefer_PMINUB_for_stringop): New.
23290         (index_Prefer_PMINUB_for_stringop): Likewise.
23291         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
23292         bit_Prefer_PMINUB_for_stringop.
23293
23294 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
23295
23296         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
23297         buffer64.
23298         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
23299         of casting of buffer.
23300         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
23301         buffer32 and buffer64.
23302         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
23303         writes instead of casting of buffer.
23304         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
23305         buffer32.
23306         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
23307         casting of buffer.
23308
23309 2011-07-19  Andreas Schwab  <schwab@redhat.com>
23310
23311         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
23312
23313 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
23314
23315         * nscd/nscd.c (termination_handler): Don't do anything for a database
23316         if it has not yet been initialized.
23317
23318 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
23319
23320         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
23321
23322 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
23323
23324         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
23325
23326 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
23327
23328         * po/nl.po: Update from translation team.
23329         * po/sv.po: Likewise.
23330
23331 2011-07-16  Roland McGrath  <roland@hack.frob.com>
23332
23333         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
23334         now disallowed by GCC.
23335
23336         * configure.in (use-default-link): Default to yes if a test -shared
23337         link meets our qualifications.
23338         * configure: Regenerated.
23339
23340         * config.make.in (output-format): New variable.
23341         * configure.in: Check for ld --print-output-format support.
23342         * configure: Regenerated.
23343         * Makerules ($(common-objpfx)format.lds)
23344         [$(output-format) != unknown]: Just use $(output-format),
23345         instead of the linker-script munging.
23346
23347 2011-07-14  Roland McGrath  <roland@hack.frob.com>
23348
23349         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
23350         of $(common-objpfx)shlib.lds.
23351         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
23352
23353         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
23354         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
23355
23356         * configure.in (-z relro check): Adjust test code to add a large
23357         writable data section after it.
23358         * configure: Regenerated.
23359
23360 2011-07-11  Roland McGrath  <roland@hack.frob.com>
23361
23362         * configure.in (-z relro check): Fix test code to make the variable
23363         truly const.
23364         * configure: Regenerated.
23365
23366 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
23367
23368         * nscd/nscd.h (struct traced_file): Define.
23369         (struct database_dyn): Remove inotify_descr, reset_res, and filename
23370         elements.  Add traced_files.
23371         (inotify_fd): Declare.
23372         (register_traced_file): Declare.
23373         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
23374         (inotify_fd): Export.
23375         (resolv_conf_descr): Remove.
23376         (nscd_init): Move inotify descriptor creation to main.
23377         Don't register files for notification here.
23378         (register_traced_file): New function.
23379         (invalidate_cache): Don't use reset_res to determine whether to call
23380         res_init, go through the list of registered files.
23381         (main_loop_poll): The inotify descriptors are now stored in the
23382         structures for the traced files.
23383         (main_loop_epoll): Likewise
23384         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
23385         to __nss_disable_nscd.
23386         * nscd/cache.c (prune_cache): There is no single inotify descriptor
23387         for a database anymore.  Check the records for all the registered
23388         files instead.
23389         * nss/Makefile (libnss_files-routines): Add files-init.
23390         (libnss_db-routines): Add db-init.
23391         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
23392         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
23393         * nss/nss_db/db-init.c: New file.
23394         * nss/nss_files/files-init.c: New file.
23395         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
23396         __nss_lookup_function.
23397         (__nss_lookup_function): Call nss_load_library.
23398         (nss_load_all_libraries): New function.
23399         (__nss_disable_nscd): Take parameter with callback function for files
23400         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
23401         used for the cached services.
23402         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
23403         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
23404         options for features to all the files in nscd.
23405
23406         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
23407
23408 2011-07-10  Roland McGrath  <roland@hack.frob.com>
23409
23410         * csu/elf-init.c (__libc_csu_init): Comment typo.
23411
23412 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
23413
23414         * po/pl.po: Update from translation team.
23415         * po/ja.po: Likewise.
23416         * po/ru.po: Likewise.
23417         * po/ko.po: Likewise.
23418         * po/fr.po: Likewise.
23419
23420 2011-07-09  Roland McGrath  <roland@hack.frob.com>
23421
23422         * configure.in (.ctors/.dtors header and trailer check):
23423         Use an empirical test on a built program.
23424         * configure: Regenerated.
23425
23426         * configure.in (-z relro check): Use an empirical test on a built DSO.
23427         Detect, but do not require, on ia64.
23428         * configure: Regenerated.
23429
23430         * configure.in (READELF): Find it with AC_CHECK_TOOL.
23431         Update tests that use readelf to use $READELF instead.
23432         * configure: Regenerated.
23433
23434 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
23435
23436         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
23437         if the result is not used.
23438
23439 2011-07-05  Andreas Jaeger  <aj@suse.de>
23440
23441         [BZ#9696]
23442         * stdlib/tst-strtod.c: Add testcase.
23443
23444 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
23445
23446         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
23447         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
23448         The latter has a higher limit.  Take additional parameter to pass to
23449         the new function.
23450         (__pathconf): Pass file to __statfs_link_max.
23451         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
23452         __statfs_link_max.
23453         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
23454         __statfs_link_max.
23455
23456         [BZ #12868]
23457         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
23458         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
23459         Handle Lustre.
23460         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
23461         (__statfs_filesize_max): Likewise.
23462         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
23463
23464 2011-07-05  Andreas Jaeger  <aj@suse.de>
23465
23466         * resolv/res_comp.c (dn_skipname): Remove unused variable.
23467
23468 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
23469
23470         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
23471         `status' variable.
23472         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
23473         Likewise.
23474
23475 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
23476
23477         * Makefile (strop-tests): Add strncat.
23478         * string/test-strncat.c: New file.
23479
23480 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
23481
23482         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
23483
23484 2011-06-21  Andreas Jaeger  <aj@suse.de>
23485
23486         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
23487         Copy rule from iconvdata/Makefile.
23488
23489 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
23490
23491         [BZ #12922]
23492         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
23493         but no long options are defined, just return 'W'.
23494
23495 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
23496
23497         [BZ #9696]
23498         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
23499
23500 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
23501
23502         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
23503         netgroups to read.
23504         (innetgr): Likewise.
23505
23506 2011-07-05  Roland McGrath  <roland@hack.frob.com>
23507
23508         * config.make.in (install_root): Default to $(DESTDIR).
23509
23510 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
23511
23512         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
23513
23514 2011-07-02  Roland McGrath  <roland@hack.frob.com>
23515
23516         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
23517
23518         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
23519         containing directory rather than embedding absolute directory names.
23520
23521         * scripts/check-local-headers.sh: Rewritten using awk.
23522         Match by word, not by line.  Print error messages for matches.
23523         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
23524
23525         * Makerules [shlib-lds-flags empty]:
23526         ($(common-objpfx)libc_pic.opts): New target.
23527         ($(common-objpfx)libc_pic.os.clean): New target.
23528         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
23529
23530         * config.make.in (OBJCOPY): New variable.
23531         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
23532         * configure: Regenerated.
23533
23534         * config.make.in (use-default-link): New variable.
23535         * configure.in (use_default_link): Grok --with-default-link to set it.
23536         * configure: Regenerated.
23537         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
23538         (shlib-lds, shlib-lds-flags): Define to empty.
23539
23540         * Makerules (shlib-lds): New variable.
23541         (shlib-lds-flags): New variable.
23542         (build-shlib, build-moduile, build-module-asneeded): Use it.
23543         ($(common-objpfx)libc.so): Use $(shlib-lds).
23544         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
23545         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
23546
23547         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
23548         DT_FLAGS/DT_FLAGS_1 with zero flags.
23549
23550         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
23551         linker script munging.
23552
23553 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
23554
23555         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
23556         as 128-bit value.
23557         * crypt/sha512.c (sha512_process_block): Perform total addition using
23558         128-bit if possible.
23559         (__sha512_finish_ctx): Likewise.
23560         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
23561         as 64-bit value.
23562         * crypt/sha256.c (SWAP64): Define.
23563         (sha256_process_block): Perform total addition using 64-bit if
23564         possible.
23565         (__sha256_finish_ctx): Likewise.
23566
23567 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
23568
23569         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
23570         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23571         * nscd/hstcache.c (cache_addhst): Likewise.
23572         * nscd/grpcache.c (cache_addgr): Likewise.
23573         * nscd/aicache.c (addhstaiX): Likewise
23574         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
23575
23576 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
23577
23578         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
23579         * nscd/initgrcache.c (addinitgroupsX): Likewise.
23580         * nscd/hstcache.c (cache_addhst): Likewise.
23581         * nscd/grpcache.c (cache_addgr): Likewise.
23582         * nscd/aicache.c (addhstaiX): Likewise
23583
23584 2011-07-01  Andreas Schwab  <schwab@redhat.com>
23585
23586         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
23587         domain only when needed.
23588
23589 2011-06-30  Andreas Schwab  <schwab@redhat.com>
23590
23591         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
23592         is always restored.
23593
23594 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
23595
23596         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
23597         are re-adding the entry.
23598         * nscd/servicescache.c (cache_addserv): Likewise.
23599
23600 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
23601
23602         * sysdeps/generic/dl-irel.h: fix protection against multiple
23603         inclusions.
23604         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
23605
23606 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
23607
23608         [BZ #12935]
23609         * malloc/memusage.sh: Fix quoting in message.
23610         * debug/xtrace.sh: Likewise.
23611
23612         * configure.in: Remove support for --experimental-malloc option, make
23613         it the default.
23614         * config.make.in: Likewise.
23615         * malloc/Makefile: Likewise.
23616
23617 2011-06-27  Andreas Schwab  <schwab@redhat.com>
23618
23619         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
23620         two-byte characters.
23621
23622 2011-06-27  Roland McGrath  <roland@hack.frob.com>
23623
23624         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
23625         AC_CACHE_CHECK invocation.
23626         * configure: Regenerated.
23627
23628         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
23629
23630 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
23631
23632         [BZ #12350]
23633         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
23634         bit from old_res_options.
23635
23636         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
23637
23638         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
23639         value type for setfct.
23640
23641 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
23642
23643         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23644         __gettimeofday instead of gettimeofday.
23645
23646 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
23647
23648         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
23649
23650 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
23651
23652         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
23653
23654         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
23655         info.
23656
23657 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23658
23659         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
23660         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23661         strcpy-sse2-unaligned strncpy-sse2-unaligned
23662         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
23663         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
23664         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
23665         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
23666         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
23667         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
23668         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
23669         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
23670         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
23671         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
23672         (STRCPY): Support SSE2 and SSSE3 versions.
23673
23674 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
23675
23676         [BZ #12874]
23677         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
23678         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
23679         kernels which artificially limit size of requests.
23680
23681 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
23682
23683         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
23684         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
23685         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
23686         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
23687         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
23688         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
23689         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
23690         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
23691         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
23692         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
23693         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
23694         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
23695         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
23696         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
23697         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
23698         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23699         Enable unaligned load optimization for Intel Core i3, i5 and i7
23700         processors.
23701         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
23702         Define.
23703         (index_Fast_Unaligned_Load): Define.
23704         (HAS_FAST_UNALIGNED_LOAD): Define.
23705
23706 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
23707
23708         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
23709
23710 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23711
23712         [BZ #12907]
23713         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
23714         until it is clear that the information is realy needed.
23715         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
23716
23717 2011-06-22  Andreas Schwab  <schwab@redhat.com>
23718
23719         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
23720
23721 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
23722
23723         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
23724         /sys/devices/system/cpu/online if it is usable.
23725
23726         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
23727         reading the information from the /proc filesystem to once a second.
23728
23729 2011-06-21  Andreas Jaeger  <aj@suse.de>
23730
23731         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
23732         NULL after inclusion of kernel headers.
23733
23734 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
23735
23736         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
23737         calls to internal_setent.
23738
23739         [BZ #12885]
23740         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
23741         addresses using gethostbyname4_r ignore IPv4 addresses.
23742
23743         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
23744         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
23745
23746         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
23747
23748 2011-06-20  David S. Miller  <davem@davemloft.net>
23749
23750         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
23751         inclusions.
23752         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
23753
23754         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
23755         (elf_irel): Use it.
23756         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
23757         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
23758         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
23759         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
23760         * sysdeps/x86_64/dl-irel.h: Likewise.
23761
23762         * elf/dl-runtime.c: Use elf_ifunc_invoke.
23763         * elf/dl-sym.c: Likewise.
23764
23765 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23766
23767         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
23768         need to dereference resplen2.
23769
23770 2011-06-14  Andreas Schwab  <schwab@redhat.com>
23771
23772         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
23773
23774 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
23775
23776         * Makeconfig: Define vardbdir and inst_vardbdir.
23777         * nss/Makefile: Add rules to install db-Makefile.
23778
23779         * nss/nss_db/db-XXX.c: Cleanup.
23780
23781         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
23782         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
23783         GLIBC_PRIVATE.
23784         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
23785         * nss/makedb.c: Implement -g option to specify that value strings
23786         are generated and should not be added to table iterated over for
23787         get*ent calls.
23788         * nss/nss_db/db-initgroups.c: New file.
23789
23790         * nss/getent.c: Add support for initgroups lookups through getgrouplist
23791         interface.
23792
23793         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
23794         (internal_getgrouplist): Adjust to name change.
23795         Update use_initgroups_entry if this is not the first call.
23796         * nss/databases.def: Add initgroups entry.
23797
23798         * nss/makedb.c (compute_tables): Check result of multiple hash table
23799         sizes to minimize maximum chain length.
23800
23801 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
23802
23803         * Versions.def: Add entry for libnss_db.
23804         * shlib-versions: Likewise.
23805         * nss/Makefile: Add rules to build libnss_db.
23806         * nss/Versions: Add libnss_db information.  Organize libnss_files
23807         entries better.
23808         * nss/db-Makefile: Add gshadow support.  Change rules for the new
23809         makedb progra.  Some minor improvements to generate smaller files.
23810         * nss/nss_db/nss_db.h: Move NSS database header data structures to
23811         here from...
23812         * nss/makedb.c: ...here.
23813         Improve database format to be smaller and require less memory at
23814         runtime.
23815         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
23816         db anymore.
23817         * nss/nss_db/db-netgrp.c: Likewise.
23818         * nss/nss_db/db-open.c: Likewise.
23819         * nss/nss_files/flies-XXX.x: Adjust comments.
23820         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
23821         * nss/nss_files/files-grp.c: Likewise.
23822         * nss/nss_files/files-hosts.c: Likewise.
23823         * nss/nss_files/files-network.c: Likewise.
23824         * nss/nss_files/files-proto.c: Likewise.
23825         * nss/nss_files/files-pwd.c: Likewise.
23826         * nss/nss_files/files-rpc.c: Likewise.
23827         * nss/nss_files/files-service.c: Likewise.
23828         * nss/nss_files/files-sgrp.c: Likewise.
23829         * nss/nss_files/files-spwd.c: Likewise.
23830         * nss/nss_db/db-alias.c: Removed.
23831         * nss/nss_db/dummy-db.h: Removed.
23832
23833 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
23834
23835         * nss/makedb.c: Rewritten to not use database library.
23836         * nss/Makefile: Update to build new makedb program.
23837
23838 2011-06-14  Andreas Jaeger  <aj@suse.de>
23839
23840         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
23841         memset declaration.
23842
23843 2011-06-10  Andreas Schwab  <schwab@redhat.com>
23844
23845         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
23846         tmpbuf.
23847
23848 2011-06-10  Roland McGrath  <roland@hack.frob.com>
23849
23850         * Makerules (shlib.lds): Fail if the linker script comes out empty.
23851         * elf/Makefile ($(objpfx)ld.so): Likewise.
23852
23853         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
23854         Don't list ld.so twice in dependencies.
23855
23856         * posix/bug-regex31.c: Include <stdlib.h>.
23857
23858         * nscd/hstcache.c (cache_addhst): Remove unused variable.
23859
23860         * nis/nss_compat/compat-spwd.c
23861         (getspent_next_nss_netgr): Remove unused variable.
23862         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
23863
23864         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
23865         nonmembers" output to use the right array.
23866
23867         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
23868
23869         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
23870
23871         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
23872         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
23873         * catgets/gencat.c (read_input_file): Likewise.
23874         * locale/programs/locarchive.c (enlarge_archive): Likewise.
23875
23876         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
23877         variable definition inside #if's controlling its use.
23878
23879         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
23880
23881         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
23882
23883         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
23884
23885         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
23886         unreachable code.
23887
23888         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
23889
23890         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
23891         * configure: Regenerated.
23892
23893         * Makerules: Revert last change.
23894         * elf/Makefile: Likewise.
23895
23896 2011-06-09  Roland McGrath  <roland@hack.frob.com>
23897
23898         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
23899         * elf/Makefile ($(objpfx)librtld.os): Likewise.
23900         (reloc-link): Likewise.
23901
23902 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
23903
23904         * elf/Makefile: Add rules to build pldd.
23905         * elf/pldd.c: New file.
23906         * elf/pldd-xx.c: New file.
23907
23908 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
23909
23910         * version.h: Update for 2.15 development version.
23911
23912 2011-06-07  David S. Miller  <davem@davemloft.net>
23913
23914         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
23915         ifuncs.
23916         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
23917         elf_machine_lazy_rel): Likewise.
23918         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
23919         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
23920         elf_machine_lazy_rel): Likewise.
23921         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
23922         dl_hwcap via passed in argument.
23923         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
23924         Likewise.
23925
23926 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
23927
23928         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
23929
23930 2011-06-06  Roland McGrath  <roland@hack.frob.com>
23931
23932         [BZ #12849]
23933         * manual/fdl-1.1.texi: New file, verbatim from:
23934         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
23935         * manual/lgpl-2.1.texi: New file, verbatim from:
23936         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
23937         * manual/Makefile (licenses): New variable, list those new file names.
23938         (texis): Use it.
23939         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
23940
23941         * manual/fdl.texi: File removed.
23942         * manual/lesser.texi: File removed.
23943         * manual/libc.texinfo (Copying, Documentation License):
23944         Use new @include file names, put @appendix directive before @include.
23945
23946 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
23947
23948         [BZ #12841]
23949         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
23950         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
23951         (mq_open): Add __NTH.
23952
23953 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
23954
23955         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
23956         Assume Intel Core i3/i5/i7 processor if AVX is available.
23957
23958 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
23959
23960         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
23961         typo.
23962
23963 2011-05-31  Andreas Schwab  <schwab@redhat.com>
23964
23965         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
23966         memory.  Use alloca_account.  Fix memory leak when retrying.
23967
23968 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
23969
23970         * version.h (RELEASE): Bump for 2.14 release.
23971         * include/features.h (__GLIBC_MINOR__): Bump to 14.
23972
23973         * config.make.in (RANLIB): Remove entry.
23974
23975 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
23976
23977         * po/Makefile (po-sed-cmd): Add ksh to extensions.
23978         (libc.pot): Work around missing support for .ksh extension in xgettext.
23979
23980         [BZ #12684]
23981         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
23982         if both request failed.
23983         (send_dg): In case of server errors clear resplen or *resplen2.
23984
23985         [BZ #12454]
23986         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
23987         when there are multiple maps.
23988         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
23989         (_dl_fini): Remove test here.
23990
23991         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
23992
23993 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
23994
23995         [BZ #12350]
23996         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
23997         bit from old_res_options.
23998         (gaih_inet): Likewise.
23999
24000         [BZ #11099]
24001         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
24002         as signed.
24003
24004         * resolv/res_init.c (res_setoptions): Make the code more compact.
24005
24006         [BZ #11558]
24007         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
24008         set RES_USEVC.
24009
24010         [BZ #11634]
24011         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
24012
24013         * malloc/malloc.h: Mark malloc hook variables as deprecated.
24014
24015         [BZ #11781]
24016         * malloc/malloc.h: Declare malloc hook variables as volatile.
24017
24018         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
24019         in last patch.
24020
24021         [BZ #11799]
24022         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
24023         raise in the comment.
24024         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
24025         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
24026         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
24027
24028 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
24029
24030         [BZ #12811]
24031         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
24032         grow the buffers more if it already has to be sufficient.
24033         (build_wcs_upper_buffer): Likewise.
24034         * posix/regexec.c (check_matching): Likewise.
24035         (clean_state_log_if_needed): Likewise.
24036         (extend_buffers): Don't enlarge buffers beyond size of the input
24037         buffer.
24038         Patches mostly by Emil Wojak <emil@wojak.eu>.
24039         * posix/bug-regex32.c: New file.
24040         * posix/Makefile (tests): Add bug-regex32.
24041
24042         * locale/findlocale.c (_nl_find_locale): Return right away if
24043         _nl_explode_name failed.
24044         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
24045
24046         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
24047
24048         * debug/xtrace.sh: Unify messages.
24049         * malloc/memusage.sh: Likewise.
24050
24051         [BZ #12813]
24052         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
24053         time symbol from vDSO.  Substitute with vsyscall if not available.
24054         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
24055         __vdso_time.
24056
24057         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
24058         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
24059         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
24060         Add sendmmsg and internal_sendmmsg.
24061         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
24062         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
24063         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
24064
24065         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
24066         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
24067         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
24068
24069 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
24070
24071         [BZ #12813]
24072         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
24073         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
24074         available.
24075         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
24076         __vdso_getcpu.
24077
24078         [BZ #12814]
24079         * iconvdata/Makefile (tests): Add bug-iconv9.
24080         * iconvdata/bug-iconv9.c: New file.
24081
24082 2011-05-27  Andreas Schwab  <schwab@redhat.com>
24083
24084         [BZ #12814]
24085         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
24086
24087 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
24088
24089         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
24090         (struct user_regs_struct): Change intcs field back to cs.
24091
24092 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
24093
24094         * po/ja.po: Update from translation team.
24095
24096 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
24097
24098         [BZ #12795]
24099         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
24100         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
24101
24102 2011-05-20  Andreas Schwab  <schwab@redhat.com>
24103
24104         * stdlib/longlong.h: Update from GCC.
24105
24106 2011-05-23  Andreas Schwab  <schwab@redhat.com>
24107
24108         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
24109         parameter name.
24110         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
24111         Add parameter name.
24112         (__sysconf): Pass it down.
24113
24114 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
24115
24116         [BZ #12671]
24117         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
24118         some situations.
24119         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
24120         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
24121         add in in __libc_use_alloca calls.  Adjust callers.
24122         (glob): Use malloc in some situations.
24123
24124         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
24125         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
24126         pltexit.
24127
24128 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
24129
24130         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
24131         and CLOCK_BOOTTIME_ALARM.
24132
24133         [BZ #12782]
24134         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
24135         is returned.
24136
24137         * string/_strerror.c (__strerror_r): Print negative errors as signed
24138         numbers.
24139
24140         [BZ #12777]
24141         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
24142         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
24143         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
24144
24145         * configure.in: Fix typo in redirection and correct removal of test
24146         files in two cases.
24147
24148         [BZ #12788]
24149         * locale/setlocale.c (new_composite_name): Fix test to check for
24150         identical name of all categories.
24151
24152         [BZ #12792]
24153         * libio/filedoalloc.c (local_isatty): New function.
24154         (_IO_file_doallocate): Use local_isatty.
24155         * stdio-common/perror.c (perror): In case a new stream is used
24156         forward the stream error.
24157         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
24158         error flag.
24159
24160 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
24161
24162         [BZ #11869]
24163         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
24164         alloca.
24165         * include/alloca.h (extend_alloca_account): Define.
24166
24167         [BZ #11857]
24168         * posix/regex.h: Fix comments with documentation of user-accessible
24169         fields after compilation and describe correct free'ing of pattern
24170         after re_compile_pattern.
24171         Patch by Reuben Thomas <rrt@sc3d.org>.
24172
24173 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
24174
24175         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
24176         and -mno-altivec to prevent the compiler from using Altivec and/or
24177         VSX instructions when the corresponding registers are not available.
24178
24179 2011-05-19  Andreas Schwab  <schwab@redhat.com>
24180
24181         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
24182
24183 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
24184
24185         * libio/freopen.c (freopen): Use __dup2, not dup2.
24186         * libio/freopen64.c (freopen64): Likewise.
24187
24188 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
24189
24190         [BZ #12775]
24191         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
24192         * math/Makefile (tests): Add test-powl.
24193         (CFLAGS-test-powl.c): Define.
24194         * math/test-powl.c: New file.
24195
24196 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
24197
24198         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
24199
24200 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
24201
24202         [BZ #11837]
24203         * iconvdata/gb18030.c: Update to GB18020-2005.
24204
24205 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
24206
24207         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
24208         RE_SYNTAX_POSIX_AWK): Update to match recent development.
24209         Patch by Aharon Robbins <arnold@skeeve.com>.
24210
24211         [BZ #11892]
24212         * stdlib/putenv.c (putenv): Don't always create copy of the variable
24213         on the stack.
24214
24215         [BZ #11895]
24216         * misc/pselect.c (__pselect): Handle timeout value errors hidden
24217         through underflows.
24218
24219         [BZ #12766]
24220         * misc/error.c (error_at_line): Ensure file_name and old_file_name
24221         point to strings before performing equality test for error_one_per_line
24222         mode.
24223
24224         [BZ #11697]
24225         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
24226
24227         [BZ #11820]
24228         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
24229         (struct user_fpregs_struct): Avoid __uint*_t types.
24230
24231         [BZ #6420]
24232         * malloc/mtrace.c (tr_where): Add additional parameter to point to
24233         symbol info.  Use it instead of calling _dl_addr locally.
24234         (lock_and_info): New function.
24235         (tr_freehook): Call lock_and_info and pass symbol info as additional
24236         parameter to tr_where.
24237         (tr_mallochook): Likewise.
24238         (tr_reallochook): Likewise.
24239         (tr_memalignhook): Likewise.
24240
24241         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
24242         used and couldn't be at all thread-safe.
24243
24244 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
24245
24246         * libio/freopen.c (freopen): Don't close old file descriptor
24247         before the new one is opened.  Instead dup the new file descriptor
24248         to the old one after the new stream is created.
24249         * libio/freopen64.c (freopen64): Likewise.
24250         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
24251         * libio/fileops.c (_IO_new_file_close_it): Handle new
24252         _IO_FLAGS2_NOCLOSE flag.
24253         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
24254         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
24255         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
24256         _IO_FLAGS2_NOCLOSE flag.
24257         * include/unistd.h: Add hidden_proto for dup3.
24258         Define __have_dup3.
24259         * io/dup3.c: Define hidden symbol.
24260         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
24261
24262         [BZ #7101]
24263         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
24264         when an incomplete long option is used.
24265         * posix/tst-getopt_long1.c: New file.
24266         * posix/Makefile (tests): Add tst-getopt_long1.
24267
24268         [BZ #10138]
24269         * scripts/config.guess: Update from autoconf-2.68.
24270         * scripts/config.sub: Likewise.
24271
24272         [BZ #10157]
24273         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
24274         tests into ...
24275         (has_cpuclock): ...this.  New function.
24276         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
24277         macro here based on has_cpuclock code.
24278
24279         [BZ #10149]
24280         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24281         First byte (not low byte) is now always NUL.
24282         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
24283
24284         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
24285         Use non-cancelable interfaces.
24286
24287         [BZ #9809]
24288         * locale/iso-639.def: Add entry for Sorani.
24289
24290         [BZ #11901]
24291         * include/stdlib.h: Move include protection to the right place.
24292         Define abort_msg_s.  Declare __abort_msg with it.
24293         * stdlib/abort.c (__abort_msg): Adjust type.
24294         * assert/assert.c (__assert_fail_base): New function.  Majority
24295         of code from __assert_fail.  Allocate memory for __abort_msg with
24296         mmap.
24297         (__assert_fail): Now call __assert_fail_base.
24298         * assert/assert-perr.c: Remove bulk of implementation.  Use
24299         __assert_fail_base.
24300         * include/assert.hL Declare __assert_fail_base.
24301         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
24302         mmap.
24303         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
24304
24305 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
24306
24307         [BZ #11952]
24308         [BZ #12453]
24309         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
24310         until all modules are registered in the DTV.
24311         * elf/Makefile: Add rules to build and run tst-tls19.
24312         * elf/tst-tls19.c: New file.
24313         * elf/tst-tls19mod1.c: New file.
24314         * elf/tst-tls19mod2.c: New file.
24315         * elf/tst-tls19mod3.c: New file.
24316         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
24317
24318         [BZ #12083]
24319         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
24320         correctly.
24321
24322         [BZ #12601]
24323         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
24324         two-byte sequence errors.
24325         * iconvdata/Makefile (tests): Add bug-iconv8.
24326         * iconvdata/bug-iconv8.c: New file.
24327
24328         [BZ #12626]
24329         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
24330         buf2 definition.
24331
24332         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
24333
24334         [BZ #12432]
24335         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
24336         (dummy_getcfa): New function.
24337         (init): Get _Unwind_GetCFA address, use dummy if not found.
24338         (backtrace_helper): In recursion check, also check whether CFA changes.
24339         (__backtrace): Completely initialize arg.
24340
24341         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
24342         storing incomplete byte sequence in state object.  Avoid testing for
24343         guaranteed too small input if we know there is enough data available.
24344
24345 2011-05-11  Andreas Schwab  <schwab@redhat.com>
24346
24347         * Makeconfig (+link-pie): Indent.
24348         * Rules (binaries-pie): Define if $(have-fpie) and
24349         $(build-shared).
24350         (binaries-shared): Also filter out $(binaries-pie).
24351         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
24352         * nscd/Makefile (others-pie): Add nscd.
24353         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
24354         ($(objpfx)nscd): Remove command override.
24355         * login/Makefile (others-pie): Add pt_chown.
24356         ($(objpfx)pt_chown): Remove command override.
24357         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
24358         remove command overrides.
24359
24360 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
24361
24362         * libio/tst_putwc.c: Fix error messages.
24363
24364         [BZ #12724]
24365         * libio/fileops.c (_IO_new_file_close_it): Always flush when
24366         currently writing and seek to current position when not.
24367         * libio/Makefile (tests): Add bug-fclose1.
24368         * libio/bug-fclose1.c: New file.
24369
24370 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
24371
24372         [BZ #12511]
24373         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
24374         don't set DF_1_NODELETE here.
24375         (do_lookup_x): When entering new entry test for copy relocation
24376         and if necessary set DF_1_NODELETE flag.
24377         * elf/tst-unique4.cc: New file.
24378         * elf/tst-unique4.h: New file.
24379         * elf/tst-unique4lib.cc: New file.
24380         * elf/Makefile: Add rules to build and run tst-unique4.
24381         Patch by Piotr Bury <pbury@goahead.com>.
24382
24383 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
24384
24385         [BZ #12052]
24386         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
24387
24388         [BZ #12625]
24389         * misc/mntent_r.c (addmntent): Flush the stream after the output
24390
24391         [BZ #12393]
24392         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
24393         (is_trusted_path_normalize): Skip initial colon.  Append slash
24394         to empty buffer.  Duplicate is_trusted_path code but allow
24395         constructed patch to be prefix.
24396         (is_dst): Allow $ORIGIN followed by /.
24397         (_dl_dst_substitute): Correct clearing of check_for_trusted.
24398         Correct testing of result of is_trusted_path_normalize
24399         (decompose_rpath): Fix warning.
24400
24401 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
24402
24403         [BZ #11257]
24404         * grp/initgroups.c (internal_getgrouplist): When we found the service
24405         list through the initgroups entry in nsswitch.conf do not always
24406         continue on a successful lookup.  Don't always use the
24407         __nss_group_database value if it is set.
24408         * nss/nsswitch.conf (initgroups): Change action for successful db
24409         lookup to continue for compatibility.
24410
24411 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
24412
24413         [BZ #11532]
24414         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
24415         and CP774 modules.
24416         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
24417         and CP774 modules.
24418         * iconvdata/tst-tables.sh: Likewise.
24419         * iconvdata/cp770.c: New file.
24420         * iconvdata/cp771.c: New file.
24421         * iconvdata/cp772.c: New file.
24422         * iconvdata/cp773.c: New file.
24423         * iconvdata/cp774.c: New file.
24424         * iconvdata/testdata/CP770: New file.
24425         * iconvdata/testdata/CP770..UTF8: New file.
24426         * iconvdata/testdata/CP771: New file.
24427         * iconvdata/testdata/CP771..UTF8: New file.
24428         * iconvdata/testdata/CP772: New file.
24429         * iconvdata/testdata/CP772..UTF8: New file.
24430         * iconvdata/testdata/CP773: New file.
24431         * iconvdata/testdata/CP773..UTF8: New file.
24432         * iconvdata/testdata/CP774: New file.
24433         * iconvdata/testdata/CP774..UTF8: New file.
24434
24435         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
24436         END CHARMAP line.
24437         * iconvdata/gen-8bit-gap.sh: Likewise.
24438         * iconvdata/gen-8bit.sh: Likewise.
24439
24440         * locale/iso-639.def: Add ary entry.
24441
24442         [BZ #11258]
24443         * locale/C-translit.h.in: Add U20A1 transliteration.
24444
24445         [BZ #12178]
24446         * locale/iso-639.def: Add wae entry.
24447         Patch by Kevin Bortis <bortis@translate-wae.ch>.
24448
24449         [BZ #12545]
24450         * locale/programs/localedef.c (construct_output_path): Use ssize_t
24451         for n.
24452
24453         [BZ #12711]
24454         * locale/C-translit.h.in: Add entry for U20B9.
24455         Patch by pravin.d.s@gmail.com.
24456
24457 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
24458
24459         [BZ #12713]
24460         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
24461         ENAMETOOLONG use generic getcwd.
24462         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
24463         in rtld.  Use *stat64.
24464         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
24465         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
24466         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
24467         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
24468         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
24469         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
24470         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
24471         __fstatat64 macros.
24472         * include/dirent.h: Add libc_hidden_proto for rewinddir.
24473         * dirent/rewinddir.c: Add libc_hidden_def.
24474         * sysdeps/mach/hurd/rewinddir.c: Likewise.
24475         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
24476
24477         * include/dirent.h (__alloc_dir): Add flags parameter.
24478         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
24479         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
24480         __alloc_dir.
24481         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
24482         from fdopendir if O_CLOEXEC is already set.
24483
24484 2011-03-15  Alan Modra  <amodra@gmail.com>
24485
24486         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
24487         l_tls_firstbyte_offset non-zero.  Save padding offset in
24488         l_tls_firstbyte_offset for later use.
24489         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
24490         freeing static tls block.
24491
24492 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
24493
24494         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
24495         where #ifdef was intended.  The intent is to prevent ARG_MAX from
24496         being defined by the kernel headers.
24497
24498 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
24499
24500         [BZ #12734]
24501         * resolv/resolv.h: Define RES_NOTLDQUERY.
24502         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
24503         no-tld-query and set RES_NOTLDQUERY.
24504         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
24505         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
24506         modern BIND to search name as TLD unless forbidden.
24507
24508 2011-05-07  Petr Baudis  <pasky@suse.cz>
24509             Ulrich Drepper  <drepper@gmail.com>
24510
24511         [BZ #12393]
24512         * elf/dl-load.c (fillin_rpath): Move trusted path check...
24513         (is_trusted_path): ...to here.
24514         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
24515         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
24516         using is_trusted_path_normalize() in setuid scripts.
24517
24518 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
24519
24520         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
24521         __BEGIN/__END_DECLS.
24522
24523 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
24524
24525         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
24526         NSS_STATUS_NOTFOUND if no record was found.
24527
24528 2011-05-05  Andreas Schwab  <schwab@redhat.com>
24529
24530         * sunrpc/Makefile (headers): Add rpc/netdb.h.
24531         (headers-not-in-tirpc): Remove rpc/netdb.h
24532         * resolv/netdb.h: Revert last change.
24533
24534 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24535
24536         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
24537         circular dependency between libgcc.a and libc.a.
24538
24539 2011-05-05  Andreas Schwab  <schwab@redhat.com>
24540
24541         * resolv/netdb.h: Don't include <rpc/netdb.h>.
24542         * nis/Makefile: Don't install rpcsvc/*.
24543         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
24544         instead of <rpc/types.h>.
24545         (MAXHOSTNAMELEN): Define.
24546
24547 2011-05-03  Andreas Schwab  <schwab@redhat.com>
24548
24549         * elf/ldconfig.c (add_dir): Don't crash on empty path.
24550
24551 2011-04-28  Maciej Babinski  <mbabinski@google.com>
24552
24553         [BZ #12714]
24554         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
24555         gethostbyname4_r when IPv6 results are possible.
24556
24557 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
24558
24559         [BZ #12723]
24560         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
24561         _PC_PIPE_BUF handling.
24562
24563 2011-04-30  Bruno Haible  <bruno@clisp.org>
24564
24565         [BZ #12717]
24566         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
24567         * resolv/netdb.h (getnameinfo): Change type of flags parameter
24568         to 'int'.
24569         * inet/getnameinfo.c (getnameinfo): Likewise.
24570
24571 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
24572
24573         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
24574         to groups setting in database lookup.
24575         * nss/nsswitch.conf: Add initgroups entry.
24576
24577 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
24578
24579         [BZ #12685]
24580         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
24581         mode string.
24582         Patch by Eric Blake <eblake@redhat.com>.
24583
24584 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
24585
24586         * sunrpc/Makefile (need-export-routines): Add svc_run.
24587         (routines): Remove svc_run.
24588         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
24589         * sunrpc/clnt_perr.c (clnt_perrno): Export.
24590         * sunrpc/svc_run.c (svc_run): Likewise.
24591         * sunrpc/svc_udp.c (svcudp_create): Likewise.
24592
24593 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
24594
24595         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
24596         problem in reallocation in last patch.
24597
24598 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
24599
24600         * sunrpc/Makefile: Move inclusion of Rules.
24601
24602 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24603
24604         * nss/nss_files/files-initgroups.c: New file.
24605         * nss/Makefile (libnss_files-routines): Add files-initgroups.
24606         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
24607         _nss_files_initgroups_dyn.
24608
24609 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
24610
24611         * elf/elf.h (R_ARM_IRELATIVE): Define.
24612
24613 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
24614
24615         * po/ru.po: Update from translation team.
24616
24617 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24618
24619         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
24620         dependencies.
24621
24622 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
24623
24624         [BZ #12653]
24625         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
24626         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
24627         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24628         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
24629         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
24630
24631 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
24632
24633         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
24634         differing bytes.
24635         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
24636         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
24637         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
24638
24639 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
24640
24641         [BZ #12420]
24642         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
24643         storing it.
24644         * stdlib/bug-getcontext.c: New file.
24645         * stdlib/Makefile: Add rules to build and run bug-getcontext.
24646
24647 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24648
24649         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
24650         instructions into .machine "z9-109".
24651         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
24652         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
24653
24654 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24655
24656         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
24657         between environment variables and auxiliary vector.
24658
24659 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
24660
24661         * Makefile: Add rules to build linkobj/libc.so.
24662         * include/libc-symbols.h: Define libc_hidden_nolink.
24663         * include/rpc/auth.h: Mark functions which are to be hidden.
24664         * include/rpc/auth_des.h: Likewise.
24665         * include/rpc/auth_unix.h: Likewise.
24666         * include/rpc/clnt.h: Likewise.
24667         * include/rpc/des_crypt.h: Likewise.
24668         * include/rpc/key_prot.h: Likewise.
24669         * include/rpc/pmap_clnt.h: Likewise.
24670         * include/rpc/pmap_prot.h: Likewise.
24671         * include/rpc/pmap_rmt.h: Likewise.
24672         * include/rpc/rpc_msg.h: Likewise.
24673         * include/rpc/svc.h: Likewise.
24674         * include/rpc/svc_auth.h: Likewise.
24675         * include/rpc/xdr.h: Likewise.
24676         * nis/Makefile: Link all DSOs against linkobj/libc.so.
24677         * nss/Makefile: Likewise.
24678         * sunrpc/Makefile: Don't install headers.  Build library with normal
24679         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
24680         * sunrpc/auth_des.c: Hide exported symbols by default, export some
24681         for the compat linking library.  Remove use of INTDEF/INTUSE.
24682         * sunrpc/auth_none.c: Likewise.
24683         * sunrpc/auth_unix.c: Likewise.
24684         * sunrpc/authdes_prot.c: Likewise.
24685         * sunrpc/authuxprot.c: Likewise.
24686         * sunrpc/clnt_gen.c: Likewise.
24687         * sunrpc/clnt_perr.c: Likewise.
24688         * sunrpc/clnt_raw.c: Likewise.
24689         * sunrpc/clnt_simp.c: Likewise.
24690         * sunrpc/clnt_tcp.c: Likewise.
24691         * sunrpc/clnt_udp.c: Likewise.
24692         * sunrpc/clnt_unix.c: Likewise.
24693         * sunrpc/des_crypt.c: Likewise.
24694         * sunrpc/des_soft.c: Likewise.
24695         * sunrpc/get_myaddr.c: Likewise.
24696         * sunrpc/key_call.c: Likewise.
24697         * sunrpc/key_prot.c: Likewise.
24698         * sunrpc/netname.c: Likewise.
24699         * sunrpc/pm_getmaps.c: Likewise.
24700         * sunrpc/pm_getport.c: Likewise.
24701         * sunrpc/pmap_clnt.c: Likewise.
24702         * sunrpc/pmap_prot.c: Likewise.
24703         * sunrpc/pmap_prot2.c: Likewise.
24704         * sunrpc/pmap_rmt.c: Likewise.
24705         * sunrpc/publickey.c: Likewise.
24706         * sunrpc/rpc_cmsg.c: Likewise.
24707         * sunrpc/rpc_common.c: Likewise.
24708         * sunrpc/rpc_dtable.c: Likewise.
24709         * sunrpc/rpc_prot.c: Likewise.
24710         * sunrpc/rpc_thread.c: Likewise.
24711         * sunrpc/rtime.c: Likewise.
24712         * sunrpc/svc.c: Likewise.
24713         * sunrpc/svc_auth.c: Likewise.
24714         * sunrpc/svc_authux.c: Likewise.
24715         * sunrpc/svc_raw.c: Likewise.
24716         * sunrpc/svc_run.c: Likewise.
24717         * sunrpc/svc_simple.c: Likewise.
24718         * sunrpc/svc_tcp.c: Likewise.
24719         * sunrpc/svc_udp.c: Likewise.
24720         * sunrpc/svc_unix.c: Likewise.
24721         * sunrpc/svcauth_des.c: Likewise.
24722         * sunrpc/xcrypt.c: Likewise.
24723         * sunrpc/xdr.c: Likewise.
24724         * sunrpc/xdr_array.c: Likewise.
24725         * sunrpc/xdr_float.c: Likewise.
24726         * sunrpc/xdr_intXX_t.c: Likewise.
24727         * sunrpc/xdr_mem.c: Likewise.
24728         * sunrpc/xdr_rec.c: Likewise.
24729         * sunrpc/xdr_ref.c: Likewise.
24730         * sunrpc/xdr_sizeof.c: Likewise.
24731         * sunrpc/xdr_stdio.c: Likewise.
24732
24733 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
24734
24735         [BZ #12650]
24736         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
24737         * sysdeps/ia64/dl-tls.h: Likewise.
24738         * sysdeps/powerpc/dl-tls.h: Likewise.
24739         * sysdeps/s390/dl-tls.h: Likewise.
24740         * sysdeps/sh/dl-tls.h: Likewise.
24741         * sysdeps/sparc/dl-tls.h: Likewise.
24742         * sysdeps/x86_64/dl-tls.h: Likewise.
24743         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
24744
24745 2011-03-14  Andreas Schwab  <schwab@redhat.com>
24746
24747         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
24748         rpath element also skip the following colon.
24749         (expand_dynamic_string_token): Add is_path parameter and pass
24750         down to DL_DST_REQUIRED and _dl_dst_substitute.
24751         (decompose_rpath): Call expand_dynamic_string_token with
24752         non-zero is_path.  Ignore empty rpaths.
24753         (_dl_map_object_from_fd): Call expand_dynamic_string_token
24754         with zero is_path.
24755
24756 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
24757
24758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
24759         Make cancelable.
24760
24761 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
24762
24763         [BZ #12655]
24764         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
24765         Patch by Filipe David Manana <fdmanana@apache.org>.
24766
24767 2011-04-07  Andreas Schwab  <schwab@redhat.com>
24768
24769         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
24770         Maintain aligned stack.
24771         (CHECK_RSP): Remove unused macro.
24772
24773 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
24774
24775         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
24776         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
24777
24778 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
24779
24780         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
24781
24782         * include/features.h: Mention __USE_XOPEN2K8 in comment.
24783
24784 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
24785
24786         [BZ #12518]
24787         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
24788         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
24789         * sysdeps/x86_64/memmove.c: New file.
24790         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
24791         (memcpy): Renamed to ...
24792         (__new_memcpy): This.
24793         (memcpy): Provide GLIBC_2_14 memcpy.
24794         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
24795         (memcpy): Provide GLIBC_2_2_5 memcpy.
24796
24797 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24798
24799         [BZ #12631]
24800         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
24801
24802 2011-03-30  Andreas Schwab  <schwab@redhat.com>
24803
24804         * misc/syncfs.c: New file.
24805         * misc/Makefile (routines): Add syncfs.
24806         * posix/unistd.h: Declare syncfs.
24807         * sysdeps/unix/syscalls.list: Add syncfs.
24808
24809 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24810
24811         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
24812         open_by_handle_at.
24813         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
24814         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24815         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24816         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24817         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24818         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
24819         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24820
24821 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24822
24823         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
24824         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24825         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
24826         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24827         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24828         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24829         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24830
24831         * io/Makefile: Compile fallocate.c, fallocate64.c, and
24832         sync_file_range.c with -fexceptions.
24833         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
24834         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
24835         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
24836         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
24837         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
24838         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
24839         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
24840         sync_file_range as cancellation point
24841         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
24842         now a wrapper around __call_sync_file_range with cancellation handling.
24843         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
24844         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
24845         function name to __call_sync_file_range.
24846         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
24847         Add call_sync_file_range.
24848
24849 2011-04-01  Andreas Schwab  <schwab@redhat.com>
24850
24851         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24852         bits/timex.h.
24853
24854 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
24855
24856         * iconv/iconv.h: Fix typo in comment.
24857         * io/fcntl.h: Likewise.
24858         * libio/stdio.h: Likewise.
24859         * posix/spawn.h: Likewise.
24860         * posix/unistd.h: Likewise.
24861         * stdlib/stdlib.h: Likewise.
24862         * time/time.h: Likewise.
24863         * wcsmbs/wchar.h: Likewise.
24864
24865         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
24866         open_by_handle): Add.
24867         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
24868         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
24869         Augment a few comments.
24870         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
24871         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
24872         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
24873         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
24874         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
24875         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
24876         open_by_handle.
24877
24878         * io/fcntl.h (AT_EMPTY_PATH): Define.
24879
24880 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
24881
24882         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
24883         * sysdeps/unix/sysv/linux/bits/time.h: New file.
24884         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
24885         to...
24886         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
24887         * Versions.def: Add GLIBC_2.14.
24888         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
24889         Export.
24890
24891 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
24892
24893         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
24894         round counter.
24895         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
24896
24897 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24898
24899         [BZ #12597]
24900         * string/test-strncmp.c (do_page_test): New function.
24901         (check2): Likewise.
24902         (test_main): Call check2.
24903         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
24904
24905 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
24906
24907         [BZ #12587]
24908         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
24909         Handle cache information in CPU leaf 4.
24910         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
24911
24912 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
24913
24914         [BZ #12583]
24915         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
24916         character representation.
24917         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
24918
24919 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
24920
24921         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
24922         END(__isnan) to END(__isnanf) to match function entry point/label
24923         EALIGN(__isnanf,...).
24924
24925 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
24926
24927         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
24928
24929 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
24930
24931         [BZ #12510]
24932         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
24933         copy from the symbol referenced in the relocation to initialize the
24934         used variable.
24935         Patch by Piotr Bury <pbury@goahead.com>.
24936         * elf/Makefile: Add rules to build and tst-unique3.
24937         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
24938         * elf/tst-unique3.cc: New file.
24939         * elf/tst-unique3.h: New file.
24940         * elf/tst-unique3lib.cc: New file.
24941         * elf/tst-unique3lib2.cc: New file.
24942
24943         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
24944
24945 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
24946
24947         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
24948         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
24949         to _start.
24950
24951 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
24952
24953         * elf/dl-load.c (_dl_map_object): If we are looking for the first
24954         to-be-loaded object along a path to loader is ld.so.
24955
24956 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
24957             Ulrich Drepper  <drepper@gmail.com>
24958
24959         * sysdeps/x86_64/memset.S: After aligning destination, code
24960         branches to different locations depending on the value of
24961         misalignment, when multiarch is enabled. Fix this.
24962
24963 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
24964
24965         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
24966         Set _x86_64_preferred_memory_instruction for AMD processsors.
24967         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
24968         Set bit_Prefer_SSE_for_memop for AMD processors.
24969
24970 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
24971
24972         * libio/fmemopen.c (fmemopen): Optimize a bit.
24973
24974 2011-03-03  Andreas Schwab  <schwab@redhat.com>
24975
24976         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
24977
24978 2011-03-03  Roland McGrath  <roland@redhat.com>
24979
24980         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
24981
24982 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
24983
24984         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
24985         __bzero_ultra1 instead of __memset_ultra1.
24986
24987 2011-02-23  Andreas Schwab  <schwab@redhat.com>
24988             Ulrich Drepper  <drepper@gmail.com>
24989
24990         [BZ #12509]
24991         * include/link.h (struct link_map): Add l_orig_initfini.
24992         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
24993         returning unsuccessfully.
24994         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
24995         close of a file loaded at startup, restore the original l_initfini
24996         list.
24997         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
24998         list, store the pointer.
24999         * elf/Makefile ($(objpfx)noload-mem): New rule.
25000         (noload-ENV): Define.
25001         (tests): Add $(objpfx)noload-mem.
25002         * elf/noload.c: Include <memcheck.h>.
25003         (main): Call mtrace.  Close all opened handles.
25004
25005 2011-02-17  Andreas Schwab  <schwab@redhat.com>
25006
25007         [BZ #12454]
25008         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
25009         dependencies are missing.
25010
25011 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25012
25013         Fix __if_freereq crash: Unlike the generic version which uses free,
25014         Hurd needs munmap.
25015         * sysdeps/mach/hurd/ifreq.h: New file.
25016
25017 2011-01-27  Petr Baudis  <pasky@suse.cz>
25018             Ulrich Drepper  <drepper@gmail.com>
25019
25020         [BZ 12445]#
25021         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
25022         to extend_alloca().
25023         * stdio-common/bug23.c: New file.
25024         * stdio-common/Makefile (tests): Add bug23.
25025
25026 2010-09-28  Andreas Schwab  <schwab@redhat.com>
25027             Ulrich Drepper  <drepper@gmail.com>
25028
25029         [BZ #12489]
25030         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
25031         before performing relro protection.  At old place add assertion
25032         to make sure nothing changed.
25033
25034 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
25035             Glauber de Oliveira Costa  <glommer@gmail.com>
25036
25037         * elf/elf.h: Add new ARM TLS relocs.
25038
25039 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
25040
25041         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
25042         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
25043         cast from r3.
25044         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
25045         'tests' variable.
25046         * sysdeps/wordsize-64/tst-writev.c: New file.
25047
25048 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
25049
25050         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
25051         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
25052         insns in _dl_start to prevent a TOC reference before relocs are
25053         resolved.
25054
25055 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
25056
25057         [BZ #12469]
25058         * Makeconfig: Remove RANLIB definition.
25059         * Makerules: Don't use RANLIB.
25060         * aclocal.m4: Remove ranlib test.
25061         * configure.in: No need to check for ranlib.
25062         * elf/rtld-Rules: Don't use RANLIB.
25063
25064 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25065
25066         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
25067         protection macro.
25068         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
25069         inclusion protection macro.
25070
25071         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
25072         SIGRTMIN and SIGRTMAX and print information in that case only when
25073         SIGRTMIN is defined.
25074
25075 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
25076
25077         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
25078         arginfo fn returning -1.
25079
25080         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
25081         and thousands string is zero terminated.
25082
25083 2011-02-03  Andreas Schwab  <schwab@redhat.com>
25084
25085         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
25086         sysdeps/unix/sysv/linux/bits/socket.h.
25087
25088 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25089
25090         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
25091         (__CPU_COUNT): Remove old macros.
25092         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
25093         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
25094         (__CPU_ALLOC, __CPU_FREE): Add macros.
25095         (__sched_cpualloc, __sched_cpufree): Add declarations.
25096
25097 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
25098
25099         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
25100         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
25101         * nscd/aicache.c (addhstaiX): Return timeout of added value.
25102         (readdhstai): Return value of addhstaiX call.
25103         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
25104         (addgrbyX): Return value returned by cache_addgr.
25105         (readdgrbyname): Return value returned by addgrbyX.
25106         (readdgrbygid): Likewise.
25107         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
25108         (addpwbyX): Return value returned by cache_addpw.
25109         (readdpwbyname): Return value returned by addhstbyX.
25110         (readdpwbyuid): Likewise.
25111         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
25112         (addservbyX): Return value returned by cache_addserv.
25113         (readdservbyname): Return value returned by addservbyX:
25114         (readdservbyport): Likewise.
25115         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
25116         (addhstbyX): Return value returned by cache_addhst.
25117         (readdhstbyname): Return value returned by addhstbyX.
25118         (readdhstbyaddr): Likewise.
25119         (readdhstbynamev6): Likewise.
25120         (readdhstbyaddrv6): Likewise.
25121         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
25122         (readdinitgroups): Return value returned by addinitgroupsX.
25123         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
25124         (prune_cache): Keep track of timeout value of re-added entries.
25125         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
25126         * nscd/nscd.h: Adjust prototypes of readd* functions.
25127
25128 2011-02-04  Roland McGrath  <roland@redhat.com>
25129
25130         * nis/nis_server.c (nis_servstate): Use the right name for 0.
25131         (nis_stats): Likewise.
25132         * nis/nis_modify.c (nis_modify): Likewise.
25133         * nis/nis_remove.c (nis_remove): Likewise.
25134         * nis/nis_add.c (nis_add): Likewise.
25135
25136         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
25137
25138         * posix/fnmatch_loop.c: Add some consts.
25139
25140         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
25141
25142 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
25143
25144         [BZ #12460]
25145         * config.make.in (config-cflags-novzeroupper): Define.
25146         * configure.in: Substitute libc_cv_cc_novzeroupper.
25147         * elf/Makefile (AVX-CFLAGS): Define.
25148         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
25149         (CFLAGS-tst-auditmod4a.c): Likewise.
25150         (CFLAGS-tst-auditmod4b.c): Likewise.
25151         (CFLAGS-tst-auditmod6b.c): Likewise.
25152         (CFLAGS-tst-auditmod6c.c): Likewise.
25153         (CFLAGS-tst-auditmod7b.c): Likewise.
25154         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
25155
25156 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
25157
25158         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
25159         function to the callback.
25160         Patch partly by Jiri Olsa <jolsa@redhat.com>.
25161
25162 2011-02-02  Andreas Schwab  <schwab@redhat.com>
25163
25164         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
25165         of errno.
25166
25167 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
25168
25169         [BZ #11724]
25170         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
25171         of constructors.
25172         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
25173         of destructors.
25174         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
25175
25176         [BZ #11724]
25177         * elf/Makefile: Add rules to build and run new test.
25178         * elf/tst-initorder.c: New file.
25179         * elf/tst-initorder.exp: New file.
25180         * elf/tst-initordera1.c: New file.
25181         * elf/tst-initordera2.c: New file.
25182         * elf/tst-initordera3.c: New file.
25183         * elf/tst-initordera4.c: New file.
25184         * elf/tst-initorderb1.c: New file.
25185         * elf/tst-initorderb2.c: New file.
25186         * elf/tst-order-a1.c: New file.
25187         * elf/tst-order-a2.c: New file.
25188         * elf/tst-order-a3.c: New file.
25189         * elf/tst-order-a4.c: New file.
25190         * elf/tst-order-b1.c: New file.
25191         * elf/tst-order-b2.c: New file.
25192         * elf/tst-order-main.c: New file.
25193         New test case by George Gensure <werkt0@gmail.com>.
25194
25195 2010-10-01  Andreas Schwab  <schwab@redhat.com>
25196
25197         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
25198         decoding ACE if AI_CANONIDN.
25199
25200 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
25201
25202         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
25203
25204 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
25205
25206         * version.h (RELEASE): Bump for 2.13 release.
25207         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
25208
25209         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
25210
25211         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
25212         MADV_NOHUGEPAGE.
25213         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
25214         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
25215         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
25216         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
25217         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
25218         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
25219
25220         * posix/getconf.c: Update copyright year.
25221         * catgets/gencat.c: Likewise.
25222         * csu/version.c: Likewise.
25223         * debug/catchsegv.sh: Likewise.
25224         * debug/xtrace.sh: Likewise.
25225         * elf/ldconfig.c: Likewise.
25226         * elf/ldd.bash.in: Likewise.
25227         * elf/sprof.c (print_version): Likewise.
25228         * iconv/iconv_prog.c: Likewise.
25229         * iconv/iconvconfig.c: Likewise.
25230         * locale/programs/locale.c: Likewise.
25231         * locale/programs/localedef.c: Likewise.
25232         * malloc/memusage.sh: Likewise.
25233         * malloc/mtrace.pl: Likewise.
25234         * nscd/nscd.c (print_version): Likewise.
25235         * nss/getent.c: Likewise.
25236
25237         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
25238         PF_CAIF, and PF_ALG.
25239         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25240
25241 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
25242
25243         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
25244         (modules-names): Use them.
25245         (ifunc-test-modules, ifunc-pie-tests): Define.
25246         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
25247         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
25248         (test-extras): Likewise.
25249         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
25250         $(compile-command.c).
25251         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
25252         (all-built-dso): Define.
25253         (check-textrel.out, check-execstack.out): Depend on it.
25254
25255         * configure.in: Don't override --enable-multi-arch.
25256
25257 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
25258
25259         [BZ #6812]
25260         * nscd/hstcache.c (tryagain): Define.
25261         (cache_addhst): Return tryagain not notfound for temporary errors.
25262         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
25263         failed.
25264
25265 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
25266
25267         [BZ #10563]
25268         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
25269         to make the syscall.
25270         * sysdeps/unix/sysv/linux/setgroups.c: New file.
25271
25272         [BZ #12378]
25273         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
25274         and fall back to matching as normal character if the string ends before
25275         the matching ']' is found.  This is what POSIX requires.
25276         * posix/testfnm.c: Adjust test result.
25277         * posix/globtest.sh: Adjust test result.  Add new test.
25278         * posix/tst-fnmatch.input: Likewise.
25279         * posix/tst-fnmatch2.c: Add new test.
25280
25281 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
25282
25283         * elf/Makefile (check-execstack): Revert last change.  Depend on
25284         check-execstack.h.
25285         (check-execstack.h): New target.
25286         (generated): Add check-execstack.h.
25287         * elf/check-execstack.c: Include "check-execstack.h".
25288         (main): Revert last change.
25289         (handle_file): Return zero if GNU_STACK is absent and
25290         DEFAULT_STACK_PERMS doesn't include PF_X.
25291
25292 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
25293
25294         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
25295         in child fails because the descriptor is already closed.
25296         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
25297         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
25298         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
25299
25300         [BZ #12397]
25301         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
25302         syscall.
25303
25304         [BZ #10484]
25305         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
25306         temporary buffer used to handle multi lookups locally.
25307         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
25308
25309 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
25310
25311         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
25312         loader is ld.so.
25313
25314 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
25315
25316         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
25317         alignment for SSE2.
25318
25319 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
25320
25321         [BZ #12394]
25322         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
25323         characters.  When rounding increased number of integer digits recompute
25324         number of groups.
25325         * stdio-common/tst-grouping.c: New file.
25326         * stdio-common/Makefile: Add rules to build and run tst-grouping.
25327
25328 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
25329
25330         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
25331         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
25332
25333         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
25334         void.
25335         * bits/select.h: Likewise.
25336
25337 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
25338
25339         * po/ja.po: Update from translation team.
25340
25341 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
25342
25343         [BZ #11155]
25344         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
25345         implementation just like for lxstat, fxstatat, et al.
25346
25347 2010-12-27  Jim Meyering  <meyering@redhat.com>
25348
25349         [BZ #12348]
25350         * posix/regexec.c (build_trtable): Return failure indication upon
25351         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
25352
25353 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
25354
25355         [BZ #12201]
25356         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
25357         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
25358         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
25359         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
25360
25361         [BZ #12207]
25362         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
25363
25364         [BZ #12204]
25365         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
25366         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
25367
25368 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
25369
25370         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
25371         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
25372         script has SORT_BY_INIT_PRIORITY.
25373         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
25374         NO_CTORS_DTORS_SECTIONS is defined.
25375         * elf/soinit.c: Likewise.
25376         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
25377         NO_CTORS_DTORS_SECTIONS is defined.
25378         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
25379         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
25380         * sysdeps/sh/init-first.c: Likewise.
25381         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
25382
25383 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
25384
25385         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
25386         always use the slow path.
25387
25388 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
25389
25390         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
25391         similar rule which adds the sysdep directories to the header search in
25392         order to pick up the correct platform stackinfo.h.
25393         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
25394         perform test if it is, otherwise return successfully without testing.
25395         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
25396         DEFAULT_STACK_PERMS define in stackinfo.h.
25397         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
25398         defined in stackinfo.h.
25399         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
25400         DEFAULT_STACK_PERMS defined in stackinfo.h.
25401         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
25402         * sysdeps/ia64/stackinfo.h: Likewise.
25403         * sysdeps/s390/stackinfo.h: Likewise.
25404         * sysdeps/sh/stackinfo.h: Likewise.
25405         * sysdeps/sparc/stackinfo.h: Likewise.
25406         * sysdeps/x86_64/stackinfo.h: Likewise.
25407         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
25408         PF_X for powerpc64.  Retain PF_X for powerpc32.
25409
25410 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
25411
25412         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
25413         accurately.
25414         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
25415         GETDENTS_64BIT_ALIGNED.
25416
25417 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
25418
25419         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
25420
25421 2010-12-10  Andreas Schwab  <schwab@redhat.com>
25422
25423         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
25424         _GNU_SOURCE.
25425
25426         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
25427         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
25428         Remove __restrict.
25429         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
25430         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
25431
25432 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
25433
25434         [BZ #11655]
25435         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
25436         are initialized.
25437
25438 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
25439
25440         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
25441
25442 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
25443
25444         * po/it.po: Update from translation team.
25445
25446 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
25447
25448         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
25449         unused codes.
25450
25451 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
25452
25453         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
25454
25455 2010-11-24  Andreas Schwab  <schwab@redhat.com>
25456
25457         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
25458         specially.
25459         (gaih_getanswer_slice): Likewise.
25460
25461 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
25462
25463         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
25464
25465 2010-05-31  Petr Baudis  <pasky@suse.cz>
25466
25467         [BZ #11149]
25468         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
25469         silently even in the chroot mode.
25470
25471 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
25472
25473         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
25474         last patch a bit.  Pretty printing
25475
25476 2010-05-31  Petr Baudis <pasky@suse.cz>
25477
25478         [BZ #10085]
25479         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
25480         initialization of skip_initgroups_dyn.
25481
25482 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
25483
25484         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
25485         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
25486
25487 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
25488
25489         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
25490
25491 2010-11-11  Andreas Schwab  <schwab@redhat.com>
25492
25493         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
25494         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
25495         (tst-fnmatch-ENV): Set MALLOC_TRACE.
25496         ($(objpfx)tst-fnmatch-mem): New rule.
25497         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
25498         * posix/tst-fnmatch.c (main): Call mtrace.
25499
25500 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
25501
25502         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25503         Support Intel processor model 6 and model 0x2c.
25504
25505 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
25506
25507         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
25508           signed comparison.
25509
25510 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
25511
25512         [BZ #12205]
25513         * string/test-strncasecmp.c (check_result): New function.
25514         (do_one_test): Use it.
25515         (check1): New function.
25516         (test_main): Use it.
25517         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
25518         Support strcasecmp and strncasecmp.
25519
25520 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
25521
25522         [BZ #12194]
25523         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
25524         * sysdeps/x86_64/bits/byteswap.h: Likewise.
25525
25526 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
25527
25528         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
25529         IFUNC support.
25530         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
25531         memset-x86-64.
25532         * sysdeps/x86_64/multiarch/bzero.S: New file.
25533         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
25534         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
25535         * sysdeps/x86_64/multiarch/memset.S: New file.
25536         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
25537         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
25538         Set bit_Prefer_SSE_for_memop for Intel processors.
25539         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
25540         Define.
25541         (index_Prefer_SSE_for_memop): Define.
25542         (HAS_PREFER_SSE_FOR_MEMOP): Define.
25543
25544 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
25545
25546         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
25547         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
25548
25549 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
25550
25551         [BZ #12191]
25552         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25553         (__x86_64_raw_data_cache_size_half): Likewise.
25554         (__x86_64_raw_shared_cache_size): Likewise.
25555         (__x86_64_raw_shared_cache_size_half): Likewise.
25556
25557         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
25558         (__x86_64_raw_data_cache_size_half): Likewise.
25559         (__x86_64_raw_shared_cache_size): Likewise.
25560         (__x86_64_raw_shared_cache_size_half): Likewise.
25561         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
25562         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
25563         and __x86_64_raw_shared_cache_size_half.  Round
25564         __x86_64_data_cache_size_half, __x86_64_data_cache_size
25565         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
25566         to multiple of 256 bytes.
25567
25568 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
25569
25570         [BZ #12167]
25571         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
25572         of inacessible symlinks.  Verify result of symlink before returning it.
25573         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
25574         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
25575
25576 2010-10-28  Erich Ritz  <erichritz@gmail.com>
25577
25578         * math/math.h (isinf): Fix typo in comment.
25579
25580 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
25581
25582         * po/da.po: Update from translation team.
25583
25584 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
25585
25586         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
25587         is added to the list.
25588
25589 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25590             Ulrich Drepper  <drepper@gmail.com>
25591
25592         * elf/dl-object.c (_dl_new_object): Don't append the new object to
25593         the global list here.  Move code to...
25594         (_dl_add_to_namespace_list): ...here.  New function.
25595         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
25596         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
25597         * elf/dl-load.c (lose): Don't remove the element from the list.
25598         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
25599         (_dl_map_object): Likewise.
25600
25601 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
25602
25603         [BZ #12159]
25604         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
25605         into all bytes of SSE register.
25606         Patch by Richard Li <richardpku@gmail.com>.
25607
25608 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
25609
25610         [BZ #12140]
25611         * malloc/malloc.c (_int_free): Fill correct number of bytes when
25612         perturbing.
25613
25614 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
25615
25616         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
25617         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
25618         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
25619         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
25620         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
25621         submachine.
25622         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
25623
25624 2010-10-22  Andreas Schwab  <schwab@redhat.com>
25625
25626         * include/dlfcn.h (__RTLD_SECURE): Define.
25627         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
25628         mode & __RTLD_SECURE instead.
25629         (open_path): Rename preloaded parameter to secure.
25630         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
25631         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
25632         * elf/dl-deps.c (openaux): Likewise.
25633         * elf/rtld.c (struct map_args): Remove is_preloaded.
25634         (map_doit): Don't use it.
25635         (dl_main): Likewise.
25636         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
25637         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
25638
25639 2010-09-09  Andreas Schwab  <schwab@redhat.com>
25640
25641         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
25642         (sysd-rules-targets): Remove duplicates.
25643         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
25644         rtld-%.$o dependency.
25645
25646 2010-10-18  Andreas Schwab  <schwab@redhat.com>
25647
25648         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
25649         _dl_map_object do it.
25650
25651 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
25652
25653         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
25654         fast fma builtins, define the macros in the C99 standard.
25655         (FP_FAST_FMAF): Likewise.
25656         (FP_FAST_FMAL): Likewise.
25657         * sysdeps/x86_64/bits/mathdef.h: Likewise.
25658
25659         * bits/mathdef.h: Update copyright year.
25660         * sysdeps/powerpc/bits/mathdef.h: Likewise.
25661
25662 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
25663
25664         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
25665         builtins, define the macros in the C99 standard.
25666         (FP_FAST_FMAF): Likewise.
25667         (FP_FAST_FMAL): Likewise.
25668         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
25669         multiply/add.
25670         (FP_FAST_FMAF): Likewise.
25671
25672 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
25673
25674         [BZ #3268]
25675         * math/libm-test.inc (fma_test): Some new testcases.
25676         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
25677         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
25678         y and infinite z.  Do multiplication by C already in long double.
25679         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
25680         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
25681         y and infinite z.  Do bitwise or of inexact bit into u.d.
25682         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
25683         * sysdeps/i386/fpu/s_fmaf.S: Removed.
25684         * sysdeps/i386/fpu/s_fma.S: Removed.
25685         * sysdeps/i386/fpu/s_fmal.S: Removed.
25686
25687 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
25688
25689         [BZ #3268]
25690         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
25691         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
25692         computation is not scheduled after fetestexcept.  Fix value
25693         of minimum denormal long double.
25694
25695 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
25696
25697         [BZ #3268]
25698         * math/libm-test.inc (fma_test): Add some more tests.
25699         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
25700         correctly.
25701
25702 2010-10-15  Andreas Schwab  <schwab@redhat.com>
25703
25704         * scripts/data/localplt-s390-linux-gnu.data: New file.
25705         * scripts/data/localplt-s390x-linux-gnu.data: New file.
25706
25707 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
25708
25709         [BZ #3268]
25710         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
25711         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
25712         instead of dbl-64.
25713         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
25714         inlines.
25715         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
25716         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
25717         if one of x and y is very large and the other is subnormal.
25718         * sysdeps/s390/fpu/s_fmaf.c: New file.
25719         * sysdeps/s390/fpu/s_fma.c: New file.
25720         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
25721         * sysdeps/powerpc/fpu/s_fma.S: New file.
25722         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
25723         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
25724         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
25725
25726 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
25727
25728         [BZ #3268]
25729         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
25730         fma tests.
25731         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
25732         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
25733         * sysdeps/i386/i686/multiarch/s_fma.c: Include
25734         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
25735         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
25736         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
25737         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
25738
25739 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
25740
25741         [BZ #12078]
25742         * posix/regcomp.c (parse_branch): One more memory leak plugged.
25743         * posix/bug-regex31.input: Add test case.
25744
25745 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25746
25747         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
25748         * posix/bug-regex31.input: New file.
25749
25750         [BZ #12078]
25751         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
25752         (parse_sub_exp): Fix last change, use postorder.
25753
25754         * posix/bug-regex31.c: New file.
25755         * posix/Makefile: Add rules to build and run bug-regex31.
25756
25757         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
25758
25759         [BZ #12078]
25760         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
25761
25762         [BZ #12108]
25763         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
25764         to have entries in sys_siglist.
25765
25766         [BZ #12093]
25767         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
25768         be NULL.
25769
25770 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
25771
25772         [BZ #3268]
25773         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
25774         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
25775         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
25776         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
25777         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
25778         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
25779         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
25780         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
25781         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
25782         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
25783         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
25784         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
25785         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
25786         * math/ftestexcept.c (fetestexcept): Likewise.
25787         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
25788         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
25789         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
25790         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
25791         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
25792         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
25793         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
25794
25795 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
25796
25797         [BZ #12107]
25798         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
25799         newline.
25800
25801 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
25802
25803         * string/bug-strstr1.c: New file.
25804         * string/Makefile: Add rules to build and run bug-strstr1.
25805
25806 2010-10-05  Eric Blake  <eblake@redhat.com>
25807
25808         [BZ #12092]
25809         * string/str-two-way.h (two_way_long_needle): Always clear memory
25810         when skipping input due to the shift table.
25811
25812 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
25813
25814         [BZ #12005]
25815         * malloc/mcheck.c: Handle large requests.
25816
25817         [BZ #12077]
25818         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
25819         for strncmp and strncasecmp.
25820         * string/stratcliff.c: Add tests for strcmp and strncmp.
25821         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
25822
25823 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
25824
25825         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
25826         __set_fpscr.
25827
25828 2010-09-30  Andreas Jaeger  <aj@suse.de>
25829
25830         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
25831         (CGROUP_SUPER_MAGIC): Define.
25832         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
25833         Handle btrfs and cgroup file systems.
25834         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
25835         Likewise.
25836
25837 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
25838
25839         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
25840         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
25841
25842 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
25843
25844         [BZ #12067]
25845         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
25846         trying to locate the ELF header.
25847
25848 2010-09-27  Andreas Schwab  <schwab@redhat.com>
25849
25850         [BZ #11611]
25851         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
25852         Mask out sign-bit copies when constructing f_fsid.
25853
25854 2010-09-24  Petr Baudis <pasky@suse.cz>
25855
25856         * debug/stack_chk_fail_local.c: Add missing licence exception.
25857         * debug/warning-nop.c: Likewise.
25858
25859 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
25860
25861         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
25862         implementing getdents64 using getdents syscall, set d_type if
25863         __ASSUME_GETDENTS32_D_TYPE.
25864
25865 2010-09-16  Andreas Schwab  <schwab@redhat.com>
25866
25867         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
25868         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
25869
25870 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
25871
25872         [BZ #12037]
25873         * posix/unistd.h: Undo change of feature selection for ftruncate from
25874         2010-01-11.
25875
25876 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
25877
25878         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
25879         detection.
25880
25881 2010-09-20  Andreas Schwab  <schwab@redhat.com>
25882
25883         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
25884         fanotify_mark.
25885         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
25886
25887 2010-09-14  Andreas Schwab  <schwab@redhat.com>
25888
25889         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
25890         variables after CHECK_SP call.
25891         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
25892
25893 2010-09-13  Andreas Schwab  <schwab@redhat.com>
25894             Ulrich Drepper  <drepper@redhat.com>
25895
25896         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
25897         re-relocationg ld.so.
25898         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
25899         _dl_init_paths call.
25900         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
25901         here anymore.
25902
25903 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
25904
25905         * resolv/res_init.c (__res_vinit): Count the default server we added.
25906
25907 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
25908             Ulrich Drepper  <drepper@redhat.com>
25909
25910         [BZ #11968]
25911         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
25912         (____longjmp_chk): Use %ebx for saving value across system call.
25913         Add unwind info.
25914
25915 2010-09-06  Andreas Schwab  <schwab@redhat.com>
25916
25917         * manual/Makefile: Don't mix pattern rules with normal rules.
25918
25919 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
25920
25921         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
25922         operation.
25923         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
25924         * libio/iofopncook.c (_IO_cookie_init): Likewise.
25925         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
25926         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
25927         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
25928         Likewise.
25929
25930 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
25931
25932         [BZ #11979]
25933         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
25934         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
25935
25936 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
25937
25938         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
25939         * sysdeps/x86_64/addmul_1.S: Likewise.
25940         * sysdeps/x86_64/lshift.S: Likewise.
25941         * sysdeps/x86_64/mul_1.S: Likewise.
25942         * sysdeps/x86_64/rshift.S: Likewise.
25943         * sysdeps/x86_64/sub_n.S: Likewise.
25944         * sysdeps/x86_64/submul_1.S: Likewise.
25945
25946 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25947
25948         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
25949         Define __sched_param instead of SCHED_* and sched_param when
25950         <bits/sched.h> is included with __need_schedparam defined.
25951         * bits/sched.h [__need_schedparam]
25952         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
25953         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
25954         (__defined_schedparam): Define to 1.
25955         (__sched_param): New structure, identical to sched_param.
25956         (__need_schedparam): Undefine.
25957
25958 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
25959
25960         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
25961         (epoll_create1): Declare.
25962
25963         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
25964
25965 2010-08-31  Andreas Schwab  <schwab@redhat.com>
25966
25967         [BZ #7066]
25968         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
25969         shifting retval into place.
25970
25971 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
25972
25973         * nis/rpcsvc/nis.h: Update copyright notice.
25974         * nis/rpcsvc/nis.x: Likewise.
25975         * nis/rpcsvc/nis_callback.h: Likewise.
25976         * nis/rpcsvc/nis_callback.x: Likewise.
25977         * nis/rpcsvc/nis_object.x: Likewise.
25978         * nis/rpcsvc/nis_tags.h: Likewise.
25979         * nis/rpcsvc/yp.h: Likewise.
25980         * nis/rpcsvc/yp.x: Likewise.
25981         * nis/rpcsvc/ypupd.h: Likewise.
25982         * nis/yp_xdr.c: Likewise.
25983         * nis/ypupdate_xdr.c: Likewise.
25984
25985         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
25986         mainly the body of pmap_getport.  Add parameters to specify timeouts.
25987         (pmap_getport): Use __libc_rpc_getport.
25988         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
25989         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
25990         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
25991
25992 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
25993
25994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
25995         fanotify_mark.
25996
25997 2010-08-27  Roland McGrath  <roland@redhat.com>
25998
25999         * sysdeps/i386/i686/multiarch/Makefile
26000         (CFLAGS-varshift.c): New variable.
26001
26002 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
26003
26004         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
26005         * sysdeps/i386/i686/multiarch/varshift.c: New file.
26006
26007         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
26008
26009         * sysdeps/x86_64/strlen.S: Minimal code improvement.
26010
26011 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
26012
26013         * sysdeps/x86_64/strlen.S: Unroll the loop.
26014         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26015         strlen-sse2 strlen-sse2-bsf.
26016         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
26017         __strlen_no_bsf if bit_Slow_BSF is set.
26018         (__strlen_sse42): Removed.
26019         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
26020         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
26021
26022 2010-08-25  Roland McGrath  <roland@redhat.com>
26023
26024         * sysdeps/x86_64/multiarch/varshift.S: File removed.
26025         * sysdeps/x86_64/multiarch/varshift.c: New file.
26026         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
26027         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
26028         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
26029         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
26030
26031 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
26032
26033         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26034         strlen-sse2 strlen-sse2-bsf.
26035         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
26036         __strlen_sse2_bsf if bit_Slow_BSF is unset.
26037         (__strlen_sse2): Removed.
26038         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
26039         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
26040         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
26041         bit_Slow_BSF for Atom.
26042         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
26043         (index_Slow_BSF): Define.
26044         (HAS_SLOW_BSF): Define.
26045
26046 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
26047
26048         [BZ #10851]
26049         * resolv/res_init.c (__res_vinit): When no server address at all
26050         is given default to loopback.
26051
26052 2010-08-24  Roland McGrath  <roland@redhat.com>
26053
26054         * configure.in: Remove config-name.h generation.
26055         * configure: Regenerated.
26056         * config-name.in: File removed.
26057         * scripts/config-uname.sh: New file.
26058         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
26059         ($(objdir)config-name.h): New target.
26060
26061         * sunrpc/rpc_parse.h: Avoid nested comment.
26062
26063 2010-08-24  Richard Henderson  <rth@redhat.com>
26064             Ulrich Drepper  <drepper@redhat.com>
26065             H.J. Lu  <hongjiu.lu@intel.com>
26066
26067         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
26068         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
26069         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
26070         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
26071         _mm_alignr_epi8 with _mm_loadu_si128.
26072         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
26073         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
26074         (__m128i_shift_right): Removed.
26075         * sysdeps/i386/i686/multiarch/varshift.h: New file.
26076         * sysdeps/i386/i686/multiarch/varshift.S: New file.
26077         * sysdeps/x86_64/multiarch/varshift.h: New file.
26078         * sysdeps/x86_64/multiarch/varshift.S: New file.
26079
26080 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
26081
26082         * configure.in: Move assembler checks to before sysdep dir checking.
26083
26084 2010-08-20  Petr Baudis  <pasky@suse.cz>
26085
26086         * LICENSES: Sync the sunrpc license.
26087
26088 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
26089
26090         * sunrpc/auth_des.c: Update copyright notice once again.
26091         * sunrpc/auth_none.c: Likewise.
26092         * sunrpc/auth_unix.c: Likewise.
26093         * sunrpc/authdes_prot.c: Likewise.
26094         * sunrpc/authuxprot.c: Likewise.
26095         * sunrpc/bindrsvprt.c: Likewise.
26096         * sunrpc/clnt_gen.c: Likewise.
26097         * sunrpc/clnt_perr.c: Likewise.
26098         * sunrpc/clnt_raw.c: Likewise.
26099         * sunrpc/clnt_simp.c: Likewise.
26100         * sunrpc/clnt_tcp.c: Likewise.
26101         * sunrpc/clnt_udp.c: Likewise.
26102         * sunrpc/clnt_unix.c: Likewise.
26103         * sunrpc/des_crypt.c: Likewise.
26104         * sunrpc/des_soft.c: Likewise.
26105         * sunrpc/get_myaddr.c: Likewise.
26106         * sunrpc/getrpcport.c: Likewise.
26107         * sunrpc/key_call.c: Likewise.
26108         * sunrpc/key_prot.c: Likewise.
26109         * sunrpc/openchild.c: Likewise.
26110         * sunrpc/pm_getmaps.c: Likewise.
26111         * sunrpc/pm_getport.c: Likewise.
26112         * sunrpc/pmap_clnt.c: Likewise.
26113         * sunrpc/pmap_prot.c: Likewise.
26114         * sunrpc/pmap_prot2.c: Likewise.
26115         * sunrpc/pmap_rmt.c: Likewise.
26116         * sunrpc/rpc/auth.h: Likewise.
26117         * sunrpc/rpc/auth_unix.h: Likewise.
26118         * sunrpc/rpc/clnt.h: Likewise.
26119         * sunrpc/rpc/des_crypt.h: Likewise.
26120         * sunrpc/rpc/key_prot.h: Likewise.
26121         * sunrpc/rpc/netdb.h: Likewise.
26122         * sunrpc/rpc/pmap_clnt.h: Likewise.
26123         * sunrpc/rpc/pmap_prot.h: Likewise.
26124         * sunrpc/rpc/pmap_rmt.h: Likewise.
26125         * sunrpc/rpc/rpc.h: Likewise.
26126         * sunrpc/rpc/rpc_des.h: Likewise.
26127         * sunrpc/rpc/rpc_msg.h: Likewise.
26128         * sunrpc/rpc/svc.h: Likewise.
26129         * sunrpc/rpc/svc_auth.h: Likewise.
26130         * sunrpc/rpc/types.h: Likewise.
26131         * sunrpc/rpc/xdr.h: Likewise.
26132         * sunrpc/rpc_clntout.c: Likewise.
26133         * sunrpc/rpc_cmsg.c: Likewise.
26134         * sunrpc/rpc_common.c: Likewise.
26135         * sunrpc/rpc_cout.c: Likewise.
26136         * sunrpc/rpc_dtable.c: Likewise.
26137         * sunrpc/rpc_hout.c: Likewise.
26138         * sunrpc/rpc_main.c: Likewise.
26139         * sunrpc/rpc_parse.c: Likewise.
26140         * sunrpc/rpc_parse.h: Likewise.
26141         * sunrpc/rpc_prot.c: Likewise.
26142         * sunrpc/rpc_sample.c: Likewise.
26143         * sunrpc/rpc_scan.c: Likewise.
26144         * sunrpc/rpc_scan.h: Likewise.
26145         * sunrpc/rpc_svcout.c: Likewise.
26146         * sunrpc/rpc_tblout.c: Likewise.
26147         * sunrpc/rpc_util.c: Likewise.
26148         * sunrpc/rpc_util.h: Likewise.
26149         * sunrpc/rpcinfo.c: Likewise.
26150         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
26151         * sunrpc/rpcsvc/key_prot.x: Likewise.
26152         * sunrpc/rpcsvc/klm_prot.x: Likewise.
26153         * sunrpc/rpcsvc/mount.x: Likewise.
26154         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
26155         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
26156         * sunrpc/rpcsvc/rex.x: Likewise.
26157         * sunrpc/rpcsvc/rstat.x: Likewise.
26158         * sunrpc/rpcsvc/rusers.x: Likewise.
26159         * sunrpc/rpcsvc/sm_inter.x: Likewise.
26160         * sunrpc/rpcsvc/spray.x: Likewise.
26161         * sunrpc/rpcsvc/yppasswd.x: Likewise.
26162         * sunrpc/rtime.c: Likewise.
26163         * sunrpc/svc.c: Likewise.
26164         * sunrpc/svc_auth.c: Likewise.
26165         * sunrpc/svc_authux.c: Likewise.
26166         * sunrpc/svc_raw.c: Likewise.
26167         * sunrpc/svc_run.c: Likewise.
26168         * sunrpc/svc_simple.c: Likewise.
26169         * sunrpc/svc_tcp.c: Likewise.
26170         * sunrpc/svc_udp.c: Likewise.
26171         * sunrpc/svc_unix.c: Likewise.
26172         * sunrpc/svcauth_des.c: Likewise.
26173         * sunrpc/xcrypt.c: Likewise.
26174         * sunrpc/xdr.c: Likewise.
26175         * sunrpc/xdr_array.c: Likewise.
26176         * sunrpc/xdr_float.c: Likewise.
26177         * sunrpc/xdr_mem.c: Likewise.
26178         * sunrpc/xdr_rec.c: Likewise.
26179         * sunrpc/xdr_ref.c: Likewise.
26180         * sunrpc/xdr_sizeof.c: Likewise.
26181         * sunrpc/xdr_stdio.c: Likewise.
26182
26183         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
26184         handling.
26185
26186 2010-08-19  Andreas Schwab  <schwab@redhat.com>
26187
26188         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
26189
26190 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
26191
26192         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
26193         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
26194         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
26195         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
26196         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
26197         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
26198         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
26199         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
26200         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
26201         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
26202         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
26203         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
26204         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
26205         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
26206
26207 2010-07-26  Anton Blanchard  <anton@samba.org>
26208
26209         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
26210         * malloc/arena.c (heap_trim): Likewise.
26211
26212 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
26213
26214         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
26215         here.  Not...
26216         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
26217         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
26218
26219 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
26220
26221         * sysdeps/i386/elf/Makefile: New file.
26222
26223 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
26224
26225         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
26226         from fanotify_init.
26227         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
26228         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
26229
26230 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
26231
26232         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
26233         of strncasecmp_l.
26234         * sysdeps/multiarch/strcmp.S: Likewise.
26235
26236 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
26237
26238         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
26239         strncase_l-nonascii.
26240         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
26241         Add strncase_l-ssse3.
26242         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
26243         * sysdeps/x86_64/strcmp.S: Likewise.
26244         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
26245         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
26246         * sysdeps/x86_64/strncase.S: New file.
26247         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
26248         * sysdeps/x86_64/strncase_l.S: New file.
26249         * string/Makefile (strop-tests): Add strncasecmp.
26250         * string/test-strncasecmp.c: New file.
26251
26252         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
26253         warning.
26254
26255         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
26256         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
26257
26258 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
26259
26260         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
26261
26262 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
26263
26264         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
26265         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
26266         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
26267
26268 2010-05-01  Alan Modra  <amodra@gmail.com>
26269
26270         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
26271         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
26272         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
26273         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
26274         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
26275         tidying.  Don't tail-call __sigjmp_save for static lib.
26276         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
26277         save location.
26278         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
26279         (CALL_MCOUNT): Add eh info, and nop after bl.
26280         (TAIL_CALL_SYSCALL_ERROR): New macro.
26281         (PSEUDO_RET): Use it.
26282         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
26283         Correct save location of integer regs and cr.
26284         (_dl_profile_resolve): Correct cr save location.  Delete nops
26285         after bl when SHARED.  Reduce cfi size a little by better
26286         placement of cfi directives.
26287         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
26288         make a stack frame.  Instead use parm save area as a temp.
26289         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
26290         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
26291         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
26292         Don't make a stack frame for parent, use parm save area.
26293         Increase child stack frame to 112 bytes.  Don't save unused reg,
26294         and adjust reg usage.  Set up cfi on error recovery and
26295         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
26296         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
26297         (__makecontext): Add dummy nop after jump to exit.
26298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
26299         Use correct parm save area and cr save, reduce stack frame.
26300         Correct cfi for possible PSEUDO_RET frame setup.
26301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
26302         Branch to local label emitted by PSEUDO_RET rather than
26303         __syscall_error.
26304
26305 2010-08-12  Andreas Schwab  <schwab@redhat.com>
26306
26307         [BZ #11904]
26308         * locale/programs/locale.c (print_assignment): New function.
26309         (show_locale_vars): Use it.
26310
26311 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
26312
26313         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
26314         field.
26315         (struct statfs64): Likewise.
26316         (_STATFS_F_FLAGS): Define.
26317         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
26318         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
26319         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
26320         (ST_VALID): Define locally.
26321         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
26322         __statvfs_getflags, use the provided value.
26323         * sysdeps/unix/sysv/linux/kernel-features.h: Define
26324         __ASSUME_STATFS_F_FLAGS.
26325
26326         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
26327
26328         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
26329         Add sys/fanotify.h.
26330         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
26331         fanotify_mask for GLIBC_2.13.
26332         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
26333         fanotify_init and fanotify_mark.
26334         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
26335         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
26336
26337         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
26338         Add prlimit.
26339         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
26340         prlimit64 for GLIBC_2.13.
26341         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
26342         prlimit64.
26343         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
26344         syscall.
26345         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
26346         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
26347         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
26348         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
26349         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
26350         add prlimit alias.
26351         * sysdeps/unix/sysv/linux/prlimit.c: New file.
26352
26353         [BZ #11903]
26354         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
26355         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
26356
26357         * nss/Makefile: Add rules to build and run tst-nss-test1.
26358         * shlib-versions: Add entry for libnss_test1.
26359         * nss/nss_test1.c: New file.
26360         * nss/tst-nss-test1.c: New file.
26361
26362         * nss/nsswitch.c (__nss_database_custom): Define new variable.
26363         (__nss_configure_lookup): Set appropriate entry in
26364         __nss_configure_lookup to true.
26365         * nss/nsswitch.h: Define enum with indeces of databases in
26366         databases and __nss_database_custom arrays.  Declare
26367         __nss_database_custom.
26368         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
26369         to avoid using nscd when custom rules are installed.
26370         * nss/getXXbyYY_r.c: Likewise.
26371         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
26372
26373         * nss/nss_files/files-parse.c: Whitespace fixes.
26374
26375 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
26376
26377         [BZ #11883]
26378         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
26379         * posix/fnmatch_loop.c: Likewise.
26380
26381 2010-07-17  Andi Kleen  <ak@linux.intel.com>
26382
26383         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
26384         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
26385         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
26386         * Versions.def [GLIBC_2.13]: Add.
26387
26388 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
26389
26390         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26391         Also fail if tpwd after pwuid call is NULL.
26392
26393 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26394
26395         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
26396         when converting to ms.
26397
26398 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26399
26400         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
26401         EOPNOTSUPP errors with ENOTTY.
26402         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
26403         EOPNOTSUPP errors with ENOTTY.
26404
26405 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
26406
26407         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
26408         Add strcasecmp_l-ssse3.
26409         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
26410         strcasecmp.
26411         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
26412         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
26413         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
26414
26415 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
26416
26417         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
26418
26419         * string/Makefile (strop-tests): Add strcasecmp.
26420         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
26421         strcasecmp_l-nonascii.
26422         (gen-as-const-headers): Add locale-defines.sym.
26423         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
26424         * sysdeps/x86_64/strcasecmp.S: New file.
26425         * sysdeps/x86_64/strcasecmp_l.S: New file.
26426         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
26427         * sysdeps/x86_64/locale-defines.sym: New file.
26428         * string/test-strcasecmp.c: New file.
26429
26430         * string/test-strcasestr.c: Test both ends of the range of characters.
26431         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
26432
26433 2010-07-29  Roland McGrath  <roland@redhat.com>
26434
26435         [BZ #11856]
26436         * manual/locale.texi (Yes-or-No Questions): Fix example code.
26437
26438 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
26439
26440         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
26441         for ld.so.
26442
26443 2010-07-27  Andreas Schwab  <schwab@redhat.com>
26444
26445         * manual/memory.texi (Malloc Tunable Parameters): Document
26446         M_PERTURB.
26447
26448 2010-07-26  Roland McGrath  <roland@redhat.com>
26449
26450         [BZ #11840]
26451         * configure.in (-fgnu89-inline check): Set and substitute
26452         gnu89_inline, not libc_cv_gnu89_inline.
26453         * configure: Regenerated.
26454         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
26455
26456 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
26457
26458         * string/test-strnlen.c: New file.
26459         * string/Makefile (strop-tests): Add strnlen.
26460         * string/tester.c (test_strnlen): Add a few more test cases.
26461         * string/tst-strlen.c: Better error reporting.
26462
26463         * sysdeps/x86_64/strnlen.S: New file.
26464
26465 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
26466
26467         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
26468         lower-latency instructions.
26469
26470 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
26471
26472         * string/test-strcasestr.c: New file.
26473         * string/test-strstr.c: New file.
26474         * string/Makefile (strop-tests): Add strstr and strcasestr.
26475         * string/str-two-way.h: Don't undefine MAX.
26476         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
26477
26478 2010-07-21  Andreas Schwab  <schwab@redhat.com>
26479
26480         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26481         strcasestr-nonascii.
26482         (CFLAGS-strcasestr-nonascii.c): Define.
26483         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
26484         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
26485         Remove unused attribute.
26486
26487 2010-07-20  Roland McGrath  <roland@redhat.com>
26488
26489         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
26490         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
26491         ld.so.cache was broken.  With it, there is no way to disable dsocaps
26492         like LD_HWCAP_MASK can disable hwcaps.
26493
26494 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
26495
26496         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
26497
26498 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
26499
26500         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
26501         call in strcasestr.
26502         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
26503         __strcasestr_sse42_nonascii.
26504         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
26505         strcasestr-nonascii.c.
26506         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
26507
26508 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
26509
26510         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
26511         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
26512         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
26513         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
26514
26515 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
26516
26517         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
26518         fcntl.
26519
26520 2010-07-06  Andreas Schwab  <schwab@redhat.com>
26521
26522         [BZ #11577]
26523         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
26524         dl_signal_cerror.
26525
26526 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
26527
26528         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
26529         _PC_PIPE_BUF using F_GETPIPE_SZ.
26530
26531 2010-07-05  Roland McGrath  <roland@redhat.com>
26532
26533         * manual/arith.texi (Rounding Functions): Fix rint description
26534         implicit in round description.
26535
26536 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
26537
26538         * elf/Makefile: Fix linking for a few tests to make recent linker
26539         happy.
26540
26541 2010-06-30  Andreas Schwab  <schwab@redhat.com>
26542
26543         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
26544         $(common-objpfx)libc_nonshared.a.
26545
26546 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
26547
26548         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
26549         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
26550         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26551         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26552         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
26553         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
26554         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26555         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26556         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
26557         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
26558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
26559         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
26560         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
26561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
26562         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
26563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
26564         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
26565         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
26566         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
26567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
26568         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
26569         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
26570         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
26571         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
26572         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
26573         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
26574         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
26575         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
26576         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
26577         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
26578         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
26579         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
26580         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
26581         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
26582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
26583         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
26584         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
26585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
26586         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
26587         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
26588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
26589         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
26590         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
26591         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
26592         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
26593         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
26594         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
26595         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
26596
26597 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
26598
26599         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
26600         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
26601         * string/memmove.c (memmove): Renamed to ...
26602         (MEMMOVE): ...this.  Default to memmove.
26603         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
26604         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
26605         (END_CHK): Define.
26606         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26607         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
26608         mempcpy-ssse3-back memmove-ssse3-back.
26609         * sysdeps/x86_64/multiarch/bcopy.S: New file .
26610         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
26611         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
26612         * sysdeps/x86_64/multiarch/memcpy.S: New file.
26613         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
26614         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
26615         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
26616         * sysdeps/x86_64/multiarch/memmove.c: New file.
26617         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
26618         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
26619         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
26620         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
26621         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
26622         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
26623         Define.
26624         (index_Fast_Copy_Backward): Define.
26625         (HAS_ARCH_FEATURE): Define.
26626         (HAS_FAST_REP_STRING): Define.
26627         (HAS_FAST_COPY_BACKWARD): Define.
26628
26629 2010-06-21  Andreas Schwab  <schwab@redhat.com>
26630
26631         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
26632         Restore proper fallback handling.
26633
26634 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
26635
26636         [BZ #11701]
26637         * posix/group_member.c (__group_member): Correct checking loop.
26638
26639         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
26640         OOM in getpwuid_r correctly.  Return error number when the caller
26641         should return, otherwise -1.
26642         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
26643         call returning > 0 value.
26644         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
26645
26646 2010-06-07  Andreas Schwab  <schwab@redhat.com>
26647
26648         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
26649         libc_nonshared.a from targets in modules-names.
26650
26651 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
26652
26653         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
26654         requires it.
26655
26656 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
26657
26658         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
26659         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
26660         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
26661         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
26662
26663 2010-06-02  Andreas Schwab  <schwab@redhat.com>
26664
26665         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
26666
26667 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
26668
26669         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
26670         and F_GETPIPE_SZ.
26671         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
26672         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
26673         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
26674         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
26675         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
26676         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
26677
26678 2010-06-14  Roland McGrath  <roland@redhat.com>
26679
26680         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
26681
26682 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
26683
26684         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
26685         __REDIRECT followed by __THROW.
26686         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
26687         * posix/getopt.h (getopt): Likewise.
26688
26689 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
26690
26691         * hurd/lookup-at.c (__file_name_lookup_at): Accept
26692         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
26693         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
26694         in AT_FLAGS.
26695         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
26696         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
26697
26698 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
26699
26700         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
26701
26702 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
26703
26704         [BZ #11640]
26705         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
26706         Properly check family and model.
26707
26708 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
26709
26710         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
26711
26712 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
26713
26714         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
26715
26716 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
26717
26718         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
26719         symbol reference.
26720
26721 2010-05-19  Andreas Schwab  <schwab@redhat.com>
26722
26723         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
26724         symbol reference.
26725
26726 2010-05-21  Andreas Schwab  <schwab@redhat.com>
26727
26728         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
26729         and internal_recvmmsg.
26730         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
26731         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
26732         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
26733         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
26734
26735         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
26736         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
26737         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
26738
26739 2010-05-20  Andreas Schwab  <schwab@redhat.com>
26740
26741         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
26742
26743 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
26744
26745         POWER7 optimizations.
26746         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
26747         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
26748
26749 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
26750
26751         * version.h: Update for 2.13 development version.
26752
26753 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
26754
26755         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
26756         exceptions.  Return 0.
26757
26758 2010-05-07  Roland McGrath  <roland@redhat.com>
26759
26760         * elf/ldconfig.c (main): Add a const.
26761
26762 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
26763
26764         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
26765         (args_options): Add no-idn option.
26766         (ahosts_keys_int): Add idn_flags to ai_flags.
26767         (parse_option): Handle 'i' option to clear idn_flags.
26768
26769         * malloc/malloc.c (_int_free): Possible race in the most recently
26770         added check.  Only act on the data if no current modification
26771         happened.
26772
26773 See ChangeLog.17 for earlier changes.